A warm hello,,,let me start by confessing am lower than newbee,, and expect to finish manuel 2 somtime around 2012,,although i spend hours reading it,,,slowly trickles in, am using the axe 91 dev/board... hours of fun?/bread boards...
my project has a several parts to it,,
On the axe 91 is pic 18x wth a simple programme
main: high 2
pause 10000
low 2
pause 15000
goto main
this triggers the pic 20m onthe bread board with the programme ' projet cylon eye
'written 6/9/09
'picaxe 20M
symbol counter = b1
main:
readadc 0,b0
if b0 < 90 then cylon
if pin2 = 1 then cylon
goto main
cylon:
for counter = 1 to 10
high 0,1
pause 50
low 0,1
pause 50
high 1,2
pause 50
pulsout 0,200
pulsout 1,200
low 1,2
pause 50
high 2,3
pause 50
low 2,3
pulsout 1,200
pause 50
high 3,4
pause 50
low 3,4
pause 50
pulsout 2,200
high 4,5
pause 50
low 4,5
pause 50
pulsout 2,200
pulsout 3,200
pulsout 4,200
high 5,6
pause 50
low 5,6
pause 50
high 7,6
pause 50
low 7,6
pause 50
pulsout 4,200
pulsout 5,200
high 6,5
pause 50
low 6,5
pause 50
pulsout 6,200
high 5,4
pause 50
low 5,4
pause 50
pulsout 6,200
high 4,3
pause 50
low 4,3
pause 50
pulsout 5,200
high 3,2
pause 50
low 3,2
pause 50
pulsout 5,200
pulsout 4,200
pulsout 3,200
high 2,1
pause 50
low 2,1
pause 50
pulsout 4,200
pulsout 3,200
pulsout 2,200
high 1,0
pause 50
low 1,0
pause 50
high 0
pause 50
pulsout 2,200
pulsout 1,200
low 0
pause 50
next counter
goto main
the programme isn't finished may not fit on the 20m???
is there another way off writing this programme,,as this is taken nearly all the memory
also i observed that i powered on the axe 91 and this triggered the bread board and 20 m is working without power leg being conected
the only conection is outpin2 on 18x conected to pin2 20 m pin2 held low by 330r and the 0v back to axe 91,,,
Q) i am heading towards doom wth this setup as did,nt expect this result,,,
kind of hoping someone can give advice on the cylon proggrame to sorten it
my project has a several parts to it,,
On the axe 91 is pic 18x wth a simple programme
main: high 2
pause 10000
low 2
pause 15000
goto main
this triggers the pic 20m onthe bread board with the programme ' projet cylon eye
'written 6/9/09
'picaxe 20M
symbol counter = b1
main:
readadc 0,b0
if b0 < 90 then cylon
if pin2 = 1 then cylon
goto main
cylon:
for counter = 1 to 10
high 0,1
pause 50
low 0,1
pause 50
high 1,2
pause 50
pulsout 0,200
pulsout 1,200
low 1,2
pause 50
high 2,3
pause 50
low 2,3
pulsout 1,200
pause 50
high 3,4
pause 50
low 3,4
pause 50
pulsout 2,200
high 4,5
pause 50
low 4,5
pause 50
pulsout 2,200
pulsout 3,200
pulsout 4,200
high 5,6
pause 50
low 5,6
pause 50
high 7,6
pause 50
low 7,6
pause 50
pulsout 4,200
pulsout 5,200
high 6,5
pause 50
low 6,5
pause 50
pulsout 6,200
high 5,4
pause 50
low 5,4
pause 50
pulsout 6,200
high 4,3
pause 50
low 4,3
pause 50
pulsout 5,200
high 3,2
pause 50
low 3,2
pause 50
pulsout 5,200
pulsout 4,200
pulsout 3,200
high 2,1
pause 50
low 2,1
pause 50
pulsout 4,200
pulsout 3,200
pulsout 2,200
high 1,0
pause 50
low 1,0
pause 50
high 0
pause 50
pulsout 2,200
pulsout 1,200
low 0
pause 50
next counter
goto main
the programme isn't finished may not fit on the 20m???
is there another way off writing this programme,,as this is taken nearly all the memory
also i observed that i powered on the axe 91 and this triggered the bread board and 20 m is working without power leg being conected
the only conection is outpin2 on 18x conected to pin2 20 m pin2 held low by 330r and the 0v back to axe 91,,,
Q) i am heading towards doom wth this setup as did,nt expect this result,,,
kind of hoping someone can give advice on the cylon proggrame to sorten it
Attachments
-
460.5 KB Views: 53