If you are looking for the Chapter 13 content for the 1st Edition of Exploring Arduino, please click here.
Interrupts and Other Special Functions
Parts List
- Arduino Uno or Adafruit METRO 328
- USB cable (Type A to B for Uno, Type A to Micro-B for METRO)
- Half-size or full-size breadboard
- Assorted jumper wires
- Pushbutton
- 100Ω resistor
- 220Ω resistors (×3)
- 10kΩ resistor
- 5mm Common-anode RGB LED
- 10μF 50V electrolytic capacitor
- Piezo buzzer
- 74AHCT14 hex inverting Schmitt trigger
Code
Download Code (2nd Edition, Chapter 13)
(Also available on GitHub)
Useful Links
- Arduino attachInterrupt() Function Reference
- Arduino “volatile” Variable Qualifier Reference
- Arduino TimerOne Library Reference
- 74AHCT14 Datasheet (PDF)
Videos
Watch a demo video of the “Debounced Hardware Interrupts” project from this chapter:
Watch a demo video of the “Interrupt-Driven Sound Machine” project from this chapter: