Theory of operation: The Festool Remote does some more fancy pairing with the original festool receiver, but importantly, as long as the remote is not paired with a current receiver, everytime you press the button it sends out a couple of BLE advertisement packets. This software takes advantage of that, and fires a relay to turn on the vacuum cleaner.
What do you need:
- An M5 Atom Socket Kit: https://shop.m5stack.com/collections/atom-series/products/atom-socket-kit-hlw8023-jp-us
- A working arduino studio installation
- A USB-c cable to hook to your computer and the M5 device (most M5 devices come with one, but this one doesn't)
- Arduino configured to work with the M5 Atom
How to load the code onto the device:
- Install Arduino according to these instructions: https://docs.m5stack.com/en/arduino/arduino_development
- Make sure to install the M5 Atom library too (according to the linked instructions)
- When you get to the part about board selection, select the Atom.
- Download the ino file from this repository, and open it up in Arduino
- Plug in the M5 Socket Kit to your computer.
- Make sure you've selected the correct port under tools/port.
- Click sketch, then upload.
How do you use the device:
- First, factory reset your Festool remote (hold the "man" and "pairing" buttons together until a solid blue light appears.
- Plug in the M5 Atom socket, and while doing that hold down the top button. You should see a flashing blue light.
- Hold down the "pairing" button on remote. If done correctly, the light on the M5 Atom socket should turn off, and you should here the relay click.
- Press the "man" button to exit pairing.
That's it.
To factory reset the M5 Atom Socket:
- Plug in the socket, and hold down the button for 6 seconds until you see a flashing white light.