Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Caduscus on June 22, 2008, 12:12:56 PM

Title: Help with my PICaxe
Post 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
Title: Re: Help with my PICaxe
Post by: Bajanick on June 22, 2008, 12:28:14 PM
Doesnt their website have sample code and info?

http://www.rev-ed.co.uk/picaxe/

Title: Re: Help with my PICaxe
Post by: Caduscus on June 22, 2008, 01:03:32 PM
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... :(
Title: Re: Help with my PICaxe
Post by: R.O.B. 2.0 on June 23, 2008, 03:12:37 PM
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