Page 1 of 1
ESP.getVcc() equivalent?
Posted: Sun Aug 27, 2017 2:21 pm
by jeepers01
Anyone know if is there an 8266 ESP.getVcc() equivalent implemented on the ESP32 platform yet?
Thanks
Re: ESP.getVcc() equivalent?
Posted: Thu Aug 31, 2017 10:03 am
by salasa
I use adc1_get_voltage() and connect Vcc to analog pin. But the function is not viable yet. This is the best i can do with 12bit resolution and 11db attenuation
Re: ESP.getVcc() equivalent?
Posted: Mon Oct 02, 2017 8:43 pm
by riataman
I second this, if there's a way to do this I would like to know it!
Re: ESP.getVcc() equivalent?
Posted: Tue Oct 03, 2017 9:01 pm
by tele_player
Add two resistors.
Re: ESP.getVcc() equivalent?
Posted: Wed Oct 04, 2017 3:04 am
by WiFive
Vdd33 is an input to adc2 which will be available hopefully soon with a coexist driver for wifi
Re: ESP.getVcc() equivalent?
Posted: Wed Oct 04, 2017 3:08 pm
by riataman
There's rom_phy_get_vdd33()
I'm going to test that.
Re: ESP.getVcc() equivalent?
Posted: Tue Mar 06, 2018 2:39 pm
by jeepers01
Did anyone find a working solution?
Thanks
Re: ESP.getVcc() equivalent?
Posted: Thu Mar 22, 2018 6:47 am
by rummyr
I have success with rom_phy_get_vdd33() , though it only seems to work when WiFi or BT is on.
If WiFi is on the reading is occasionally wildly out. With just BT on it is pretty stable.
Fortunately it doesn't take long at all to enable + disable BT in my setup() function before I enable WiFi.
My board has a voltage divider on an analogue input, and it too gives the occasional wildly out reading (in the opposite direction) with WiFi enabled, so it might be a just be a power issue in my specific setup.