Anyone know if is there an 8266 ESP.getVcc() equivalent implemented on the ESP32 platform yet?
Thanks
ESP.getVcc() equivalent?
Re: ESP.getVcc() equivalent?
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 (37.93 KiB) Viewed 19212 times
Re: ESP.getVcc() equivalent?
I second this, if there's a way to do this I would like to know it!
-
- Posts: 90
- Joined: Sun Jul 02, 2017 3:38 am
Re: ESP.getVcc() equivalent?
Add two resistors.
Re: ESP.getVcc() equivalent?
Vdd33 is an input to adc2 which will be available hopefully soon with a coexist driver for wifi
Re: ESP.getVcc() equivalent?
There's rom_phy_get_vdd33()
I'm going to test that.
I'm going to test that.
Re: ESP.getVcc() equivalent?
Did anyone find a working solution?
Thanks
Thanks
Re: ESP.getVcc() equivalent?
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.
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 133 guests