CarduBots: Cardboard Arduino Bots- Player Vs A.I Challenge- Kids S.T.E.M. Battle Project

by Do-Or-Diy in Teachers > 9

74 Views, 1 Favorites, 0 Comments

CarduBots: Cardboard Arduino Bots- Player Vs A.I Challenge- Kids S.T.E.M. Battle Project

cardboard bots

Put your ideas and passion first in this project. If you are not interested in silly robotics: run run! away and do what you like instead! This was, I emphasise NOT AS EASY as it looks. But if you are passionate about it only then you can easily make this thing. If you don't design properly, the bots will run randomly , or the blade will fail during impact, or many other issues because things are not fitting exactly. You can ask any of your queries in the comment also. I can give answer to you for a limited time after I publish this "instructable" ,sure.

I have always liked shows like BattleBots, Robot wars as a child. Where participants made robot vehicles and they fight against each other. That really piqued my interest in mechanics. Further influencing me deeply to pursue a career in engineering in later life. I have never been able to participate in a battlebot championship. So when a fun cardboard make challange came up, I thought to make a battlebot using cardboad boxes. Because Cardboards are so flexible, easy to get, easy to cut, absorbs hits without cracking, So they are virtually perfect material for the battlebots. And children can learn so much from making this. This is my effort to make a novel cardboard indoors battlebot . Even if you are a grown up, a battlebot arena in your game room will surely be a nice edition beside your pool table or arcade machine.

Update:

This actually turned out to be pretty cool. Using the concepts, a teacher can also raise interest in young children in S.T.E.M field: namely, Science, technology, Engineering, Maths field. A children can learn about basic robotics, forces and inertia, Arduino programming, making a very basic artificially intelligent computer opponent and so on. Teachers can organise competitions and make this a hands-on learning project curriculum also. And of course not to forget the fun part. Which kid does not like a toy that moves and fights?!

Supplies

1.jpg

There are maaaany bots and sub-variations to choose from. But i chose what resembles a "Tombstone" and "Biteforce" due to their simplicity in design. Check my basic project sketch out. Forgive the bad handwriting as always.

The supplies will not be limited to what I have provided. For example, if I have used a certain kind of motor and wheel you can use a different one with similar function. So I'll be listing the basic parts and you can choose as you like or as per availability around you.

So instead of keeping your mind fixed on the provided supplies, keep an open mind and use your creativity to find similar parts that you would like. That will make this project interesting for you. Read along to get the idea about what is required for this project.

We will be making:

Robot 1 (The Hookmaster) It hits opponent from a side hook by a horizontal spinner. Shifts opponent sidewise. Easy to make, It will be our CPU opponent. Which will try to knock us sideways.

Robot 2 (The Uppercut Expert) it hits opponent like an uppercut by a vertical spinner. It will try to lift the opponent and either topple it/push it or break some vital parts.

Let us go into more detail:

To make the cardboard chasis:

  1. Printed Cut-outs: Take prints of the provided cut-outs in A4 or A3 sizes. (see next step)
  2. Paper cutter knife. https://www.amazon.com/dp/B0BYHXL3TK
  3. Toothpicks to attach the paper onto cardboard (4nos.) https://www.amazon.com/dp/B00KJN84TW

The wheels:

  1. 4 nos Geared motor and wheel Sets (Any 100-200 RPM , 5-12volts common DC motor will do) https://www.amazon.com/dp/B099Z85573
  2. Sewing needle and threads to bind the wheel into the cardboard before gluing. https://www.amazon.com/dp/B09PDLFS23?th=1

The Blades:

  1. Copper wire to bind the ballast. https://www.amazon.com/dp/B07DYG6DVP
  2. some heavy iron plates as inertial ballast. (I salvaged some old low voltage transformer cores https://www.amazon.com/dp/B08T9DJ1LH)
  3. Transparent tape. https://www.amazon.com/dp/B0BR3Z5Z2V
  4. Some accessories of dc motor: https://www.amazon.com/dp/B0776ZPP7V
  5. gears which fit a motor shaft tightly to hold the blades.
  6. 4 nos. steel rod: 2mm thick, 50mm long and a gear to fix the wheel(or 4 nos 30mm long, M2 screw)

Uppercut robo motor connection:

  1. Old Discarded USB wire for the remote control. ( It has 4 wires inside it. which will be equal to 3 channels and one ground. That means two wheels and a blade motor.) https://www.amazon.com/dp/B0CKTSQPG9
  2. Soldering iron and other soldering items like soldering wire https://www.amazon.com/dp/B087767KNW.
  3. Enamled Copper Wires for connection

Wheels:

  1. A Nail to heat and make holes for screw.
  2. Plier to hold the nail.
  3. Lighter/ candle to heat the nail.
  4. 2 nos. Front wheel: 3d print the file I have provided or search for omnidirectional wheel like this. https://www.amazon.com/dp/B0CQXLQ2QT

Spinner:

  1. Two D.C motors for the spinning mechanisms.
  2. steel plate from old transformer as a stiffening mechanism plate for the impactor.

Remote:

  1. A breadboard of approx 4"x2" size
  2. Three push button switches. https://www.amazon.com/dp/B01CGMP9GY
  3. Rechargeable 9 volt batteries . You can have one 9v lipo battery or make the battery from two 4.5 volt lipo pencil batteries. https://www.amazon.com/dp/B0B74LR9R7
  4. Lipo charger. https://www.amazon.com/dp/B06XR87987

CPU bot:

  1. Arduino Uno or similar microcontroller with uploading wire https://www.amazon.com/dp/0BV9XFQ5T
  2. Adafruit motor shield V1 or any motor driver to drive 3 motors https://www.amazon.com/dp/B01DG61YRM
  3. HC Sr04 ultrasonic range finder https://www.amazon.com/dp/B01GNEHJNC
  4. A switch to turn off or on.
  5. PC with arduino ide installed to upload code.

Download Cutouts

I suggest to use the cardboard cut outs as I have provided. It will make the making part a lot easier for you. I have provided the .svg files also so you can laser cut them if you have the machine. Or you can take the .pdf printouts in A4 or A3 sizes and put them on cardboards then cut by a paper cutter.(I have no experience in laser cutting of cardboards, so use the .Svg after checking them first. you may need to do some cleaning of the letters etc.)

Cut on Paper

20240629_180818.jpg
20240629_180847.jpg
20240629_182140.jpg
20240629_184445.jpg

After taking the print out, put them on a cardboard then use some toothpick to stick them over it. Then cut with a paper cutter as shown.


Fold

20240629_184733.jpg
20240629_190330.jpg

Fold the cardboards along the dotted lines. You can take help of a ruler to make the seam straight.

Fix Motors

20240630_084138.jpg
20240630_084129.jpg
20240630_090407.jpg
20240630_090410.jpg

The motor I had, did not have a lot of gap from the wheel. So I had to cut the cardboard present between the wheel and the motor. If you have sufficient gaps, you don't need to do this.

Make the cuts as shown before you fold the box.


Fix the Blades

20240630_101416.jpg
20240630_102355.jpg
20240630_104351.jpg
20240630_141101.jpg
20240630_141234.jpg
20240630_141325.jpg

I have salvaged an old toy to get the motor and some parts. but you can use freshly ordered parts as well.

The blade can be made in many innovative ways. You can make it out of plastic, sharp metal, Razor blades (Be careful because it may break and deflect. So don't do it unless you have an arena made out of Polycarbonate covering like the real "Battleblots"). Or as a safe bet, use cardboard with iron ballast load as shown.

You need some "heavy-ness" in the blades so it stores energy and gives maximum force at impact. The cardboard is realle good because it does not crack under impact.

Bind the ballast and a circular plate which can fit a motor tightly with copper wire as shown.

"make Uppercut": the Motor

20240630_105351.jpg
20240630_105828.jpg
20240630_110343.jpg
20240630_111447.jpg

Fix the motors on the cardboard as shown. Then connect 5 volt current to the motor poles. Check which one is the positive pole of the motor when the wheels turn forward. See attached video. Then mark the poll as positive.

Take a discarded USB wire. It will have 4 small wires in it. Connect the black one to the negative of all the motors. and the coloured one to the positive sides.

Solder them with soldering iron

Cover them with transparent tape.

Cardboard Chasis

20240630_111949.jpg
20240630_112122.jpg
20240630_112258.jpg
20240630_112455.jpg
20240630_112614.jpg

Use white super glue to attach the inner cardboard walls to the main chasis. White super glue will bond the papers really well. After that, use transparent tape as a second layer of reinforcement around the cardboards.

Fix Wheels

20240630_112950.jpg
20240630_113045.jpg
20240630_113937.jpg
20240630_114205.jpg

The wheels may look simple but fixing them can be very interesting. Because wheels fixed by novice people can come out easily. They may also slip around the axis. So they need to be tightly fixed.

Hold a nail with a Plier and heat it over a lighter or a candle. The use that to hole through the wheel as shown. Now you can put a long screw to fix the wheel to the axle or use a thin rod and gear as shown to fix.

Now the wheel will not slip because of the grooves in the axle and also not come out because of the tight gear.

Spinner

20240630_121237.jpg
20240630_121242.jpg

Fix the spinner motor as shown with copper wire. You also need some stiffener. So that the motor can take the force generated during impact. Else the cardboard will deform and tear upon impact. The stiffener you see is made of iron plate salvage from old transformer part. You can use any steel plate or plastic plate as you wish.

Front Wheel

20240630_185832.jpg
20240630_190049.jpg
20240630_190357.jpg

You need a wheel for the front part for each of the robots. It can be ordered online from any mechatronix store or you can 3D print the files I provided.


Downloads

The Hookmaster

20240630_135149.jpg
20240630_140540.jpg
20240630_140549.jpg
20240630_140723.jpg

This chasis is simple to make. Just fold along the seams and tie the motor with threads and reinforce with super glue + tape

The Remote for UppercutExpert

20240701_044122.jpg
20240630_184013.jpg
20240630_195735.jpg
20240630_200839.jpg

I have made a very simple remote for this. It does not have any requirement for radio modules or programming. It is simply made by connecting wires to batteries through connection switches.

Check the simple connection sketch made.

The right button turns the left wheel, so the robot goes to the right and similarly the other button if for going left. when you press both of the buttons using your thumb, the both the wheels turn and the robot goes forward.

There is no back movement because that will increase the channel requirements of the remote and you will need special wires and the design will go from simple to complex.

For now just pull the vehicle backwards to move it backwards.

You can charge the batteries as shown.


Test UppercutExpert

Test how the robot moves and acts, as shown in the video. It worked pretty well.

CPU Controlled Mechanism

20240630_193309.jpg
20240630_214848.jpg
20240701_050218.jpg
20240630_223645.jpg

Add a cardboard box on top of the robot. Then glue it. It will hold the battery and the circuit. After placing the battery, connect it with a switch and then connect the arduino and adafruit motor shield v1 and the ultrasonic range Finder.

Dont turn on the switch yet. Keep it turned off .

Programming

01.png
02.png

First we will do the programming.

We will use very simple sketches in Arduino IDE to check the parts. We will upload via usb cable from pc to arduino board. I am not going into very detail like how to install arduino ide software or upload code etc. because they are standard tutorials you can google online. But If you need any help or direction, ask me in the comments.

MOTOR CODE:

In the Arduino IDE software, search for the library as shown in the first pic. Install it.

Then open a sketch as shown in the next pic.

Modify the number "4" shown inside the sketch as 1,2 or 3. Each number represents each motor connected to the shield.1 is the right wheel, 2 is the spinner and 3 is the left wheel. so you need to check the motors individually by modifying the code. Then upload the file to Arduino board. The motor will start to rotate. in this way check the motors of right wheel, left wheel, and the spinner. If any of the motor turns in the opposite direction during startup, then interchange the wires which are connected to the motor shield. This will reverse the polarity and make the turn right. This is so that you can keep the code provided in the next step and reduce extra work.

ULTRASONIC DISTANCE FINDER (hcsr04) CODE:

To check the distance sensor, use the attached code. The distance from the sensor should appear in the serial monitor of arduino.

Downloads

Code Design

20240701_015006.jpg

The code is designed in these steps:

First, the robot keeps turning when nothing is present near it. Only when something is within a given distance it goes towards it. When it loses its target, it starts spinning in a randomised direction. So that people cannot predict it easily. See the attached video of its behaviour. You can make your own code but. This simple code worked well for me.

Upload the attached program which contains code sections to incorporate the above steps. Now remember to remove the jumper marked in the red. Only after this, you can turn on the battery. Or you may burn the arduino voltage breaker (like me). And will not be able to upload directly.

When you have uploaded successfully, then put the robot near a small object to test its function as shown below.

Downloads

Lets Play!

Round 1: Player times his entry but alas! the spinning hook master pushes him off the arena. 1 for CPU.

Round 2: A long lasting sumo fight between two players. The CPU handles really well in a small area and targets sufficiently well. But the player manages to push Cpu away the edge and Cpu falls down. 1-1 its draw.

Round 3: Player upgrades its weight to 300 gm to match Cpu weight. Also it upgrades its blade with more ballast for more power. A nice uppercut flips CPU and it falls outside the ring. Its a WIN for the player.

You can play 1v1, vs CPU. Why not program your own bot and do a CPU vs CPU among friends to see who is the better programmer? Best of luck!

Hope you have enjoyed the match as much as I did. You have to press the favourite button ok.