SlideShare une entreprise Scribd logo
1  sur  25
Let’s make Robots




 Sudar Muthu (@sudarmuthu)
 Research Engineer, Yahoo! Labs
 http://hardwarefun.com
 http://github.com/sudar
Why hardware for a software hacker?




                          Fun!

  #asimijs @hardwarefun
Let me show you how fun it is..




                         Demo
                   http://hardwarefun.com/projects/asimijs




 #asimijs @hardwarefun
Participate in the demo 




                          Visit
                    http://hardwarefun.com:3000




#asimijs @hardwarefun
Control the bot at stage




                    http://hardwarefun.com/projects/asimijs
#asimijs @hardwarefun
Isn’t that fun?


    Now let’s see how you can
            build one




#asimijs @hardwarefun
Anatomy of a Robot




Sensors                                Motors


                           Processor
   #asimijs @hardwarefun
Sensors (Input)




#asimijs @hardwarefun
Motors (Output)




#asimijs @hardwarefun
Processor (Brain)




#asimijs @hardwarefun
Arduino
   Visual Basic for hardware
   Treat it like a computer
   Sensors are inputs
   Motors are output




       #asimijs @hardwarefun   Photo credit Arduino team
Demo




     Let there be LIGHT


#asimijs @hardwarefun
Code

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

void loop()
{
  digitalWrite(13,HIGH);
  delay(1000);
  digitalWrite(13,LOW);
  delay(1000);
}




     #asimijs @hardwarefun
Hardware setup




#asimijs @hardwarefun
Demo 2 - Reading sensor data

                        What you need?



            A Light sensor and a LED



#asimijs @hardwarefun
Reading sensor data
void setup()
{
  pinMode(13, OUTPUT);
}

void loop()
{
  int val = analogRead(A0);
  if (val > 50) {
      digitalWrite(13, HIGH);
  } else {
      digitalWrite(13, LOW);
  }
}
      #asimijs @hardwarefun
Exotic uses of Arduino
 Making YQL (REST) calls
 Parsing JSON
 Interacting with USB devices
 Interacting with Android phones
 … and lot’s more




     #asimijs @hardwarefun
Simple Moving Robot
 2 DC Motors and H-Bridge
 2 wheels and a body frame
 Battery




     #asimijs @hardwarefun
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

      #asimijs @hardwarefun
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




… same logic applies for Ultra sound as well.


       #asimijs @hardwarefun
Putting everything together


You have your first fully autonomous
           robot ready.

          Now take her for a walk 



 #asimijs @hardwarefun
What’s Next?


                     Do join us upstairs.

We are going to implement Machine
    Learning Alogo to Asimi 



 #asimijs @hardwarefun
BTW, this is how the demo worked

                           Node.js Server




                                            Node Client



 Admin page


                             User page
                              User page
                                User page




   #asimijs @hardwarefun
Links
 Arduino – http://arduino.cc
 AsimiJS – The demo that I showed initially
  http://hardwarefun.com/projects/asimijs
 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




      #asimijs @hardwarefun
Questions

                        Thank You

                        Sudar Muthu (@sudarmuthu)
                          http://hardwarefun.com
                          http://gitbub.com/sudar




#asimijs @hardwarefun

Contenu connexe

Tendances

Capabilities of Arduino (including Due)
Capabilities of Arduino (including Due)Capabilities of Arduino (including Due)
Capabilities of Arduino (including Due)
Sudar Muthu
 
Arduino as an embedded industrial controller
Arduino as an embedded industrial controllerArduino as an embedded industrial controller
Arduino as an embedded industrial controller
Jose Luis Poza Luján
 
Introducing... Arduino
Introducing... ArduinoIntroducing... Arduino
Introducing... Arduino
zvikapika
 
Intro to arduino
Intro to arduinoIntro to arduino
Intro to arduino
José Faria
 

Tendances (20)

Capabilities of Arduino (including Due)
Capabilities of Arduino (including Due)Capabilities of Arduino (including Due)
Capabilities of Arduino (including Due)
 
Arduino Robotics workshop Day1
Arduino Robotics workshop Day1Arduino Robotics workshop Day1
Arduino Robotics workshop Day1
 
Arduino Development For Beginners
Arduino Development For BeginnersArduino Development For Beginners
Arduino Development For Beginners
 
Arduino as an embedded industrial controller
Arduino as an embedded industrial controllerArduino as an embedded industrial controller
Arduino as an embedded industrial controller
 
Introduction to Arduino and Circuits
Introduction to Arduino and CircuitsIntroduction to Arduino and Circuits
Introduction to Arduino and Circuits
 
Different Arduino Boards
Different Arduino BoardsDifferent Arduino Boards
Different Arduino Boards
 
What are the different types of arduino boards
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boards
 
Arduino technical session 1
Arduino technical session 1Arduino technical session 1
Arduino technical session 1
 
Introducing... Arduino
Introducing... ArduinoIntroducing... Arduino
Introducing... Arduino
 
Introduction to arduino
Introduction to arduinoIntroduction to arduino
Introduction to arduino
 
Getting Started With Arduino How To Build A Twitter Monitoring Alertuino
Getting Started With Arduino   How To Build A Twitter Monitoring AlertuinoGetting Started With Arduino   How To Build A Twitter Monitoring Alertuino
Getting Started With Arduino How To Build A Twitter Monitoring Alertuino
 
Arduino presentation by_warishusain
Arduino presentation by_warishusainArduino presentation by_warishusain
Arduino presentation by_warishusain
 
Basics of arduino uno
Basics of arduino unoBasics of arduino uno
Basics of arduino uno
 
Arduino uno
Arduino unoArduino uno
Arduino uno
 
Introduction to Arduino Programming
Introduction to Arduino ProgrammingIntroduction to Arduino Programming
Introduction to Arduino Programming
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Intro to arduino
Intro to arduinoIntro to arduino
Intro to arduino
 
Arduino: Arduino lcd
Arduino: Arduino lcdArduino: Arduino lcd
Arduino: Arduino lcd
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
PPT ON Arduino
PPT ON Arduino PPT ON Arduino
PPT ON Arduino
 

Similaire à Lets make robots

Arduino Easy way to create robots
Arduino Easy way to create robotsArduino Easy way to create robots
Arduino Easy way to create robots
Desiree Santos
 

Similaire à Lets make robots (20)

Controlling robots using javascript
Controlling robots using javascriptControlling robots using javascript
Controlling robots using javascript
 
GDGPH Hack Fair Presentation
GDGPH Hack Fair PresentationGDGPH Hack Fair Presentation
GDGPH Hack Fair Presentation
 
Hardware Hacking
Hardware HackingHardware Hacking
Hardware Hacking
 
Programming the Real World: Javascript for Makers
Programming the Real World: Javascript for MakersProgramming the Real World: Javascript for Makers
Programming the Real World: Javascript for Makers
 
Arduino and robotics
Arduino and roboticsArduino and robotics
Arduino and robotics
 
Nodebot: Arte de controlar arduino com javascript
Nodebot: Arte de controlar arduino com javascriptNodebot: Arte de controlar arduino com javascript
Nodebot: Arte de controlar arduino com javascript
 
Advanced view arduino projects list use arduino for projects (2)
Advanced view arduino projects list   use arduino for projects (2)Advanced view arduino projects list   use arduino for projects (2)
Advanced view arduino projects list use arduino for projects (2)
 
Advanced View Arduino Projects List - Use Arduino for Projects-5.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-5.pdfAdvanced View Arduino Projects List - Use Arduino for Projects-5.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-5.pdf
 
SensorStudio real use cases - Lightsaber (IDC 2016)
SensorStudio real use cases - Lightsaber (IDC 2016)SensorStudio real use cases - Lightsaber (IDC 2016)
SensorStudio real use cases - Lightsaber (IDC 2016)
 
Arduino Easy way to create robots
Arduino Easy way to create robotsArduino Easy way to create robots
Arduino Easy way to create robots
 
arduino
arduinoarduino
arduino
 
RAIOT- Robotics Automation & Internet of Things Lab Report
RAIOT- Robotics Automation & Internet of Things Lab ReportRAIOT- Robotics Automation & Internet of Things Lab Report
RAIOT- Robotics Automation & Internet of Things Lab Report
 
OBSTACLE_AVOIDING_ROBOT.pptx
OBSTACLE_AVOIDING_ROBOT.pptxOBSTACLE_AVOIDING_ROBOT.pptx
OBSTACLE_AVOIDING_ROBOT.pptx
 
Internet of Things Conference - Bogor city
Internet of Things Conference - Bogor cityInternet of Things Conference - Bogor city
Internet of Things Conference - Bogor city
 
How To Make Multi-Robots Formation Control System
How To Make Multi-Robots Formation Control SystemHow To Make Multi-Robots Formation Control System
How To Make Multi-Robots Formation Control System
 
IoT Tech Day Coding Mojo slides. Utrecht, April 2016
IoT Tech Day Coding Mojo slides.  Utrecht, April 2016IoT Tech Day Coding Mojo slides.  Utrecht, April 2016
IoT Tech Day Coding Mojo slides. Utrecht, April 2016
 
Hacking into IoT using JavaScript
Hacking into IoT using JavaScriptHacking into IoT using JavaScript
Hacking into IoT using JavaScript
 
Motivation to Robotics
Motivation to RoboticsMotivation to Robotics
Motivation to Robotics
 
Javascript on Arduino
Javascript on ArduinoJavascript on Arduino
Javascript on Arduino
 
Scottish Ruby Conference 2010 Arduino, Ruby RAD
Scottish Ruby Conference 2010 Arduino, Ruby RADScottish Ruby Conference 2010 Arduino, Ruby RAD
Scottish Ruby Conference 2010 Arduino, Ruby RAD
 

Plus de Sudar Muthu

Plus de Sudar Muthu (20)

A quick preview of WP CLI - Chennai WordPress Meetup
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
 
WordPress Developer tools
WordPress Developer toolsWordPress Developer tools
WordPress Developer tools
 
WordPress Developer Tools to increase productivity
WordPress Developer Tools to increase productivityWordPress Developer Tools to increase productivity
WordPress Developer Tools to increase productivity
 
Unit testing for WordPress
Unit testing for WordPressUnit testing for WordPress
Unit testing for WordPress
 
Unit testing in php
Unit testing in phpUnit testing in php
Unit testing in php
 
How arduino helped me in life
How arduino helped me in lifeHow arduino helped me in life
How arduino helped me in life
 
Having fun with hardware
Having fun with hardwareHaving fun with hardware
Having fun with hardware
 
Python in raspberry pi
Python in raspberry piPython in raspberry pi
Python in raspberry pi
 
Hack 101 at IIT Kanpur
Hack 101 at IIT KanpurHack 101 at IIT Kanpur
Hack 101 at IIT Kanpur
 
PureCSS open hack 2013
PureCSS open hack 2013PureCSS open hack 2013
PureCSS open hack 2013
 
Pig workshop
Pig workshopPig workshop
Pig workshop
 
Hands on Hadoop and pig
Hands on Hadoop and pigHands on Hadoop and pig
Hands on Hadoop and pig
 
Picture perfect hacks with flickr API
Picture perfect hacks with flickr APIPicture perfect hacks with flickr API
Picture perfect hacks with flickr API
 
Hacking 101
Hacking 101Hacking 101
Hacking 101
 
Capabilities of Arduino
Capabilities of ArduinoCapabilities of Arduino
Capabilities of Arduino
 
Introduction to node.js GDD
Introduction to node.js GDDIntroduction to node.js GDD
Introduction to node.js GDD
 
Using Javascript in today's world
Using Javascript in today's worldUsing Javascript in today's world
Using Javascript in today's world
 
Hack u yql-iit-delhi
Hack u yql-iit-delhiHack u yql-iit-delhi
Hack u yql-iit-delhi
 
A slightly advanced introduction to node.js
A slightly advanced introduction to node.jsA slightly advanced introduction to node.js
A slightly advanced introduction to node.js
 
YAP - HackU 2011
YAP - HackU 2011YAP - HackU 2011
YAP - HackU 2011
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 

Lets make robots

  • 1. Let’s make Robots Sudar Muthu (@sudarmuthu) Research Engineer, Yahoo! Labs http://hardwarefun.com http://github.com/sudar
  • 2. Why hardware for a software hacker? Fun! #asimijs @hardwarefun
  • 3. Let me show you how fun it is.. Demo http://hardwarefun.com/projects/asimijs #asimijs @hardwarefun
  • 4. Participate in the demo  Visit http://hardwarefun.com:3000 #asimijs @hardwarefun
  • 5. Control the bot at stage http://hardwarefun.com/projects/asimijs #asimijs @hardwarefun
  • 6. Isn’t that fun? Now let’s see how you can build one #asimijs @hardwarefun
  • 7. Anatomy of a Robot Sensors Motors Processor #asimijs @hardwarefun
  • 11. Arduino  Visual Basic for hardware  Treat it like a computer  Sensors are inputs  Motors are output #asimijs @hardwarefun Photo credit Arduino team
  • 12. Demo Let there be LIGHT #asimijs @hardwarefun
  • 13. Code void setup() { pinMode(13, output); } void loop() { digitalWrite(13,HIGH); delay(1000); digitalWrite(13,LOW); delay(1000); } #asimijs @hardwarefun
  • 15. Demo 2 - Reading sensor data What you need? A Light sensor and a LED #asimijs @hardwarefun
  • 16. Reading sensor data void setup() { pinMode(13, OUTPUT); } void loop() { int val = analogRead(A0); if (val > 50) { digitalWrite(13, HIGH); } else { digitalWrite(13, LOW); } } #asimijs @hardwarefun
  • 17. Exotic uses of Arduino  Making YQL (REST) calls  Parsing JSON  Interacting with USB devices  Interacting with Android phones  … and lot’s more #asimijs @hardwarefun
  • 18. Simple Moving Robot  2 DC Motors and H-Bridge  2 wheels and a body frame  Battery #asimijs @hardwarefun
  • 19. 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 #asimijs @hardwarefun
  • 20. 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 … same logic applies for Ultra sound as well. #asimijs @hardwarefun
  • 21. Putting everything together You have your first fully autonomous robot ready. Now take her for a walk  #asimijs @hardwarefun
  • 22. What’s Next? Do join us upstairs. We are going to implement Machine Learning Alogo to Asimi  #asimijs @hardwarefun
  • 23. BTW, this is how the demo worked Node.js Server Node Client Admin page User page User page User page #asimijs @hardwarefun
  • 24. Links  Arduino – http://arduino.cc  AsimiJS – The demo that I showed initially http://hardwarefun.com/projects/asimijs  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 #asimijs @hardwarefun
  • 25. Questions Thank You Sudar Muthu (@sudarmuthu) http://hardwarefun.com http://gitbub.com/sudar #asimijs @hardwarefun