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