PICAXE28x1, Sharp IR Sensor and Infrared sensor problems
October 30, 2013
I'm making a robot project for my mechatronics course and I am using picaxe28x1 with an infrared range sensor that I just copied from the Start Here post here at LMR. I did everything, and exactly the same set up like what the guy did. Howeve because we are required to make at least one of our own infrared circuit, I added an infrared sensor (with a transmitter and receiver circuit and a LED indicator) circuit together with the servo and the Sharp IR sensor. I did the set up and wrote my program but it's not doing the job.
Here's the program I wrote. can some one help me please to correct what is missing or which one I need to rectify in the program? From research on this site, it seems that problem in PWMOUT is common with picaxe and servo. Please advise. Thanks.
symbol RED = b.0
symbol PWMOUTPIN = 1
SYMBOL RECEIVEROUT = PINC.3
PWMOUT PWMOUTPIN, 25, 15
IF RECEIVEROUT = 0 THEN
SERVO 1,75 'SERVO TO TURN RIGHT
SERVO 1,225 'SERVO TO TURN LEFT
SERVO 1,150 'SERVO TO LOOK STRAIGHT
if b1<b2 then