Skip to main content

Semi-Autonomous Battle Robots

For the final project in the Advanced Robotics Club that I teach at our local middle school, I made up a challenge called SARB: Semi-Autonomous Robot Battle, which is an extension of Sumo-like challenges. Although we used RCX kits (because we have a bunch), it could just as easily be done with the NXT, so I will explain it here and reference several NXT projects on nxtprograms.com that you could use to get started with a challenge like this using the NXT.

For the fighting ring, (er, ahem, "Playing Surface"), I used our FLL table, turned the mat upside down, and then used electrical tape to mark out an elongated octagon-shaped ring. Like Sumo, one of the goals is to push the other robot outside of the ring. However, the SARB robots can also have some kind of striking (motorized) weapon and get points for successful strikes on the other robot. Like a Karate match, only a "controlled strike" will count as a point. Random spinning/flailing weapons that happen to make contact with the other robot do not count. The strike must be triggered by a sensor that had a reason to hope it might hit the other robot. We did the scoring like this:
  • 1 point for a controlled strike that makes contact with the other robot
  • 2 points for a controlled strike that does damage to the other robot (damage is much more likely with the typically studded building of the RCX kit)
  • 3 points if the other robot goes completely outside the ring (due to your push or accidentially on its own)
Then to make it even more complicated (this was the Advanced Robotics Club, after all), each robot was required to be operated in two different modes: fully autonomous (no remote control), and semi-autonomous, with a single touch sensor on a long wire as a simple remote control. A match was done by putting robot A in fully auto mode vs. robot B in semi-auto mode until one robot scores at least 5 points, then reversing it so that robot A is in semi-auto mode and robot B is in fully auto mode until again a robot scores 5 points, then the total score for each robot is the total of their scores from each half of the match.

One of the reasons for this strange arrangement (aside from making it harder) is that it means that a total of only 1 wire is leading from the hands of the kids to the playing field at any given time, which greatly reduces wire tangling problems. In my Beginning Robotics Class, the final project is two or three-button fully remote controlled (RCX) battle bots, which is a blast, but always ends in a mass of tangled wires...

So, given the requirements, the students were left to figure out how to make the best of a fully auto mode and a semi-auto mode, build it, and program it. Several different strategies are possible in each mode. Here are a few examples:

Fully Autonomous: A light sensor keeps the robot inside the ring with a simple driving strategy such as the Mini Sumo Bot, and a front-bumper touch sensor such as the Bumper Car triggers the weapon when you collide with the other robot. The robot on the right in the picture above is doing this, although its weapon has been damaged and is dangling...

Semi-Autonomous: A light sensor keeps the robot inside like Mini Sumo Bot, and the remote control touch sensor allows the kids to trigger the weapon (the robot on the left in the picture is doing this).

Semi-Autonomous: The remote control touch sensor is used to drive/steer like the 1-Button Remote Control robot, and a second touch sensor on a front bumper triggers the weapon.

Semi-Autonomous: For the programming whizzes, a single button remote control could control both the driving and the weapon, as for the Hammer Car.

There are several other possibilities, and clearly the NXT's ultrasonic senor could add another possibility (as long as only one robot was allowed to use it at a time -- perhaps the fully autonomous one). For wired remote control using the NXT, it might be a good idea to use 3rd party longer wires, or the old RCX touch sensors and long wires if you have them. You could also just do a straight fully autonomous battle with no wires.

Popular posts from this blog

MINDSTORMS Retires!

2023 is the 25th Anniversary of the MINDSTORMS brand. For 25 years, MINDSTORMS has educated and inspired a generation of robot builders, both children and adults. Unfortunately, the LEGO Group decided to end the line on December 2022. Many ROBOTMAK3RS have been passionately involved with the development of MINDSTORMS through the MUP and MCP programs. Even with the newest Robot Inventor line, several ROBOTMAK3RS were invited to submit additional bonus models that were included in the official app. Regardless of the retirement of a major LEGO robotics product line, ROBOTMAK3RS continue to MAKE-SHARE-INSPIRE using all LEGO robotics platforms available to us. Here is the official statement from LEGO. Since its launch in September 1998, LEGO MINDSTORMS has been one of the core ‘Build & Code’ experiences in the company’s portfolio, carrying with it significant brand equity and becoming a stand-out experience for the early days of consumer robotics and leading to current Build & Code

Celebrating 25 Years of MINDSTORMS

In celebration of the 25th Anniversary of MINDSTORMS, we take a trip through history. Please also visit ROBOTMAK3RS Community every week as we highlight different projects all through 2023 in celebration of the anniversary. Some of the early history is based on the content shared by  Coder Shah  in our  MINDSTORMS EV3 Community Group . Some of the text and links may have been edited from his original posts for consistency and clarity.  1984 - Kjeld Kirk Kristiansen watched a TV program called "Talking Turtle," where MIT professor Seymour Papert demonstrated how children could control robot "turtles" using LOGO, a programming language he developed. 1988 - The collaboration between MIT and LEGO resulted in LEGO TC Logo in 1988, which allowed students to control LEGO models using computer commands. The video shows Papert demonstrating TC Logo. 1990 - LEGO TC Logo was hampered since the robots you built had to be tethered to a personal computer. LEGO and MIT

Celebrating MINDSTORMS with a Remix Part 1

In honor of the 25th Anniversary of MINDSTORMS, we asked ROBOTMAK3RS to combine a LEGO set of their choice with a MINDSTORMS set. Here is what these five ROBOTMAK3RS came up with.  MINDSTORMS Chess Assistant by Arvind Seshan Overview: When you are new to chess, it can be a challenge to remember which pieces go where. Now, you can use machine learning and LEGO MINDSTORMS Robot Inventor to build a tool to help you learn where all the chess pieces go on the chess board. Sets used: LEGO® Iconic Chess Set (40174) and MINDSTORMS Robot Inventor (51515) Review: I really like how the chess set base can store all the pieces underneath and that the board neatly splits in half for handy storage. The chess pieces themselves are very sturdy and well built. My only criticism is the building of the box itself. It was quite difficult to see what pieces to use and since the entire box is made mostly of thin plates, it took a lot of time and patience. I would have liked the storage area to be sliding dra