Skip to content

vcc = ESP.getVcc() inaccurate in 2.4.0-rc2 version? #3800

@sam77277

Description

@sam77277

Basic Infos

Hardware

Hardware: ESP-12
Core Version: 2.4.0-rc2

Description

I connected A0 pin to 3V pin and connected power to 3V pin. The value of "vcc = ESP.getVcc()" in 2.4.0-rc2 version is inaccurate, but the value in 2.3.0 version was accurate that was the same voltage as power. It was wired.

Settings in IDE

Module: ?Generic ESP8266 Module?
Flash Size: ?4MB?
CPU Frequency: ?80Mhz?
Flash Mode: ?qio?
Flash Frequency: ?40Mhz?
Upload Using: ?SERIAL?
Reset Method: ?nodemcu?

Sketch

ADC_MODE(ADC_VCC);

void setup() {
   Serial.begin(115200);
}

void loop() {
int vcc = ESP.getVcc();
Serial.println(vcc);
delay(1000);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions