-->
Page 1 of 1

Input adc

PostPosted: Tue May 24, 2016 11:51 pm
by artic1980
Hello to all I have to convert the signal of a pH sensor that goes from -0.5 to +0.5 I must convert it to connect it to the analog input ADC that if I'm not mistaken reads from 0 to + 1 .
how can I do?
Thank

Re: Input adc

PostPosted: Wed Jul 19, 2017 12:19 am
by Javigrop
Could you solve it? I'm struggling with the same, I will use a voltage divider I think

Re: Input adc

PostPosted: Thu Jul 20, 2017 11:07 pm
by trackerj
You can find more informations about ESP8266 ADC in these related articles:

ESP8266 Internal ADC
Step by step ADC input - voltage divider - the easy way example
ADC input - autorange frontend design

A good example to follow is also this one: Voltage Level Shifter and amplifier module for ACS712.

You will find there all the bits and pieces to design your own desired range high precision Voltage Level Shifter.

Happy breadboarding,
TJ

Re: Input adc

PostPosted: Fri Jul 21, 2017 5:27 am
by btidey
If you can tolerate losing some resolution in the interests of simplicity then you could just use a simple voltage divider plus an input resistor to offset negative bias of the sensor.

For example a 47K / 10K divider across the 3.3V to 0V and a 10K input from the sensor to the junction gives 0.09 -> 0.54V to feed into the ADC. This mean the swing from end to end is now only 0.45V rather than 1V.

This assumes the sensor has a low impedance compared to the 10K. Stability of the 3.3V rail is important.