Turn on a lamp with a relay and a remote control
- 19/05/2021 - Memory was filled abnormally. I have inserted a
gc.collect()
instruction, to free up the memory at each cycle. Also, thedecode_it()
function has been rewritten. Now 6 readings are carried out at each cycle in order to read 3 bits.
With this project I want to switch a relay on and off using a remote control that I don't use.
With this project https://github.com/DannyOnkies/ObtainIRcodes I was able to find out which decimal codes the remote emitted and this was useful for me in this project.
In this video you can see how the program works.