Sure, remote controlled cars are fun, and self-service robotic cars are even more fun. In this tutorial, we will create a four-wheeled robot that can move around and avoid obstacles. I bought this complete 4WD kit from AliExpress, but you can easily buy most of these components from an electronics store and assemble them yourself.
I recommend reading all the instructions before you get started, as it will clear up some things that might be confusing the first time around. Also, this may look like a very long, advanced project due to the length of the instructions, but it’s actually quite simple. No need to be intimidated — this is an entry-level project that you can get some satisfying results with and then build on as you learn more. Don’t like this robot style? Here are some more Arduino robots you could easily build instead.
Here’s what we have after taking everything out of the package:
First, we will attach the motors and the H bridge (the board that supplies power to the motors) to the bottom of the chassis. First, attach four metal brackets (they are rectangular, drilled metal blocks) to each motor using two long bolts and two nuts.
You need to make sure they are attached correctly, so look at the image below to make sure the side of the block with the 2 holes drilled will be facing down. Note that the wires on each motor are directed towards the center of the chassis.
Each motor can now be attached to the chassis using two short bolts at the bottom of each metal bracket. Here is a view of the underside of the chassis so you can see where the bolts should be:
The next step is to attach the H-bridge (that’s the red board in my kit) to the chassis. You can wait until all wires have joined the H-bridge before doing this, but that’s up to you (I found it easier). Quick note: my kit was missing a few fasteners, so I used duct tape to secure the bridge. However, you can see here where the bolts and nuts would go:
Now that the H-bridge is connected, you can start connecting the power supply. Since the six AA battery holder comes with a DC adapter, you either need to cut off the end (which I did) or run jumpers to the batteries themselves.
Regardless of how you choose to do this, you will run the positive wire to the port labeled «VMS» and the negative wire to the port labeled «GND» on the bridge. Tighten the fasteners and make sure they are securely fastened. Then connect the motor wires. There is a set of two ports on both sides; one is labeled «MOTORA» and the other «MOTORB». Both The red wires on each side will go into the center green port, and both black wires will go into the outer one. This picture should make it more clear:
I found that I had to remove part of the housing from the motor wires to get this to work. Now that all the motors and power supply are connected, slide the wheels onto the motor drive shafts and attach the four copper shafts at the locations shown in the picture below (one small bolt is required for each copper shaft). This robot is starting to take shape!
Now set aside this part of the body and take another, which will be located on top. The next step is to attach the Arduino — again, I had to use duct tape, but you should be able to better secure yours with some bolts and nuts.
The next step requires a micro servo, a black D-pad, a servo (which consists of three black plastic pieces) and a few small screws. Use one of the large, pointed screws in the kit to attach the black cross to the micro servo:
Then turn the servo upside down into the black plastic holder ring. Make sure the wires coming out of the servo are facing the same direction as the longer part of the holder (again, see the image below) and use four tiny screws to secure the crossbar (there are four holes in the holder that align with crossbar holes).