Arduino Robotics workshop Day1

Sudar Muthu
Sudar MuthuIndependent Consultant
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
1 of 52

Recommended

Introduction to Node MCU by
Introduction to Node MCUIntroduction to Node MCU
Introduction to Node MCUAmarjeetsingh Thakur
1.6K views49 slides
Arduino Workshop Day 1 - Basic Arduino by
Arduino Workshop Day 1 - Basic ArduinoArduino Workshop Day 1 - Basic Arduino
Arduino Workshop Day 1 - Basic ArduinoVishnu
3.5K views69 slides
Raspberry Pi (Introduction) by
Raspberry Pi (Introduction)Raspberry Pi (Introduction)
Raspberry Pi (Introduction)Mandeesh Singh
39.5K views47 slides
Arduino Microcontroller by
Arduino MicrocontrollerArduino Microcontroller
Arduino MicrocontrollerShyam Mohan
1.5K views28 slides
Intro to Arduino by
Intro to ArduinoIntro to Arduino
Intro to Arduinoavikdhupar
37.8K views41 slides
Arduino Workshop Day 2 - Advance Arduino & DIY by
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYVishnu
685 views32 slides

More Related Content

What's hot

Arduino course by
Arduino courseArduino course
Arduino courseAhmed Shelbaya
1.9K views78 slides
Introducing the Arduino by
Introducing the ArduinoIntroducing the Arduino
Introducing the ArduinoCharles A B Jr
2.1K views49 slides
Arduino by
ArduinoArduino
ArduinoJerin John
5K views30 slides
Introduction to arduino ppt main by
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt maineddy royappa
746 views45 slides
Tinker cad intro by
Tinker cad introTinker cad intro
Tinker cad introArchita Singh
2.5K views22 slides
Introduction to Arduino & Raspberry Pi by
Introduction to Arduino & Raspberry PiIntroduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry PiAhmad Hafeezi
5.2K views24 slides

What's hot(20)

Introduction to arduino ppt main by eddy royappa
Introduction to  arduino ppt mainIntroduction to  arduino ppt main
Introduction to arduino ppt main
eddy royappa746 views
Introduction to Arduino & Raspberry Pi by Ahmad Hafeezi
Introduction to Arduino & Raspberry PiIntroduction to Arduino & Raspberry Pi
Introduction to Arduino & Raspberry Pi
Ahmad Hafeezi5.2K views
Introduction to ESP32 Programming [Road to RIoT 2017] by Alwin Arrasyid
Introduction to ESP32 Programming [Road to RIoT 2017]Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]
Alwin Arrasyid4K views
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri by Gaurav Pandey
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauriArduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Arduino for beginners- Introduction to Arduino (presentation) - codewithgauri
Gaurav Pandey2.6K views
MIT App Inventor + Arduino + Bluetooth by mike parks
MIT App Inventor + Arduino + BluetoothMIT App Inventor + Arduino + Bluetooth
MIT App Inventor + Arduino + Bluetooth
mike parks21.5K views
Presentation on Raspberry pi by OpenDev
Presentation on Raspberry piPresentation on Raspberry pi
Presentation on Raspberry pi
OpenDev19.8K views
My arduino presentation by Sham Arsenal
My arduino presentationMy arduino presentation
My arduino presentation
Sham Arsenal1.9K views

Viewers also liked

Arduino Robotics workshop day2 by
Arduino Robotics workshop day2Arduino Robotics workshop day2
Arduino Robotics workshop day2Sudar Muthu
9.5K views27 slides
Embedded Applications by
Embedded ApplicationsEmbedded Applications
Embedded ApplicationsAnil Kumar Pugalia
8.1K views19 slides
Toolchain by
ToolchainToolchain
ToolchainAnil Kumar Pugalia
15K views21 slides
Introduction to BeagleBoard-xM by
Introduction to BeagleBoard-xMIntroduction to BeagleBoard-xM
Introduction to BeagleBoard-xMSysPlay eLearning Academy for You
3.2K views8 slides
Introduction to Embedded Systems by
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded SystemsAnil Kumar Pugalia
18.5K views37 slides
BeagleBoard-xM Booting Process by
BeagleBoard-xM Booting ProcessBeagleBoard-xM Booting Process
BeagleBoard-xM Booting ProcessSysPlay eLearning Academy for You
3.8K views25 slides

Viewers also liked(20)

Arduino Robotics workshop day2 by Sudar Muthu
Arduino Robotics workshop day2Arduino Robotics workshop day2
Arduino Robotics workshop day2
Sudar Muthu9.5K views

Similar to Arduino Robotics workshop Day1

Getting started with arduino workshop by
Getting started with arduino workshopGetting started with arduino workshop
Getting started with arduino workshopSudar Muthu
3.6K views31 slides
Arduino-Workshop-4.pptx by
Arduino-Workshop-4.pptxArduino-Workshop-4.pptx
Arduino-Workshop-4.pptxHebaEng
88 views19 slides
Arduino-Workshop-4.pptx by
Arduino-Workshop-4.pptxArduino-Workshop-4.pptx
Arduino-Workshop-4.pptxMernitaGavasPalac
10 views19 slides
Arduino Introduction by coopermaa by
Arduino Introduction by coopermaaArduino Introduction by coopermaa
Arduino Introduction by coopermaa馬 萬圳
19.8K views99 slides
Embedded system application by
Embedded system applicationEmbedded system application
Embedded system applicationDhruwank Vankawala
1.9K views40 slides
What are the different types of arduino boards by
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boardselprocus
2.7K views27 slides

Similar to Arduino Robotics workshop Day1(20)

Getting started with arduino workshop by Sudar Muthu
Getting started with arduino workshopGetting started with arduino workshop
Getting started with arduino workshop
Sudar Muthu3.6K views
Arduino-Workshop-4.pptx by HebaEng
Arduino-Workshop-4.pptxArduino-Workshop-4.pptx
Arduino-Workshop-4.pptx
HebaEng88 views
Arduino Introduction by coopermaa by 馬 萬圳
Arduino Introduction by coopermaaArduino Introduction by coopermaa
Arduino Introduction by coopermaa
馬 萬圳19.8K views
What are the different types of arduino boards by elprocus
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boards
elprocus2.7K views
Advanced View Arduino Projects List - Use Arduino for Projects.pdf by WiseNaeem
Advanced View Arduino Projects List - Use Arduino for Projects.pdfAdvanced View Arduino Projects List - Use Arduino for Projects.pdf
Advanced View Arduino Projects List - Use Arduino for Projects.pdf
WiseNaeem5 views
Arduino slides by sdcharle
Arduino slidesArduino slides
Arduino slides
sdcharle1.8K views
Arduino Workshop Slides by mkarlin14
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
mkarlin141.2K views
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pptx by menchc1207
ARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pptxARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pptx
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pptx
menchc120780 views
Advanced view arduino projects list use arduino for projects 2 by WiseNaeem
Advanced view arduino projects list  use arduino for projects 2Advanced view arduino projects list  use arduino for projects 2
Advanced view arduino projects list use arduino for projects 2
WiseNaeem188 views
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pdf by Ruby Hermano
 ARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pdf ARDUINO OVERVIEW HARDWARE  SOFTWARE AND INSTALLATION.pdf
ARDUINO OVERVIEW HARDWARE SOFTWARE AND INSTALLATION.pdf
Ruby Hermano65 views
Arduino intro.pptx by AlexRiv4
Arduino intro.pptxArduino intro.pptx
Arduino intro.pptx
AlexRiv48 views
Microcontroller arduino uno board by Gaurav
Microcontroller arduino uno boardMicrocontroller arduino uno board
Microcontroller arduino uno board
Gaurav 241 views
Intro to arduino by José Faria
Intro to arduinoIntro to arduino
Intro to arduino
José Faria627 views
Arduino Slides With Neopixels by sdcharle
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
sdcharle1.4K views
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf by WiseNaeem
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdfAdvanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
Advanced View of Atmega Microcontroller Projects List - ATMega32 AVR.pdf
WiseNaeem3 views
A BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKING by Silvio Cesare
A BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKINGA BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKING
A BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKING
Silvio Cesare5.9K views

More from Sudar Muthu

A quick preview of WP CLI - Chennai WordPress Meetup by
A quick preview of WP CLI - Chennai WordPress MeetupA quick preview of WP CLI - Chennai WordPress Meetup
A quick preview of WP CLI - Chennai WordPress MeetupSudar Muthu
1.5K views8 slides
WordPress Developer tools by
WordPress Developer toolsWordPress Developer tools
WordPress Developer toolsSudar Muthu
9.1K views23 slides
WordPress Developer Tools to increase productivity by
WordPress Developer Tools to increase productivityWordPress Developer Tools to increase productivity
WordPress Developer Tools to increase productivitySudar Muthu
2.1K views23 slides
Unit testing for WordPress by
Unit testing for WordPressUnit testing for WordPress
Unit testing for WordPressSudar Muthu
5.2K views27 slides
Unit testing in php by
Unit testing in phpUnit testing in php
Unit testing in phpSudar Muthu
2.1K views19 slides
How arduino helped me in life by
How arduino helped me in lifeHow arduino helped me in life
How arduino helped me in lifeSudar Muthu
2.8K views16 slides

More from Sudar Muthu(20)

A quick preview of WP CLI - Chennai WordPress Meetup by Sudar Muthu
A quick preview of WP CLI - Chennai WordPress MeetupA quick preview of WP CLI - Chennai WordPress Meetup
A quick preview of WP CLI - Chennai WordPress Meetup
Sudar Muthu1.5K views
WordPress Developer tools by Sudar Muthu
WordPress Developer toolsWordPress Developer tools
WordPress Developer tools
Sudar Muthu9.1K views
WordPress Developer Tools to increase productivity by Sudar Muthu
WordPress Developer Tools to increase productivityWordPress Developer Tools to increase productivity
WordPress Developer Tools to increase productivity
Sudar Muthu2.1K views
Unit testing for WordPress by Sudar Muthu
Unit testing for WordPressUnit testing for WordPress
Unit testing for WordPress
Sudar Muthu5.2K views
Unit testing in php by Sudar Muthu
Unit testing in phpUnit testing in php
Unit testing in php
Sudar Muthu2.1K views
How arduino helped me in life by Sudar Muthu
How arduino helped me in lifeHow arduino helped me in life
How arduino helped me in life
Sudar Muthu2.8K views
Having fun with hardware by Sudar Muthu
Having fun with hardwareHaving fun with hardware
Having fun with hardware
Sudar Muthu2.6K views
Python in raspberry pi by Sudar Muthu
Python in raspberry piPython in raspberry pi
Python in raspberry pi
Sudar Muthu8K views
Hack 101 at IIT Kanpur by Sudar Muthu
Hack 101 at IIT KanpurHack 101 at IIT Kanpur
Hack 101 at IIT Kanpur
Sudar Muthu1.7K views
PureCSS open hack 2013 by Sudar Muthu
PureCSS open hack 2013PureCSS open hack 2013
PureCSS open hack 2013
Sudar Muthu3.7K views
Hands on Hadoop and pig by Sudar Muthu
Hands on Hadoop and pigHands on Hadoop and pig
Hands on Hadoop and pig
Sudar Muthu2.6K views
Lets make robots by Sudar Muthu
Lets make robotsLets make robots
Lets make robots
Sudar Muthu2.7K views
Capabilities of Arduino (including Due) by Sudar Muthu
Capabilities of Arduino (including Due)Capabilities of Arduino (including Due)
Capabilities of Arduino (including Due)
Sudar Muthu2.8K views
Controlling robots using javascript by Sudar Muthu
Controlling robots using javascriptControlling robots using javascript
Controlling robots using javascript
Sudar Muthu7K views
Picture perfect hacks with flickr API by Sudar Muthu
Picture perfect hacks with flickr APIPicture perfect hacks with flickr API
Picture perfect hacks with flickr API
Sudar Muthu2.7K views
Capabilities of Arduino by Sudar Muthu
Capabilities of ArduinoCapabilities of Arduino
Capabilities of Arduino
Sudar Muthu5.7K views
Introduction to node.js GDD by Sudar Muthu
Introduction to node.js GDDIntroduction to node.js GDD
Introduction to node.js GDD
Sudar Muthu7.3K views
Using Javascript in today's world by Sudar Muthu
Using Javascript in today's worldUsing Javascript in today's world
Using Javascript in today's world
Sudar Muthu2.3K views

Recently uploaded

Igniting Next Level Productivity with AI-Infused Data Integration Workflows by
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Safe Software
263 views86 slides
AMAZON PRODUCT RESEARCH.pdf by
AMAZON PRODUCT RESEARCH.pdfAMAZON PRODUCT RESEARCH.pdf
AMAZON PRODUCT RESEARCH.pdfJerikkLaureta
26 views13 slides
virtual reality.pptx by
virtual reality.pptxvirtual reality.pptx
virtual reality.pptxG036GaikwadSnehal
11 views15 slides
Five Things You SHOULD Know About Postman by
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About PostmanPostman
33 views43 slides
Info Session November 2023.pdf by
Info Session November 2023.pdfInfo Session November 2023.pdf
Info Session November 2023.pdfAleksandraKoprivica4
12 views15 slides
PRODUCT LISTING.pptx by
PRODUCT LISTING.pptxPRODUCT LISTING.pptx
PRODUCT LISTING.pptxangelicacueva6
14 views1 slide

Recently uploaded(20)

Igniting Next Level Productivity with AI-Infused Data Integration Workflows by Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software263 views
AMAZON PRODUCT RESEARCH.pdf by JerikkLaureta
AMAZON PRODUCT RESEARCH.pdfAMAZON PRODUCT RESEARCH.pdf
AMAZON PRODUCT RESEARCH.pdf
JerikkLaureta26 views
Five Things You SHOULD Know About Postman by Postman
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman33 views
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf by Dr. Jimmy Schwarzkopf
STKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdfSTKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdf
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 by IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
HTTP headers that make your website go faster - devs.gent November 2023 by Thijs Feryn
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023
Thijs Feryn22 views
STPI OctaNE CoE Brochure.pdf by madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb14 views
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi127 views
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ... by Jasper Oosterveld
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
The details of description: Techniques, tips, and tangents on alternative tex... by BookNet Canada
The details of description: Techniques, tips, and tangents on alternative tex...The details of description: Techniques, tips, and tangents on alternative tex...
The details of description: Techniques, tips, and tangents on alternative tex...
BookNet Canada127 views

Arduino Robotics workshop Day1