Upload
jamie-hone
View
222
Download
1
Tags:
Embed Size (px)
Citation preview
The Motorcycle AlarmThe Motorcycle Alarm
By Matt HawkinsBy Matt Hawkins
Vermont Technical CollegeVermont Technical College
Electrical ProjectsElectrical Projects
Project DescriptionProject Description
The original circuit used a 555 timer and The original circuit used a 555 timer and a variety of capacitors and transistorsa variety of capacitors and transistors
Project DescriptionProject Description
I changed the idea of the circuit to use our I changed the idea of the circuit to use our micro controller and the use of a multi color micro controller and the use of a multi color LED as an indicator.LED as an indicator.
For controlling the alarm system I will use two For controlling the alarm system I will use two switches, one will be hidden somewhere on the switches, one will be hidden somewhere on the bike which will act as the activation switch and bike which will act as the activation switch and the other will be located on the kick stand the other will be located on the kick stand mount which is what will set the alarm off.mount which is what will set the alarm off.
Project DescriptionProject Description
I will use 12 volts to supply the siren and also I will use 12 volts to supply the siren and also use a 7805 to step the voltage down for the use a 7805 to step the voltage down for the micro controller and the multi color LEDmicro controller and the multi color LED
I used a dual coil relay so that continuous I used a dual coil relay so that continuous power to the relay was not necessary only power to the relay was not necessary only pulses from the micro controller are necessary pulses from the micro controller are necessary to switch the relay. This will save power making to switch the relay. This will save power making the system more efficient. the system more efficient.
Project DescriptionProject Description
I am using a Piezo buzzer which is a 12 I am using a Piezo buzzer which is a 12 volt DC siren that has an output of 105 dB volt DC siren that has an output of 105 dB and a frequency range from 1500-3500 Hzand a frequency range from 1500-3500 Hz
I'm using a multi-color LED from best I'm using a multi-color LED from best Hong Kong electronics, There common Hong Kong electronics, There common anode and have a maximum current rating anode and have a maximum current rating of 25 mAof 25 mA
Project SchematicProject Schematic
Circuit DescriptionCircuit Description
OFFBlue LED on
Siren off
ARMEDGreen LED on
Siren Off
PB1 Closed
PB1 Open
TRIGGERED Red LED on
Siren On! PB2 Closed
TRIPPEDRed LED on
Siren Off
PB2 Open
PB1 Open
Circuit DesignCircuit Design
To determine the values of resistance for To determine the values of resistance for maximum brightness to the LED i set up maximum brightness to the LED i set up a circuit and tested values. a circuit and tested values.
I determined that I would use 100 ohm I determined that I would use 100 ohm resistors for the blue and green LED and resistors for the blue and green LED and I would use a 200 ohm resistor I would use a 200 ohm resistor
PCB board LayoutPCB board Layout
ProgrammingProgramming
Using states make the code quite simple. This is my main loop that controls my main program.
I created sub routines for each of the states.
ProblemsProblems
I originally had two voltage regulators I originally had two voltage regulators one for 5 volts and one for 3.3 voltsone for 5 volts and one for 3.3 volts
I had to use a 20 pin MC9SO8SH8 I had to use a 20 pin MC9SO8SH8 because freescale did not offer a 16 pin because freescale did not offer a 16 pin PDIP for a 5 volt application although I PDIP for a 5 volt application although I didn’t need any where near 20 pins didn’t need any where near 20 pins
Problems Cont.Problems Cont.
I was stuck on my schematic for a long I was stuck on my schematic for a long time with connectiontime with connection
Like an idiot for some reason I forgot to Like an idiot for some reason I forgot to put base resistors on the transistors that put base resistors on the transistors that operate the LED.operate the LED.
Q & AQ & A