..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, powered by microcosm.
Report a problem