what to use ADC or DAC?

Thread Starter

ashokraj

Joined Feb 1, 2018
151
Hello All,
I am working with a single axis industrial accelerometer. The output from it is analog signal. it needs a constant current of 2 to 4 mA and voltage of 18 to 30V. The output from it is an analog signal.
My question is while programming micro controller pins. do I have to assign a pin as an analog to digital converter or digital of analog converter. when i have checked the output from the sensor VDC in multimeter it is fluctuating between 2 to 3V, similar situaion is observed when I have changed the DMM( multimeter) settings to VAC. the output voltage from sensor is in mV. In order to avoid DC voltage going into an assigned pin in microcontroller. I have kept a capacitor in series with configured pin of microcontroller.

My question is do I have to configure that pin as ADC or DAC?
 

MrChips

Joined Oct 2, 2009
34,630
If you want to convert an analog voltage to discrete numbers you use an ADC.
Make sure that the input voltage range does not exceed the range acceptable to the ADC.

You do not want to put a capacitor in series with the ADC input pin. If you do that you will not be able to measure DC voltages from your sensor.
 
Top