Comments (6)
Hello,
can you try it with a normal arduino and the original library?
You may also try to change the constants RC5_T1 and RC5_RPT_LENGTH in IRremoteInt.h to get better results. I would start with decreasing their value a bit, but I'm not 100% sure.
Mark
from irremoteesp8266.
Tested with arduino uno and original library works fine.
EDIT: Hmm seems like one buton of the remote has 2 values.
EX: power on / off - 2060 and 12 if i alternate these it works !
Do you have any idea why 1 button has 2 codes ?
from irremoteesp8266.
Wow, that's kind a new for me, and no, sorry, I have no idea why it has two codes. Does it work if you send both codes after each other?
from irremoteesp8266.
That is how RC5 works. You need to put toggle bit into code to send it...
That is how I implemented it:
else if (type_json == RC5 || type_json == RC6) { //Implementation of sending RC5/RC6 codes
// Flip the toggle bit for a new button press
if (repeat) {
toggle = 1 - toggle;
}
// Put the toggle bit into the code to send
codeValue_json = codeValue_json & ~(1 << (bits_json - 1));
codeValue_json = codeValue_json | (toggle << (bits_json - 1));
if (type_json == RC5) {
#if DEBUG
Serial.print("Sent RC5 ");
Serial.println(codeValue_json, HEX);
#endif
irsend.sendRC5(codeValue_json, bits_json);
}
else {
irsend.sendRC6(codeValue_json, bits_json);
#if DEBUG
Serial.print("Sent RC6 ");
Serial.println(codeValue_json, HEX);
#endif
}
}
I also store last code value to check if it is the same as new value. If it is I set repeat to 1.
from irremoteesp8266.
Wow nice. If you think it's better than the actual one in the library, you are more than welcome to issue a pull request :)
from irremoteesp8266.
This is something that is implemented in executing sketch, not in library.
In official library there is also example that shows how to implement it. Here it is:
https://github.com/z3t0/Arduino-IRremote/blob/master/examples/IRrecord/IRrecord.ino
from irremoteesp8266.
Related Issues (20)
- The IT Receiver sensor (SM0038) is receiving signals and reporting values even when not pressing any button in the remote.
- Carrier AC 84bit HOT 2
- Does this library support for OnePlus TV , realme TV and Mi TV remote. HOT 1
- Problem with Zanussi A/C HOT 7
- IRHaierAC160 light toggle only working every 2nd time
- Unable to include C libraries HOT 3
- How to get or find CarrierAc 32 bit protocol? HOT 1
- Common AC Control - Swing turn on HOT 1
- Toshiba AC Remote Control B Support HOT 1
- Feature Request: De'Longhi Pinguino PAC N82 ECO IR Protocol HOT 5
- DAIKIN IRHVAC Off Issue. HOT 1
- The implementation and declaration of some functions differs from the function call HOT 4
- Coolix protocol "fan only mode" sends "dry mode" command instead HOT 1
- Support for Carrier RG56CMI-WRAC1 HOT 1
- Got error messages in Arduino IDE v3.0.1(ESP32C3) something like timerAlarm or void gpio_intr() HOT 1
- making a ir hub HOT 1
- FUNIKI AC remote (85 bits) need to be supported!
- Support for 'quiet' mode in COOLIX protocol
- Using any other mode than "Cool" causes AC to turn off. HOT 6
- Solution to AC remote giving different data for same button pressed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irremoteesp8266.