READ THE CHANGELOG BEFORE UPDATING!
MMM sensor+WS2812b and MM CONFIG RESET button
Serge last edited by Serge
This app was made to add some kind functionality to Magicmirrors run on RPis.
App allows you to:
- control LED strip by sensor and also
- rreset MagicMirror’s config.js file with a hardware button connected to Raspberry (so config should be set to default values). The operation will be confirmed by three red light blinks.
Here is short video (press on pic)
- Download and install the latest ws2812b library to your Raspberry:
sudo pip install rpi-ws281x
- Clone the repository :
git clone https://github.com/sergge1/MMM-senorled
- Enter the repository:
- Edit parameters in configuration section of the *.py file: numbers of LED and GPIO pins
5 Run the app with:
sudo python sensorbtnled.py
LED strip WS2812b https://www.aliexpress.com/item/32820628563.html
Movement sensor RCWL-0516 https://www.aliexpress.com/item/32816228153.html
Delay in seconds for sensor state change, e,g, how long the LED will light after no movement detected. The default value is
GPIO pin number to which the sensor is connected. The default value is
Number of LEDs connected to the strip. The default value is
GPIO pin number to which the LED data line is connected. The default value is
Britness of LED lights. 0 is no light, 255 is the maximum brightness. The default value is
set of files which should be rewritten. The default value is
GPIO pin to which hardware button is conected (Other button pin is connected to any GND. The default value is
and here is description and GIT
Any ideas and comments are appreciated.
As well as your direct pull requests to the project on the github page.
Hello, I am very interested in your project, I would like to know if it is possible to have more details, I am a beginner .
Is it possible to know the connection?
Is the switch just a push button or a stop market button?
thank you so much
I love what you did.