Always reading same battery voltage
-
@mmarkvoort The ADC of the esp32 is known to be very bad. If if you apply a perfectly good signal (stable, low impedance), the reading will fluctuate a lot. That's why in the sample code the average is used.
A capacitor will only help if placed directly at P16. and it must be a low impedance capacitor (ceramic, short leads). -
Aha, so it isn't me :)
Thanks, I thaught I did something wrong.Does it matter if you have sensors connected to the LoPy?
-
@mmarkvoort Other sensors do not hurt. When USB is connected, the battery voltage is higher, since it will be charged at that time.
And yes, if the voltage changes when you touch the connector, then you have a bad connector. By maybe that was just coincidence with the other fluctuations. -
Oke, will make a test program.
When USB is connected it indeed has a higher voltage :').
That was another mistake/issue I had :).Thanks a lot, again!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login