Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barakwei/irelectra
Electra A/C IR Encoder for IRremote
https://github.com/barakwei/irelectra
air-conditioner arduino irremote particle-io
Last synced: 2 months ago
JSON representation
Electra A/C IR Encoder for IRremote
- Host: GitHub
- URL: https://github.com/barakwei/irelectra
- Owner: barakwei
- License: gpl-2.0
- Created: 2014-09-24T10:13:06.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-27T18:52:31.000Z (about 7 years ago)
- Last Synced: 2023-10-20T18:07:47.617Z (about 1 year ago)
- Topics: air-conditioner, arduino, irremote, particle-io
- Language: C++
- Size: 118 KB
- Stars: 32
- Watchers: 10
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
IRelectra
=========Electra A/C IR Encoder for IRremote
The project can be used to control Electra A/C that are common is Israel.
It doesn't has all the features that exist in the original remote, but only a subset.
You can control:
- Whether to turn the A/C ON or OFF (A bit tricky).
- A/C mode: cool, heat, dry, fan or auto.
- Fan speed: low, medium, high or auto.
- Swing: on/off
- Sleep mode: on/off (raise temperature by one degree every 3 hours, turn off A/C after 8 hours)
Other features like timers or "I feel" are not supported.
IRelectra uses IRremote to do the heavy lifting.
Usage:
```cpp
#include "IRremote.h"
#include "IRelectra.h"
void loop()
{
IRsend irsend(D3);
IRelectra e(&irsend);
e.SendElectra(POWER_OFF, MODE_COOL, FAN_LOW, 24, SWING_ON, SLEEP_OFF);
}
```
The code has been tested on [Spark core](www.spark.io) and is agnostic to IRremote implementation as long as it implements the sendRaw method as declared [here](https://github.com/shirriff/Arduino-IRremote/blob/master/IRremote.h).
The demo code uses the IRremote implementation for Spark core from [here](https://github.com/qwertzguy/Spark-Core-IRremote/), the deme code might need to change according to the implementation you're using.
Big thanks for Chris from AnalysIR (http://www.analysir.com/)