TAP THE DANCE    Para Para

ECE 476 Final Project --  Spring 2003

Hardware Design

  • STK 500 Development Board
  • Atmel Mega32 Microcontroller
  • STK 200 Development Board
  • Atmel Mega163 Microcontroller
  • TV
  • Keypad
  • 7-bit DAC


STK 500 Board

One of the four available ports on the STK 500 development board connected to Mega32 microcontroller is used to interface with the TV.  We used the external 16 MHz crystal oscillator as the clock to our Mega32.

Atmel Mega32

We have chosen Mega32 instead of Mega163 as our microcontroller for the main game program because it has more internal SRAM and Flash (32 KB Flash, 2 KB SRAM for Mega32 vs. 16 KB Flash, 1KB SRAM for Mega163).  The extra memory storage will provide us more flexibility in storing the arrows of each song and the scores.

STK 200 Board & Atmel Mega163

The STK 200 board together with Atmel Mega163 microcontroller are used for playing songs in the game.  Since we do not need as much memory for the sound programming, we have chosen to use Mega163 in here only.


In our game, TV is used for both video output and audio output.  From previous lab experiences, we are familiar with the features of TV.  Although the TV available in the lab is quite small, it outputs both the images and the sound pretty well. 

To make a video DAC, two bits of a port are used to generate three video levels:

  • Sync level = 0 volts
  • Black level = 0.3
  • White level = 1.0


Keypad is used as the controller replacing the dancing mat.  We have chosen to use keypad because its button configuration is similar to the dancing mat.

7-bit DAC

A 7-bit digital analog converter is built for playing songs.  It connects to the STK 200 board and also to the audio input of the TV.