i got the infra-red upgrade pack and i connected it up and copied and passed the example code and i keep getting a message: ("infrain" command not supported - use irin!) but when i replace infrain by irin it doesnt work ether .
anybody got any ideas?
Here is the code :
main: infrain 'wait for new signal if infra = 1 then swon1 'switch on 1 if infra = 2 then swon2 'switch on 2 if infra = 3 then swon3 'switch on 3 if infra = 4 then swoff1 'switch off 1 if infra = 5 then swoff2 'switch off 2 if infra = 6 then swoff3 'switch off 3 goto main swon1: high 1 goto main swon2: high 2 goto main swon3: high 3 goto main swoff1: low 1 goto main swoff2: low 2 goto main swoff3: low 3 goto main
Which chip are you using? I got it to work on a 28x1 and 40x1. Here is the page where I finally got it working after hours of trying. If yours doesn’t work take pictures, tell what chip you are using, and show exactly what remote you are using. Different chips/firmware versions have different ways to do IR.They have changed it a few times.
Keep in mind I didnt use the Keep in mind I didnt use the remote they sell. I bought a $5 universal remote and found a sony settign that worked with the sensor. We are using the same sensor so it should work assuming you have it hooked up properly.
What do you mean? The remote What do you mean? The remote isnt working or the chip isn’t receiving? To test the remote take a picture with a digital camera when you press a button. the IR light will show up on the picture. If the chip isnt receiving the sensor may not be hooked up correctly.
i think the problem is in i think the problem is in the code will have to find out more about the irin comand and variables, but thanks for all the help
infrain wont work on a 28x1 this is the code from the help menu on the programer this should work fine
main: irin [1000,main],3,b0 'wait for new signal if b0 = 1 then swon1 'switch on 1 if b0 = 4 then swoff1 'switch off 1 goto main swon1: high 1 goto main swoff1: low 1 goto main
how are you connecting your ir check the help menu on your program editor it will show you how, look at irin in basic commands it will show you how to connect it plus the code a gave you.
i think you said your also useing a universal remote, forget putting codes in this it didnt work for me, your best bet is to search for the code, with the remote i brought i had to change the code for the picaxe as i hade to keep pressing the up button on the remote to find the picaxe. also check your using the right picaxe code. the infrain value is diffrent from the infrain2 value that irin uses.
i am sure that i hooked it up correctly i am not using a universal remote, i am using the one that comes with the upgrade pack.1.
This is what the paper that came with the pack said to do with the remote
Insert 3 AAA size batteries, preferably alkaline. 2. Press ‘C’. The LED should light. 3. Press ‘2’. The LED should flash. 4. Press ‘1’. The LED should flash. 5. Press ‘2’. The LED should flash and then go out.
i am staring to think that the code and chip isnt the problem… it might be the remote as far as i can tell the remote needs a 3 digit code…