RasPiO Analog Zero
By Russell Barnes. Posted
It makes the reading of analogue sensors as easy as Pi
Advertisement
Get started with Raspberry Pi – everything you need to know to start your journey!
While its mini form factor makes the Analog Zero a perfect partner for the Pi Zero, it’s a great way to add easy-to-use analogue inputs to any Raspberry Pi model. Supplied as a kit, it’s based around the MCP3008 analogue-to-digital converter (ADC) chip, but avoids all the intricate wiring usually required when using an ADC.
The full article can be found in The MagPi 48 and was written by Phil King
The great thing about using this particular chip is that it’s already supported by the GPIO Zero Python library with its own class, so it’s a doddle to start writing programs to read and compare up to eight analogue inputs at once. Just use jumper wires to hook up your analogue sensors – temperature probes, light-dependent resistors, humidity sensors, gas detectors, potentiometers etc. – to any of the eight inputs in a female header, then write a few lines of code to get instant readings. Voltages up to 3.3V can be read directly; if the input is higher, you’ll need to use a voltage divider made from resistors. Potential projects include a digital thermometer, voltmeter, and weather station, and kits for all of these were offered as part of the Analog Zero’s successful seven-day Kickstarter campaign.
If you require greater accuracy than the MCP3008’s 10 bits, you always have the option of swapping it out for your own 12-bit MCP3208 ADC chip for extra precision, since it fits the same socket and is also supported by GPIO Zero. Even so, the MCP3008’s 1,024 steps should be enough for most projects.
Although the Analog Zero makes things easier once assembled, note that you do have to do a bit of soldering beforehand, but everything’s well marked out on the board. As well as the chip socket, you’ll need to solder on the small female header for the analogue inputs, a couple of capacitors, a jumper switch, plus a 40-way female header to connect to the Pi’s GPIO port. Handily, the board features through-holes for 25 GPIO pins, along with a mini 54-point prototyping area. There’s also the option to create a sleeker version by soldering the chip directly to the board and using surface-mount capacitors on the rear.
Last word
4/5
We’d have appreciated a pre-assembled option, but once you’ve soldered the kit components onto the board, the Analog Zero really does make it much easier to use multiple analogue inputs for projects, particularly when using GPIO Zero.
Russell runs Raspberry Pi Press, which includes The MagPi, Hello World, HackSpace magazine, and book projects. He’s a massive sci-fi bore.
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
Get started with Raspberry Pi in Raspberry Pi Official Magazine 161
There’s loads going on in this issue: first of all, how about using a capacitive touch board and Raspberry Pi 5 to turn a quilt into an input device? Nicola King shows you how. If you’re more into sawing and drilling than needlework, Jo Hinchliffe has built an underwater rover out of plastic piping and […]
Read more →
Win one of three DreamHAT+ radars!
That’s right, an actual working radar for your Raspberry Pi. We reviewed it a few months ago and have since been amazed at some of the projects that have used it, like last month’s motion sensor from the movie Aliens. Sound good? Well we have a few to give away, and you can enter below. […]
Read more →
RP2350 Pico W5 review
It’s Raspberry Pi Pico 2, but with a lot more memory
Read more →