Hello and welcome back! In this project, we will learn how to make a 4-in-1 2WD Robot Car using the Arduino UNO platform. This robot can be controlled in four ways, IR remote control, line tracking, Bluetooth control, and WiFi control. I used the Webotricks 2WD Robot Car Starter Kit, so we don’t need any additional chassis or extra components. You can get this kit at an affordable price using this link. Also, you can easily build and program this robot with the provided instructions. Even if you have no experience with robotics, don’t worry! This blog will guide you step by step, making everything simple to understand. Also this is a great way to learn about Arduino, sensors, motor control, and wireless communication.
Step 1Start by assembling all the necessary components for your robot and ensure you have everything required for the build. unbox your robot package and check all the components inside the box.
Second, remove the robot chassis sticker and attach the motor metal brackets to the motors. Then install them on the chassis.
Thirdly, install the caster wheel onto the chassis.
Now, attach the wheels to the gear motors.
After that, install the Arduino UNO board and the motor driver board onto the robot chassis.
Next, connect the motors to the motor driver board. After that, install the battery holder onto the chassis.
Now, connect the WiFi Shield to the Arduino UNO board. Then, install the IR receiver module at the front of the robot.
Afterward, install the tracking sensor modules onto the chassis.
Step 9Okay, now connect the battery holder to the shield. Then, connect the motor driver board, IR receiver, and line tracking modules to the WiFi shield.
Motor PinsBlack — D9Purple — D12Green — D11Yellow — D7White — D8Red — D6
IR ReceiverGND — GND5V — VCCD10 — S
Left Tracking SensorVCC — 5VGND — GNDDO — D2
Right Tracking SensorVCC — 5VGND — GNDDO — D3
Step 10Afterward, arrange the wires neatly using tape. Then, charge the 18650 Li-ion batteries and place them into the battery holder.
Now, let’s upload the programs one by one to the robot car. Follow the instructions below for each step.
IR Control of the Robot CarConnect your robot to the computer. Then, copy and paste the following code into the Arduino IDE. Also, make sure to include the IRremote library in the Arduino IDE before uploading the code.
Comments
Please log in or sign up to comment.