analog-digital-converter

Convert ADC Bins into Voltage

Let's say I have a 12-bit Analog to Digital Converter (4096 bins). And let's say I have a signal from 0 to 5 Volts. What is the proper conversion formula to convert ADC bins into Volts? V = ADC / 4096 * 5 or V = ADC / 4095 * 5 Do I divide by 4096 because there are 4096 bins in the ADC? Or do I divide by 4095 because that is the h...

Figuring out the Nyquist performance limitation of an ADC on an example PIC microcontroller

I'm trying to evaluate the Nyquist performance limits of the A/Ds integrated in various PIC microcontrollers. The computations require parameters that I was expecting to find explicitly available directly from the datasheets, specifically the Tacq, Fosc, TAD, and divisor parameters. I've made some assumptions and proceeded with the Nyq...

Is it possible to use a microphone as a sensitive pressure sensor for a touch-screen?

This question is more about electronics than programming, but there's no StackExchange site for that yet (at least I was unable to find it). The idea is to open an electret microphone and glue a flat surface (for instance, a piece of glass) on it, and use an ADC to detect when someone presses it with the finger. The ADC will be attached...