logo elektroda
logo elektroda
X
logo elektroda

Project: WS2812 LED control with ESP8266, HC-SR501 and short-circuit button + HA

qwazi8977 684 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20208690
    qwazi8977
    Level 9  
    I've come up with a project like this I'm looking for help in implementing. As long as I can grasp the electronics, Arduino I am starting to learn.

    1. project assumptions: control of WS2812 led strip, about 17 leds (odd number).
    2 Elements in the circuit: 2 HC-SR501 motion sensors, 1 NO button.

    How it should work: light colour white, brightness level once programmed.
    Detector #1 lights up the LEDs one by one from first to last. After a set time, the bar is extinguished from both ends to the centre.
    Detector 2 lights the LEDs one by one from last to first. After the set time has elapsed, the bar is extinguished from both ends to the centre.
    The NO button lights the diodes from the centre to both ends. After a predetermined time (approximately 5-7 minutes), or by pressing the button again, the diodes are extinguished from ends to centre. Integration with the Home Assistant has the ability to switch the lights on and off, and information on the operating status.
    Thank you in advance for any help.
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 20260592
    Bruce^666
    Level 15  
    I don't know where you stand with homeasistant (I don't use it - I have nodered), but if you have it and it works for you, then read up on MQTT and you're good to go.
    MQTT and the exchange of information/commands is done. There are sample mqtt client projects ready to use on arduino.
    If you don't know HA, start with this, then mqtt. you will do it all and test it only on your computer.
    then run MQTT on esp. When all this will work for you, make hardware (these diodes are a bit of a drag) and the software is just a formality.
ADVERTISEMENT