Society of Robots - Robot Forum
Electronics => Electronics => Topic started by: Caduscus on June 22, 2008, 12:12:56 PM
-
ok I just got my micrcontroller yesterday the Picaxe 08M but I have no programming experience at all...except batch files...I know how to make the pins High and Low after certain times, but how can I integrat sensors and motors together with this? *please post code*
I know it's really simple programming but if you could post a code for me or find a tutorial that would be great help... :D
-
Doesnt their website have sample code and info?
http://www.rev-ed.co.uk/picaxe/
-
Well yeah, but they have samples from projects totally diffrent from mine... and they don't have a tutorial they just expect you to know how to program... :(
-
Using sensors:
Know the I/O pin number, then if it is high or low you want, then what you want it to do.
For example:
main:
if 3 = 1 then goto blink
goto main
blink:
high 2
pause 2000
low 2
goto main