antonin-leclercq / f072_voltmeter

Demo program to read precise low voltages with an external 16 bit ADC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

f072_voltmeter

This project uses an STM32F072 Cortex M0 based MCU in combination with a CS5509 16 bit ADC to read voltages from 0V up to 3V in unipolar mode.
In this current configuration, fed by a 32.768kHz clock, the ADC sends data at 20 Samples/s through the SPI protocol.
The microcontroller then sends this data to the USART peripheral. For more precise applications, look at this application note

Pin connections

STM32F072 Connection
PA2 USART TX
PA3 USART RX
PA5 SPI SCK
PA6 SPI MISO
PA7 (unused) SPI MOSI
PC5 SPI CS
PC6 ADC CONV
PC7 ADC DRDY
PC8 ADC CAL
PA8 ADC CLOCK

About

Demo program to read precise low voltages with an external 16 bit ADC


Languages

Language:C 99.6%Language:Assembly 0.4%