2. What we have seen so far?
Basics of Robotics
Using Breadboard
Digital and Analog I/P and O/P
Serial Communication
Controlling DC Motors
Assembled the robot
Made it run
http://hardwarefun.com 2
3. Today we will see..
Varying the speed of the motor
Play some tunes using the buzzer
How IR works
Making use of IR to find obstacles
Make the bot avoid strangers
Making it autonomous
Some Advanced stuff
http://hardwarefun.com 3
6. Playing sound
We can generate a square wave at specified frequency
using tone() function
Usage:
tone(pin, frequency, duration)
http://hardwarefun.com 6
7. Teaching robot to avoid strangers
Two IR LED’s. One receiver, one transmitter
Both face the same direction
Keep transmitting IR waves
If receiver receives waves, then there is a obstacle
Otherwise keep moving
12. Issues with delay
Your microcontroller is going to sleep
You can’t read or write while in delay
Eg: You can’t detect an obstacle when the bot is
making a turn
http://hardwarefun.com 12
24. Some ideas to try
Making your robot follow a line
Making your robot stay in a table
Replace IR with ultrasound sensor
Control the bot remotely using RF
http://hardwarefun.com 24
25. Things I have tried
Controlled it using Android phone
Controlled it using JavaScript and WebSockets
Controlled it using Bluetooth
Controlled it using RF
Added a missile launcher to it
https://github.com/sudar
http://hardwarefun.com 25
26. Links
Arduino – http://arduino.cc
Asimi – A simple bot using Arduino
http://hardwarefun.com/project/asimi
Getting started with hardware programming
http://hardwarefun.com/tutorials/getting-started-with-
hardware-programming
Getting started with Arduino
http://hardwarefun.com/tutorials/getting-started-with-
arduino-and-avr
27. Questions
Thank You
Sudar Muthu (@sudarmuthu)
http://hardwarefun.com/arduino-workshop
https://github.com/sudar/arduino-robotics-workshop