Use an analog to digital converter to get analog sensor readings on the Raspberry Pi

Gus over at PiMyLifeUp has done a great tutorial on using the “famous” MCP3008 analog-to-digital converter chip to read values from a light-dependent resistor. He goes through wiring it up and programming it using the spidev Python library. I prefer the GPIO Zero way of doing things now, but Gus’ way teaches you a little more about getting the values out. He also goes through setting up the MCP3008 inside MyDevices Cayenne, a great IoT platformRead how Gus does it here.

If you want to get into analog sensors, and don’t want to bother with all that wiring (!), keep an eye out for a Kickstarter coming soon featuring Alex Eames’ Analog Zero board.

3 comments for “Use an analog to digital converter to get analog sensor readings on the Raspberry Pi

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.