With all the amazing and wonderful things a Raspberry Pi can do, it is sorely lacking a dedicated ADC chip. Sure, you can wire up an ADC via SPI or ever I2C with a little work, but still. It would be nice to have access to an Analog to Digital converter without having to go through the trouble. Fortunately, [Hussam] has figured out a way to do just this.
Using a comparator, two resistors, a single capacitor and a few line of code, [Hussam] managed to get an active ADC working on his Raspberry Pi. He’s using the PWM1 and … Read the rest