OUR EXPERT Les Pounder is associate editor at Tom's Hardware and a freelance maker for hire. He blogs about his adventures and projects at bigl.es.
YOU NEED
> Any model of Raspberry Pi
> Raspberry Pi OS
> RasPIO Analog Zero
> A breadboard
> An LED
> 10K Ohm
> 330 Ohm resistor (orange-orange-orange-gold)
> 3x F2M jumper wires
> 1x M2M jumper wire
> Code https://github.com/ lesp/LXF-Analog-Zero/ archive/refs/heads/main.zip potentiometer
Electronics are all digital, right? Nope - some electronics components work with analog signals. These signals are continuously running and are typically a variable voltage. Such components include thermistors (a variable resistor whose resistance varies depending on temperature) and photosensors (a variable resistor whose resistance changes depending on light levels).
The most common analog electronic component is the potentiometer. This is a variable resistor that changes resistance based on the user turning a knob. A common potentiometer has a value of 10 Kiloohm (10K) and it can be found in many electronics kits. However, you can't directly wire a potentiometer to a Raspberry Pi. The Pi's GPIO has many pins for digital electronics (and protocols such as 12C, SPI, PWM and 12S), but none of the GPIO pins can be used with analog electronic components. Digital GPIO pins have two states: on and off. Analog components have a variable signal, which could cause issues. So how do we use analog components with a Raspberry Pi? For that we need an ADC, an Analog to Digital Converter.
This story is from the September 2022 edition of Linux Format.
Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.
Already a subscriber ? Sign In
This story is from the September 2022 edition of Linux Format.
Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.
Already a subscriber? Sign In
Create your first WebSocket service
Mihalis Tsoukalos explains how to use the Go programming language to work with the WebSocket protocol.
Fantastic Mr Firefox
Nick Peers takes a trip down memory lane to reveal the story behind the rise - and slight fall - of Mozilla's popular web browser.
Set up your terminal and email like it's 1983
Jump in the hot terminal time machine with Mats Tage Axelsson who emails from the command line using the latest technology.
Universal layer text effects with GIMP
Posters use them, films and presentations are hard to imagine without them: text effects. Attract attention with Karsten Günther and GIMP.
Jump to a federated social network
Nick Peers reveals how you can get up and running with this free, decentralised and non-profit alternative to Twitter.
Free our SOFTWARE!
Taking anything for granted is dangerous, so Jonni Bidwell and Mike Saunders revisit how the free software movement got started to help free us from proprietary tyranny!
Master RPI.GPIO
Les Pounder goes back to the early days of the Raspberry Pi - and his career with this classic library! -
Waveshare Zero to Pi3
Transform your Pi Zero into a Pi 3, they promised Les Pounder, but it's more like adding on go-faster stripes.
The Best OPEN SOURCE Software Ever!
In an attempt to trigger controversy, Michael Reed and Neil Mohr unequivocally state these are the greatest free software apps ever. Probably. We’re just trying to be helpful.
Linux-Mandrake 7
Simplicity and a wide range of applications make this a great distribution for all Linux users.