OttoDIY / OttoDIYPython

port of the OttoDIY Robot API (Otto9.h & Otto9Humanoid.h) to a micropython based platform
https://github.com/OttoDIY/OttoDIYPython
MIT License
21 stars 15 forks source link

batteader9.py for esp8266 & esp32 #5

Open sfranzyshen opened 4 years ago

sfranzyshen commented 4 years ago

batteader9.py

sfranzyshen commented 4 years ago

https://www.programcreek.com/python/example/101393/machine.ADC https://github.com/micropython/micropython/issues/2352 https://forum.micropython.org/viewtopic.php?t=3054

https://github.com/micropython/micropython/blob/073b9a5eb888b26be7ce4c65e9649b6c3857ba39/ports/esp8266/machine_adc.c#L41

sfranzyshen commented 4 years ago

using the built in read vcc adc will not work well for battery testing because all esp's are 3.3v and have a regulator ... a external circuit connected to the external adc should be designed into the OttoDIYESPShield