26
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
26
Supported by:
Detailed instructions:
1.
Connect the PICAXE cable to the computer serial port. Note which port it is
connected to (normally labelled COM1 or COM2).
1.
Start the Programming Editor software.
2.
Select View>Options to select the Options screen (this may automatically appear).
3.
Click on the ‘Mode’ tab and select PICAXE-08
4.
Click on the ‘Serial Port’ tab and select the serial port that the PICAXE cable is
connected to. Click ‘OK’
5.
Type in the following program:
main:
high 0
pause 1000
low 0
wait 1
goto main
(NB note the colon (:) directly after the label ‘main’ and the spaces between the
commands and numbers)
6.
Make sure the PICAXE circuit is connected to the serial cable, and that the batteries
are connected.
7.
Select PICAXE>Run. A download bar should appear as the program downloads.
When the download is complete the program should start running automatically –
the LED on output 0 should flash on and off every second.