1 / 76

INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING

INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING. Engr. Franz Duran, MEP-ECE RapidSignal Electronics. OVERVIEW. OVERVIEW. DAY 1 ( Morning ) Introduction to Microcontroller Technology Introduction to Arduino m icrocontroller board

rasul
Download Presentation

INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. INTRODUCTION TOARDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics

  2. OVERVIEW Microcontrollers & Robotics

  3. OVERVIEW • DAY 1 (Morning) • Introduction to Microcontroller Technology • Introduction to Arduinomicrocontroller board • Introduction to RapiDuino Microcontroller Learning Module • Basic Arduino Programming and Interfacing • Interfacing with LEDs, switches, & LCD Microcontrollers & Robotics

  4. OVERVIEW • DAY 1(Afternoon) • Interfacing with 4x4 keypad • Interfacing with Analog Sensors • Interfacing with Serial Communication Microcontrollers & Robotics

  5. OVERVIEW • DAY 2 (Morning) • Introduction to P-BOT mobile robot trainer • Maze mobot programming • Line follower mobot programming Microcontrollers & Robotics

  6. OVERVIEW • DAY 2 (Afternoon) • Line follower mobot race • Android-controlled mobot • DIY line follower mobot Microcontrollers & Robotics

  7. MICROCONTROLLER BASICS Microcontrollers & Robotics

  8. What is a microcontroller? • MCU • A single-chip computer • Invented in the 1970’s • Used as “embedded” controller Microcontrollers & Robotics

  9. Where are MCUs used? • used as dedicated controllers in: • Home and office appliances • Consumer & Personal electronics • Medical equipment • Industrial equipment • Automotive electronics • Naval/Avionics/Aerospace Microcontrollers & Robotics

  10. Why use a microcontroller? • Low-cost • Flexible • Small outline • Low-power Microcontrollers & Robotics

  11. Why use a microcontroller? • Low-cost • Typical price range: P50 to P1000 • Flexible • Small outline • Low-power Microcontrollers & Robotics

  12. Why use a microcontroller? • Cheap • Flexible • Re-programmable • High-integration devices • Small outline • Low-power Microcontrollers & Robotics

  13. Why use a microcontroller? • Cheap • Flexible • Small outline • small physical size = low PCB footprint • tiny packages: DIP, SOP • Low-power Microcontrollers & Robotics

  14. Why use a microcontroller? • Cheap • Flexible • Small outline • Low-power • Battery-operated application • Use SLEEP/low-power operation Microcontrollers & Robotics

  15. ARDUINO MICROCONTROLLER Microcontrollers & Robotics

  16. What is an Arduino? • A microcontroller board + programming IDE Microcontrollers & Robotics

  17. What is an Arduino? • A complete MCU board • ATMEGA microcontroller • USB circuit • Power supplycircuit • Reset button • Female header connectors Microcontrollers & Robotics

  18. What is an Arduino? • Easy-to-use Arduino Development environment • Program is called Sketch Microcontrollers & Robotics

  19. Arduino ECOSYSTEM • Arduino Board • Simple, open-hardware design • Arduino Programming IDE • C/C++-based, open-source • Built-in functions • Arduino Community • Design Arduino-compatible circuits (Shields) • Software and hardware collaboration Microcontrollers & Robotics

  20. Rapiduinosword3 Microcontrollers & Robotics

  21. RapiDuino Sword3 ARDUINO BOARD Microcontrollers & Robotics

  22. RapiDuino Sword3 gizDuino Arduino Uno Microcontrollers & Robotics

  23. RapiDuino Sword3 2x16 Character LCD Microcontrollers & Robotics

  24. RapiDuino Sword3 Button Switches Microcontrollers & Robotics

  25. RapiDuino Sword3 4x4 Keypad Microcontrollers & Robotics

  26. RapiDuino Sword3 4x4 Keypad Microcontrollers & Robotics

  27. RapiDuino Sword3 7-segment displays Microcontrollers & Robotics

  28. RapiDuino Sword3 Light-emitting diodes Microcontrollers & Robotics

  29. RapiDuino Sword3 Real-time clock w/ back-up battery Microcontrollers & Robotics

  30. RapiDuino Sword3 Serial EEPROM Microcontrollers & Robotics

  31. RapiDuino Sword3 buzzer Microcontrollers & Robotics

  32. RapiDuino Sword3 Serial Communication Circuit Microcontrollers & Robotics

  33. RapiDuino Sword3 Bluetooth Transceiver Module Microcontrollers & Robotics

  34. RapiDuino Sword3 Analog voltage sources Microcontrollers & Robotics

  35. RapiDuino Sword3 Temperature sensor Microcontrollers & Robotics

  36. RapiDuino Sword3 light-dependent resistor Microcontrollers & Robotics

  37. RapiDuino Sword3 Power Supply Circuit Microcontrollers & Robotics

  38. BASIC ARDUINO PROGRAMMING & Interfacing Microcontrollers & Robotics

  39. LED Interfacing • Build an LED circuit • Interface the LED circuit to the Arduino • Create an Arduino program that will turn on the LED Microcontrollers & Robotics

  40. What is an LED? • Light-emitting diode • An electronic device that emit visible light when activated. • Typically used as electrical status indicators Microcontrollers & Robotics

  41. LED Interfacing Circuit schematic Microcontrollers & Robotics

  42. LED Circuit Circuit on breadboard Microcontrollers & Robotics

  43. LED Circuit on Rapiduino • Connect LED1 to Arduino Pin 7 Microcontrollers & Robotics

  44. Arduino Environment • Open the Arduino programming environment Microcontrollers & Robotics

  45. Writing the Sketch Example #1 void setup() { } void loop() { } Microcontrollers & Robotics

  46. Writing the Sketch Example #1 void setup() { pinMode(7, OUTPUT); //Pin 7 is output pin. digitalWrite(7, HIGH); //LED is on. } void loop() { } Microcontrollers & Robotics

  47. Writing the Sketch Example #1 void setup() { pinMode(7, OUTPUT); //Pin 7 is output pin. digitalWrite(7, HIGH); //LED is on. pinMode(5, OUTPUT); digitalWrite(5, HIGH); } void loop() { } Microcontrollers & Robotics

  48. Writing the Sketch • Click the Verify button Verify button Microcontrollers & Robotics

  49. Steps for Uploading the Program • Connect the USB cable Note: Make sure USB-to-serial driver is installed first Microcontrollers & Robotics

  50. Steps for Uploading the Program • Power up the Rapiduino board Microcontrollers & Robotics

More Related