Arduino TA0136 User manual

I
TA0136
USER MANUAL
ARDUINO 2 WHEEL
DRIVE ULTRASONIC
ROBOT KIT

II
Contents
Overview – TA0136 ...........................................................................................................1
Getting started: the 2 Wheel Drive Ultrasonic Robot Kit using Arduino UNO...........1
2.1. What is Arduino?....................................................................................................................1
2.2. What is IDUINO UNO?..........................................................................................................1
Software installation..........................................................................................................2
3.1. Arduino Software/IDE............................................................................................................2
3.2. Play with your first “Hello World” LED example..................................................................3
3.3. Run your Arduino 2 Wheel Drive code..................................................................................4
Hardware installation........................................................................................................5
4.1. Unboxing and Component list ................................................................................................5
4.2. Chassis Frame Installation......................................................................................................6
4.3. Arduino Installation..........................................................................................................6 -12
4.4. Sensor installation..........................................................................................................12 - 17
4.5. Switch ............................................................................................................................17 - 22
4.6. Wire Connection............................................................................................................22 - 24
Have fun.....................................................................................................................24 - 26
Appendix.......................................................................................................................................27 - 30

Chapter 1
Overview – TA0136
1
Overview – TA0136
In this instruction, we will introduce you through the fun project of the Arduino 2 Wheel Drive
Ultrasonic Robot Kit. Get your Arduino board kit. Let’s get started!
Getting started: the 2 Wheel Drive Ultrasonic Robot Kit
using Arduino UNO
2.1.What is Arduino?
Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino
boards can read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into
an output - activating a motor, turning on an LED, publishing something online. You can tell your
board what to do by sending a set of instructions to the microcontroller on the board. To do so you use
the Arduino programming language (based on Wiring), and the Arduino Software (IDE), based on
Processing.
2.2.What is IDUINO UNO?
The Iduino Uno is on the ATmega328. It has 14 digital input/output pins (of which 6 can be used as
PWM outputs), 6 analogue inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an
ICSP header, and a reset button.
It contains everything needed to support the microcontroller; simply connect it to a computer with a
USB cable or power it with a AC-to-DC adapter or battery to get started.

Chapter 3
Software installation
2
Software installation
In this section, we will introduce you the development platform where you translate creative mind
into codes and let it fly.
3.1.Arduino Software/IDE
Download from here. Open Windows-based app by double clicking it and follow the instruction to
complete(Remember to install everything driver for Arduino). Easy!
Figure 1 Installation of drivers
Connecting your UNO board with your computer
Connecting UNO and your PC by a blue USB cable, and if connected correctly you will see the green
power LED light up and another orange LED is blinking.
Figure 2 Check Your special COM and note it down the number
Find your Serial COM
number and note it down.
We need to figure out which channel COM is currently communicating between PC and UNO.
Following the path: Control panel | Hardware and Sound | Devices and Printers | Device Manager |
Ports (COM & LPT) | Arduino UNO (COMx)

Chapter 3
Software installation
3
Note down the COM number as we require this later. As the COM port may vary from time to time,
this step is vital. In this case for demonstration purpose, we are using the COM 4.
3.2.Play with your first “Hello World” LED example
Firstly, let’s tell IDE where to find our Arduino port and which board you are currently using: The
following instruction (Figure 3 and 4) shows the details:
Configuration of Ports
Configuration of the Board

Chapter 3
Software installation
4
It’s time to play with you first simple example. Following the path by File | Examples | 01. Basics |
Blink. A new code window would pop up, press the arrow symbol to upload. You will notice the
orange LED is blinking almost every second.
3.3.Run your Arduino 2 Wheel Drive code
Upload to UNO
Done uploading!

Chapter 4
Hardware installation
5
Hardware installation
4.1.Unboxing and Component list
1. Acrylic Chassis
2. DC Motors
3. SG90 Servo with horns and
Brackets
4. Rubber Wheels
5. Metal Pivot wheel
1. Ultrasonic Sensor
2. Arduino UNO Development
Board
3. Arduino Sensor shield V5.0
4. 6 x AA Battery Box (Batteries
not included)
5. L298N Motor Driver Board
6. Rocker Switch (Optional
configuration please see
Chapter 4.4)
7. Jumper Cable with 12 wires
Fastener package:
1. 4 x M3 30mm Screws
2. 4 x M3 10mm Screws
3. 4 x M3 8mm Screws
4. 8 x M3 6mm Screws
5. 4 x M3 35mm Spacers
6. 4 x M3 10mm Spacers
7. Self-tapping Screws
8. 8 x Nuts

Chapter 4
Hardware installation
6
4.2.Chassis Frame Installation
Remove the protective cover and
prepare the items:
1. 4 x M3 6mm Screws
2. 4 x M3 10mm Spacers
3. 4 x M3 6mm screws
4. Metal Pivot Wheel
Assemble the M3*10 spacers and
M3*6 screws onto the Metal Pivot
Wheel

Chapter 4
Hardware installation
7
Screw in the metal pivot wheel to
the chassis
Gather 4 x M3 10mm screws and
nuts to secure L289N Motor
Drive board
Screw the L289N Motor Drive
board from the bottom chassis

Chapter 4
Hardware installation
8
Gather 4 x M3 8mm screws and 4
x M3 35mm spacers
Secure Spacers onto the chassis as
per the picture on the left.
Spacers/Stand-offs should look
like this

Chapter 4
Hardware installation
9
Gather the following components:
1. 2 x Acrylic Motor
Brackets
2. 4 x M3 35mm Screws
3. 2 x Nuts
*Attaching wheel encoders are
optional. These are not required
for this particular project

Chapter 4
Hardware installation
10
Place acrylic DC motor Brackets
on both side of the motors as
shown on the left
Gather another two acrylic
fasteners and two wheels
Insert the acrylic fasteners first in
pre-cut slot

Chapter 4
Hardware installation
11
Then tighten and secure the DC
motor with one nut on the other
side
Fix the other motor as well
Pull the wire through as we need
to connect them to the L289N
board

Chapter 4
Hardware installation
12
4.3.Arduino Installation
Let’s fix the Arduino UNO and Sensor shield in the following steps.
Prepare the jumper cables
Separate the jumper cable set
into four and eight
configurations
Connect the 8 jumpers with
L289N board as shown.
Please Note: The 8 Jumper
cables will eventually attach to
the Sensor Expansion Board
from the L289N board a few
steps from now. Please leave the
opposite side free for the
following steps.

Chapter 4
Hardware installation
13
Prepare the following:
Battery pack:
•Arduino UNO development
board
•Top acrylic chassis
•6 x nuts
•6 x M3 10mm screws
Peel the protective cover
Place the battery pack and UNO
board on the top acrylic chassis

Chapter 4
Hardware installation
14
Secure the screws from the
bottom
It should look like this
Feed the jumper wire from the
L289N board and pull through
to the top acrylic chassis hole to
connect with the UNO board
later

Chapter 4
Hardware installation
15
Mount the top acrylic chassis to
the bottom chassis
Use four M3*6 screws to secure
top acrylic chassis.
It should look like this

Chapter 4
Hardware installation
16
Place the sensor shield on the
top of the UNO board and
ensure the pins line up with the
Uno Board.

Chapter 4
Hardware installation
17
4.4.Sensor installation
Ultrasonic sensor acts as the eye of this 2-wheel drive car. In the following steps, we are going to
guide you through the installation of ultrasonic sensor and servo.
Items required in this step
Assemble the FPV holder and
servo
Use two self-tapping screws (in
the FPV package) to tighten

Chapter 4
Hardware installation
18
Prepare the items
To fit the servo horn into the
black holder we need to modify
as pictured. Best tool to do this
with is a side cutter
Caution: Be carefully with cutter
and sharp edges of the horn
Table of contents
Other Arduino Robotics manuals