i was able to successfuly read the adc values from 0 to 4v using microcontroller. Now requirement has come to read also from negative 0 to 4. how to read with adc I was finding some voltage divider circuit. can you please help me to find the exact circuit.
sorry for the delay iam searching for the details of the sensor and schematics as soon as I get it I will post it. I really need the schematic diagram for this.
sorry for the delay iam searching for the details of the sensor and schematics as soon as I get it I will post it. I really need the schematic diagram for this.
And we need things like what supply voltages do you have available, how stable are the supplies, the frequency response of the sensor, what minimum input impedance the sensor can drive, sample rate of the ADC, etc.
That voltage divider is not suitable for feeding negative voltages into the microcontroller ADC, unless the microcontroller is powered from a split rail, e.g. ±2.5V. If you add a third resistor between the ADC pin and a stable positive voltage (e.g. VCC), you can measure both positive and negative voltages.
I have to agree, you need a BIASED voltage divider, biased with a positive voltage. The positive voltage is required so that when the input is minus volts the output is close to zero, and the uC code interprets that again as a negative, scaled voltage.
That voltage divider is not suitable for feeding negative voltages into the microcontroller ADC, unless the microcontroller is powered from a split rail, e.g. ±2.5V. If you add a third resistor between the ADC pin and a stable positive voltage (e.g. VCC), you can measure both positive and negative voltages.
What do you mean here? What kind of impedance do you expect from the +/- 15v source? Any resistance will maintain linearity, but we could loose a lot of range, if that's what you mean.
hi Ian,
The circuit you posted will give +/-5V swing from a +/-15V source, but how will a MCU's ADC, assuming the MCU is powered from +5V, handle the -5v range.?
E
What do you mean here? What kind of impedance do you expect from the +/- 15v source? Any resistance will maintain linearity, but we could loose a lot of range, if that's what you mean.
hi Ian,
The circuit you posted will give +/-5V swing from a +/-15V source, but how will a MCU's ADC, assuming the MCU is powered from +5V, handle the -5v range.?
E
a. I have attached the circuit from sensor to ADC of micro this part of the circuit is part of PCB and unfortunately i cannot modify this additional circuit i have to interface with this.
b. The data sheet of the ADC of the micro.
c. The data sheet of the sensor.
The micro works on 5V power source. I have programmed the ADC for 12bit. Now i want to read the sensor voltages from -4V to +4V which are below the 5V source. Please also suggest me some circuit in case any new sensor range is from -10V to +10V or any generic range.
Thanks in advance.
I had little difficulty attaching the docs, but finally i could do it.
hi e78,
I would suggest a rail to rail OPA configured to level shift the +/-10V signal to say 0V thru +5V, assume that +2.5V input to the ADC is equivalent to 0V input.
The PIC program could then output the corrected +/- ADC values.
E