Pi Zero 5-Button Switch Box

Pi Zero based brightness selector using GPIO pins and a Python script.
1
8
0
133
updated May 30, 2023

Description

PDF

This is a box I created to control the brightness of two smart-lights I have in my room (so that they wouldn't necessarily be tied to a smartphone app). It runs on a Raspberry Pi Zero and uses the python-kasa library, as well as 5 spare key switches I had lying around. Check the Github of python-kasa to see if your lightbulbs will work. If there's interest, I can share the script I'm using, but it would need to be modified by yourself to your network's specifications. Assembled using M3 bolts to hold the Pi in the case, as well as M4 bolts to hold everything together. You can leave it as it or mount it using the included mounts. Keycaps can be your choosing, but I'm using modified DSA keycaps from here: https://www.printables.com/model/395129-easy-to-print-blank-dsa-keycap. 

Relevant github page:

https://github.com/python-kasa/python-kasa 

 

Tags



Model origin

The author marked this model as their own original creation.

License