You are on page 1of 20

Arduino Car

Activities
Lab 1: Robot navigation using differential
drive technique
Lab 1: Robot navigation using differential
drive technique
• Activity A-01

First log in to the TINKERCARD.


Then select “Circuits” from the menu bar.
Next select “Create new Circuit”.
First add an Arduino Uno board, Bread board, Led and Resistor.
Then connect the LED to Digital pin 13 of the Arduino board as shown in the below
image.
• Activity A-01

Next write the Arduino code as you can see in below.


Then click “Start Simulation”
• Activity A-02

Interface two gear dc motors used in our mobile robot to the Arduino board trough
the L293 motor driver.
Then write the Arduino code to drive the robot forward and reverse directions.
Next modify the above code using PWM.
• Activity A-03

Interface IR sensor and IR remote to the previous circuit.


Then modify the Arduino code to control the robot by remote (button 1 press go
forward, button 2 press go revers, button 3 press take a left turn, button 4 press
take a right turn, etc..)
• Activity A-04

Interface Ultrasonic sensor to the same circuit.


Then modify the Arduino code to obstacle detection.
IR Sensors

Sensitivity of the detector can be adjusted by changing the value of


the resistor above the phototransistor; reduce the value to
increase sensitivity.
IR Sensors
IR Sensors
IR Sensors
IR Sensors
• Activity A-05

Interface 2 IR sensor to the same circuit.


Then modify the Arduino code to line following.
DC Motor with
Encoder
• Activity A-06

Now replace the two dc motors of the robot with dc motors


with quadrature encoder.
Then modify the Arduino code to measure the distance
travels.
• Activity A-07

Assume that the robot used in activity 06 has a Bluetooth sensor which we can
used to connect the robot to a Smart phone. Then assume that we can send the
linear velocity and angular velocity to the robot using app in smart phone.
Then modify the Arduino code to calculate wheel velocities from the given linear
and angular velocities.

You might also like