MAKECourse
  • Home
  • About
  • Course Materials
    • Software
    • Course Kits
    • TA hours
  • Videos
    • Intro to Programming Videos
    • Advanced Topics >
      • DAC and ADC Tutorial
      • SD Card Data Logging
      • DC Motor Control
  • Schedule
    • Syllabus
  • Student Projects
    • Awesome Prizes
    • 3D Printer Course
    • Spring 2016 Awesome Prize Winners
    • Spring 2016 Projects
    • Fall 2015 Awesome Prize Winners
    • Fall 2015 Projects
    • Spring 2015 Awesome Prize Winners
    • Spring 2015 Projects
    • Fall 2014 Projects
    • Spring 2014 Projects

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.

Goals:
  • Understand the concept of interrupts and timer based interrupts.
  • Learn to use the Timerone library for using Timer 1 based interrupts.
  • Learn to use the 8x8 LED display and drive it with timed interrupts.

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:
  • Watch the videos on the right.
  • Arduino sketches and the Timerone library featured in the video.
Main Arduino sketch used in the tutorial:
_8x8matrixdisplay6_timerone.zip
File Size: 4 kb
File Type: zip
Download File

Timerone library (put in your library folder). This file was downloaded in 2012. Potentially newer versions can be downloaded here.
timerone.zip
File Size: 7 kb
File Type: zip
Download File

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.
Arduino sketch for the above video
File Size: 3 kb
File Type: zip
Download File

[Home] [Course Materials] [Syllabus] [Student Projects] [Contact]
Powered by Create your own unique website with customizable templates.