Today, is my first time connecting an infrared remote to a component from the Elegoo Super Starter Kit for Uno R3 projects. I thought at first that a second UNO was necessary as a transmitter, but this turned out to be an error on my part. Essentially, it is about the programming of the receiver sensor, which is connected to the device. The receiver serves as an encoder of the received signal, in order to set a trigger (power strip on/off, switch the transmitter of a TV up/down).
It showed, in my case, that the signal from different remote controls arrived at the receiver, which was signaled by a red LED. The program code in the example was not suitable to play the pressed key, like in the serial monitor.
Update 12.11.2017I did not want to leave the described failure and have taken the Enlightenment again. Today I describe the points, which I have checked again and led to the success:
- the remote control may need fresh batteries to be able to transmit at all
- sometimes the batteries are already inserted in the remote control and are protected with a film from direct contact - in this case pull off the protective film
- check the wiring to the receiver: I have written down the letters G, R, Y again
- I have the integer values on the serial monitor times test for power and button 5 output and listed in the function with.
Use an Decimal to Hexadecimal Converter to get the Hex like this: http://www.binaryhexconverter.com/decimal-to-hex-converter
Schematic- Y: Signal pin of IR receiver to Arduino Digital pin 11
- G: Black to GND
- R: Red to 5V DC.
Today I have the additional codes of another manufacturer, the company TechniSat included in the listing and found in this manufacturer a double assignment of the keys with 2 codes. I have inserted these for the numbers 0-9 in the listing.
The picture shows the open remote control: the printing is done by a silicone mat on the PCB board.
Conclusion
This was an interesting approach for a trigger on a trigger, but even with the original remote, it does not work. It is not applicable to me.
Hope you have other experiences with Infrared components, and I would appreciate feedback!
You will find here a short introduction into my testing from a servo motor.
You will find more under my account.
Comments