28
PICAXE-08 ALARM PROJECT
revolution
© copyright 2002 - AXE102 Alarm Student Project Notes Version 1.1
Revolution Education Ltd. Email: [email protected] Web: www.rev-ed.co.uk
28
Supported by:
piezo
output
microcontroller
INPUT
PROCESS
OUTPUT
digital
LED
analogue
S
ECTION
5 - T
HE
A
LARM
PCB
The Alarm project uses a PICAXE-08 microcontroller with an LED and piezo sounder as
user feedback devices, and a user selectable ‘output’ device (e.g. siren or strobe light).
The project can also react to digital and/or analogue sensors (e.g. an LDR light sensor).
.
The electronic block diagram is shown below.
output - pin0 is connected to the LED
output - pin2 is connected to the piezo sounder
output - pin4 controls the output devices
input - pin1 is connected to the LDR
input - pin3 is connected to the push switch
Remember not to confuse the chip ‘leg’ number with the input/output pin number!
Circuit Diagram
The circuit diagram for the alarm project is shown below:
PICAXE 08
1
8
4.5V
0V
10k
10k
6
4
in1
in3
330R
3
7
5
out4
out0
out2
1k
1N4001
output
device
BC548B
digital
input
analogue
input
+
100 uF