srg74 / WLED-wemos-shield

Wemos D1 Mini (ESP8266) or Wemos ESP32 D1 Mini (ESP32) based universal shield for WLED firmware
https://github.com/srg74/WLED-wemos-shield
MIT License
501 stars 69 forks source link

Overvoltage protection #10

Closed w00000dy closed 4 years ago

w00000dy commented 4 years ago

Hey, are you interested in adding an overvoltage protection?

srg74 commented 4 years ago

Over voltage protection is not simple circuit and no TH version. First it will make project more expensive and more complicated. Both issues is against idea to make as simple as possible and not expensive.

w00000dy commented 4 years ago

What if you use this part as DC DC converter: Digikey: 1589-1488-ND

This would have some advantages:

  1. We don't need a power selector any more
  2. It doesn't matter if you connect 5V or 12V power supply
  3. You cannot destroy your WEMOS by setting power selector to wrong voltage
srg74 commented 4 years ago

What if you use this part as DC DC converter: Digikey: 1589-1488-ND

This would have some advantages:

  1. We don't need a power selector any more
  2. It doesn't matter if you connect 5V or 12V power supply
  3. You cannot destroy your WEMOS by setting power selector to wrong voltage

Looks like you found a golden drop-in replacement! But only one downside is a price :( So actually we can add this part as more expensive alternative and eliminate header for selector and add an option to make a permanent wire jumper for universal voltage input. If you want you can add this option to Wiki and I will change BOM part as alternative. Only my worry is very low current 300mA. For ESP32 maybe near a limit, they very hunger sometime :)

w00000dy commented 4 years ago

Over voltage protection is not simple circuit and no TH version. First it will make project more expensive and more complicated. Both issues is against idea to make as simple as possible and not expensive.

Hey, over voltage is not very complicated. You can use a Gas Discharge Tube Arrester or a Varistor or both. 😄 Both parts are not very expensive. They are not very complicated to solder. You can mount them through hole. And now we have options so you can make it optional to add an overvoltage protection. There are many easy guides in the internet how to use a Gas Discharge Tube Arrester or Varistor. I hope this is useful. 😃

srg74 commented 4 years ago

I would agree with you if proposed parts will be used to protect hi voltage AC input 120-240V :)

w00000dy commented 4 years ago

With Gas Discharge Tube Arrester you can only protect from DC Overvoltage. But with a Varistor you can protect from both.