(GCSE) Bicycle Alarm Project (Final)

I am using a PIC 08 to do the following but don't know how to programme it using picaxe programming editor. Please can you check if it is accurate and makes sense ...and then convert it into a basic program file:

Key Switch on
|
green led high
|
siren high 1 sec
|
tilt switch on? --------no?--------(this goes back to "key switch on")
|
yes?
|
red led high 8 secs
siren high 8 secs on low volume
|
key switch off? --------no?--------(this goes back to "key switch on")
|
yes?
|
red led high 30 secs
siren high 30 secs
|
Then it goes back to Key Switch on!

NOTE: in the attachment the "1" on the IC chip is in the wrong place and also I forgot to drill two holes where the download socket is meant to be. Is there any other info you need? please tell me I will put it up.
 

Attachments

THIS MIGHT HELP YOU (IT DIDN'T HELP ME)

main: ' most programs run in a big loop--this is the label for the beginning of the loop
if pin3 is on then ' if the switch attached to pin 3 (leg 4) is on
high 1 ' turn on the LED attached (with a resistor) to pin 1 (leg 6)
else ' if the switch goes off
low 1 ' turn the LED off
endif ' this ends the "if" statement
' the rest of your code goes here
goto main ' continue your loop
 

SilentScreamer

Senior Member
Now we can see your PCB fill out this

Out0 =
In/Out1 =
In/Out2 =
In/Out3 =
In4 =
In/Out5 =

Look in the 1st manual at the 08 and 08M's pin out. (If you're too lazy to look its page 24 of "PICAXE Manual 1 (Getting Started)", this can be found at the top of the page on the "PICAXE Manual" button :D)
 
Top