I made a remote car battery voltage measurement with an ATtiny202 and BRKWS01 that transmits the measured values to the Sigfox network, which no longer works in my country in Europe.
Now I would like to do it with ATSAMR34 LoRaWAN Transceiver (Evoluation Kit) but first I need to solve the ADC measurement on SAMD21-XPRO Evaluation Kit.
Assignment:
What is your suggestion for a Resistor Voltage Divider (RVD), its power switch and ADC setup to measure the voltage once every hour?
Now I would like to do it with ATSAMR34 LoRaWAN Transceiver (Evoluation Kit) but first I need to solve the ADC measurement on SAMD21-XPRO Evaluation Kit.
Assignment:
- Voltage is measured once per hour after the MCU wakes up from sleep mode
- The maximum car battery voltage when charging with an alternator can be 15V
- ATSAMD21/R34 can have on the ADC input pin 3.3V only
- I want to reduce the voltage of 15 V to 3.3 V by resistive divider 12k and 3k3 (i.e. 1 mA), which will be switched by MOSFET for ADC measurement to avoid discharging the battery (measurement 1x/hr).
For a smaller input voltage, I wanted to use a Texas Instruments TPS22916BYFPR power switch.
SAMD21 ADC input has Rsample 3k5 and Csample 3.3 pF see pdf page 1017 and 781 for ADC in TDS. I am also considering to get some advice from "Getting the most out of the SAM D21's ADC".
I assume to use the 48 MHz MCU clock and set the prescaler for ADC to 32 i.e. ADC clock will be 1.5 MHz.
What is your suggestion for a Resistor Voltage Divider (RVD), its power switch and ADC setup to measure the voltage once every hour?