Thanks for the reply and support!
I used the pico shim v1 with the ESP8266.
The plan is to support old standard zero to 180 ohm analog fuel tank level gauges. (I did the same with Arduino, but it was not reliable enough and hang after awhile and even watchdog did not work.)
To measure the resistor sensor it would be connected like this:
The idea was to use 20 ohm resistor as Rref to give enough value range for analog measurement as the sensor resistance varies between 0 and 180 ohms.
Do you see any problems in this plan or ideas for improvement?
The same wiring would be done for all ADC pins available to enable several sensors to be read.
Now I would like to know if there is the resistor sensor connected or not.
And then make another standard sensor that works from 30 to 240 ohms range as an alternative option that would be selected with e.g. dip switch for changing the Rref or telling the option to Espruino as digital input so that the values can be scaled accordingly.
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.
Thanks for the reply and support!
I used the pico shim v1 with the ESP8266.
The plan is to support old standard zero to 180 ohm analog fuel tank level gauges. (I did the same with Arduino, but it was not reliable enough and hang after awhile and even watchdog did not work.)
To measure the resistor sensor it would be connected like this:
|------Sensor-----A1 pin
|
|----------------GND pin
|
|------Rref------+3.3v pin
The idea was to use 20 ohm resistor as Rref to give enough value range for analog measurement as the sensor resistance varies between 0 and 180 ohms.
Do you see any problems in this plan or ideas for improvement?
The same wiring would be done for all ADC pins available to enable several sensors to be read.
Now I would like to know if there is the resistor sensor connected or not.
And then make another standard sensor that works from 30 to 240 ohms range as an alternative option that would be selected with e.g. dip switch for changing the Rref or telling the option to Espruino as digital input so that the values can be scaled accordingly.