Sketch arduino to send and receive IR signal with serial json communication.
This librairy was created to communicate in Json with NodeJs or other languages. Arduino-ir-remote-json is based on [IRremote] (https://github.com/z3t0/Arduino-IRremote) and [ArduinoJson] (https://github.com/bblanchon/ArduinoJson).
Only tested on Arduino Uno.
Only tested with Grove Sensors :
- [IR Emitter] (http://wiki.seeedstudio.com/wiki/Grove_-_Infrared_Emitter)
- [IR Receiver] (http://wiki.seeedstudio.com/wiki/Grove_-_Infrared_Receiver)
- Clone repository
- Install [IRremote] (https://github.com/z3t0/Arduino-IRremote) and [ArduinoJson] (https://github.com/bblanchon/ArduinoJson) with Arduino IDE library manager.
- Build and Upload on Board !
You can configure IR receiver PIN and Serial Port. Go to Arduino-ir-remote-json.ino and change :
// PIN of ir receiver (IR emitter must be D3)
const int RECV_PIN = 2;
// Port for Serial
const int SERIAL_PORT = 9600;
{"type":3,"value":1270282502,"bits":32}
Int | Device | Code | Test |
---|---|---|---|
-1 | UNKNOW | Y | N |
0 | UNUSED | N | N |
1 | RC5 | Y | N |
2 | RC6 | Y | N |
3 | NEC | Y | Y |
4 | SONY | Y | Y |
5 | PANASONIC | Y | N |
6 | JVC | Y | N |
7 | SAMSUNG | Y | Y |
8 | WHYNTER | Y | N |
9 | AIWA_RC_T501 | N | N |
10 | LG | Y | N |
11 | SANYO | N | N |
12 | MITSUBISHI | N | N |
13 | DISH | N | N |
14 | SHARP | N | N |
15 | DENON | N | N |
16 | PRONTO | N | N |