Automate any RF wireless device (Patreon)
Content
Lots of electronic devices comes with RF remote controls - often small keyfobs, which send simple commands encoded as radio signals on either 315MHz or 433MHz radio frequency.
In this project, I use a cheap receiver with an Arduino (or ESP32 or other microcontroller) to receive and learn the commands sent when different buttons on a remote are pressed, then examine the data to identify and separate the control signal from the noise in the raw signal, and copy the timing/encoding used to clone the behaviour of the original device.
Having done that, I can then use a transmitter module (on the same frequency) to broadcast the signal to control the device directly from the Arduino instead, which allows them to be triggered from any other input, or from a network message or sensor. Perfect for, e.g. automating cheap fog machines or other stage effects in escape rooms, or creating backups or a "universal controller" to activate remote plug sockets which can control any fixture, or act as an override to release maglocks etc., but I'm sure you can think of many other uses!
I'm using the RF433Any library from: https://github.com/sebmillet/RF433any
The 433MHz RF modules I'm using are like this (but, as explained in the video, make sure you get ones that match the frequency of your device, and on a frequency that is permitted in your country): https://www.amazon.co.uk/DollaTek-Wireless-Transmitter-Receiver-Raspberry/dp/B07DJ2ZJXR
You can access the two code listings for capturing the signal, and then sending it again from a serial message at the following Google Drive link: https://drive.google.com/drive/folders/1C3Kt8S8H0cwXmJmLAkymYnrIhju4rtC4?usp=sharing
Enjoy, and I wish you all a very Happy Christmas, and a Peaceful New Year :)
xxx