Best or any way to get battery before regulator
-
If I use this code:
#if defined(__AVR_ATmega2560__) analogReference(INTERNAL1V1); #else analogReference(INTERNAL); #endifAnd try to use the analog pins for this soil moisture sensor the values I get from the other analog pins goes all crazy with its values
-
If I use this code:
#if defined(__AVR_ATmega2560__) analogReference(INTERNAL1V1); #else analogReference(INTERNAL); #endifAnd try to use the analog pins for this soil moisture sensor the values I get from the other analog pins goes all crazy with its values
@Martin-Tellblom don't use the internal reference, stick to the external (default)
-
@AWI How do I do that? This is my first battery node tryout :)
-
@AWI How do I do that? This is my first battery node tryout :)
@Martin-Tellblom Try to comment out the
//analogReference(INTERNAL1V1); -
@AWI So that should be enought? I'll try that
-
@AWI So that should be enought? I'll try that
analogReference(DEFAULT);is the alternative for using a 5v (vcc) reference. -
@AWI But that is always 5V until the end of the battery since I use a step-up or am I thinking completely wrong here
-
@AWI But that is always 5V until the end of the battery since I use a step-up or am I thinking completely wrong here
@Martin-Tellblom The 5 volt is the reference... the analog pin is where you measure with respect to the reference. Try reading this article
-
@Martin-Tellblom The 5 volt is the reference... the analog pin is where you measure with respect to the reference. Try reading this article
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