Connecting a sensor to microcontroller

Thread Starter

ashokraj

Joined Feb 1, 2018
137
Hello All,
i am working on Arm m0 microcontroller ( STM32). i would like to know how to configure a pin ( Is it GPIO, Input caputure, ADC ) . I am connecting a single axis accelerometer to the controller. How can i make a setup in a way microcontroller reads the output from sensor? i tried using ADC but it has a limitation of voltage from 2.6V to 3.3V.
 

dl324

Joined Mar 30, 2015
16,846
You can't use a digital input to read an analog input.

What is the voltage range you want to read? They typically have 0V as the lower limit.
 
Top