3
\$\begingroup\$

I have an ADS1110 that should read a battery's voltage (2.8V - 4.2V).

I have built this schematic:

enter image description here

The problem is, I connected the battery's negative terminal to VIN- and the PCB is already assembled and everything.

What are my options now? I thought of shorting VIN- and GND together, but maybe that's just the dumbest idea ever.

Should I try to damage the trace from the negative terminal of the battery to the VIN- pin and connect that to my GND?

My current schematic:

enter image description here

\$\endgroup\$
0

2 Answers 2

3
\$\begingroup\$

You can use the ADS1110 in single-ended mode by connecting VIN- to GND; the measuring range will then be 0 to 2.048 V, see figure 8 in the datasheet. You may need a voltage divider to bring the battery's voltage you want to measure down into that range.

The ADS1110 has an internal reference, so it doesn't use VDD as a reference, and should be able to measure its own VDD with an appropriate voltage divider.

I don't know if that is what you want, i.e. if the battery voltage you are trying to measure is from the same battery that powers the IC's VDD. If this is the case, I don't see a problem with connecting the battery's minus terminal to both GND and VIN-, as long as all voltages stay within the specs as stated in the datasheet.

\$\endgroup\$
3
  • \$\begingroup\$ Hm I thought that I could measure the batterys voltage without a voltage divider because of the internal voltage reference. \$\endgroup\$ Commented Apr 23, 2023 at 14:29
  • 1
    \$\begingroup\$ The battery's voltage can be larger than the reference voltage, especially if you measure in single-ended mode. A voltage divider also limits the current into the ADC when something goes wrong, providing some (not full) protection. For differential mode, and if you want to use the full differential range (Vin+ - Vin-), you will also have to do some voltage mapping, see other answer for detail. \$\endgroup\$
    – ocrdu
    Commented Apr 23, 2023 at 18:34
  • \$\begingroup\$ Would I also be able to measure current with the new schematic I added? \$\endgroup\$ Commented Apr 26, 2023 at 8:42
3
\$\begingroup\$

The problem is, I connected the battery's negative terminal to VIN- and the PCB is already assembled and everything.

The PCB will have to change, since connecting any high-power source directly to the A/D inputs is ill advised. You need some sort of overcurrent protection should the ADC fail, or should there be transients on the battery that will kill the ADC, turn it into a resistor, and proceed to destroy the MCU.

It is fine to start prototypes with a PCB layout, as - if you're quick at it, and have many products in the pipeline - it will speed things up vs. sticking wires into holes on a breadboard. But that doesn't mean you should expect that PCB to survive unchanged after you began to test it - especially if you don't have much experience with such circuits and can't be quite sure based on past projects that there's a good chance it will work as-is.

So, it's all right as long as you treat the PCB as the prototype it is - and expect, as you should, that there will be a 2nd PCB in the works after you correct mistakes.

The connection of battery's (-) terminal to GND is OK for basic functionality. But: ADS1110's single-ended input range is 0-2.048V. So, you'd be wasting one bit of resolution by connecting the battery directly to the ADC.

We need to map the 0-5V voltage to the differential input range of the ADC. Ideally, 0V should be about -2V, and 5V should be about +2V differential.

Using a 5V ADC supply, we can have the following circuit:

schematic

simulate this circuit – Schematic created using CircuitLab

It doesn't use the full ADC input range, since there's no amplification available, but it does the job. Similarly, we can make it work for a 3.3V VCC:

schematic

simulate this circuit

An alternative approach could offset the input voltage - the resolution is the same as above, but the stability of the 3.3V supply is not influencing the measurement anymore. A lower current reference such as LM385-2.5 etc. should be used to lower the quiescent current. There are excellent, modern, micropower references that could be used for that purpose.

schematic

simulate this circuit

Alternatively, we could use a double op-amp to convert the single-ended battery input to a fully differential voltage:

schematic

simulate this circuit

The zero adjustment should be set at battery voltage of 3.5V: the ADC input voltage should be 0V differential (between V+ and V-).

Using a thick-film or thin-film array for R1..R8 improves the stability of the circuit, as well as minimizing the unadjusted error, since the resistor ratios in an array typically match better than their absolute values, even if the array's ratio tolerance is not specified.

OA1, OA2 are two halves of just about any low power rail-to-rail input/output (RRIO) op-amp. It could be a micropower or nanopower type with 40-50kHZ GBW, or higher.

\$\endgroup\$
2
  • \$\begingroup\$ Thank you very much for your detailed answer. Yes you are correct, I use the assembled PCB's as a protype. This is like the 4th Version and I always get something wrong haha. Now you say, that connecting Batterys negative terminal to GND is no problem, but I would waste a bit. Can you elaborate on that, I do not quite understand that. I do have two GND planes in my 4 layer Stack up, and you say it is a good idea to connect Batterys negative terminal to my board GND?My other question would be, if I wire it exactly like the 3.3V version above, how would I map the output of the ADC to correct mV? \$\endgroup\$ Commented Apr 23, 2023 at 18:52
  • \$\begingroup\$ I added a picture of my ADS1110 schematic, could you kindly check if it is correct? :) \$\endgroup\$ Commented Apr 24, 2023 at 21:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.