tag:blogger.com,1999:blog-6264947694886887540.post2398333434517210239..comments2024-03-29T00:37:46.515-07:00Comments on Ken Shirriff's blog: An Arduino universal remote: record and playback IR signalsKen Shirriffhttp://www.blogger.com/profile/08097301407311055124noreply@blogger.comBlogger100125tag:blogger.com,1999:blog-6264947694886887540.post-23265944349285864972023-01-31T13:45:35.750-08:002023-01-31T13:45:35.750-08:00I am trying to use Ken's library control an le...I am trying to use Ken's library control an led. I want the led to come on when the IR button is pushed and to turn off when the button is released (momentary). The problem is when the buttom is pushed it latches on and stays that way. Below is the code I'm using ... can anyone show me how to modify it so it's momentary?<br /><br />void loop()<br />{<br /> if (irrecv.decode(&results)) //updates results<br /> {<br /> Serial.println(results.value);<br /> if(results.value==3476004267) {digitalWrite(19, HIGH); // connected to LED<br /> irrecv.resume(); // Receive the next value<br /> }<br /> }<br />Anonymoushttps://www.blogger.com/profile/03950829854948681959noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-51896043049200415812022-05-19T07:16:45.333-07:002022-05-19T07:16:45.333-07:00when I try to compile it says that WProgram does n...when I try to compile it says that WProgram does not exists<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-67189046608203341692021-11-05T09:49:46.272-07:002021-11-05T09:49:46.272-07:00nice
nice<br />nobitahttps://www.blogger.com/profile/16605290248329816430noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-21427832253524797282021-08-02T01:41:09.833-07:002021-08-02T01:41:09.833-07:00I have built a streetplan with infrared controlle...I have built a streetplan with infrared controlled robotcars.<br />For this purpose I need to send more than one IR command at the same time (main road: carry on, side road: stop). The IRremote library however only supports a single IR output.<br />How can I generate more IR-commands simultaneously on different outputpins?<br /><br />//An IR LED must be connected to Arduino PWM pin 3.<br />#include <br />IRsend irsend;<br /><br />Ton Reuvekamp<br />The NetherlandsAnonymoushttps://www.blogger.com/profile/07060442306460003353noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-387761387620588222021-03-06T10:39:46.373-08:002021-03-06T10:39:46.373-08:00Hi ,sorry for my poor english. I use an atmega32u4...Hi ,sorry for my poor english. I use an atmega32u4 and my Infrared LED not work on pin3! Any ideea if there is a way to use an atmega32u4 like a remote sender? I successfully receive data from TV remote but i can send nothing. Seems there is another pin for the Infrared LEDAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-74787296480659102432021-02-10T02:32:28.632-08:002021-02-10T02:32:28.632-08:00
I would like to turn on my TV and HI-FI system at...<br />I would like to turn on my TV and HI-FI system at the same time. Is there any way that TV and Arduino IR would receive IR command from the TV remote at the same time and Arduino IR transmitter would subsequently send an IR command to my HI-FI to power it on and switch to the optical input? Thank youAnonymoushttps://www.blogger.com/profile/15542501804677152156noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-65799403659870565752020-12-28T13:16:35.245-08:002020-12-28T13:16:35.245-08:00Hi, thanks for the library and other posts.
Is th...Hi, thanks for the library and other posts.<br /><br />Is there anyone have a code for controlling multiple devices? Such as T.v, A.c, fan ...etc?<br /><br />ThanksHany Naeemhttps://www.blogger.com/profile/17076887593351704392noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-75223657693500528132020-07-03T11:08:18.018-07:002020-07-03T11:08:18.018-07:00Great ideas to learn by in this post. I just bough...Great ideas to learn by in this post. I just bought a "beginners kit" and the learning curve is mostly in the Manual. <br />My first project was to setup an auto mute function for TV commercials. <br />Spent a few hours wondering why my transmit was not operating. All began working when the I noticed your project board had Ir send led plunged into the 4th socket header.<br />I guess this is pin 3 and also D2 or PD2 but physically connects to pin 4.<br />I guess the first step is to understand the terminology when learning anything new but I thank you for doing the "hard part" for me. Thank you.<br />-DJDajaxhttps://www.blogger.com/profile/03111060468393992085noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-62839035128576013452020-03-08T14:25:54.916-07:002020-03-08T14:25:54.916-07:00Thanks for all the hard work on this. One point to...Thanks for all the hard work on this. One point to note, many modern 'phone cameras have IR filters now, which means you can't see the IR LED doing its thing! Anything from iPhone 5 onwards seems to be filtered. Easy solution, just knock up the decoder for Arduino! I have mine outputting to a 4 line LCD.Ajaynoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-2383261513613613522020-02-10T22:36:22.075-08:002020-02-10T22:36:22.075-08:00But the comment I just left will be posted, if app...But the comment I just left will be posted, if approved, right? There's not "your post is awaiting approval" or anything like that to let me know it actually *got* my post, and didn't just trash it, as some web pages tend to do... I have one on the big G called just seeker. Hopefully they can't scrape that, but moderator could let me know if prev. post was received, and ideally (please) don't post this one, as I was just basically telling you my contact.Anonymoushttps://www.blogger.com/profile/08208260434631781959noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-10634027034296878322020-02-10T22:32:06.851-08:002020-02-10T22:32:06.851-08:00I was just looking for something to record one of ...I was just looking for something to record one of my TV remotes button presses, because if I don't touch the remote for an hour, it gives me 60 seconds to hit the button or the TV will shut off. Really, though, I was hoping for an Android app (but saw some links, just came here first)<br />House of Gaming (above post, from July 2, 2018, only about 1.5 years ago, but still newest post I see) - your URL is broken. Hope you got help anyway.<br />"Choose my identity" below is tricky, because Google Account has a checkbox option to have followups mailed to an email address I haven't had for a decade. Maybe it'll just go to my google email? Or if I use Name/URL, and the URL could be an email address I actually still have? Why do they keep using these "I'm not a robot", when page usage could be made to determine of it was a robot or not, just have to use your own algorithm so the robot writers couldn't just write something to bypass it, but it'd be easy to write. Maybe even if you're smart enough, or think about it enough, you could come up with something open source that robots still couldn't bypass.<br />Oh.. I just remembered hearing they're using it to teach their AI's, they know you're not a robot already.Anonymoushttps://www.blogger.com/profile/08208260434631781959noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-40679718566492082232018-07-02T01:20:48.311-07:002018-07-02T01:20:48.311-07:00OK here's a challenge!
I'm trying to get ...OK here's a challenge!<br /><br />I'm trying to get the Arduino to transmit a Milestag start game command.<br /><br />The data protocol is described here:<br /><br />http://lasertagparts.com/mtformat-2.htm<br /><br />I am trying to transmit the new game command (byte 1 = 0x83, byte 2 = 0x05)<br /><br />Can anyone assist please?<br />House of Gaminghttps://www.blogger.com/profile/05716454936758818735noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-61080628942172640192017-02-15T15:17:12.853-08:002017-02-15T15:17:12.853-08:00Is there any way to add Arduino 101 support for th...Is there any way to add Arduino 101 support for this library????Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-55509739085649591852016-12-10T07:16:34.541-08:002016-12-10T07:16:34.541-08:00bombomAnonymoushttps://www.blogger.com/profile/13889637848654788402noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-73997733800193387982016-12-06T02:30:11.770-08:002016-12-06T02:30:11.770-08:00i work on some IR transmission system
I got succes...<b> i work on some IR transmission system</b><br />I got successfully IR Raw code how to convert My IR raw code to pronto hex code?<br />Is their any sketch for receive directly pronto code? <br />Please help me.<br />I tried a lot to decode IR code for Air conditioner.If you give than i will work on it,my mail id is joyacharya40@gmail.com<br />I did read all aspect parameter of Pronto code. jemshttps://www.blogger.com/profile/00797630053366061444noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-81054973689654834382016-07-25T14:02:15.306-07:002016-07-25T14:02:15.306-07:00Good stuff Ken!Good stuff Ken!Anonymoushttps://www.blogger.com/profile/11181343030153947313noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-27172170086618310442016-05-17T03:23:57.184-07:002016-05-17T03:23:57.184-07:00Hi, is it possible to use software PWM librairy to...Hi, is it possible to use software PWM librairy to send IR on any of the none PWM pins instead of the fixed pin 3?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-63301963963897957292016-03-23T04:20:01.436-07:002016-03-23T04:20:01.436-07:00Check dis out... Simple & easy to understand.
...Check dis out... Simple & easy to understand.<br />http://vaaiibhav.me/how-to-send-ir-signal-with-arduino/Anonymoushttps://www.blogger.com/profile/06948424302156753242noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-72554755509082747302015-11-29T20:45:32.528-08:002015-11-29T20:45:32.528-08:00hi i would like to ask about to send raw data
thi...hi i would like to ask about to send raw data <br />this coding to control the fan by apps, i am already test it, but it doesn't work to control on/off fan <br /><br />#include <br /><br />IRsend irsend;<br />String readString;<br />int ledPin=12;<br />unsigned int powerOn[24] ={ 24174,1300,400,1300,400,400,1250,1250,400,1250,400,500,1200,450,1200,500,1200,450,1250,400,1250,1250,400,400}; <br />unsigned int powerOff[24]={ 6454,1300,400,1300,350,500,1200,1250,450,1250,350,500,1200,500,1200,400,1250,400,1250,500,1150,500,1200,1250}; <br /><br /><br />void setup() {<br />Serial.begin(9600);<br /> pinMode(ledPin, OUTPUT);<br /> <br />}<br /><br />void loop() {<br /> while (Serial.available()) {<br /> delay(100);<br /> char c = Serial.read();<br /> readString += c;<br />}<br /><br />if (readString.length() >0) {<br /> if (readString == "ON" )<br /> { <br /> digitalWrite (ledPin,HIGH);<br /> delay(100);<br /> digitalWrite (ledPin,LOW);<br /> irsend.sendRaw(powerOn,24,50);<br /><br /> }<br /> if (readString == "OFF")<br /> { <br /> digitalWrite (ledPin,HIGH);<br /> delay(100);<br /> digitalWrite (ledPin,LOW);<br /> irsend.sendRaw(powerOff,24,50);<br /> <br /> }<br /> readString ="";<br /> }<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-51602801475506407352015-09-26T10:16:38.093-07:002015-09-26T10:16:38.093-07:00Sorry
Because the characters can not exceed 4096, ...Sorry<br />Because the characters can not exceed 4096, so I post on following comment.<br />The remaining error messages are as follows.<br /><br />D:\arduino-.5.7\hardware\arduino\mtk\cores\arduino/wiring_constants.h:250:25: note: in definition of macro '_BV'<br /> #define _BV(bit) (1 << (bit))<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'<br /> TIMER_CONFIG_NORMAL();<br />In file included from D:\arduino-.5.7\libraries\IRremote\IRremote.h:24:0, from D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:1:<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:248:3: error: 'OCR2A' was not declared in this scope<br /> OCR2A = TIMER_COUNT_TOP / 8; \<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'<br /> TIMER_CONFIG_NORMAL();<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:127:24: warning: integer overflow in expression [-Woverflow]<br /> #define USECPERTICK 50<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:234:38: note: in expansion of macro 'USECPERTICK'<br /> #define TIMER_COUNT_TOP (SYSCLOCK * USECPERTICK / 1000000)<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:248:12: note: in expansion of macro 'TIMER_COUNT_TOP'<br /> OCR2A = TIMER_COUNT_TOP / 8; \<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'<br /> TIMER_CONFIG_NORMAL();<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:249:3: error: 'TCNT2' was not declared in this scope<br /> TCNT2 = 0; \<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'<br /> TIMER_CONFIG_NORMAL();<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:222:30: error: 'TIMSK2' was not declared in this scope<br /> #define TIMER_ENABLE_INTR (TIMSK2 = _BV(OCIE2A))<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:123:2: note: in expansion of macro 'TIMER_ENABLE_INTR'<br /> TIMER_ENABLE_INTR;<br />In file included from D:\arduino-.5.7\hardware\arduino\mtk\cores\arduino/Arduino.h:45:0, from D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:24, from D:\arduino-1.5.7\libraries\IRremote\IRremote.h:24, from D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:1:<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:222:43: error: 'OCIE2A' was not declared in this scope<br /> #define TIMER_ENABLE_INTR (TIMSK2 = _BV(OCIE2A))<br />D:\arduino-.5.7\hardware\arduino\mtk\cores\arduino/wiring_constants.h:250:25: note: in definition of macro '_BV'<br /> #define _BV(bit) (1 << (bit))<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:123:2: note: in expansion of macro 'TIMER_ENABLE_INTR'<br /> TIMER_ENABLE_INTR;<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:127:6: error: 'sei' was not declared in this scope<br /> sei(); // enable interrupts<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-8190315145709468292015-09-26T10:14:08.556-07:002015-09-26T10:14:08.556-07:00Hello
I used this library on MTK LinkIt ONE with ...Hello<br /><br />I used this library on MTK LinkIt ONE with Arduino IDE 1.5.7.<br />When I compiled example code, I got following error message. Could you help me to solve it? Thanks.<br /><br /><br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp: In member function 'void IRrecv::enableIRIn()':<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:115:6: error: 'cli' was not declared in this scope cli();<br />In file included from D:\arduino-1.5.7\libraries\IRremote\IRremote.h:24:0, from D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:1:<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:246:3: error: 'TCCR2A' was not declared in this scope<br /> TCCR2A = _BV(WGM21); \<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'<br /> TIMER_CONFIG_NORMAL();<br />In file included from D:\arduino-.5.7\hardware\arduino\mtk\cores\arduino/Arduino.h:45:0, from D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:24, from D:\arduino-1.5.7\libraries\IRremote\IRremote.h:24, from D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:1:<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:246:16: error: 'WGM21' was not declared in this scope<br /> TCCR2A = _BV(WGM21); \<br />D:\arduino-1.5.7\hardware\arduino\mtk\cores\arduino/wiring_constants.h:250:25: note: in definition of macro '_BV'<br /> #define _BV(bit) (1 << (bit))<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'<br /> TIMER_CONFIG_NORMAL();<br />In file included from D:\arduino-.5.7\libraries\IRremote\IRremote.h:24:0, from D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:1:<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:247:3: error: 'TCCR2B' was not declared in this scope<br /> TCCR2B = _BV(CS21); \<br />D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:120:2: note: in expansion of macro 'TIMER_CONFIG_NORMAL'<br /> TIMER_CONFIG_NORMAL();<br />In file included from D:\arduino-.5.7\hardware\arduino\mtk\cores\arduino/Arduino.h:45:0, from D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:24, from D:\arduino-1.5.7\libraries\IRremote\IRremote.h:24, from D:\arduino-1.5.7\libraries\IRremote\irRecv.cpp:1:<br />D:\arduino-1.5.7\libraries\IRremote\IRremoteInt.h:247:16: error: 'CS21' was not declared in this scope<br /> TCCR2B = _BV(CS21); \Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-60971067472968947692015-08-20T22:32:10.873-07:002015-08-20T22:32:10.873-07:00Hi,
Can I use the same configuration with a lil bi...Hi,<br />Can I use the same configuration with a lil bit edition in the code to make it learn codes and save it in eeprom? also regenerate the codes to transmit specific code from eeprom? has anyone tried itAnonymoushttps://www.blogger.com/profile/15752560235489530248noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-76213804494980768062015-04-15T14:53:20.964-07:002015-04-15T14:53:20.964-07:00I have been using this Library for a few days now....I have been using this Library for a few days now. It's been a very frustrating process. I have come to the conclusion your choice of Infra Red Detector is crucial! I can see the pulses appearing but they seem to be incredibly short! This might mean I get a lot of 50uSec pulse widths, then a big gap. I surmise that some IR detectors are much different to others possibly toggling their outputs on negative and positive edges rather than what I am seeing. I can press the same button twice with a pause in between and get a wildly differing output! Has anyone got any suggestions about this?Anonymoushttps://www.blogger.com/profile/16321890448341438561noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-79152496355963070812015-03-30T20:29:11.741-07:002015-03-30T20:29:11.741-07:00Fandm, how did you get those arrays? I have a Shar...Fandm, how did you get those arrays? I have a Sharp TV and I have been trying to get the raw codes right forever with no luck. But by using the ones you got with the same 45 second interval repeated 6 times worked for me. I also ran the sketch to decode raw from http://www.ladyada.net/wiki/tutorials/learn/sensors/ir.html but the raw data I got from there isn't close to what you got.Anonymoushttps://www.blogger.com/profile/15897072971607729256noreply@blogger.comtag:blogger.com,1999:blog-6264947694886887540.post-70851088406838893392015-02-25T02:40:05.477-08:002015-02-25T02:40:05.477-08:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/00636544916194625565noreply@blogger.com