Hello Arduino Users, ![]()
I want to experiment a bit with IRremote.
Why are the numbers of the SAME buttons different?? (DEC) ![]()
And if someone knows the "official" numbers I´d be helpful to write me them back too ![]()
Thank´s!
Hello Arduino Users, ![]()
I want to experiment a bit with IRremote.
Why are the numbers of the SAME buttons different?? (DEC) ![]()
And if someone knows the "official" numbers I´d be helpful to write me them back too ![]()
Thank´s!
We need to know more. How are you reading the numbers? What is the remote you are using?
Weedpharma
It depends on the protocol the remote uses: some produce 2 different numbers for same button on consecutive pushes. So you might get 3148 then 1100 and back to 3148 again.
I for example implemented lines like this when I found that out:
// *********************** STOP
if (results.value == 3148 || results.value == 1100) {
// do stuff to stop motors
} //end of stopping
You need to post more info....
As already mentioned some IR protocols have a 'toogle' bit which helps to distinguish between key presses and holding the button down. Typically the RC5 & RC6 protocols are the most common ones with toggle bits.
However, your issue could be something else, but without enough info......etc ????
Search for "sbprojects ir" via google to find out about how IR remote control signals work.
First of all: Thanks for the answers.
I´m using this one: http://www.amazon.de/Fernbedienung-Fernsteuerung-Remote-Control-Arduino/dp/B00J3PDCQW/ref=sr_1_2?ie=UTF8&qid=1420809960&sr=8-2&keywords=arduino+ir+remote . It was in a kit.
My Code is the example of arduino.cc. But in my serial monitor there are often other numbers then the same push before. I don´t know them because I´m at work.
I think the remote or/and the receiver are inferior. What do you want to expect for 3€ ![]()
the remote control is fine and uses NEC protocol (90%+ sure of that) & 38kHz modulation frequency.
The IR receiver is both the cheapest and the worst IR receiver available. There is a post on our blog about it.