Arduino Robotics workshop Day1
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Arduino Robotics workshop Day1

on

  • 2,694 views

Slides from my Arduino robotic workshop http://hardwarefun.com/arduino-workshop

Slides from my Arduino robotic workshop http://hardwarefun.com/arduino-workshop

Statistics

Views

Total Views
2,694
Views on SlideShare
2,560
Embed Views
134

Actions

Likes
0
Downloads
99
Comments
0

2 Embeds 134

http://sysplay.in 122
http://localhost 12

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Arduino Robotics workshop Day1 Presentation Transcript

  • 1. Arduino Robotics Workshop Day 1 Sudar Muthu (@sudarmuthu) http://hardwarefun.com/arduino-workshop http://github.com/sudar
  • 2. 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 forumhttp://hardwarefun.com 2
  • 3. Special Thanks Anil and Sysplayhttp://hardwarefun.com 3
  • 4. 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-workshophttp://hardwarefun.com 4
  • 5. Basics of Roboticshttp://hardwarefun.com 5
  • 6. Anatomy of a RobotSensors Motors Processor
  • 7. Sensors (Input)
  • 8. Motors (Output)
  • 9. Processor (Brain)
  • 10. Getting to know your Robotics Kithttp://hardwarefun.com 10
  • 11. Can you identify the different components in the kit?http://hardwarefun.com 11
  • 12. Breadboard Basicshttp://hardwarefun.com 12
  • 13. 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 groundhttp://hardwarefun.com 13
  • 14. Arduinohttp://hardwarefun.com 14
  • 15. Different Arduino types Arduino Uno (The one used for this workshop) Arduino Mega Arduino Due Lillypad Arduino BT Arduino Ethernet .. and cloneshttp://hardwarefun.com 15
  • 16. Getting to know your Arduinohttp://hardwarefun.com 16
  • 17. Identify these components in Arduino Microcontroller Power jacket USB jacket Digital pins Analog pins Reset buttonhttp://hardwarefun.com 17
  • 18. 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 Headershttp://hardwarefun.com 18
  • 19. Identify these components in Arduino Power Led Rx and Tx Led’s Test Led Crystal Anything else?http://hardwarefun.com 19
  • 20. Powering up Arduinohttp://hardwarefun.com 20
  • 21. 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 pinhttp://hardwarefun.com 21
  • 22. Setting up Arduinohttp://hardwarefun.com 22
  • 23. Testing the setup with a “Hello World” programhttp://hardwarefun.com 23
  • 24. Blinking LEDhttp://hardwarefun.com 24
  • 25. 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
  • 26. Anatomy of an Arduino sketchhttp://hardwarefun.com 26
  • 27. 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 availablehttp://hardwarefun.com 27
  • 28. Digital Input and outputhttp://hardwarefun.com 28
  • 29. Digital Inputhttp://hardwarefun.com 29
  • 30. Digital Output The LED blink that we did at “setting up Arduino” is Digital outputhttp://hardwarefun.com 30
  • 31. Analog Inputhttp://hardwarefun.com 31
  • 32. 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 Monitorhttp://hardwarefun.com 32
  • 33. Control an LED based on lightvoid setup(){ pinMode(13, OUTPUT);}void loop(){ int val = analogRead(A0); if (val > 50) { digitalWrite(13, HIGH); } else { digitalWrite(13, LOW); }}
  • 34. Analog Outputhttp://hardwarefun.com 34
  • 35. 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 Ledhttp://hardwarefun.com 35
  • 36. Introduction to Batterieshttp://hardwarefun.com 36
  • 37. Main Concepts What is voltage? What is current ratting? Rechargeable Don’t ever short circuit ithttp://hardwarefun.com 37
  • 38. Different types of batterieshttp://hardwarefun.com 38
  • 39. Can you identify the battery which is part of the kit?http://hardwarefun.com 39
  • 40. Let’s get some Foodhttp://hardwarefun.com 40
  • 41. Introduction to Motorshttp://hardwarefun.com 41
  • 42. Dc Motor vs stepper motorhttp://hardwarefun.com 42
  • 43. Identify the motor in the kithttp://hardwarefun.com 43
  • 44. H-Bridgehttp://hardwarefun.com 44
  • 45. Understanding the pins of H- Bridgehttp://hardwarefun.com 45
  • 46. Connecting motors to H-Bridgehttp://hardwarefun.com 46
  • 47. Let’s assemble the bot
  • 48. 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
  • 49. Putting everything togetherYou have your first fully autonomous robot ready. Now take her for a walk 
  • 50. 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 ideashttp://hardwarefun.com 50
  • 51. 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
  • 52. Questions Thank You Sudar Muthu (@sudarmuthu) http://hardwarefun.com/arduino-workshophttps://github.com/sudar/arduino-robotics-workshop