MatthewMorris
New Member
Hi to all!
I'm an A-level student, studying electronics and have ran into a problem with my work. My project is a laser-quest style game using IR.
At the moment I have been using the remote supplied with the PICAXE IR kit to experiment with.
My problem is that having built up a PCB for the sensor, which has been double checked, my ciruit will not detect a 'hit'. I have been using a very simple test code just to prove functionality of the circuit, but is seems not to work. Can anyone spot a mistake in this code, or suggest other areas to investigate? At present Output 3 is an LED indicator.
Below is my simple test code.
main:
infrain
if infra = 1 then hit
goto main
hit:
high 3
pause 1000
low 3
goto main
Your help would be very much appreciated.
Thanks,
Matt
I'm an A-level student, studying electronics and have ran into a problem with my work. My project is a laser-quest style game using IR.
At the moment I have been using the remote supplied with the PICAXE IR kit to experiment with.
My problem is that having built up a PCB for the sensor, which has been double checked, my ciruit will not detect a 'hit'. I have been using a very simple test code just to prove functionality of the circuit, but is seems not to work. Can anyone spot a mistake in this code, or suggest other areas to investigate? At present Output 3 is an LED indicator.
Below is my simple test code.
main:
infrain
if infra = 1 then hit
goto main
hit:
high 3
pause 1000
low 3
goto main
Your help would be very much appreciated.
Thanks,
Matt