ESP.getVcc() equivalent?

jeepers01
Posts: 5
Joined: Mon Aug 14, 2017 12:14 pm

ESP.getVcc() equivalent?

Postby jeepers01 » Sun Aug 27, 2017 2:21 pm

Anyone know if is there an 8266 ESP.getVcc() equivalent implemented on the ESP32 platform yet?
Thanks

salasa
Posts: 3
Joined: Mon Jun 12, 2017 2:54 pm

Re: ESP.getVcc() equivalent?

Postby salasa » Thu Aug 31, 2017 10:03 am

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
Attachments
ADC.jpg
ADC.jpg (37.93 KiB) Viewed 8662 times

riataman
Posts: 4
Joined: Mon Oct 02, 2017 8:39 pm

Re: ESP.getVcc() equivalent?

Postby riataman » Mon Oct 02, 2017 8:43 pm

I second this, if there's a way to do this I would like to know it!

tele_player
Posts: 90
Joined: Sun Jul 02, 2017 3:38 am

Re: ESP.getVcc() equivalent?

Postby tele_player » Tue Oct 03, 2017 9:01 pm

Add two resistors.

WiFive
Posts: 2967
Joined: Tue Dec 01, 2015 7:35 am

Re: ESP.getVcc() equivalent?

Postby WiFive » Wed Oct 04, 2017 3:04 am

Vdd33 is an input to adc2 which will be available hopefully soon with a coexist driver for wifi

riataman
Posts: 4
Joined: Mon Oct 02, 2017 8:39 pm

Re: ESP.getVcc() equivalent?

Postby riataman » Wed Oct 04, 2017 3:08 pm

There's rom_phy_get_vdd33()

I'm going to test that.

jeepers01
Posts: 5
Joined: Mon Aug 14, 2017 12:14 pm

Re: ESP.getVcc() equivalent?

Postby jeepers01 » Tue Mar 06, 2018 2:39 pm

Did anyone find a working solution?
Thanks

rummyr
Posts: 5
Joined: Thu Mar 22, 2018 6:37 am

Re: ESP.getVcc() equivalent?

Postby rummyr » Thu Mar 22, 2018 6:47 am

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.

Who is online

Users browsing this forum: No registered users and 12 guests