I’m currently doing a project and I am a need of some help.My project is based on NetGadgeteer and the goal is to control various devices thru a webpage (using a webserver of course) the devices are also the ones that have IR In them.
I came across a problem.I have a IR Receiver from Gadgeteer and various devices at home that have IR built in. For example I have Philips MCM 166/12 and the thing is that if I connect the module (IR Receiver) to Gadgeteer and add some code if a button is pressed debug the button.toString() and for example if I press PowerON/OFF button in Debug I get the number 12,if I press different keys I get different numbers.
The same goes If I use a Phillips original remote control for the device , the same number comes up. - 12. I also have the Devhammers IR Transmitter.
What I want to do is try and for example Power ON or Power OFF any devices (it can be the same phillips music set) What should I do ? Why do I get the number 12 ,or not some binnary code or hex or something? Can some of the people here on this forum explain to me what should I do ? because my hands are tied up over here I don’t know what to do…
I know that but i try to send the code to the device and i have also seen that (I use a smartphone camera) that my IR Transmitter does not blink reputedly the LED light just stays purple all the time,it does not blink at all.
What is the cause of this ? The code that I’m using to send the command is
Visual inspection doesn’t tell you much, with respect to IR communications, because the actual flashing pattern of the IR LED is far too fast for the human eye to perceive. IR signals travel over a carrier frequency, and different IR protocols may require different carrier frequencies. If you’re not using the correct carrier frequency, your receiver won’t “see” the signal at all.
While the code in this tutorial is focused on Arduino, it’s still the best tutorial I’ve read in terms of teaching the fundamentals of how IR communications work:
Pay particular attention to the section on IR Remote Signals:
as it explains the reason IR comms use a carrier frequency (PWM, in the tutorial…in my IR LED Array driver I use SignalGenerator).
In order to command a given device via IR, you need two things, then. First, you need to know the carrier frequency that the device requires. My driver was written specifically for use with Syma S107 IR helicopters, so it uses a carrier frequency of approximately 38khz, and timings based on the research of a user in an RC forum I came across:
In addition to the carrier frequency, you also need to understand what the timings are for a “high” or “low” as far as the receiver is concerned. How close you have to be on the timing is probably dependent on the receiver, but if you’re too far off, it won’t work.