-
• #2
Not sure I understand the question?
While
analogRead
only outputs values 0-1, it's actually reading full-range 0-3.3v, so 0v->0 and 3.3v->1 - so you should be able to connect it direct? -
• #3
Not sure I understand the question?
Thanks, all good.
Great, so it is normalized to be the range of 0 - 1 - good to know - thanks.
Some analog infrared sensor have 0-3V output.
As I don’t want to use a voltage divider I was thinking if a reconfigure of analogRead for nrf52 boards could work to read sensor voltage directly.
Coding starts here
https://github.com/espruino/Espruino/blob/0a9f07a0fc21d1f989adaa8f35f74b29349307d6/targets/nrf5x/jshardware.c#L2648