Use digital I/O pins to measure analog voltage

Technology
Use digital I/O pins to measure analog voltage
RC_filter_ADC.jpg

Building a cool microcontroller-based project, and wish you had just one or two more analog inputs? Or perhaps you are trying to make something using the tiniest microcontroller possible, and don’t have any analog ports in the first place? Well, it turns out that you can use a couple of digital I/O pins and a single capacitor to build a crude analog to digital converters (ADC). Let’s Make Robots user Telefox has a nice overview about building a Low-cost ADC using only Digital I/O. The technique isn’t new, but it is a cool idea, and building your own would be a great way to learn how ADCs work.

If you are itching to squeeze as much performance out of your tinly microcontroller as possible, I second his recommendation of Microchip’s Tips ‘n Tricks manual. It’s a neat guide that I read when I was getting started with microcontrollers, and learned all sorts of cool tips from- including the technique that is now referred to as Charlieplexing.

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

Tagged
Discuss this article with the rest of the community on our Discord server!

ADVERTISEMENT

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 16th iteration!

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK