Dim Lights using ESPHome add on in Home Assistant

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024

Комментарии • 43

  • @RND-USA
    @RND-USA 7 месяцев назад +1

    This video is so great, thanks for making it! I’ve looking for a good one that covers PWM dimming with two-pin (non-individually addressable) LEDs that works with Home Assistant, or Homebrige, and or Home kit for ever and finally this one came up. I’m going to do this project today. 😂🙌

    • @kian.smarthome
      @kian.smarthome  6 месяцев назад +1

      You're welcome and thank you a lot. ❤❤

    • @RND-USA
      @RND-USA 5 месяцев назад

      Hello! Update/ question! So after having my pwm + light running great for a month 🎉, I put it in a new enclosure (10cm x 70cm x 30cm ) which is just a little smaller than the first box I had it in. The only rewiring that I did was temporarily disconnecting the final 5v output usb panel jack (that powers the led strip light sign) so I could install it into the enclosure. I reconnected the jack back to the rest of the circuit.
      But at some point after powering up the whole system again (between exactly after turning it on to at the most 1 hour later - I wish I knew but I got pulled away from paying attention), my S4 diode on my NodeMCU v2 burnt out.🤔 I discovered it about one hour after adding power to the circuit when I noticed the device was offline and opened the enclosure and smelled that dreaded DIY burnt diode smell.
      I’ve since gone back to watch your video to recheck the wiring of everything and all the wiring looks the same as yours /correct. 🤔🧐🤔
      Do you have any ideas on why my s4 might have burnt out?
      The only difference between your and my set up is that I'm using: from the wall, a 12v power supply (good quality Lacie Hard Drive 3A adapter) to => a Dual 5v voltage regulator / divider (LM2596) .
      From the voltage divider, the first 5v USB A 1A port goes to => usb micro cable => to the Node MCU usb micro port.
      From the second USB 5V 2A port => usb male to wires adapter positive and negative 18AWG wires => connected to the “vin +” and “vin -“ screw terminals of the mosfet (the VOUT terminals go to =>the final usb A connector that goes to the led strip sign).
      From the mosfet ,the soldered ground wire goes to the ->NodeMCUv2 ground pin (but on the bottom right side next to the 3v3 pin) and the pwm soldered wire goes to ->the D1 pin (upper right hand side).
      It is interesting to me that the burnt out S4 is on the lower left side next to the vin pin and ground pin that I did not use.
      Should I have used that left side ground pin instead of the one next to the 3v3 pin on the right side?
      In theory all of my grounds in the entire circuit have a common ground so that shouldn’t matter right?
      I have since tested the voltage divider’s outputs too and they read the same, 5v (as they should) . The led sign pulls 1A max.
      Any thought on what you think I should do before connecting this to a new esp8266 would be greatly appreciated! 😅
      I have considered, for the next experiment powering the new NodeMCU via the pos wire from the voltage divider to the ESP’s vin pin and the negative wire of the Mosfet to the ground pin next to the vin instead of using the USB micro cable, to cut out any possible loops but maybe that could cause different problems? 😅
      Thank you!!! 🙏

    • @RND-USA
      @RND-USA 5 месяцев назад

      I just tried swapping out the old, burnt NodeMCU with a newly flashed one and it seems to be working great. I kept all the wiring the same as when the the last one failed. The only difference is that I used a different usb micro cable (until I can figure out a way to test the old one). Still curious if you know how the S4 diode might have blown on the old model. Do you think putting it in a 10 x 70 x 30 cm enclosure was a bad idea?

    • @kian.smarthome
      @kian.smarthome  5 месяцев назад

      @@RND-USA were you sure about connections and short circuits?

    • @RND-USA
      @RND-USA 5 месяцев назад

      @@kian.smarthome it’s really strange I never figured out how the damage happened. I hooked a new esp up the the old circuit and everything has been fine. I even put it into the enclosure. So maybe I just had bad luck with an esp. Thanks so much for your video btw. It was really hard for me to find a video on esp pmw dimmers for monochrome lights (2-wire). I’ve been meaning to see if anyone has made some with HomeSpan yet because HomeSpan is homekit compatible without the need of Home Assistant. These dimmers would make nice gifts. This video is best!

  • @darrentsai592
    @darrentsai592 4 месяца назад

    Great video! Can you use an IRF520 mosfet too? Or is there a reason why the HW517 mosfet module is better?

    • @kian.smarthome
      @kian.smarthome  4 месяца назад

      For your answer the data of IRF520 must be checked. but I think there should be no issue.

  • @DylanOil
    @DylanOil 5 месяцев назад

    Great video - been looking for a concise HA-ESP32 description on how to use PWM for a while. In my case 12V pump speed control. It would be nice if you explained a bit about pulse width and frequency. I get it but might help others.

    • @kian.smarthome
      @kian.smarthome  5 месяцев назад

      in a nut shell, frequency refers to the times the signal is high in one second. so with the longer high pulse, you'll have shorter frequency.
      I hope I could have conveyed the message as it is hard for me to describe it within a few words.

  • @DonParlor
    @DonParlor 2 года назад +1

    As always, very informative and well made!

  • @modulo-engineering
    @modulo-engineering Год назад +1

    Hi, nice short work. do you know how to implementate in Yaml. for example an additional button on a gpio pin for dimming ? short press on off, long press dimming up, again longpress dimming down. thx for Feedback.

    • @kian.smarthome
      @kian.smarthome  Год назад

      Watch this video and inform me if it helped you:
      ruclips.net/video/INgOB2DxjRw/видео.html

  • @soumynonareverse7807
    @soumynonareverse7807 10 месяцев назад

    Thanks for the video. What do you do if I want to connect this to E27 LED bulbs that uses 230V?

    • @kian.smarthome
      @kian.smarthome  10 месяцев назад

      Thanks.
      Only Change your Converter. It must work switch 230V

  • @silviocaltabiano5981
    @silviocaltabiano5981 Год назад +1

    Tx for the superb video. It helped me understand how to wire esp via MOSFET to led. Can this be used for cod led strip?

    • @kian.smarthome
      @kian.smarthome  Год назад

      you're welcome. "cod LED"?

    • @CyrusHostetler
      @CyrusHostetler Год назад

      @@kian.smarthome I assume he means FCOB LED strips. I have been trying to use these because they are flexible, thin, and defused 12v LEDs. But I cant seem to get it to work. Flickering and my ESP32 cannot control the light.

    • @kian.smarthome
      @kian.smarthome  Год назад

      @@CyrusHostetler So yes. you can use it for FCOB LED.
      Flickering means the power is not sufficient.

  • @cristianocarvalho5743
    @cristianocarvalho5743 11 месяцев назад

    How would you place this dimmer on the Nextion to control it?

    • @kian.smarthome
      @kian.smarthome  11 месяцев назад +1

      Watch this video, I hope it helps you.
      ruclips.net/video/3ZVUakue2zA/видео.htmlsi=WeSisTqjxV7ssbqe

  • @keshav2609
    @keshav2609 Год назад

    Hi thanks for this great tutorial 👍 i was thinking of this code can manage fan speed... Heard that it should work... Can you confirm?

    • @kian.smarthome
      @kian.smarthome  Год назад

      Fir sure Yes, Its tutorial is:
      ruclips.net/video/zgmU4TV2MZ4/видео.html

  • @McL-dz2st
    @McL-dz2st 6 месяцев назад +1

    Nice, thank you 🙂

  • @jfrras1065
    @jfrras1065 Год назад

    تشکر . عالی

  • @alkhashtee
    @alkhashtee 2 года назад

    Great Video Ali, but I have question like how can I show the brightness level on a GAUGE card on the DASHBOARD?

    • @kian.smarthome
      @kian.smarthome  2 года назад +1

      thank you. by adding correct card to dashboard

    • @alkhashtee
      @alkhashtee 2 года назад

      @@kian.smarthome Yes thank you I did that by using LIGHT card, but now how can I read it for automation purposes, like through Node-RED?

  • @inakiferreiramartin180
    @inakiferreiramartin180 Год назад

    Buenas tardes se puede utilizar un interruptor físico con robotdyn ac dimmer en esp home en una placa esp 32

    • @kian.smarthome
      @kian.smarthome  Год назад

      Hi, sure, I can do that for you if you want in Membership channel. Inform me if you agree to join the membership, please.

    • @inakiferreiramartin180
      @inakiferreiramartin180 Год назад +1

      @@kian.smarthome claro que si quiero ser miembro del canal

    • @inakiferreiramartin180
      @inakiferreiramartin180 Год назад +1

      Gracias por el canal

    • @inakiferreiramartin180
      @inakiferreiramartin180 Год назад

      Intento Colocar Un Interruptor Mecánico Pero No Lo Consigo A Ver Si Me Echas Una Mano Gracias

  • @sdelgadodelgado
    @sdelgadodelgado Год назад +1

    Good job

  • @t33jaytube
    @t33jaytube 2 года назад

    Will this cause flickering when taking video under this light?

  • @EvgenMo1111
    @EvgenMo1111 2 года назад +2

    thanks friend, that's it! it works

  • @Mascka666
    @Mascka666 2 года назад

    Leds not so bright. I suppose that only 8 or 9v get to them

  • @PiyushNikam
    @PiyushNikam 2 года назад

    Nice helpful video 👍