Read the statement by Michael Teeuw here.
My First Mirror... until now ^^
-
If you told me that your background wasn’t a stock photo I would upvote this! Nice work!
-
Well, meanwhile i changed my background, but still love it :P
-
@c:face_with_steam_from_nose: ruunnerr ok that works…
-What ist the Funktion of LED_PIN = 16 .
Only one pin …
Do I need RGB pins in the script?-And then the led stripe start it’s flickering…
Thx4yourhelp -
LED-Pin just shows, if the PIR detects motion. You don’t need to use it.
The pir.py script starts the other shell scripts when motion is detected.
So all commands for the RGB-Stripe are within the shell scripts (monitor_on / off.sh).
And as u can see, i used GPIO 17,22 and 24.
17 = red
22 = green
24 = blueTo control the LEDs i used PIGPIOD and it’s commands, as i wrote.
So after installing PIGIOD u can start it with:
sudo pigpiod
Commands like
pigs p 22 128
will set green to 50%.
pigs p 24 255
will set blue to 100%in the shell script i fade all colors from 1 to 12% with sleeps.
Edit:
As i wrote before u need to Autostart pigpiod via rc.local.
sudo nano /etc/rc.local
Mine looks like this:
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. # Print the IP address _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi iwconfig wlan0 power off & sleep 5 & /usr/local/bin/pigpiod sleep 10 & /usr/bin/python /home/pi/pir.py & exit 0
-
@cruunnerr ok I think this is the right way and I understand it with the led pin on Pin16
… Just the flickering looks not good… I try a other power consumption……can I only fade the LEDs or can I make a light like a animation around my mirror?
Thanks for your help … And so fast.
This is a good forum for me…
Thx to all guys
-
Well, if i had to do that project gain, i would not choose the RGB-5050 stripes again…
I would directly get WS2812, because u just need one PWM Pin and with that you were able to do things like animations…
In another project (infinity table) i choosed this one and was pretty amused :)
-
Yes. But what is the difference between WS2812, WS2812, neopixel…
What is the best stripe with a good price…
I think a meter for 60 euro is to much…Greetings from Saxony, Germany
-
I have got this one. 5m with 60 LEDs per meter for about 17€
-
@cruunnerr very good deal.
But what is the difference in the product options… blue or black pcm … -
Mensch… du sprichst bestimmt deutsch…
Wie hast du die Temperatur Module angebunden?Etwa mit wlan esp’s ?