Hi,
My I2C sensor operates at 2.8 V, therefore I need to add the LDO to get from 3.3 V down to 2.8 V. And the I2C sensor requires max 2 mA for operation. GPIO from esp32 can supply up to 40 mA.
I would like to avoid having LDO powered when I don't need the sensor in order to minimize the current.
Therefore I would like to use the GPIO from the esp32 to power the LDO directly. So when GPIO is 0, neither LDO nor sensor will consume any current.
1. Can I do that? Is this ok practice?
2. For LDO to work I need to put 1 uF capacitor between the Vin, GND (as in the attached schematics). What will happen when I set GPIO to 0? Will the capacitor discharge problematic?
Attached screenshot of how to connect the LDO - Vin would be connected to GPIO from esp32, Vout is Vdd for I2C sensor.
Thanks so much!
LDO and I2C sensor powered directly from the GPIO
-
- Posts: 6
- Joined: Tue Oct 23, 2018 9:49 am
-
- Posts: 9766
- Joined: Thu Nov 26, 2015 4:08 am
Re: LDO and I2C sensor powered directly from the GPIO
It should work. I'd personally add a series resistance between the GPIO and the LDO/capacitor of, say, 100 ohm or so, to limit the inrush current.
-
- Posts: 6
- Joined: Tue Oct 23, 2018 9:49 am
Re: LDO and I2C sensor powered directly from the GPIO
@ESP_Sprite. Appreciate your feedback. Thank you.
Who is online
Users browsing this forum: No registered users and 106 guests