8.5. Day 5: (Jul 12) Intro to the Arduino

Notes for Jul 12, 2018. See also the Calendar.

8.5.1. Agenda

  1. Administrative
    1. Please try to arrive early tomorrow for a rapid departure for our field trip.
  2. Assignments
    1. Friday: please look for a game feature you find particularly interesting, take a photo and short video, and upload to the G-Drive trip folder
  3. In-class
    1. Brief introduction to the Arduino
    2. Hands-on Arduino IDE intro (individually, in unison)
    3. Arduino siren (in pairs)
      1. Set up a MOSFET speaker driver following this example: MOSFET circuit
      2. Write an Arduino sketch to play tones in sequence to create a siren. For now, it is easiest to use tone() and delay() inside loop().
    4. If time permits: rewrite your sketch without using delay(), then add a simultaneous fast-blink on the LED. For ideas, see Event-Loop Programming
    5. If time permits: download and explore the Pinball reference sketch
    6. Last 45 minutes: design scrum for game rules.