Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By cal
#21081 Moin,

for what it's worth:

The SDK from espressif as distributed here (http://bbs.espressif.com/viewtopic.php? ... 03cb04f9a6) contains a documentation about using the ADC.
The section in the API doc talks about the two different operation modes:

- reading the the operating voltage
- reading tout (0-1V)

Cal
User avatar
By Tawhiz20
#21123
bernd331 wrote:Code is only the fragments you need. Not a running program. But with this, I get reliable values from the ADC. Arduino IDE is 1.6.4. Greetz, Bernd

THNX a bunch.. your code-snipet helped a lot and now it is working fine (even on my olimex)..
User avatar
By tytower
#21124 Cal Ive d/l it twice now just to find a zip file full of stuff that will take hours to read . If you have a reference to this , especially the 0-1Volt bit can you copy it and just post it here or maybe give a file name for where you found it discussed please?
User avatar
By cal
#21136 ./document/EN/2C-ESP8266__SDK__Programming Guide__EN_v1.1.1.pdf
Code: Select all5.
system_get_vdd33
Function:
Measure the power voltage of VDD3P3 pin 3 and 4, unit:1/1024 V
Note:
• system_get_vdd33 can only be called when TOUT pin is suspended
• The 107th byte in esp_init_data_default.bin(0〜~127byte)is named as
“vdd33_const“ , when TOUT pin is suspended vdd33_const must be set as
0xFF, that is 255
Prototype:
uint16 system_get_vdd33(void)
Parameter:
none
Return:
power voltage of VDD33, unit:1/1024 V
6.
system_adc_read
Function:
Measure the input voltage of TOUT pin 6, unit:1/1024 V
Note:

system_adc_read is only available when wire TOUT pin to external
circuitry,Input Voltage Range restricted to 0 ~ 1.0V.

The 107th byte in esp_init_data_default.bin (0〜~127byte) is named as
“vdd33_const”, and when wire TOUT pin to external circuitry, the
vdd33_const must be set as real power voltage of VDD3P3 pin 3 and 4.

The range of operating voltage of ESP8266 is 1.8V~3.6V,the unit of
vdd33_const is 0.1V,so effective value range of vdd33_const is [18,
36].