Hi everyone, I am new to this website, if I post it at the wrong place,please understand,sorry.
my problem here is I current working on a Infrared control car project as part of my school work, but somehow I could not get the Infrared reciver working.
Detail:
For the car control I used a picaxe 08M; For the car I used picaxe 18x with the infrared reciver (don't know the model,but this is what is behind the component '1B79 68A')
the control works fine, but just that reciver wont get any infrain from it, the control even work find with my laptop(I used it as tryout to control my laptop to watch TV)
here is the code for me to tryout:
infrain2
main:
debug infra
goto main
it is going into the picaxe pin 17 as infra pin and input pin 0
can someone help me with the code how to debug it or get it work?
P.S when i debug with the code above,it just show up a debug windows and said debug(waiting...).
thanks for help and sorry for bad english, I am in a rush so yea, thanks again.
infrain/ infrain2 Double check your model of picaxe chip… O8, 08m etc. You may need the infrain2 command. If it is a 18x or 18x1 is probably irin instead. Just to be sure, you are using a 3-pin IR receiver with the cap and resistors attached, right?
but I dont know why, I can’t reciver any Infra greater than 4… with infrain2
here is the code I use in 08M as control:
main: b1=0 low 1 readadc 4,b4 ’debug b4 ’goto main
if b4 < 193 then forwardleft if b4 < 206 then cforward if b4 < 215 then forwardright if b4 < 173 then backwardleft if b4 < 130 then cbackward if b4 < 3 then backwardright
goto main
forwardleft: high 1 for b1 = 1 to 10 infraout 1,1 pause 45 next b1 goto main
cforward: high 1 for b1 = 1 to 10 infraout 1,2 pause 45 next b1 goto main
forwardright: high 1 for b1 = 1 to 10 infraout 1,3 pause 45 next b1 goto main
backwardleft: high 1 for b1 = 1 to 10 infraout 1,4 pause 45 next b1 goto main
cbackward: high 1 for b1 = 1 to 10 infraout 1,5 pause 45 next b1 goto main
backwardright: high 1 for b1 = 1 to 10 infraout 1,6 pause 45 next b1 goto main
It can only reciver 1,2,3,when it up to 4,5,6,it will jst be 1