HermansonPresentation1

Download Report

Transcript HermansonPresentation1

ECE 4330 Project Proposal 1
Motor Music Presentation
by
Nick Hermanson
Overview
The motor used in labs 6 through 8 generates a
tone based on its RPM.
This tone can be used to create simple music,
perhaps akin to the music used by ‘8-bit’
video game systems such as the original
Nintendo Entertainment System.
Hardware
The hardware required for this project is
included in the kit provided by the class.
Other hardware pieces include resistors
provided in the lab in ENG 229.
The following pieces are expected to be used:
• Motor
• NTE3100 optical sensor
• External LED
Hardware (continued)
The circuit from lab 8 will be used.
The external LED will be added for a heartbeat ‘mode’
signal, as the 8 LED’s built onto the STK500 will be used
by the program.
No other modifications are expected, but some adjustments
may be discovered to be required during the project.
PA0
VTG
PA1
2.2K
PA2
CD4050
3
2
NTE3100
PA3
2
20K
T1
(PB1)
PA4
PA5
PA6
PA7
ATMEGA16
PC0
PC1
14
To Computer Serial Port
15
PC2
RXD
TXD
PC3
PC4
PC5
PC6
PC7
OCR2
(PD7)
40
39
38
37
36
35
34
33
22
23
24
25
26
27
28
29
SW0
SW1
SW2
SW3
SW4
SW5
SW6
SW7
LED0
LED1
LED2
LED3
LED4
LED5
DC
Motor
LED6
LED7
IRF510
VTG
Software
• The basic software used will integrate the code
from Lab 8 for proportional closed-loop feedback
for the motor’s RPM.
• This project will add to Lab 8 a table of frequency
values for various notes. At least one octave will
be recorded in this way.
• The software will go through a short initialization
step, followed by a mode selection state. At least
two modes will be implemented.
Software (continued)
Mode 1: Using the switches on the STK500, the
user should be able to press a button and receive
a desired tone, allowing the user to compose or
play their own music.
Modes 2-8: As time permits, at least one basic
piece of music will be coded into the program,
allowing the user to request it be played at the
push of a button while setting the mode of the
program.
The first piece of music that comes to mind to
attempt is the Imperial March from Star Wars.
Potential Problems.
• It is possible that the motor will vary enough
that the tones do not come out as desired.
• It is also possible that the motor will not
adjust as desired for crisp notes.
• Due to the motor, there will be no real
capability for smooth note transition, all notes
will have to be separated and distinct, a trait
known as ‘staccato’ to musicians.