Have you ever wanted to build a toy robot car and see the mobile robot car drive around? In this tutorial, we’ll teach you how to make a toy robot car with accessories to have more functionality. Even if you’ve never tried a project like this before, you can use this guide to work on improving your hands-on skills and get familiar with the soldering process and some basic code.
How to Make a Toy Robot Car: The Materials and Tools
Materials Needed
To mount your car, you’ll need the supplies below. If you are uncertain about selecting the part model number, please read these directions to know how to make a toy robot car.
Two Motors
You may pick the JGA-25 series of engines in terms of engine size. The JGA-25 series engines have versions of encoders that can measure the car’s speed. You can also choose the TT motor at the same time. Its quality is relatively poorer than the JGA-25 series engine but more cost-effective as well.
Two Wheels
When you’re using the TT motor, you’d have to pick the TT DC MOTOR WHEEL. Not only is this model of high quality, but it’s still an inexpensive option, making it a trendy choice. The plate, the 6514A freewheel, can be fitted to the TT motor and the N20 motor by adding the Couplings Pack adapter.
MCU Control Board
We can choose a conventional Arduino microcontroller panel as the vehicle’s control unit. You may choose one of the most popular boards for AI technology, including Raspberry Pi 4 and Nvidia Jetson Nano. These motherboards would use AI capabilities to outfit the vehicle.
- Motor driver board and grove sensor
- Mini car baseboards
- Battery holder and 4x 1.5-volt batteries
How to Make a Toy Robot Car: Instructions
Mount the Wheels and the Motor to the Body
Screw each wheel onto the matching motor and thus lock the motor to the acrylic base plate. Replace the engine on all sides of the base plate. The bilateral symmetry requires to be heeded. Seek to rotate the wheels after fastening on the baseboard to make sure the wheels will turn naturally.
Mount the Motherboard and the Motor Drive Board
Protect the baseboard with a motor drive board and battery case. During the repairing cycle, it should be remembered that the structure of the structure can not influence the trolley movement.
How to Make a Toy Robot Car: Wiring
Connect the Battery Case
There are two binding wires in the battery case; one end is positive (red), and one end is negative (black). The interface is as follows. Connect the optimistic line with the development board’s VIN pin. Link the negative wire to the motherboard’s GND pin.
Connect the Motor Drive Circuit
Link motor drives an optimistic pin to the production board’s Vin button. Attach the negative wire on the engine drive to the production board’s Gnd plate. If you are having trouble locating the pins, please check the specific model instruction manual.
Connect the Motor to the Motor Drive Board
Link the motor drive board’s positive and negative poles to the two engine positives and negatives points.
How to Make a Toy Robot Car: Programming
Attach the programming board to the machine and activate the accompanying Arduino IDE.
You can use the Arduino IDE to automate the operation of the vehicle. Enter the following software through Arduino. Import it into the circuit until it’s done. This code would allow the car to push forward for 5 seconds, turn the right corner, and drive forward for another 5 seconds.
int Fmotor=10;// initialize all the motors
int Bmotor=9;
int Rmotor=6;
int Lmotor=5;
void setup() { // put your setup code here, to run once:
pinMode( Fmotor,OUTPUT);// set them as outputs
pinMode( Bmotor,OUTPUT);
pinMode( Lmotor,OUTPUT);
pinMode( Rmotor,OUTPUT);
}
void loop() { // put your main code here, to run repeatedly:
digitalWrite(Fmotor,HIGH);// code for making the car go straight
digitalWrite(Lmotor,HIGH);
digitalWrite(Rmotor,LOW);// NEVER SET A MOTOR HIGH ON BOTH PINS
digitalWrite(Bmotor,LOW);
delay(5000);
digitalWrite(Rmotor,HIGH);// Take a right turn
digitalWrite(Lmotor,LOW);
digitalWrite(Bmotor,LOW);
digitalWrite(Fmotor,HIGH);
delay(800);
digitalWrite(Fmotor,HIGH);// code for making the car go straight
digitalWrite(Lmotor,HIGH);
digitalWrite(Rmotor,LOW);
digitalWrite(Bmotor,LOW);
delay(5000);
}
Place the vehicle on a level floor. Place the batteries back, and watch them go. If you have a key in your battery tray, toggle it to transform the car on and off. By connecting the battery holder’s positive wire to the center pin of an SPST (single pole single throw) switch, you can add your switch. Link the other Transfer button to the Arduino Vin board.
Update the computer values, then install the latest software to improve the car’s behavior. Seek to adjust the numbers after ‘timeout’ to see what happens when you transform a LOW to a HIGH to vice versa. Just make sure that both pins of a single motor are never set simultaneously HIGH.
Conclusion
Creating RC cars may be a little daunting, but it’s valuable to have a simple understanding as dedicated hobbyists. For every remote-controlled vehicle, the basic idea of how to make a toy robot car should have a transmitter or controller that sends the signal to the car via radio waves, providing instructions on what you want it to do. Know more about toys.