Make Universal IR Remote
Hi all
I'm getting started whit a new project.
I look on OBEX and I check the Magic IR. I found this really interning.
The only thing is that I don't find the way to display in PST the IR code that the Magic IR program record. If I want to display the code or the sequence is because I need to copy it in a variable such as (TV_ON), (Light_OFF), (Music_OFF) that contain that sequence to use in other program.
Do you know how to find the sequence that was recorded by the Magic IR ?
magic_ir_demo - Archive.zip
I'm getting started whit a new project.
I look on OBEX and I check the Magic IR. I found this really interning.
The only thing is that I don't find the way to display in PST the IR code that the Magic IR program record. If I want to display the code or the sequence is because I need to copy it in a variable such as (TV_ON), (Light_OFF), (Music_OFF) that contain that sequence to use in other program.
Do you know how to find the sequence that was recorded by the Magic IR ?
magic_ir_demo - Archive.zip
Comments
I was under the impression he was pretty far along with a universal remote.
I've attached the code I was working on back in January of 2011. It's got to be full of bugs and when I just looked at it I had no idea what the heck I was doing.
If you try to use my code and get stuck, let me know I'll attempt to decipher it.
Edit: I also uploaded magicIrDemo which I think isn't as complicated. Hopefully it will be easier to make some sense of it.
I keep meaning to get back to this myself. I hope you keep us posted on your project.
I check the "D" option and all the code are there. I'm not shore what is going on.
Do you have an idea ?
For shore I will post the project
My first idea is the code is buggy.
I just looked at it again and nothing jumps out at me.
IIRC, MagicIr records the pulse times relative the start of the recording process rather than just the pulses' duration. I don't think I had fixed that yet.
I saw my breadboard with IR LED and sensor a couple of days ago. I'll try to find it again and play with the demo to see if I can find the bug.
Edit: If I delete this line it work fine after power cycle.
if recordFlag[localButton] == 1
Debug.str(string(13, "Playing IR code."))
repeat 10 '3
magicir.playcode(20, @code1 + (128 * 4 * localButton) , codeLength[localButton])
else
Debug.str(string(13, "No IR code recorded yet."))
That's odd. I can see where recordFlag is written to the EEPROM in the Record method.
I haven't found the bug yet.
"Uses Assembly to record the Mark and Space data of the IR signal. Fixed Mark, Fixed Space, and Manchester coding detection across several odd-ball remotes. Compression techniques applied for a smaller data representation footprint. Supports Pattern matching, and re-transmission of stored IR sequences."
http://obex.parallax.com/object/292
I use a PIR sensor to send IR code to my device ( light, music etc.)
I just make some little change in the original code. If your interest just run the magicIrDemo101211b_test.spin
It work well for my and let me know if it does work whit you.
Instruction
You just run the program and record some IR code and test it then select the one you want to play wen the PIR sensor (or anything you want) is activate.magicIrDemo101211b_test - Archive [Date 2014.01.15 Time 11.49].zip