In this tutorial, I am going to show you how to build your own Arduino Edubot using the 2Amp Motor Driver Shield. A simple line following robot will be created using the 2Amp Motor Driver shield together with the LSS05 Auto Calibrating Line Sensor.
Below are the parts required to build an Arduino Edubot:
- Aluminium Robot Chassis Complete Set
- CT UNO
- 2Amp Motor Driver Shield
- Auto-Calibrating Line Sensor
- 2x 18650 Lithium Ion Rechargeable Battery
- 2x 18650 Battery Holder
- DC Jack(Male) to DG126 Converter
- 2x PCB Stand (Screw & Nut) 15mm
- 2x PCB Stand (Screw & Nut) 5mm
In this project, I am going to introduce some of the new parts used to make this Arduino Edubot. This is actually an upgraded version of Arduino Edubot that was covered before.
1. CT UNO – This is the Cytron version of Arduino Uno. It is compatible with various kinds of Arduino Shields. To know more about CT UNO, you can have a look at Introducing CT UNO.
2. 2A Motor Driver Shield – This is the new motor driver shield designed by Cytron. Some of the special features that I would like to highlight about this shield is that it has manual buttons that allows you to test each channel of motor. Besides that, it has a connector specially designed for LSS05 Auto Calibrating Line Sensor. This greatly reduced the number of external wiring required as compared to previous version.
Arduino Edubot Assembly:
I am going to show the step by step assembly of the Arduino Edubot. You will be able to create one too by following each steps.
1. First, attach the 18650 battery holder to the aluminium robot chassis.
2. Connect the battery holder wire to the Male DC Jack. Reminder: Red wire for positive, black wire for negative.
3. Insert the two 5mm PCB stand as shown in the image below. This will be used to fix the Auto-Calibrating Line Sensor.
4. Screw the Auto-Calibrating Line Sensor on the two PCB stands.
5. Next, insert the other two 15mm PCB stand as shown in the image below. These two will be used to hold the CT UNO.
6. Connect the ribbon cable for Auto Calibrating Line Sensor.
7. Now, screw the CT UNO on top of the 15mm PCB stand as shown below.
8. Plug in the 2A Motor Driver Shield on top of CT UNO.
Make sure you insert the shield in the correct orientation.
9. Connect the other end of ribbon cable to the LSS05 connector on the Motor Driver Shield.
10. Plug in the Male DC Jack into the Female DC Jack on the CT UNO. This will be used to power both the CT UNO and the motors.
11. Now, screw the wires of both motors to the terminal blocks of Motor Driver Shield. Motor 1 for right wheel and motor 2 for left wheel.
Make sure the power source jumper is connected as shown below. This allows you to use the external supply to CT UNO as the power for motor.
Besides that, make sure that the selection jumper for motor control mode is connected for the sign magnitude mode.
12. Finally you are done with the hardware assemble of Arduino Edubot.
I have prepared an example sketch for the line following with Arduino Edubot. Your robot should be able to follow a line after uploading program. Before you run your robot, don’t forget to calibrate the sensor on the surface. If you are not sure how to calibrate the sensor, kindly refer to the user manual of LSS05 at product page, it is well documented under section 6.1.1.
Here is a video showing how the final product of Arduino Edubot line following works.
Last but not least, if you have any questions, feel free to discuss in our Technical Forum. Good luck in building your Arduino Edubot.