Arduino Edubot using 2Amp Motor Driver Shield

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.

2015-01-21 22.11.08

Hardware Required:

Below are the parts required to build an Arduino Edubot:

 

Hardware Introduction:

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.

2015-01-17 23.30.02

2015-01-17 23.30.10

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.

2015-01-17 23.28.11

2015-01-17 23.31.03

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.

2015-01-21 18.32.11

2. Connect the battery holder wire to the Male DC Jack. Reminder: Red wire for positive, black wire for negative.

2015-01-21 18.33.30

3. Insert the two 5mm PCB stand as shown in the image below. This will be used to fix the Auto-Calibrating Line Sensor.

2015-01-21 18.35.01

4. Screw the Auto-Calibrating Line Sensor on the two PCB stands.

2015-01-21 18.36.29

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.

2015-01-21 18.38.11

6. Connect the ribbon cable for Auto Calibrating Line Sensor.

2015-01-21 18.41.25

7. Now, screw the CT UNO on top of the 15mm PCB stand as shown below.

2015-01-21 18.42.15

8. Plug in the 2A Motor Driver Shield on top of CT UNO.

2015-01-21 18.42.35

Make sure you insert the shield in the correct orientation.

2015-01-21 18.42.59

9. Connect the other end of ribbon cable to the LSS05 connector on the Motor Driver Shield.

2015-01-21 18.43.25

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.

2015-01-21 18.43.53

2015-01-21 18.44.00

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.

2015-01-21 18.46.54

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.

jumper

Besides that, make sure that the selection jumper for motor control mode is connected for the sign magnitude mode.

2015-01-17 23.28.33

12. Finally you are done with the hardware assemble of Arduino Edubot.

2015-01-21 22.11.08

2015-01-21 22.11.25

 Example sketches:

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.

Attachment:

Sample code

Buy

, , , ,

Related Post

Getting Started with Colour Sensor Module (SN-COLOUR-MOD)

Getting Started with Tilt Sensor (SN-TILT)

Getting Started with Vibration Sensor Module (Normally Off) (SN-VIBRATE-MOD)

Getting Started with Temperature Sensor (Celsius) (SN-LM35DZ)

3 thoughts on “Arduino Edubot using 2Amp Motor Driver Shield

Leave a Reply

Your email address will not be published. Required fields are marked *