Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Lets make robots


Published on

Slides from my talk about building robots in More details at

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Lets make robots

  1. 1. Let’s make Robots Sudar Muthu (@sudarmuthu) Research Engineer, Yahoo! Labs
  2. 2. Why hardware for a software hacker? Fun! #asimijs @hardwarefun
  3. 3. Let me show you how fun it is.. Demo #asimijs @hardwarefun
  4. 4. Participate in the demo  Visit @hardwarefun
  5. 5. Control the bot at stage @hardwarefun
  6. 6. Isn’t that fun? Now let’s see how you can build one#asimijs @hardwarefun
  7. 7. Anatomy of a RobotSensors Motors Processor #asimijs @hardwarefun
  8. 8. Sensors (Input)#asimijs @hardwarefun
  9. 9. Motors (Output)#asimijs @hardwarefun
  10. 10. Processor (Brain)#asimijs @hardwarefun
  11. 11. Arduino Visual Basic for hardware Treat it like a computer Sensors are inputs Motors are output #asimijs @hardwarefun Photo credit Arduino team
  12. 12. Demo Let there be LIGHT#asimijs @hardwarefun
  13. 13. Codevoid setup(){ pinMode(13, output);}void loop(){ digitalWrite(13,HIGH); delay(1000); digitalWrite(13,LOW); delay(1000);} #asimijs @hardwarefun
  14. 14. Hardware setup#asimijs @hardwarefun
  15. 15. Demo 2 - Reading sensor data What you need? A Light sensor and a LED#asimijs @hardwarefun
  16. 16. Reading sensor datavoid setup(){ pinMode(13, OUTPUT);}void loop(){ int val = analogRead(A0); if (val > 50) { digitalWrite(13, HIGH); } else { digitalWrite(13, LOW); }} #asimijs @hardwarefun
  17. 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. 18. Simple Moving Robot 2 DC Motors and H-Bridge 2 wheels and a body frame Battery #asimijs @hardwarefun
  19. 19. Teaching robot to crawlMove Forward Both motors rotate in the forward directionMove Backward Both motors rotate in the reverse directionTurn left Left motor stops. Only right motor rotates forwardTurn Right Left motor moves forward. Right motor stops #asimijs @hardwarefun
  20. 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. 21. Putting everything togetherYou have your first fully autonomous robot ready. Now take her for a walk  #asimijs @hardwarefun
  22. 22. What’s Next? Do join us upstairs.We are going to implement Machine Learning Alogo to Asimi  #asimijs @hardwarefun
  23. 23. BTW, this is how the demo worked Node.js Server Node Client Admin page User page User page User page #asimijs @hardwarefun
  24. 24. Links Arduino – AsimiJS – The demo that I showed initially Asimi – A simple bot using Arduino Getting started with hardware programming hardware-programming Getting started with Arduino and-avr #asimijs @hardwarefun
  25. 25. Questions Thank You Sudar Muthu (@sudarmuthu) @hardwarefun