Josh_Lawson_FinalProject_ECE4330

advertisement
Josh Lawson
ECE 4330
Overview
 Project Description
 Schematic
 Hardware Involved
 Features of ATMEGA16/STK500 Involved
 System Features
 Testing Method
Project Description
 Description
 The overall design involves using a
generator to determine the
amount of illumination given
from a lamp.
 The user shall request for a
desired luminosity and the
generator shall attempt to produce
the correct amount of current for
the lamp.
 The level of light is read in and
the output of the generator is
changed in order to compensate.
Project Description Cont.
 Requirements
 System shall incorporate dynamic levels of luminosity.



Upon system start-up the light sensor shall sample the lowest level of
illumination.
Generator set to full and light sensor shall sample the highest level of
illumination.
User shall be acknowledged when initial setup is complete.
 User shall request level of illumination.
 User presses button to determine amount of illumination.
 Motor initiated to run at assumed power level.
 Power for light shall come from a generator
 Motor spins a magnet inside coils of copper wiring.
 Copper wiring hooked directly to light.
 Open Loop
 Light sensor must read light levels and change output of the generator.
 Implementation of noise reduction methods and algorithms.
Schematic
Hardware Involved
 ATMEGA16
 DC motor, Radio Shack p/n 273-258
 CdS Photocell
 Power FET IRF510
 Lamp
 Generator
 Magnet
 Copper Coil
Features of ATMEGA16/STK500 Involved
 Analog to Digital Convertor
 PWM duty cycle register (OCR2)
 Timer 1 overflow
 USART (communication to PC terminal)
 Switches (reads user requests)
 LEDs (indicates current status of the circuit)
System Features
 Switches 0-4 (SW0-SW4)
 SW0 – 0% luminosity
 SW1 – 25% luminosity
 SW2 – 50% luminosity
 SW3 – 75% luminosity
 SW4 – 100% luminosity
 LED 0 - indicates status of system
 Set solid when initializing
 Turns to heartbeat signal when system is ready
 LEDs 1-4 –informs user of desired luminosity level
 LEDs 1-4 shall light up accordingly to user pressing Switches 1-4
 Terminal Display
 Displays the actual illumination, desired illumination, OCR2, and
error.
Testing Method
 System Initialization
 Confirm lowest and highest illumination levels are read
 System Running
 For each level of desired illumination





Confirm switch activates appropriate desired illumination
level.
Confirm DC motor starts according to illumination level.
Confirm the illumination of lamp.
Confirm the reading and noise filtering of illumination level.
Confirm error calculation and adjustment to DC motor.
Questions
Download