Battery Voltage Measurement with MSP432

Thread Starter

qrb14143

Joined Mar 6, 2017
112
Hi everyone, this is my first thread so be gentle!

I am trying to monitor a 12V battery voltage using an MSP432 microcontroller ADC. The internal reference of the ADC is 3.3V so I am using a simple voltage divider to bring the 12V down to a suitable range. I am also using a unity gain buffer amplifier to provide some isolation between the battery and the microcontroller.
I'm looking for some general advice around bypass capacitors and where these should be placed. I would expect to add one on the power supply rail to the op amp and perhaps one to bypass the input voltage to ground? Should I also include one between the op amp output and the input to the ADC? If anyone has any rules of thumb for placing and sizing these it would be much appreciated.
The 12V battery drives an AC inverter so I would be interested in any advice to help reduce the "switching noise" present in the voltage measurement.
 

Attachments

Dodgydave

Joined Jun 22, 2012
11,307
I would put a 100nF and 10uF Capacitor across the 1K, and a 10uF on the gpio i/p..

The voltage selected is 2V with those resistors., you could just input the gpio directly to the resistors., and clamp it with a 3V6 zener.
 

Thread Starter

qrb14143

Joined Mar 6, 2017
112
I would put a 100nF and 10uF Capacitor across the 1K, and a 10uF on the gpio i/p..

The voltage selected is 2V with those resistors., you could just input the gpio directly to the resistors., and clamp it with a 3V6 zener.
Many thanks for your advice Dodgydave!

I'm a little bit unfamiliar with "clamp diodes", I assume you mean something like this which is taken from a Raspberry Pi example circuit?
 

Attachments

Top