happytriger2000
Member
Hi,
I'm building my 1st Line Follower robot, the board I'm using is a Picaxe 28A + Line follower kit from Parallax #28034.
Infrared Line following kit: http://www.parallax.com/Portals/0/Downloads/docs/prod/sens/28034-InfraredLineFollower-v1.0.pdf
The Line follower kit power input = 3.4V, all pins 0~7 = 2.9V, when the sensor is covered up the Voltage reads 0V.
I need a very simple code just to test the line following kit sensor and the stepper motor driver + Motor.
cw:
pulsout B.1,150 ' send a 1.50ms pulse out of pin B.1
high 1
goto cw ; loop back to start
ccw:
pulsout B.1,150 ' send a 1.50ms pulse out of pin B.1
high 0
goto ccw ; loop back to start
I want the motor to turn cw when sensor 0 is activated, and turn ccw when sensor 1 is activated, any help would be great ..
I'm building my 1st Line Follower robot, the board I'm using is a Picaxe 28A + Line follower kit from Parallax #28034.
Infrared Line following kit: http://www.parallax.com/Portals/0/Downloads/docs/prod/sens/28034-InfraredLineFollower-v1.0.pdf
The Line follower kit power input = 3.4V, all pins 0~7 = 2.9V, when the sensor is covered up the Voltage reads 0V.
I need a very simple code just to test the line following kit sensor and the stepper motor driver + Motor.
cw:
pulsout B.1,150 ' send a 1.50ms pulse out of pin B.1
high 1
goto cw ; loop back to start
ccw:
pulsout B.1,150 ' send a 1.50ms pulse out of pin B.1
high 0
goto ccw ; loop back to start
I want the motor to turn cw when sensor 0 is activated, and turn ccw when sensor 1 is activated, any help would be great ..
Last edited by a moderator: