Is there any specific hardware connection for ADC signal to setup for a AC signal ? My code works with a potentiometer but not with AC signal (updated with image), Solved
I am trying to convert a signal from accelerometer to a digital value. The output coming from accelerometer is in mv so I have added a non inverting voltage amplifier, then too I am getting a dc voltage at the output of opamp so I have added two capacitors to eliminate dc voltage in my signal. Here are my issues,
When I tried have connected a potentiometer and tried, I didnt find any issues, ADC is working perfectly but when I am trying to connect the output from the capacitor to PA1 and ground, I could not able to get the reading from controller!!!! I mean the voltage across capacitor is dropping to mV . I have measured the voltage across capacitor in oscilliscope by not connecting to PA1 its working perfectly, peak to peak is coming at 4V when vibrating.. but the moment I connect the ouput from capacitor to PA1 and measure the voltage across PA1 to GND. its dropping to mV in which i cannot do the data acquisition.
Are there any hardware connections/ biasing I need to do for acquiring an AC signal?
I am using a STM32F429 discovery board, Keil, ADC is in interrupt mode. Kit is powered through USB via computer.
https://drive.google.com/open?id=1S_W7tXZgMwFcIQ1TJsEK5ybjGHp9yLB4
