-
1WiFi setup
Place a Raspberry Pi and the vacuum at the same WiFi network
-
2IP addressing
Find a vacuum IP address and fix the IP address of the vacuum. This can be done by checking the list of DHCP clients on your home router and fixing a vacuum IP address based on its MAC address
-
3Vacuum token
Get the vacuum access token. I recommend the method described here.
-
4Detect segment IDs
Find out the segment IDs. It is assumed that you have already defined segments for your home and with this step you need to identify the ID of each segment. Use test.py from Github script to manually add numbers and check where your vacuum goes. Small hint here: during the test observe the Android map - when vacuum starts cleaning of the segment an app will mark that segment in its map so you don't need to wait for a vacuum to actually go there.
-
5Housing building and front panel printing
Print your own symbols for segments and make appropriate casing with buttons and LEDs
-
6Wiring and script updating
Wire the buttons and the LEDs and update the
g_gpioMap
map. Please note that the maximum number of segments that you can address with RPi 3 A+ is 11. If you want more than that, consider implementation of SPI/I2C GPIO extender and changing the script. Small hint: order of GPIO lines is not important (as long as you don't mix them with GND, power and other pins on RPi header connector), always first do the wiring and then update the map (rather than vice versa) - SW update is easier than HW update -
7Raspberry Pi OS setup
Setup a RPi OS so the script is always started at power-up and lock the file system for writing to prevent SD card wearout.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.