8.5. Day 5: (Jul 12) Intro to the Arduino¶
Notes for Jul 12, 2018. See also the Calendar.
8.5.1. Agenda¶
- Administrative
- Please try to arrive early tomorrow for a rapid departure for our field trip.
- Assignments
- 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
- In-class
- Brief introduction to the Arduino
- Hands-on Arduino IDE intro (individually, in unison)
- Arduino siren (in pairs)
- Set up a MOSFET speaker driver following this example: MOSFET circuit
- Write an Arduino sketch to play tones in sequence to create a siren. For now, it is easiest to use
tone()
anddelay()
insideloop()
.
- If time permits: rewrite your sketch without using delay(), then add a simultaneous fast-blink on the LED. For ideas, see Event-Loop Programming
- If time permits: download and explore the Pinball reference sketch
- Last 45 minutes: design scrum for game rules.