Goal: to store, manually or by recording, and to send NEC codes through IR module
In my case I've used some low-cost component that you can easily find on the web. I bought them on AliExpress
- IR transmitter
- IR Receiver
- Arduino Nano Clone CH340G
- This clone can be annoying
Obviously you are not forced to use my same configuration, many other guides suggest to use single diodes as Tx and Rx instead modules.
Let's refer to the project you can find in projects/
IRrecv irrecv(RECV_PIN)
IRsend irsend
decode_results results
Optionaly we can store more signals, according to each button of a remote control for example, and then we can send different signal pushing different buttons.
results.value [unsigned long]
results.bit [int]
irsend.sendNEC(code_value,code_bits);
It is better to use NEC codes to be sure
We can store the number of bit of the recevied signal into a variable and then we can use it to send the signal
IRsend.sendRC5(unsigned long data, int n_bits)
IRrecv.decode(&decode_results results)
- Remote Controller
- Store more decoded signals
- Assign a button to a signal
- Integration of display
- (...)