Week 10: Segment 2: Timer Interrupts and the 8x8 LED display
This segment focuses on the use of timer based interrupts with the Arduino, and their application to driving the 8x8 LED display.
Homework: Hook up the awesome IR remote receiver and use the remote to control the servo. Program the setup that button 1 puts the servo to one end of its motion range, button 2 sets it to the center of the range, and button 3 moves it to the other end of the range. Program button 4 that the servo starts moving continuously from one end to the other and back until button 4 is pressed again (hint: use a variable to 'remember' in what state the servo is. That will allow you to do the toggling with button 4).
Bring your working set-ups to class. We will determine who did it successfully. This will count like an attendance check/quiz.
Materials for this segment:
Main Arduino sketch used in the tutorial:
Timerone library (put in your library folder). This file was downloaded in 2012. Potentially newer versions can be downloaded here.
This video is a supplement to the above video. It demonstrates how to display alternating patterns on the 8x8 display. Please, watch the above video before this one if you do not know how to use the 8x8 display with the Arduino.