# Enable (EN) pin switching based on voltage?

**URL:** <https://forum.arduino.cc/t/enable-en-pin-switching-based-on-voltage/1271219>\
**Category:** General Guidance\
**Created:** [June 12, 2024, 11:13pm UTC](https://forum.arduino.cc/t/enable-en-pin-switching-based-on-voltage/1271219 "2024-06-12T23:13:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mainewoodsandpond](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mainewoodsandpond/32/1126438_2.png) [@mainewoodsandpond](https://forum.arduino.cc/u/mainewoodsandpond)\
**Post date:** [June 12, 2024, 11:13pm UTC](https://forum.arduino.cc/t/enable-en-pin-switching-based-on-voltage/1271219/1 "2024-06-12T23:13:49Z")

</div>

Hello all,  
I have been trying to figure this out for hours and thought that I should probably just ask:).  
I am powering a ESP32 using batteries and a DC-DC converter, the converter has an EN pin that I want to use to turn the converter off if battery voltage (3 NiMh cells) drops below 3v (0%). MOSFETs seem like the logical approach except I only need a signal voltage and I am concerned that a MOSFET will not be accurate enough given the usual wide curve/range. So, I started looking at TVS diodes since they have a very finite cutoff but I am concerned about lifespan since this is not their intended use and they are not designed to pass current/voltage for extended periods of time (8+ hours in this case). I am sure that someone will have a much better idea? Thanks for reading

---

<div class="post-metadata">

**Author:** ![DrDiettrich](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/drdiettrich/32/219048_2.png) [@DrDiettrich](https://forum.arduino.cc/u/DrDiettrich)\
**Post date:** [June 13, 2024, 8:38am UTC](https://forum.arduino.cc/t/enable-en-pin-switching-based-on-voltage/1271219/2 "2024-06-13T08:38:22Z")

</div>

> [@mainewoodsandpond](#):
>
> turn the converter off if battery voltage (3 NiMh cells) drops below 3v (0%).

The controller has an brown-out interrupt that can be used to put the controller asleep or to turn off the power supply.

Also see the **Related Topics** below.

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [June 13, 2024, 2:54pm UTC](https://forum.arduino.cc/t/enable-en-pin-switching-based-on-voltage/1271219/3 "2024-06-13T14:54:05Z")

</div>

There are low power voltage monitors that may work for you. You may have to invert the output logic but using a small FET keeps the power very low.

---

<div class="post-metadata">

**Author:** ![mainewoodsandpond](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mainewoodsandpond/32/1126438_2.png) [@mainewoodsandpond](https://forum.arduino.cc/u/mainewoodsandpond)\
**Post date:** [June 15, 2024, 12:10am UTC](https://forum.arduino.cc/t/enable-en-pin-switching-based-on-voltage/1271219/4 "2024-06-15T00:10:19Z")

</div>

Thank you. This was the solution. I have never needed to use a voltage monitor before and did not know what to look for. I ended up using a SSP61C from Soproin Micro. Datasheet is [here](https://www.lcsc.com/datasheet/lcsc_datasheet_2404071515_Shanghai-Siproin-Microelectronics-SSP61CN3002MR_C277905.pdf) if anyone else runs across this and needs one. Thanks for your help

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 12, 2024, 12:10am UTC](https://forum.arduino.cc/t/enable-en-pin-switching-based-on-voltage/1271219/5 "2024-12-12T00:10:40Z")

</div>

Closed on December 12, 2024, 12:10am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
