..you are right... it was .244 something mA ... dooooh;;;;
Sure, direct mosfet works too... isolation/statics/spikes may be a question... depending what the powering is. To control the mosfet though - I guess you are talking N - it must then be between the voltage divider resistors, does it? It cannot be 'at the really low end/bottom', otherwise the analog pin would get's the VBat 'tickle'. Also, you might loose a bit of range by making RES1 even higher or RES2 lower to force robust switching, but that would probably not hurt.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
..you are right... it was .244 something mA ... dooooh;;;;
Sure, direct mosfet works too... isolation/statics/spikes may be a question... depending what the powering is. To control the mosfet though - I guess you are talking N - it must then be between the voltage divider resistors, does it? It cannot be 'at the really low end/bottom', otherwise the analog pin would get's the VBat 'tickle'. Also, you might loose a bit of range by making RES1 even higher or RES2 lower to force robust switching, but that would probably not hurt.