1 / 28

Electronics and Sensing w ith Arduino

Electronics and Sensing w ith Arduino. Microcontroller. What is a microcontroller? a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripheral. Arduino Uno. USB Power from Computer. Voltage in from Power Supply.

Download Presentation

Electronics and Sensing w ith Arduino

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. MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer Electronics and Sensing with Arduino

  2. Microcontroller • What is a microcontroller? a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripheral MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  3. Arduino Uno MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  4. USB Power from Computer Voltage in from Power Supply MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  5. Digital Input / output pins MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  6. Power MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  7. Analog in MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  8. Code Structure MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  9. CODE SEGMENTS MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  10. Syntax To Screen Serial.begin(9600); // begin serial output Serial.println(“inter text here”) // print to serial output To pins pinMode(#, INPUT or OUTPUT); // set pin# to in or output digitalWrite(#, LOW or HIGH); // set pin # to LOW or HIGH DigitalRead(); //return LOW or HIGH delay(miliseconds) //will delay loop MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  11. Counter MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  12. CODE SEGMENTS MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  13. Writing to the screen MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  14. Define count variable MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  15. Counter MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  16. Blinking LED MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  17. NOTE: a resister should be included in this circuit to apply the correct voltage to the LED, it is left out here for simplicity but as a result the LED lifetime will be limited GND Pin 13 Syntax MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  18. CODE SEGMENTS MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  19. Blink - LED MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  20. Blink - LED MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  21. Blink - LED MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  22. LED blink • Now combine these two programs and write code that counts each time the LED blinks MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  23. MPX4250A Semiconductor Measuring Pressure / Depth MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  24. Pressure Probe Output [0-5V] Ground • Power 5[V] MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  25. MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  26. LM35CAH-ND Temp Probe Measuring temperature MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  27. Temperature Probe Power 5V Output [0-5V] Ground MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

  28. MIT Sea Grant – Sea Perch Institute Mini Lecture Kathryn Shroyer

More Related