Result: ADC (Analog to Digital Conversion) Using Capacitors to Smooth a Voltage Signal
Capacitors can be used to smooth a rough or noisy signal. In this case, an accelerometer is being read by the ADC. The ADC is seeing a very noisy signal from the accelerometer.
A 10 uf (micro farad) capacitor is used to smooth the signal coming into the ADC. The result is a smoother signal and the response is acceptable, no apparent lag.
A 100 uf capacitor is also tested to determine if the signal can be smoothed even more. The result from the 100 uf capacitor is a bit smoother, but not enough to justify the use of a larger capacitor. The lag is greater with this capacitor and would probably be unacceptable.
Much of the noise may be coming from the breadboard itself, or the internal clock and other functions of the microcontroller.
Comments and Additional Information
Have some code to share? Or additional information? Respond here:
You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.