Does your bathroom scale tell you your correct weight?
Analogue to digital converters can develop faults. Here's a self-testing method for the analogue input ports of the Arduino.
It's known that analogue to digital converters (ADC), such as those built in to microcontrollers, are or were sensitive to interference, and we should not assume they're reliable. We show how to test all the bits of a microcontroler's ADC by reading the voltage across a capacitor that's being charged and discharged via a resistor connected to a digital port.
Want to build a project?
Bring your design to life with the Elektor PCB Service, powered by Eurocircuits. Upload the project files and order professionally manufactured PCBs or assembled boards through a proven European production platform.
Supporting KiCad, Eagle, Gerber, and ODB++ formats, the service is suitable for everything from prototypes and validation builds to series production and volume manufacturing.
Made in Europe. Fast. Reliable. Professional.

Discussion (2 comments)