SlideShare a Scribd company logo
Arduino Robotics Workshop
          Day 1
          Sudar Muthu (@sudarmuthu)
   http://hardwarefun.com/arduino-workshop
             http://github.com/sudar
Who am I?


           Research Engineer by profession
           Build’s robots as a hobby
           Playing with Arduino for more than 3 years
           Blog about Arduino at http://hardwarefun.com
           Moderator for Arduino India forum




http://hardwarefun.com             2
Special Thanks


                         Anil and Sysplay




http://hardwarefun.com             3
Objective


           Introduce Arduino
           Learn about robotics
           Learn about sensors
           Build a small bot
           Make it autonomous
           Fully hands on
           Details at http://hardwarefun.com/arduino-workshop

http://hardwarefun.com             4
Basics of Robotics




http://hardwarefun.com           5
Anatomy of a Robot




Sensors

                      Motors
          Processor
Sensors (Input)
Motors (Output)
Processor (Brain)
Getting to know your Robotics
                      Kit



http://hardwarefun.com   10
Can you identify the different
             components in the kit?



http://hardwarefun.com   11
Breadboard Basics




http://hardwarefun.com           12
How to use a breadboard


           The first two and the last two rows are connected
           In all the other rows, columns are connected
           Connect the first and last row to power
           Connect the second and second last row to ground




http://hardwarefun.com             13
Arduino




http://hardwarefun.com      14
Different Arduino types


           Arduino Uno (The one used for this workshop)
           Arduino Mega
           Arduino Due
           Lillypad
           Arduino BT
           Arduino Ethernet
           .. and clones

http://hardwarefun.com             15
Getting to know your Arduino




http://hardwarefun.com   16
Identify these components in
                         Arduino


           Microcontroller
           Power jacket
           USB jacket
           Digital pins
           Analog pins
           Reset button



http://hardwarefun.com       17
Identify these components in
                         Arduino


           Voltage Regulator
           Power Pins (how many are there?)
           Ground Pins (how many are there?)
           Vin Pin
           Rx and Tx Pins
           ICSP Headers



http://hardwarefun.com            18
Identify these components in
                         Arduino


           Power Led
           Rx and Tx Led’s
           Test Led
           Crystal
           Anything else?




http://hardwarefun.com       19
Powering up Arduino




http://hardwarefun.com        20
Different ways to power up Arduino


           Using USB cable
           Using DC power jacket
           Giving voltage directly into Vin pin
           Giving regulated voltage directly into 5V pin




http://hardwarefun.com               21
Setting up Arduino




http://hardwarefun.com           22
Testing the setup with a “Hello
               World” program



http://hardwarefun.com   23
Blinking LED




http://hardwarefun.com        24
Making a LED blink


           Insert a LED in pin 13
           Open File->Examples->Basics->Blink
           Select Tools->Boards->Arduino Uno
           Select File->Upload (or press ctrl+u)
           You should get the message “Done upload”
           Your Led should blink
           Congrats you can program Arduino now 

http://hardwarefun.com            25
Anatomy of an Arduino sketch




http://hardwarefun.com   26
Printing values through Serial


           Uno has one UART hardware port, using which we
           can exchange information with computer
           Very useful for debugging
           Works at a specified baud rate
           Use Serial Monitor to read values
           SoftwareSerial is also available



http://hardwarefun.com            27
Digital Input and output




http://hardwarefun.com      28
Digital Input




http://hardwarefun.com         29
Digital Output


        The LED blink that we did at “setting up Arduino” is
        Digital output




http://hardwarefun.com             30
Analog Input




http://hardwarefun.com        31
Reading Analog values from sensors


           Connect the LDR on pin A0 and Gnd
           LDR’s resistance varies based on the amount of light
           present
           Read the current value using analogRead()
           Print the value in Serial Monitor




http://hardwarefun.com              32
Control an LED based on light


void setup()
{
  pinMode(13, OUTPUT);
}

void loop()
{
  int val = analogRead(A0);
  if (val > 50) {
      digitalWrite(13, HIGH);
  } else {
      digitalWrite(13, LOW);
  }
}
Analog Output




http://hardwarefun.com         34
Analog Output


           What is PWM?
           Analog like behavior using digital output
           Works by switching the LED on and off regularly
           Changing the brightness of a Led




http://hardwarefun.com             35
Introduction to Batteries




http://hardwarefun.com      36
Main Concepts


           What is voltage?
           What is current ratting?
           Rechargeable
           Don’t ever short circuit it




http://hardwarefun.com                   37
Different types of batteries




http://hardwarefun.com    38
Can you identify the battery
              which is part of the kit?



http://hardwarefun.com   39
Let’s get some Food




http://hardwarefun.com            40
Introduction to Motors




http://hardwarefun.com       41
Dc Motor vs stepper motor




http://hardwarefun.com   42
Identify the motor in the kit




http://hardwarefun.com    43
H-Bridge




http://hardwarefun.com      44
Understanding the pins of H-
                    Bridge



http://hardwarefun.com   45
Connecting motors to H-Bridge




http://hardwarefun.com   46
Let’s assemble the bot
Teaching robot to crawl


Move Forward
    Both motors rotate in the forward direction

Move Backward
    Both motors rotate in the reverse direction

Turn left
     Left motor stops. Only right motor rotates forward

Turn Right
     Left motor moves forward. Right motor stops
Putting everything together

You have your first fully autonomous
           robot ready.

     Now take her for a walk 
What we will see tomorrow


           Varying the speed of the motor
           How IR works
           Making use of IR to find obstacles
           Make the bot avoid strangers
           Making it autonomous
           Future ideas



http://hardwarefun.com              50
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
 Workshop Details http://hardwarefun.com/arduino-
  workshop
Questions
          Thank You

            Sudar Muthu (@sudarmuthu)
    http://hardwarefun.com/arduino-workshop
https://github.com/sudar/arduino-robotics-workshop

More Related Content

What's hot (20)

PPTX
Arduino
Paras Bhanot
 
PDF
Arduino presentation
Michael Senkow
 
PPTX
Arduino uno
creatjet3d labs
 
PPTX
Arduino Workshop
atuline
 
PPTX
Introduction to Arduino
Omer Kilic
 
PPTX
What are the different types of arduino boards
elprocus
 
PPTX
Arduino
candrakur
 
PPTX
Arduino-Workshop-4.pptx
HebaEng
 
PPT
Arduino
vipin7vj
 
PPTX
Final year Engineering project
VaibhavShukla740413
 
PPTX
Arduino Workshop (3).pptx
HebaEng
 
PDF
Embedded system introduction - Arduino Course
Elaf A.Saeed
 
PPTX
Arduino and IoT (Internet of Things)
Shahed Mehbub
 
PDF
Introducing the Arduino
Charles A B Jr
 
PPTX
Introduction to arduino
Ahmed Sakr
 
PPS
Arduino Uno Pin Description
Niket Chandrawanshi
 
PDF
Arduino
Jonadri Bundo
 
PPTX
Introduction to Arduino
Green Moon Solutions
 
PDF
Introduction To Embedded Systems
anishgoel
 
PPTX
IOT BASED RFID SMART DOOR LOCK SYSTEM USING NODE MCU - MAJOR.pptx
Maulana Abul Kalam Azad University of Technology
 
Arduino
Paras Bhanot
 
Arduino presentation
Michael Senkow
 
Arduino uno
creatjet3d labs
 
Arduino Workshop
atuline
 
Introduction to Arduino
Omer Kilic
 
What are the different types of arduino boards
elprocus
 
Arduino
candrakur
 
Arduino-Workshop-4.pptx
HebaEng
 
Arduino
vipin7vj
 
Final year Engineering project
VaibhavShukla740413
 
Arduino Workshop (3).pptx
HebaEng
 
Embedded system introduction - Arduino Course
Elaf A.Saeed
 
Arduino and IoT (Internet of Things)
Shahed Mehbub
 
Introducing the Arduino
Charles A B Jr
 
Introduction to arduino
Ahmed Sakr
 
Arduino Uno Pin Description
Niket Chandrawanshi
 
Arduino
Jonadri Bundo
 
Introduction to Arduino
Green Moon Solutions
 
Introduction To Embedded Systems
anishgoel
 
IOT BASED RFID SMART DOOR LOCK SYSTEM USING NODE MCU - MAJOR.pptx
Maulana Abul Kalam Azad University of Technology
 

Viewers also liked (20)

PPTX
Arduino Robotics workshop day2
Sudar Muthu
 
PDF
Embedded Applications
Anil Kumar Pugalia
 
PDF
Toolchain
Anil Kumar Pugalia
 
PDF
Introduction to BeagleBoard-xM
SysPlay eLearning Academy for You
 
PDF
Introduction to Embedded Systems
Anil Kumar Pugalia
 
PDF
BeagleBoard-xM Booting Process
SysPlay eLearning Academy for You
 
PDF
Introduction to BeagleBone Black
SysPlay eLearning Academy for You
 
PDF
BeagleBone Black Booting Process
SysPlay eLearning Academy for You
 
PDF
Kernel Programming
Anil Kumar Pugalia
 
PDF
Low-level Accesses
Anil Kumar Pugalia
 
PDF
BeagleBone Black Bootloaders
SysPlay eLearning Academy for You
 
PDF
BeagleBoard-xM Bootloaders
SysPlay eLearning Academy for You
 
PDF
Linux Porting
Anil Kumar Pugalia
 
PDF
Linux Kernel Overview
Anil Kumar Pugalia
 
PDF
File Systems
Anil Kumar Pugalia
 
PDF
File System Modules
Anil Kumar Pugalia
 
Arduino Robotics workshop day2
Sudar Muthu
 
Embedded Applications
Anil Kumar Pugalia
 
Introduction to BeagleBoard-xM
SysPlay eLearning Academy for You
 
Introduction to Embedded Systems
Anil Kumar Pugalia
 
BeagleBoard-xM Booting Process
SysPlay eLearning Academy for You
 
Introduction to BeagleBone Black
SysPlay eLearning Academy for You
 
BeagleBone Black Booting Process
SysPlay eLearning Academy for You
 
Kernel Programming
Anil Kumar Pugalia
 
Low-level Accesses
Anil Kumar Pugalia
 
BeagleBone Black Bootloaders
SysPlay eLearning Academy for You
 
BeagleBoard-xM Bootloaders
SysPlay eLearning Academy for You
 
Linux Porting
Anil Kumar Pugalia
 
Linux Kernel Overview
Anil Kumar Pugalia
 
File Systems
Anil Kumar Pugalia
 
File System Modules
Anil Kumar Pugalia
 
Ad

Similar to Arduino Robotics workshop Day1 (20)

PDF
Making things sense - Day 1 (May 2011)
markumoto
 
PPTX
Arduino slides
sdcharle
 
PPTX
Arduino Workshop Slides
mkarlin14
 
PDF
Arduino - Learning.pdf
KhalilSedki1
 
PDF
arduino
murbz
 
PDF
Arduino learning
Anil Yadav
 
PPT
arduino
jhcid
 
PPT
Intro to Arduino
avikdhupar
 
PDF
ARDUINO PROJECTS BOOK
Monique Carr
 
PPTX
Using arduino and raspberry pi for internet of things
Sudar Muthu
 
PDF
Ardx eg-spar-web-rev10
stemplar
 
PDF
Presentation S4A
Pedro González Romero
 
PDF
Arduino: Libros de proyectos para Arduino
SANTIAGO PABLO ALBERTO
 
PDF
Presentation
Edson Silva
 
PDF
Getting startedwitharduino ch04
Anil Yadav
 
PPTX
Electronz_Introduction.pptx
Mokete5
 
PDF
Arduino Comic-Jody Culkin-2011
ΚΔΑΠ Δήμου Θέρμης
 
PPTX
Arduino Introduction Guide 1
elketeaches
 
PDF
02 Sensors and Actuators Understand .pdf
engsharaf2025
 
PDF
Arduino comic v0004
DO!MAKERS
 
Making things sense - Day 1 (May 2011)
markumoto
 
Arduino slides
sdcharle
 
Arduino Workshop Slides
mkarlin14
 
Arduino - Learning.pdf
KhalilSedki1
 
arduino
murbz
 
Arduino learning
Anil Yadav
 
arduino
jhcid
 
Intro to Arduino
avikdhupar
 
ARDUINO PROJECTS BOOK
Monique Carr
 
Using arduino and raspberry pi for internet of things
Sudar Muthu
 
Ardx eg-spar-web-rev10
stemplar
 
Presentation S4A
Pedro González Romero
 
Arduino: Libros de proyectos para Arduino
SANTIAGO PABLO ALBERTO
 
Presentation
Edson Silva
 
Getting startedwitharduino ch04
Anil Yadav
 
Electronz_Introduction.pptx
Mokete5
 
Arduino Comic-Jody Culkin-2011
ΚΔΑΠ Δήμου Θέρμης
 
Arduino Introduction Guide 1
elketeaches
 
02 Sensors and Actuators Understand .pdf
engsharaf2025
 
Arduino comic v0004
DO!MAKERS
 
Ad

More from Sudar Muthu (20)

PPTX
A quick preview of WP CLI - Chennai WordPress Meetup
Sudar Muthu
 
PDF
WordPress Developer tools
Sudar Muthu
 
PDF
WordPress Developer Tools to increase productivity
Sudar Muthu
 
PDF
Unit testing for WordPress
Sudar Muthu
 
PDF
Unit testing in php
Sudar Muthu
 
PPTX
How arduino helped me in life
Sudar Muthu
 
PPTX
Having fun with hardware
Sudar Muthu
 
PPTX
Getting started with arduino workshop
Sudar Muthu
 
PPTX
Python in raspberry pi
Sudar Muthu
 
PPTX
Hack 101 at IIT Kanpur
Sudar Muthu
 
PPTX
PureCSS open hack 2013
Sudar Muthu
 
PPTX
Pig workshop
Sudar Muthu
 
PPTX
Hands on Hadoop and pig
Sudar Muthu
 
PPTX
Lets make robots
Sudar Muthu
 
PPTX
Capabilities of Arduino (including Due)
Sudar Muthu
 
PPTX
Controlling robots using javascript
Sudar Muthu
 
PPTX
Picture perfect hacks with flickr API
Sudar Muthu
 
PPTX
Hacking 101
Sudar Muthu
 
PPTX
Capabilities of Arduino
Sudar Muthu
 
PPTX
Introduction to node.js GDD
Sudar Muthu
 
A quick preview of WP CLI - Chennai WordPress Meetup
Sudar Muthu
 
WordPress Developer tools
Sudar Muthu
 
WordPress Developer Tools to increase productivity
Sudar Muthu
 
Unit testing for WordPress
Sudar Muthu
 
Unit testing in php
Sudar Muthu
 
How arduino helped me in life
Sudar Muthu
 
Having fun with hardware
Sudar Muthu
 
Getting started with arduino workshop
Sudar Muthu
 
Python in raspberry pi
Sudar Muthu
 
Hack 101 at IIT Kanpur
Sudar Muthu
 
PureCSS open hack 2013
Sudar Muthu
 
Pig workshop
Sudar Muthu
 
Hands on Hadoop and pig
Sudar Muthu
 
Lets make robots
Sudar Muthu
 
Capabilities of Arduino (including Due)
Sudar Muthu
 
Controlling robots using javascript
Sudar Muthu
 
Picture perfect hacks with flickr API
Sudar Muthu
 
Hacking 101
Sudar Muthu
 
Capabilities of Arduino
Sudar Muthu
 
Introduction to node.js GDD
Sudar Muthu
 

Recently uploaded (20)

PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
July Patch Tuesday
Ivanti
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
July Patch Tuesday
Ivanti
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 

Arduino Robotics workshop Day1