MagPi139-Raspberry Pi Magazine March 2024
MagPi139-Raspberry Pi Magazine March 2024
MagPi139-Raspberry Pi Magazine March 2024
TROUBLESHOOTING
GUIDE
Fix your Raspberry Pi today!
£5.99
ComfilePi
WELCOME
WELCOME
to The MagPi 139
R
aspberry Pi puts you at the forefront of computer
experimentation. It’s an exciting place to be, albeit a tad
precocious. That’s why our Troubleshooting feature
(page 42) is such a vital read. It’s packed with information on
how to overcome any snags you might encounter. Not only will Lucy
EDITOR
this make your Raspberry Pi experience more enjoyable, but Hattersley-
Haworth
you’ll also become a better computer expert.
Lucy is editor of
This month sees the welcome return of #MonthOfMaking The MagPi and has
spent a lot of time
(page 68), where we all get together to show off the big extolling the virtues of
builds we’ve been working on. the Sega Dreamcast
this month.
We’ve also got two cases that support the new PCIe drives: magpi.cc
NVME Base (page 76) and Argon ONE V3 M.2 (page 78). Both
will vastly speed up your Raspberry Pi 5.
Whatever you make with Raspberry Pi, be sure to share it with
the community. We learn from each other and love seeing what
everyone creates.
GET A
Lucy Hattersley-Haworth
RASPBERRY PI
PICO W
Editor
PAGE 36
magpi.cc
magpi.cc03 03
CONTENTS
Contents
> Issue 139 > March 2024
Cover Feature
42 Troubleshooting 42
Guide
Regulars
08 World of Raspberry Pi
38 Case Study: Velo AI
92 Your Letters
94 Community events calendar
97 Next Month
98 The Final Word
Project Showcases
12 FREISA
16 Mac Mini KVMac16 32
20 PeggyBoard
24 YAFC Flux Capacitor
28 THEA500 Mini keyboard
30 3D Laser Radar
32 SNES XL
34 PicoZX Handheld
20
PeggyBoard SNES XL
The MagPi is published monthly by Raspberry Pi Ltd, 194 Cambridge Science Park, Milton Road, Cambridge, England, CB4 0AB. Publishers
Service Associates, 2406 Reach Road, Williamsport, PA, 17701, is the mailing agent for copies distributed in the US and Canada. Application to
mail at Periodicals prices is pending at Williamsport, PA. POSTMASTER: Send address changes to The MagPi, c/o Publishers Service Associates,
2406 Reach Road, Williamsport, PA, 17701.
magpi.cc 05
CONTENTS
Tutorials 50 62
50 Get to know your Raspberry Pi
58 Twin lens reflex camera
62 Upcycle Sonos speakers – part 1
66 Connect cameras and displays
68 76
#MonthOfMaking 2024
NVME Base
Reviews
84
76 NVMe Base
78 Argon ONE V3 M.2 NVMe
80 ED-HMI3020
82 10 amazing Raspberry
Pi 5 accessories
84 Learn AI
Community
1 OF 5
DISCLAIMER: Some of the tools and techniques shown in The MagPi magazine are dangerous unless used with skill, experience, and appropriate personal protection equipment. While
we attempt to guide the reader, ultimately you are responsible for your own safety and understanding the limits of yourself and your equipment. Children should be supervised. Raspberry
Pi Ltd does not accept responsibility for any injuries, damage to equipment, or costs incurred from projects, tutorials or suggestions in The MagPi magazine. Laws and regulations covering
many of the topics in The MagPi magazine are different between countries, and are always subject to change. You are responsible for understanding the requirements in your jurisdiction
and ensuring that you comply with them. Some manufacturers place limits on the use of their hardware which some projects or suggestions in The MagPi magazine may go beyond. It is
your responsibility to understand the manufacturer’s limits.
06 magpi.cc
Design
Code
Configure
Analyze
cdpstudio.com
Tel: +47 990 80 900 • [email protected]
CDP Technologies AS // Hundsværgata 8, 6008 Ålesund, Norway
THE WORLD OF RASPBERRY PI
TensorFlow Lite
speed bost
A big bang update for TensorFlow Lite
for Microcontrollers. By Alasdair Allan
X A Raspberry Pi Pico W
board ready for
machine learning
GitHub Universe
attendees treated
to custom
RP2040 Badgers
Raspberry Pi RP2040 was used to create custom badges
for GitHub Universe attendees. By Ashley Whittaker
S A custom Badger
2040 badge
handed out at
GitHub Universe
FREISA
Every dog has its day and this is FREISA’s time to shine.
David Crookes takes a look at an innovative plant-watering system
sure it gets enough water. can run computer vision pipelines on dedicated
Team FREISA – an acronym for Four-legged Robot hardware which, the team surmised, would reduce
The talented Ensuring Intelligent Sprinkler Automation – is the the burden on Raspberry Pi’s resources.
international team brainchild of the B-AROL-O Team. This group won To ensure the project would actually be suitable
consists of Gianluca
the popular vote of the OpenCV Spatial AI Contest in for its intended purpose, the team carried out
Tetri, Gianpaolo
Macario, Pietro 2022 by creating a packaging machine called ARNEIS some research. “We conducted interviews with
d’Agostino, Davide using Raspberry Pi 4B, a Spatial AI camera and an several experienced farmers and gardeners,” says
Macario, Andrea assortment of LEGO Technic parts. Gianluca. “Their insights suggested that visually
Podo and Orso Eric
Seeking to make a similar impact in last year’s inspecting plants can offer a reliable assessment
magpi.cc/freisa competition, they got their heads together once of their condition.”
again. “As implied by our team name, our familiarity
with vineyards inspired us to develop an automated
watering system aimed at assisting on a farm,” says The team got to work,
one of the group, Gianluca Teti. The idea was to use
computer vision to water plants and come up with a training two neural
device capable of carrying out the work.
They ruled out creating a robot running on networks
wheels and tracks, noting that it would be poor at
clearing obstacles over rough ground. The group With this in mind, the team got to work, training
also briefly considered a quadcopter but felt its two neural networks to work out which plants
battery and payload would be poor. A quadruped would need watering and which ones would not. By
legged platform was chosen because of its ability to this point, they had ditched the idea of analysing
navigate complex terrain. vines because they noted the leaves would grow too
“We initiated a brainstorming session with the high for the robot to see them, and the vineyard
team to assess our available hardware options terrain would be too uneven. Instead, they decided
for the project,” Gianluca adds. “Orso Eric, one to concentrate their efforts on a household garden
of our team members, owned a Mini Pupper 2. populated with tomato plants.
Consequently, we collectively agreed to utilise that “The objective was to assess a plant’s condition by
specific model for our project.” analysing the state of its leaves and stems,” Gianluca
12 magpi.cc FREISA
PROJECT SHOWCASE
Quick FACTS
> It’s built around
a Mini Pupper 2
robot frame
S The Mini Pupper 2 comes in kit form, so one of the first tasks was to assemble all of the parts.
FREISA magpi.cc 13
PROJECT SHOWCASE
14 magpi.cc FREISA
PROJECT SHOWCASE
FREISA magpi.cc 15
PROJECT SHOWCASE
Mac Mini
KVMac16
Fixing Macs remotely with Raspberry Pi. By Rosie Hattersley
Kuleshov racking up more than nine years on 3D printing and offers long-term software support. He
and modelling. This aspect briefly became a says: “Raspberry Pi 4 with 4GB is easily
Ivan loves taking business venture, but his day job is as a systems sufficient for the task”.
apart different
devices to improve engineer in Munich with a string of certifications.
them, or learn how His computing, coding and design skills also came
they work, and
can’t resist a
in handy for his Mac Mini KVMac16 project, for Ivan chose Raspberry
which the goal was simple: to provide full access
hardware challenge.
to a Mac mini in a remote data centre, with a bit of Pi because it both
magpi.cc/
uptimelab help from Raspberry Pi 4.
supports the components
The right tools and offers long-term
Ivan values Raspberry P’s modularity which
allows him to create unique devices and has
previously used various models including
software support
Compute Module 4 in his Compute Blade
(magpi.cc/computeblade), an energy-efficient As Ivan’s blog explains, should a Mac go down
alternative to a rack-mounted server. He praises due to a failed update or any another reason, the
the “relatively cheap minicomputer with a huge only way to reboot it is to physically press its
community, which greatly lowers the threshold of power button. This is not something that can be
entry and increases trust”. done remotely, and is the issue his KVMac device
Quick FACTS
> The Mac Mini
KVMac16
project cost just
under €2,000
Ivan designed and
3D printed the Mac > It involved
mini server rack too! two weeks of
3D printing
Back to Mac
PeggyBoard
Climbing walls are already pretty exhilarating but
that didn’t stop one maker from upgrading his with
a Raspberry Pi. Rob Zwetsloot gets to grips with it.
Warning!
Build & Climb
Safely
If you plan to recreate this
project, it should only be
attempted by people well
versed in building (and
climbing safety)
magpi.cc/powertools
Quick FACTS
> The wall uses 400
addressable LEDs
LED walls
Building a high-tech climbing wall might seem
daunting, but breaking it down into three parts
makes it seem a little less intimidating.
“The first being the building of the physical
climbing wall which involved some framing and
reinforcing the garage roof,” explains Pegor. “The
second was putting together the control panel
which housed the Raspberry Pi, touchscreen, power
supply, and level shifter. The last part was writing
the code to make the whole thing interactive and
functional. It’s mostly written in JavaScript, PHP,
shell scripts, HTML, CSS, and Python.”
Reinforcing a roof still seems like a bit of a tricky
process, but he makes it sound simple when it’s
broken down that way. It seems to have done the
trick though.
“It works great,” Pegor says. “The LEDs all
light up properly, the web app is easy to use
–outside of the occasional fat finger on the wrong
hold – and the database is very useful to go back
to saved climbs. The only issue we ran into was
the occasional Wi-Fi connection drop, but that
was due to router issues and the distance of the
control panel.”
Custom climb
YAFC Flux
Capacitor
A classic time travel film prop brought about via Raspberry Pi
caught the eye of Rosie Hattersley, a sucker for all things 1980s
magpi.cc/
ambrogio
Maker Ambrogio
Different animations are
created animations
selected via the external
simulating the flux
buttons and shown on
capacitor from
the 7-inch display
Back to the Future
> He threaded
wires from an
old multimeter...
S Pimoroni’s
Automation HAT sits
atop Raspberry Pi 4 He created an energy flow animation in which
three streams all move into the centre
finds an extremely powerful tool despite being line”. This appealed because he wanted to control
free. He created an energy flow animation in the volume and the clip being played by means
which three streams all move into the centre of push buttons. Ambrogio is also a big fan of
and added a lightning effect by stripping out Python. “From a maker point of view, [Python] is
part of a thunder chroma clip from Pixabay: a great language since it does not require complex
magpi.cc/thunderchromakey. environment setup.”
There are “plenty of LCD screens that connect
to Raspberry Pi through its display interface. Not Reuse and reduce
having the extra cabling required by a standard Alongside Raspberry Pi 4, Ambrogio used a 7-inch
HDMI screen makes the final build more compact LCD display and a Pimoroni Automation HAT
and cleaner,” Ambrogio reasoned. As a maker, he mini board. Ambrogio wrote a Python 3 script to
regards Raspberry Pi as “a must-have, because read the status of the buttons and control the VLC
it gives you all the capabilities of a fully fledged media player. He also designed and printed some
Linux system in a fanless, low-power, tinkerable 3D parts. The other components for his YAFC Flux
package”. He also notes that Raspberry Pi comes Capacitor were largely assembled from leftovers
with a preinstalled VLC media player – “a great hanging around in his lab, such as the buttons and
player that can be controlled from the command wires. He recycled and spray-painted a cardboard
Electrifying effects
3D Laser Radar
Scanning items with lasers creates interesting photographs.
Rob Zwetsloot scans the results with his eyes.
Lase is a verb
X The heart object is
visible on the screen
Overall Gavin seems pretty happy with how the
– due to the way project turned out – at the very least it does
the laser pans, the
edges are technically
what he set out to do. He does have a few things
farther away he’d like to improve though: “First, because
Quick FACTS
> It took Colin 50
hours to make
there are many points that need to be scanned, > Colin used
and each point requires a servo to operate, it xyz resources to
takes a long time to complete the scan,” Gavin learn techniques
says. “My next improvement direction will be (xyz.com)
to speed up the scanning speed and shorten the
scanning time. Secondly, after the scanning is
completed, I use Cloud Pixel for display. The
image algorithm needs to be optimized so that
the outline of the target object can be displayed
more accurately.”
We’d be interested to see how a sharp 3D-scan-
W It can detect the
to-photo would be, but for now we quite like the curves in objects
fuzzy edges. such as cans
SNES XL
BFG means Big Friendly Gamer. By Ashley Whittaker
Button management
Arnov Every button on SNES XL controller has its own
MAKER
32 magpi.cc SNES XL
PROJECT SHOWCASE
Quick FACTS
> The buttons are
12 × 12 mm switches
It had to be 3D printed
in three separate parts
due to its size
W Inside the giant
table to play games, because it’s too big to hold 3D-printed case
comfortably. Our favourite Raspberry Pi builds
are the ones that are so absurd they turn out to all-in-one desktop gaming system based around
be unusable for their originally intended purpose. Raspberry Pi 3B+ and featuring on-board power as
The BFG would have no problem, but we’re still well as a dedicated cooling layer.
not sure if he’s real or not. We’ve let Nessie and PALPi (magpi.cc/palpi), a handheld games
Bigfoot go, but we’re hanging onto our oversized console with a retro aesthetic that’s powered
childhood friend. by Raspberry Pi Zero W, is another of Arnov’s
creations. Let’s start taking bets on what he builds
Gamer geek next. We’re thinking he might go to the other end
Arnov has graced us with his Raspberry Pi-powered of the size spectrum and come up with something
gaming kit twice before. The first time was with miniature. Maybe a teeny, tiny, thimble-sized Wii
SANDWICH DOT IO (magpi.cc/sandwichdot), an controller for dainty indoor tennis and golf.
SNES XL magpi.cc 33
PROJECT SHOWCASE
PicoZX
Handheld
Build your own handheld ZX Spectrum
with Raspberry Pi Pico. By Ashley Whittaker
Peter Misenko (Bobricius to his friends on GitHub, onto one main board. There’s also a faceplate,
Ken is an magpi.cc/bobriciusgit and YouTube, magpi.cc/ which is largely cosmetic and holds everything
electronics
bobriciusyt) is the brain behind the original design in place nicely, and a backplate, which holds the
enthusiast, and
lifelong technology for PicoZX (magpi.cc/picozx), and PicoZX Handheld battery and the charge controller. The other four
tinkerer. Be sure (magpi.cc/picozxhandheld) – the Raspberry Pi Pico- PCBs frame the device around its edges, leaving
to visit his popular
based Spectrum emulator that inspired Ken. openings for the microSD card and USB ports.
YouTube channel.
A 2.8-inch IPS display soldered directly onto the
magpi.cc/ main PCB is the screen for the device. Fifty 7mm
whatskenmaking
You’ll have 1980s nostalgia tactile switches give the tiny QWERTY keyboard its
clickety tactility. PicoZX can also be used with a
coming out of your ears joystick; Ken showcases an Atari 2600 joystick in
Quick FACTS
> Pico ZX emulates a
Spectrum 128K
SUBSCRIBE TODAY
FOR JUST £10
Get 3 issues + FREE Pico W
Subscriber Benefits
FREE Delivery
Get it fast and for FREE
Exclusive Offers
Great gifts, offers, and discounts
Great Savings
Save up to 23% compared to stores
+ £30 (UK)
€43 (EU)
$43 (USA)
£45 (Rest of World)
36 magpi.cc
SUBSCRIPTION
SUBSCRIBE
on app stores
magpi.cc 37
SUCCESS STORY
Velo AI
This smart bike light with road monitoring relies on
Raspberry Pi’s capable low-power compute. By Phil King
38 magpi.cc Velo AI
SUCCESS STORY
Velo AI magpi.cc 39
SUCCESS STORY
The results
The Copilot appeals to different types of cyclists,
says Treaster. “There’s not a particular customer
persona, but they want to support making streets
safer because they’re using streets as a cyclist
often.” Potential customers also include parents
and spouses who care about the cyclist in their life
and want something that’s going to keep them
safer on the road. “We’ve had a lot of folks say,
‘I would buy this for my son or daughter, I would
buy this for my husband’.”
40 magpi.cc Velo AI
SUBSCRIPTION
41
FEATURE
RASPBERRY PI
TROUBLESHOOTING
GUIDE 2024
Even the greatest friends can be frustrating
sometimes. PJ Evans sits you down, hands
you a tissue and asks how he can help
My Raspberry Pi
will not power on! S Red LED in the
morning, boot
failure warning
Raspberry Pi gone a bit nihilist? No life to be Any signs of life?
found? It can be more than a little alarming when When you apply power, do you see any LED activity
you plug in your new project and… nothing. Here’s on the board itself? All Raspberry Pi boards have at
a list of things you can try to get to the bottom least one LED designed to indicate status. The red
of the problem. Sometimes it can be a real d’oh LED indicates power. If you do not see any red light
moment, sometimes there’s more to it. at all when you apply power, and you’ve proven
your power supply is OK, then you may have a
Check the power serious problem with your
supply Raspberry Pi. If it flashes,
We’ve all done it (in this It can be more than a power has been detected, but
writer’s case, many, many not enough to safely boot
times). Have you plugged the little alarming when the machine. A solid red LED
power supply into Raspberry means power is OK (well,
Pi and the mains? Have you you plug in your new kind of - again we’ll get to
switched the socket on? If that, see ‘Lightning strikes’)
the answer is yes, start by project and… nothin and the system will attempt
checking the supply itself. to boot.
Can you swap it out for a known-good supply and
try again? If not, try charging a compatible USB The green, green flash of boot
device and see if you confirm it is working. If you Within a second or two of the red light appearing,
have another Raspberry Pi to hand, check whether a green one should appear. On some Raspberry Pi
the power supply can power it. If you, so can boards this is a separate LED, on others the same.
eliminate it from your enquiries. Green indicates the microSD card is being accessed.
On a normal boot, the light will flash at irregular
Use the right power supply intervals as the card is accessed. However, if the
If you’re not getting any light on the Raspberry Pi LED starts pulsing in a regular pattern, there is
itself, again the supply may be faulty. If it has an an issue with the operating system or the SD card
untethered cable, check the cable itself is alright. itself. Consider trying a different microSD card if
The best choice of all possible. See magpi.cc/flashcodes.
is to have an official
Raspberry Pi power A pair of boots
supply. These have a A final check. There is a microSD card inserted,
slightly higher power isn’t there? Again, we’ve all done it. Check not
output than regular only that there is a card in place but that it’s
USB power supplies, snugly inserted. Is the Raspberry Pi configured to
which promotes more only boot from USB or an M.2 device? (See magpi.
stable operation. Read cc/raspiconfig). If so, reflash to move back to
more at microSD card booting. You can use Raspberry Pi
magpi.cc/power. Imager (magpi.cc/imager) to do this.
Low voltage
When using your Raspberry
Pi if you get a “low voltage
warning” in the top-right
you have a power problem.
This is typically caused by
S If you see this, you
need more power! using a non-standard power
supply (such as a mobile
phone charger) to power
your Raspberry Pi. The operating system reacts by
throttling the CPU speed so less power is required,
slowing your machine down. In some cases, your
Raspberry Pi may power down altogether. Using
the wrong supply can permanently damage your
Raspberry Pi. Get an official power supply
(magpi.cc/powersupply).
T If you need
composite output,
this new header
is where to find it
HDM-why?
How to get your display looking sharp
Ok, so we’ve booted, power’s good, but the picture entirely on Raspberry Pi 5.
is terrible. What’s going on? If you’re seeing a However, you can still get
fuzzy but stable image, there’s probably been a bit composite video out by soldering
of an argument between the Raspberry Pi HDMI a header to J7, next to HDMI 1.
circuitry and the connected monitor, especially if If you don’t get an image, make
it is a TV. Some TVs lie to connected devices about sure composite output is enabled
their true capability, often advertising a 1080p using raspi-config from the
resolution when the truth is nearer 1280 × 768. command line.
You have to force the resolution at boot time by
modifying /boot/config.txt. Other video options
If you need a DVI connection for video, these are
Where’s the composite connector? directly compatible with HDMI, so you just need
If you’re looking to get composite video out of the right cable and nothing else. VGA is possible,
a Raspberry Pi, maybe for your retro gaming but you will need a USB adaptor. Make sure you
project, you may see that the combined audio/ check for compatibility first, as not all will work
video socket on earlier models has disappeared with Raspberry Pi.
Audio aggro
Audio has never been straightforward on
Linux-based systems but the new PipeWire
system is the best yet
Audio has changed with the new Raspberry Pi 5
boards. Although the classic ALSA audio system
Raspberry Pi 5 uses its two
is still present, in the desktop environment the HDMI sockets as primary
previous PulseAudio system has been replaced
by PipeWire. If you’re enjoying the sound of audio and video output
silence a little too much, here are some things
you should know.
add a USB-based audio adapter or use a HDMI
Where do I plug my headphones in? breakout box, which can output the audio to a T Sound controls look
Raspberry Pi 5 uses its two HDMI sockets as headphone jack or RCA connectors. the same, but a new
improved back-end
primary audio and video output. The audio/ controls the audio
video socket present on previous models has I want to build a media centre
been removed. You can still get composite video There are a world of compatible
output from the J7 header on the board, but for DAC (digital-analogue convertor) audio HATs
audio you will need an inexpensive USB audio which provide much superior sound quality.
adaptor. This will also have the bonus of audio There’s the official model or a wide range of
input so you can record through it. audiophile choices with an even wider range
of price. Even the budget HATs will provide
There’s no sound from my HDMI much better analogue sound output than the
Firstly, does the monitor or TV you’ve connected Raspberry Pi alone. Check The MagPi #117
up support it? If your montitor lacks sound, either (magpi.cc/117) for tips on improving audio.
Installing software
Boosting your Raspberry Pi capabilities with
new software is not always plain sailing
Networking
Wi-Fi weird? Network nobbled?
All about making connections. W For the easiest
and most reliable
networking, use a
wired connection
This is possibly the most complicated topic.
Modern networking is fiercely complicated and
there are many ducks you have to get into a row for
things to run smoothly. Although wired networking
is straightforward these days, Wi-Fi is harder and Where’s my Raspi-config
things have changed significantly in Bookworm Raspberry Pi? Your best friend for
with the introduction of Network Manager, which A common problem
makes network configuration easier than ever when setting up a smooth configuration
before but can cause problems with older scripts Raspberry Pi for remote
and utilities. Here, we’ll look at getting a working (headless) access
network connection. is trying to find it
afterwards. Yes, it’s
But it used to work… probably sitting there in
A disadvantage of moving to the new Network front of you, but where
Manager system is that a lot of pre-existing is it on the network?
network configuration scripts and utilities will The first approach is to
no longer work with a Raspberry Pi running try the hostname. This
Bookworm. If you find that a utility will no longer is the network name of Many of the troubleshooting tips here
install, especially one that configures Wi-Fi, you the computer, It defaults require you to run raspi-config or
will need to see if an update is available. to raspberrypi but you Raspberry Pi Configuration. Why? Well,
can customise it at any rather than you having to learn all kinds
time and may have set it of arcane GNU/Linux commands that
Best practices
A few tips for looking after
your Raspberry Pi setup
S Some HATs,
such as this one,
require software
configuration before
they will work
GPIO woe
LED not lighting? Sensor won’t sense?
All about common GPIO issues.
Connections to the GPIO come in different forms. In all cases these need to be explicitly switched
There’s good old-fashioned 3v3 circuitry or more on using raspi-config or the desktop Raspberry Pi
complex communications systems such as I2C and Configuration app in order to function properly.
SPI. Not all of these are enabled by default to avoid You’ll find all these under Interfacing Options.
conflicts. Finding out what is enabled and what is
not is often key to getting things working. HAT a bit flat?
Just like stand-alone sensors, HATs often take
advantage of protocols such as I2C and SPI. Often
Start by building a simple supplied install scripts will check this for you, but
sometimes the HAT just flatly refuses to work. Just
circuit such as a classic like with the sensors, check the requirements and
A simple test
To check everything is well with your GPIO, start
by building a simple circuit such as a classic LED
project like this: magpi.cc/scratchled. If you are
Getting further help
bathed in a beautiful light, then you at least know
One of the best things about Raspberry Pi
the GPIO is functional. is the community. It has a reputation for
My sensor is senseless friendliness and acceptance of ‘newbies’
More complex components such as temperature
sensors tend to use protocols rather than • Check out the Raspberry Pi forums at
straightforward level changes. In these cases, raspberrypi.com/forums for a wealth of expertise
Raspberry Pi OS needs to know what protocols are
in use. Examples of these are 1Wire, I2C and SPI. • Look out for Raspberry Pi community groups on
social media websites
• Check out literally years of questions and
answers on Raspberry Pi Stack Exchange:
magpi.cc/rpstackexchange
Raspberry Pi
Introducing your new credit-card-sized computer. Take a guided
tour of the Raspberry Pi, find out how it works, and discover
some of the amazing things you can do with it.
every step of the way. full-size Raspberry Pi which drop a few features
Halfacree – in particular the multiple USB ports and wired
Gareth is a network port – in favour of a significantly smaller
freelance
technology
Raspberry Pi – and its layout and reduced power requirements.
All Raspberry Pi models have one thing in
journalist, writer,
and former system amazing community common: they’re compatible, meaning that most
administrator in the software written for one model will run on any
education sector
with a passion
– will support you every other model. It’s even possible to take the very
for open-source
software and
step of the way latest version of Raspberry Pi’s operating system
and run it on an original pre-launch Model B
hardware. prototype. It will run more slowly, it’s true, but it
magpi.cc/ Raspberry Pi is known as a single-board will still run.
halfacree computer, which means exactly what it sounds In The Official Beginner’s Guide (magpi.cc/
like: it’s a computer, just like a desktop, laptop, beginnersguide) you can learn about Raspberry
or smartphone, but built on a single printed Pi 4 Model B, Raspberry Pi 5, Raspberry Pi 400,
circuit board. Like most single-board computers, and Raspberry Pi Zero 2 W: the latest and most
Raspberry Pi is small – it has roughly the same powerful versions of Raspberry Pi. Everything you
footprint as a credit card – but that doesn’t mean learn can be easily applied to other models in the
it’s not powerful: a Raspberry Pi can do anything Raspberry Pi family, so don’t worry if you’re using
You’ll Need a bigger and more power-hungry computer can a different model or revision. Here is the first
do, from browsing the web and playing games to chapter from the book to give you a guided tour
> Raspberry Pi Computer driving other devices. of Raspberry Pi.
The Raspberry Pi family was born from a desire
> Raspberry Pi OS
to encourage more hands-on computer education A guided tour of Raspberry Pi
> Raspberry Pi Camera
around the world. Its creators, who joined together Unlike a traditional computer, which hides its
Module (optional)
magpi.cc/camera to form the non-profit Raspberry Pi Foundation, inner workings in a case, a standard Raspberry Pi
had little idea that it would prove so popular: the has all its components, ports and features out on
few thousand built to test the waters in 2012 sold display – although you can buy a case to provide
out immediately, and more than 50 million have extra protection, if you prefer. This makes it a
been shipped all over the world in the years since. great tool for learning about what the various parts
A. GPIO header
B. Wireless
C. RAM
D. RP1 I/O controller chip
E. Connector for fan
F. USB 2.0G
G. USB 3.0
H. Ethernet port
I. Power-over-Ethernet (PoE) pins
J. CSI/DSI camera/display port 0
K. CSI/DSI camera/display port 1
L. Micro HDMI 1
M. Connector for UART serial port
N. System-on-chip
O. Micro HDMI 0
P. Real-time clock battery header
Q. USB Type-C power in
R. Power button
S. Connector for PCI Express (PCIe)
W Figure 8: Raspberry
Pi’s Ethernet port
T Figure 7: Raspberry
Pi’s USB ports
Raspberry Pi 400
Raspberry Pi 400 takes the same components as
Raspberry Pi 4, including the system-on-chip
and memory, but places them inside a convenient
keyboard housing. As well as protecting the
electronics, the keyboard housing takes up less comes pre-installed in Raspberry Pi 400. To
room on your desk and helps keep your cables tidy. remove it push gently on the card until it clicks
While you can’t easily see the internal and springs out, then pull the card the rest of the
components, you can see the external bits and way out. When you put the card back in, make sure
pieces, starting with the keyboard itself (Figure the shiny metal contacts are facing downwards.
17). In the upper right corner are three light- Push the card in gently until it clicks, which means
emitting diodes (LEDs): the first lights up when it’s locked into place.
you press the Num Lock key, which switches some The next two ports are the micro HDMI ports,
of the keys to act like the ten-key number pad on used to connect a monitor, TV, or other display.
a full-size keyboard; the second lights up when Like Raspberry Pi 4 and Raspberry Pi 5, Raspberry
you press Caps Lock, which makes the letter keys Pi 400 supports up to two HDMI displays. Next to
upper-case rather than lower-case; and the last these is the USB C power port, used to connect an
lights up when Raspberry Pi 400 is powered on. official Raspberry Pi Power Supply, or any other
At the back of Raspberry Pi 400 (Figure 18) compatible USB C power supply. The two blue
are the ports. The left-most port is the general- ports are USB 3.0 ports, which provide a high-
purpose input/output (GPIO) header. This is the speed connection to devices like solid-state drives
same header shown in Figure 15, but flipped: the (SSDs), memory sticks, printers, and more. The
first pin, Pin 1, is at the top-right, while the last white port to the right of these is a lower-speed
pin, Pin 40, is at the bottom-left. USB 2.0 port, which you can use for the Raspberry
Next to the GPIO header is the microSD card Pi Mouse included with the Raspberry Pi 400.
slot. Like the slot on the underside of Raspberry The final port is a gigabit Ethernet network port,
Pi 5, this holds the microSD card that serves as used to connect Raspberry Pi 400 to your network
storage for Raspberry Pi 400’s operating system, using an RJ45 cable as an alternative to using the
applications, and other data. A microSD card device’s built-in Wi-Fi radio.
Raspberry Pi Zero 2 W
Raspberry Pi Zero 2 W (Figure 19) is designed
to offer many of the same features as the other
models in the Raspberry Pi family, but in a much
more compact design. It’s cheaper and draws less
power, but it also lacks a few ports found on the
larger models.
Unlike Raspberry Pi 5 and Raspberry Pi 400,
Raspberry Pi Zero 2 W lacks a wired Ethernet port.
You can still connect it to a network, but only
using a Wi-Fi connection.
You should also notice a difference in the
system-on-chip: it’s black instead of silver
and there’s no separate RAM chip visible. This
is because the two parts – SoC and RAM – are
The Official Raspberry Pi
combined into one chip, marked with an etched Beginner’s Guide
Raspberry Pi logo, and placed roughly in the
middle of the board. This extract is taken from The Official Raspberry Pi Beginner’s Guide 5th Edition.
This 290-page book is packed with guidance on how to set up your Raspberry Pi,
Raspberry Pi Zero 2 W is install its operating system, and start using this fully functional computer.
With this book, you can start coding projects, with step-by-step guides using
designed to offer many of the Scratch 3, Python, and MicroPython programming languages.
Plus you’ll experiment with connecting electronic components, and have fun
the same features as the creating amazing projects. You can buy a copy from our online store, or read it in
the Bookshelf app in Raspberry Pi OS.
other models
magpi.cc/beginnersguide
TUTORIAL
Twin lens re e
Old-school cool
Get started with vintage Yashica cameras
V
intage cameras are a bit like like the Yashica TLR, practically modular. Accepting
vintage cars. The older they are, the a 120 (or 127) film to take a total of twelve 6 cm
fewer things there are to go wrong. square exposures, the Yashica TLR is capable of
When they do go wrong, the easier taking absolutely stunning photographs.
they are to fix. In this article, you’ll At their simplest level, film cameras all have
take a look at a classic twin-lens the same very basic design. A lens of some type
Dr Andrew Lewis reflex (TLR) camera, see the common problems they focuses light through a shuttered aperture for a
Dr Andrew Lewis is a
acquire over time, and hopefully see why it’s worth certain amount of time, projecting an image onto
specialist fabricator the effort of getting them back into good working a sheet of light-sensitive chemicals. Everything
and maker, and is the order. You’ll also see how modern technology, like else about a camera is a design feature – lenses or
owner of the Andrew
Lewis Workshop. Raspberry Pi Pico, can be used to help with the pinholes, winding mechanisms, mechanical shutters,
repair process, and learn a few old-school tips that timers, film size, and viewfinder types are all
will help you take good photographs. essentially design choices made by the manufacturer
or the end user. In most cameras, these things get
GRAIN NOT PIXELS wound together into a package and sold to the end
The TLR style of camera is a design classic. It’s user as a complete item that can’t really be changed.
simple, easy to maintain and, in the case of cameras A few very expensive (think ‘did I just pay more for a
FORGE
Left
Camera mechanisms
are a bit like watches
or clocks to work
with. Have a look at
some watch repair
videos to get an idea
of how to keep parts
ordered and what
tools to use for the
job. Be aware that
there are springs
inside the shutter, and
they are liable to y
off into the wilderness
at the slightest ick
of a screwdriver. Be
very careful, and work
somewhere clean
FIXING LENSES
The lenses of the Yashica TLR camera are glued
together using a blend of tree sap and turpentine called
camera than a car?‘ type of expensive) cameras have
Canada balsam. Over time, variations in temperature
an impressive range of interchangeable parts, but it’s and pressure can cause these lenses to separate and
rare for a moderately priced camera to be modular leave flecks or mist between the lens elements that will
or even moderately hackable to the extent that the affect the quality of the photographs you take. Fixing this
Yashica TLR is. problem isn’t as difficult as you might imagine, and there
Below
If you’re lucky, you can find a Yashica TLR for sale are a few different ways you can do it depending on the To remove the front
tools you have access to and your confidence level. assembly of a Yashica
at around £60, although it’s likely that it’ll be faulty TLR, you need to
and will need some work to get going. With the CLEAN. LUBE. ADJUST
remove the leather
from the front and
flexibility of the Yashica TLR, it’s probably going to One method is to use heat to remelt the balsam and undo the four screws
be much easier to fix than you might think. The main then apply pressure to the lens while it cools. This can that hold it in place.
Removing the rest of
be done by hand with gloves, a heat-resistant foam the screws will allow
”
pad, and a wooden stick with a felt end. Separate the you to get to the
lens from the camera, and heat it using a temperature- lenses and shutter
If you’re lucky, you can find controlled heat gun until you see the balsam melt, then
mechanism
”
then apply steady pressure for several minutes while
likely that it’ll be faulty the elements cool slowly. Allowing the elements to cool
too quickly can cause them to shatter. If this process
doesn’t work for you, you can instead remove the
existing balsam using a solvent like Xylene, and glue
areas you’ll be looking at when you’re assessing a the lenses back together using a modern lens glue.
TLR camera are the lenses and focusing systems, If the lenses are not fully separated but are clouded
the film winder, and the shutter. The cosmetics of or spotted internally, applying some heat will help get
the camera don’t really affect its function, but the them apart. How the balsam reacts to the heat seems
condition of the light seals does need to be checked to be partly down to the method of balsam application
originally used, so mileage may vary with different
and they should be replaced if they’re worn out.
lenses and you’ll need to experiment to find the best
The camera’s lenses screw into the lens assembly method for your particular lens. A quick internet search
and into the shutter. One problem to watch out on the subject will provide some additional methods and
for is that the top viewfinder lens and the bottom specific glues to consider.
shutter lens both need to be screwed into place by
TUTORIAL
Right
The parts of a Yashica
camera are pretty
much discrete, but
there are points where
different parts interlock
with each other, like
the shutter and the
winder mechanism, or
the dials on the face
of the camera. Keep
an eye out for these
interlocks, and make
sure you put them back
in the right place when
you’re reassembling
things. As always,
plenty of photographs
will help you
QUICK TIP
Beware of Yashica
cameras that use
127 film – it hasn’t
been manufactured
commonly since
the mid-1990s, and
while it’s possible to
Left
re-wrap 120 film onto
The Yashica MAT LM
a 127 spool, it’s a
has a built-in light
fiddly job.
meter, although it isn’t
actually very good. If
you aren’t bothered
about maintaining
a pristine factory-
Left
standard camera, you
The Yashica the
can remove MATlight
LM
has a built-in
meter light a
by removing
meter,
few although it isn’t
screws
actually very good. If
”
you aren’t bothered
some well-placed heavy objects, turn the focus knob about maintaining
a pristine factory-
to its lowest point, and place a distinctive object If you really want the standard camera, you
exactly one metre away from the camera lens. With can remove the light
”
some loaded
‘film’ well-placed
into the
heavycamera,
objects,
set turn
the shutter
the focus to knob QUICK TIP
with something different
”
to itsmode
bulb lowest and
point,
holdandit open
placesoa that
distinctive
you can object
see If you really want the There are specific
exactly
the sceneoneinmetre
front of
awaythe from
camera theprojected
camera lens. ontoWith
the
no macro lenses
greaseproof paper.
fitted,
Lookthe at the
camera
projected
shouldimagehave a
camera to stand out, low viscosity oils and
specialist greases
minimum
and checkfocus
whetherof one
it’s metre.
in focus. With
If it the
isn’t,
greaseproof
you can you can replace the leather produced for optical
‘film’ loaded
adjust the focus
intoby
thescrewing
camera, the set bottom
the shutterlensto in or When it comes to cosmetics, it’s amazing how devices, and these
with something different QUICK TIP
”
bulb Now
out. modelookandathold
theitviewfinder
open so that screen,
you canandseecheck much a bit of black Sharpie, a chrome touch-up pen, exist for a reason.
Left
There
WD-40
The are
andspecific
Yashica sewing
MAT LM
the scene
that the viewfinder
in front ofimage
the camera
is also projected
in focus. Ifonto it isn’t,
the and some wax polish can accomplish. A couple of
lowaviscosity
has oils and
built-in light
machine oil are
greaseproof
screw or unscrew
paper.the
Look topatlens
the of
projected
the camera image until hours of cleaning and applying subdued paint effects meter, although it isn’t
specialist greases
not an acceptable
actually very good. If
and image
the check resolves.
whether it’s Holdin the
focus.
threads
If it isn’t,
in place
you with
can a can make the camera look almost new, and if you produced
substitute.
you for optical
aren’t bothered
adjust
dab of the
lacquer
focusorby
glue.
screwing
Your camera
the bottomshould lens
now in be
or really
When want
it comes
the camera
to cosmetics,
to stand out,
it’s amazing
you can how
replace devices,
about and these
maintaining
a pristine factory-
out. Nowwell
focused lookenough
at the viewfinder
for generalscreen,
use. and check much
the leather
a bit of
with
black
something
Sharpie,different.
a chrome touch-up pen, exist for a reason.
standard camera, you
that the viewfinder image is also in focus. If it isn’t, and some wax polish can accomplish. A couple of WD-40
can and the
remove sewing
light
meter
machineby removing
oil are a
screw or unscrew the top lens of the camera until hours of cleaning and applying subdued paint effects few screws
not an acceptable
the image resolves. Hold the threads in place with a can make the camera look almost new, and if you 71
”
substitute.
some
dab ofwell-placed
lacquer or glue.
heavyYour objects,
cameraturn should
the focus
now knob
be really want the camera to stand out, you can replace
to its lowest
focused well point,
enough and forplace
general
a distinctive
use. object If you
the leather with reallydifferent.
something want the
exactly one metre away from the camera lens. With
068-071_HS#74_TUTORIAL_Vintage Camera_NK_DH_AG.indd 71
no macro lenses fitted, the camera should have a
camera to stand out, 30/11/2023 16:33
minimum focus of one metre. With the greaseproof you can replace the leather 71
‘film’ loaded into the camera, set the shutter to QUICK TIP
with something different
”
bulb mode and hold it open so that you can see
There are specific
the scene in front of the camera projected onto the
068-071_HS#74_TUTORIAL_Vintage Camera_NK_DH_AG.indd 71 lowtutorial
This viscosity is oils
fromand
30/11/2023 16:33
greaseproof paper. Look at the projected image specialist greases
HackSpace magazine.
and check whether it’s in focus. If it isn’t, you can produced
Each issue for opticala
includes
adjust the focus by screwing the bottom lens in or When it comes to cosmetics, it’s amazing how devices,
huge andofthese
variety maker
out. Now look at the viewfinder screen, and check much a bit of black Sharpie, a chrome touch-up pen, exist forinside
projects a reason.
and
that the viewfinder image is also in focus. If it isn’t, and some wax polish can accomplish. A couple of WD-40of
outside andthesewing
sphere
screw or unscrew the top lens of the camera until hours of cleaning and applying subdued paint effects ofmachine
Raspberryoil are
Pi, and
not has
also an acceptable
amazing
the image resolves. Hold the threads in place with a can make the camera look almost new, and if you substitute.
tutorials. Find out
dab of lacquer or glue. Your camera should now be really want the camera to stand out, you can replace more at hsmag.cc.
focused well enough for general use. the leather with something different.
Upcycle
a Sonos Play:1
If you’ve got a broken or unused Sonos speaker
sulking in the corner, it’s possible to upcycle it for
many different purposes using Raspberry Pi
mastodon.social/
Build your stack
@mrpjevans
01 Let’s start with Raspberry Pi itself. We
selected a 3A for this project thanks to its smaller
form factor which means it doesn’t get in the
way of the main speaker in the unit. You could
also use a Raspberry Pi Zero 2. There are many
choices for audio output, but the one thing you
need is amplification. Most DAC HATs are line-out
only, relying on external amplification, so make
sure yours can be wired directly to speakers. The
Danger! Sonos Play:1 speaker is 4 Ohm so we selected a
High voltage. matching amp: in this case, the Justboom DAC &
AMP combo. Assemble everything according to
Many Sonos products instructions, and from now on use the 20V power
have direct mains input S The original Sonos Play:1. A powerful speaker assembly in a small
which means residual supply connected to the HAT to power everything. good-looking unit. Lucky for us there’s a lot of space inside!
charge can be present
on the circuit board.
magpi.cc/dischargecap
You’ll Need
> Sonos Play:1 (or similar)
The amplifier is
connected directly
to the speaker and
tweeter, nothing
else needed
Test time!
08 Let’s make some noise! White noise to be
Build the new wiring
06 Time to heat up the soldering iron.
exact. Get back to a command prompt and first
let’s check the volume levels. Enter alsamixer
Clip off the spades from the original wiring and you’ll see some controls. Use the arrow
(which can now be discarded). Make sure the keys to move along to “Digital” and turn it up
speaker wire you have chosen is a suitable size to about 50%. If you see “MM” there press M
to fit in the screw terminals of the amplifier. to unmute the channel. Press ESC to leave. Now
Now, matching the original polarity, take a decent run this command:
length of speaker wire (you can trim it later)
and solder to the main speaker spades, then using speaker-test -c 1
a 10cm additional strip, solder the tweeter spades
to the main spades so they are in parallel. Silver If all is well, you’ll hear a static-like sound
the opposite end of the wire and screw into the from the speakers. Lightly press your fingertip
+ and - terminals of the amplifier for the left against each speaker to feel the vibration. When
channel. Once connected, return the spades to you’re happy both are working, use CTRL+C to
their original terminals. stop playback.
Reassemble
11 Before getting the screwdriver back out,
make sure everything is still working as expected
and there’s no chance of any short circuits when
the unit is put back together. If you have too much
slack on the speaker lead, now is the time to trim
it down and re-silver. You should have enough
that you can easily open up the two halves of the
enclosure should you need to. Now reverse the
earlier process. Reattach the backplate to the main
body, add on the top piece, slide on the speaker
grille and then the base and its rubber strip.
W When testing,
use alsamixer to
Power wiring
10
control volume
Raspberry Pi
MIPI CSI/DSI
connectors
Connecting cameras and displays
to Raspberry Pi 5’s new connectors
Alasdair
T he CSI and DSI ports found on previous
models of Raspberry Pi have been
combined into two dual-purpose CSI/DSI
(MIPI) ports on Raspberry Pi 5. These now use
work with Raspberry Pi Camera modules, and
not the display. To this end, the cables have
“CAMERA” printed on them
MAKER
Attaching a display
Camera cables 03
02 There are three Flat Flexible Cables (FFC)
If you are using our 7-inch Touch Display
with Raspberry Pi 5, it will not automatically
available to connect CSI cameras to Raspberry Pi 5: be configured. You will need to add one of the
following two lines to your /boot/firmware/config.
Top Tip • 200mm camera cable standard-to-mini txt file. Attaching the display to the CAM/DISP 1
• 300mm camera cable standard-to-mini connector, you should add:
Update first • 500mm camera cable standard-to-mini
dtoverlay=vc4-kms-dsi-7inch
At the time of These camera adapter cables have a 22-way
writing, to get touch
support on the 0.5mm-pitch connection at one end (for Raspberry Alternatively, by attaching it to the CAM/DISP 0
7-inch Touch Display Pi 5), and a 15-way 1mm-pitch connector at the connector you can add the following line:
you will need to use other (for your camera). You can buy Raspberry
rpi-update to get a
Pi 5 camera cables from The Pi Hut (magpi.cc/ dtoverlay=vc4-kms-dsi-7inch,dsi0
newer kernel.
camcable5). Note that these cables will only
You’ll Need
> Raspberry Pi 5
#MonthOf
Making 2024
genius contraptions
Get making in March and share
your progress with the community!
By idle inventor Rob Zwetsloot
I
t’s that time of the year again: #MonthOfMaking. A time when we want
the community at large to make something and show it off. Whether you’ve
never touched a resistor in your life or you’re a pro with welding, nobody
and nothing is off limits for #MonthOfMaking.
During March we’re encouraging you to make your dreams a reality with
your ultimate Raspberry Pi or Pico-based project. To that end, we’ve dug up
some of the most over-the-top builds we could find – true Rube Goldberg
machines that make use of Raspberry Pi technology to create the kind of
useful chaos only homemade creations can achieve.
So fetch your Doc Brown wig, double-sided tape and some prototyping wire,
and let’s get inventing.
Rube Goldberg
machines
Who is Rube and why do we
keep making machines for them?
E
ven if you don’t know the term for
them, you very likely have seen a Rube
Goldberg machine in cartoons, movies,
or splashy adverts. They refer to elaborate,
automated machines that perform a task – usually
a simple one – with over the top chain-reaction They’re named after an American cartoonist,
mechanisms. Think a candle burning through a famous for the weird and wonderful contraptions
piece of string that releases a hammer to strike a in his comics, though British cartoonist W Heath
ball into a tube that deposits the ball on a pulley Robinson did the same thing earlier. Powerhouse
system to lift up a blind. In an era before everything was part of the
Internet of Things, weird gizmos that could turn In many Merrie Melodies
on a light remotely or put your toast on were great and Looney Tunes
fantasy fair, and the more elaborate and inefficient cartoons, whenever a
the funnier. Cartoons of the 1930s and ’40s would complex contraption
often make use of them for fun animated effect, or factory line is
the board game Mouse Trap is based on the concept, being illustrated, the
and many inventions in Wallace and Gromit are song Powerhouse by
also very Rube Goldberg-esque. the Raymond Scott
S One of Rube Goldberg’s more famous early contraptions is this
The concept lives on to this day, with silly Quintette was used
Self-Operating Napkin machines going viral on all social media to set the rhythm and
platforms as they use more varied and ridiculous atmosphere. It was
ways of performing these simple tasks. usually a rearranged
version by legendary
composer Carl Stalling,
and is still used in
cartoons to this day.
You can listen to the
original recording here:
magpi.cc/powerhouse
Eccentric
engineering
inspiration
Build a better mouse trap, or just a very elaborate
way to turn on a light.
S The full device makes use of old and new technology, a perfect and efficient marriage
T The CD’s eject motor gets a workout by pushing food into the
mouth of a hungry cup/hamster
Hamster feeding
CD-ROM
INVENTOR
Akkie | magpi.cc/akkiecd
RASPBERRY PI 3 RD E D I T I O N
Retro Gaming with Raspberry Pi shows you how to set up
Raspberry Pi 5 to play a new generation of classic games. Build your
gaming console and full-size arcade cabinet, install emulation software
and download original games with our step-by-step guides. You’ll
discover a vibrant homebrew scene packed with new games for original
consoles and legal access to all those retro games you remember!
Set up Raspberry Pi
for retro gaming
Emulate classic
computers and consoles
Learn to code
retro-style games
Build a console,
handheld, and full-size
arcade machine
NVMe Base
SPECS Pimoroni magpi.cc/nvmebase From £14 / $14
FEATURES
Works with Give your Raspberry Pi 5 a major storage speed boost
most NVMe
M.2 SSDs; Flat with this PCIe M.2 SSD adapter. By Phil King
flex PCIe cable;
T
Standoff kit; 4 ×
rubber feet he NVMe Base enables you to connect an of Raspberry Pi 5 using the supplied standoff kit
NVMe (non-volatile memory express) – demonstrated in Pimoroni’s installation video
CONNECTIONS solid-state drive to Raspberry Pi 5’s PCIe (magpi.cc/nvmebaseyt) – you’ll want to insert
M.2 Key slot, slot for storage with far faster read/write speeds your NVMe SSD stick into the Base’s M.2 key slot.
PCIe slot (18-pin) than a microSD card. The board is long enough to accommodate 2280
Rather than coming in the HAT form factor to size SSDs, and has mounting holes for this plus
sit on top of Raspberry Pi, it fits underneath, hence 2230, 2242, and 2260 drives – so you can secure it
T The NVMe Base
the “Base” moniker. This means it doesn’t obstruct with a bolt and nut.
comes with a a cooling fan, if you’re using one, nor tie up the
standoffs kit, flat
flexible PCIe cable,
GPIO pins, so you can still add another HAT on top. Securing the Base
and four rubber feet Before attaching the NVMe Base to the underside The next step is to attach M2.5 standoffs to the
top of the Base using the four mounting holes.
The kit helpfully includes both short and long
bolts – the latter are useful if you want to securely
mount another HAT on top of Raspberry Pi 5.
Connecting the Base’s PCIe slot with the one on
Raspberry Pi 5 is done using a small, flat S-shaped
cable that flexes and has labels to help you orient
it correctly – the end for the Base is slightly
wider, at 18 pins. It’s easier to connect Raspberry
Pi 5’s PCIe slot first, then the Base’s, due to the
latter’s less fiddly flip tab. You can then fold
Drive compatibility
an SSD connected via speed-limiting USB. Check
out Pimoroni’s own tests on various SSDs at
Verdict
While the majority of NVMe M.2 drives should work magpi.cc/nvmebasetests. A slimline adapter
fine, Pimoroni’s product page notes that a few You’ll want to make Raspberry Pi 5 boot from that sits neatly under
Raspberry Pi 5 and
models have quirks or have proved troublesome. the SSD instead of the microSD card. This is easily
enables fast PCIe
The safest option is to choose a tested model listed achieved by writing the OS to it with Raspberry read/write speeds
there, or purchase the NVMe Base bundled with a Pi Imager and then selecting Advanced Options > with a suitable SSD.
9
compatible 250GB or 500GB SSD. Boot Order > NVMe in raspi-config. For our drive,
Raspberry Pi 5 officially only supports the Gen this cut around four seconds from the average
/10
2.0 version of PCIe, but adding an extra line to boot time. We also noticed that some apps, such as
/boot/config.txt will force Gen 3.0 for extra speed. Chromium, seemed a little snappier.
Argon ONE V3
M.2 NVME Case
Argon40 magpi.cc/argononev3 £40 / $49
SPECS
A
Video/Audio
PCB extender rgon40 has made a name for itself cover that provides access to the M.2 NVMe socket.
(daughterboard), amongst the Raspberry Pi community by Here you can insert any M.2 NVMe with M-Key up
GPIO & Fan board, making high-quality cases that transform to 2280 size. The flap is marked “THERML” which
RP2040-based our favourite single-board into a professional- nods to its aluminium heatsink and a long strip
microcontroller looking computer, or a smart feature-packed of thermal pad is included to transfer the heat out
media player. into the case.
INPUT/OUTPUT This month we have the hotly anticipated Argon Two more silicon pads are included to connect
Adjustable M.2 ONE V3 M.2 NVMe PCIe Case. Hopes are high for Raspberry Pi’s CPU and PMIC (Power Management
NVME with M-Key this one and we can tell you it hits home runs all Integrated Circuit) to the case.
up to 2280 size, the way. Redesigned for Raspberry Pi 5 this board Alongside this impressive passive cooling
2 × standard combines the features of the Argon ONE V2 with is a redesigned 30mm fan and blower. This is
(type A) HDMI the – previously separate – M.2 Expansion Board repositioned at an angle to be “more efficient and
ports, Ethernet, add-on to create an all-in-one computer case quiet”, and we found it unobtrusive even when
4 × USB-A ports, with super-fast, and super-large, storage that also stress testing.
USB-C power cleverly uses passive cooling and heatsinks to keep Argon ONE V3 now sports Raspberry Pi’s RP2040
port, 3.5mm everything running. This is the one we have been microcontroller to control various functions like
audio jack waiting for. fan speed and power management (via jumper
pins on the daughter board). The power button
COOLING All together now is less of a novelty now that Raspberry Pi 5 itself
Aluminium alloy The Argon ONE is Argon40’s flagship case, features one. However, the presence of a 3.5mm
case for passive containing a daughterboard for Raspberry Pi audio jack will be a welcome addition for audio
cooling, blower that adds additional features such as full-sized buffs now that it has been removed from Raspberry
type PWM HDMI sockets and an infrared (IR) receiver. Pi 5’s main board.
programmable On the base of Argon ONE V3 is a removable One advantage over the Argon ONE V2 board is
30mm fan that the M.2 NVMe now connects directly to the
PCIe socket on Raspberry Pi 5. This leaves all four
USB-A sockets available.
A removable magnetic flap on top of the case
provides access to repositioned GPIO pins alongside
a handy pinout guide.
10
the script found at magpi.cc/thermaltesting for large storage, and full-sized HDMI connection
15 minutes. also ensure Argon ONE V3 becomes the perfect
/10
Raspberry Pi 5 inside the Argon ONE V3 case media player or home games console. This case
idles at around 54°c (down from the 65°c baseline is highly recommended.
ED-HMI3020
EDATEC magpi.cc/edhmi3020 From £212 / $268
FEATURES
10.1-inch screen
with ten-point
touch input,
Raspberry Pi
with 4GB or 8GB
RAM, optional
front-facing
camera
W With a rugged housing
and Raspberry Pi on the
PORTS rear, this is no ordinary
2 × USB 3.0, touchscreen tablet
D
2 × USB 2.0, 1 ×
USB-C power, esigned for industrial settings, the well as 3.5mm headphone and mic jacks. The key
2 × micro-HDMi, EDI-HMI3020 touchscreen panel has a addition, however, is an M.2 socket. To access
Ethernet (with ruggedised housing with a well-protected it, you’ll need to unscrew Raspberry Pi 5 and the
optional PoE), Raspberry Pi 5 mounted on the rear, cooled case from the rear of the unit, then you can use
RS232 and passively with a heatsink. It comes in 7-inch the M.2 slot inside to add an NVMe 2230, 2242, or
RS485, M.2 SSD (1024×600 pixels) and 10-inch (1200×800) variants 2260 SSD.
socket (internal) with 4GB or 8GB or RAM. We tested out the 8GB,
10-inch model. Touch control
DIMENSIONS Our unit’s microSD card had Raspberry Pi OS
258 × 172 × Bookworm pre-installed with the drivers for the
39.6mm; 1000g You can use the M.2 socket ten-point touchscreen, which worked instantly
inside to add an NVMe upon bootup. As we’ve found with other Raspberry
Pi touchscreens, there’s no right-click functionality
2230, 2242, or 2260 SSD by default and we also couldn’t double-click files
to open them (so had to enable one-click opening
in the File Manager). There was no on-screen
While there’s no direct access to Raspberry Pi keyboard available either, though we managed
Verdict 5’s GPIO header via the case, the four USB ports
are exposed, along with the USB-C power socket,
to get one running with a workaround from the
Raspberry Pi forums: magpi.cc/bookwormkb.
A robust two micro-HDMI ports, microSD card slot, and an The EDI-HMI3020 also comes with an optional
touchscreen panel Ethernet port with optional PoE functionality. 8MP front-facing camera – a Camera Module V2
with well-protected An upgrade over the HMI3010 models, the – for video conferencing and suchlike, making it a
Raspberry Pi 5
HMI3020 adds RS232 and RS485 interfaces, as versatile touchscreen tablet.
mounted on the
rear and the option
to add an M.2 SSD.
8 /10
W Mounted on the rear,
Raspberry Pi 5 has its
main ports accessible
through the rugged case
80 magpi.cc ED-HMI3020
SUBSCRIBE AND
SAVE UP
TO
ISSUE #76
OUT NOW
hsmag.cc
RESOURCES
10 Amazing:
Raspberry Pi 5
accessories Raspberry Pi 27W USB-C
Power Supply
Power up your Raspberry Pi 5 with these Maximum juice
excellent add-ons Raspberry Pi 5 can get a little power hungry, and this higher-capacity
PSU makes sure it’s always fed.
Official case
get for your Raspberry Pi right now.
Officially safe
This simple case not only keeps your
Raspberry Pi nice and contained, it
also has a blower fan inside and a
removable lid to access the GPIO pins
magpi.cc/fpccable I £1 / $1
magpi.cc/activecooler I £5 / $6
Learn AI
with Raspberry Pi
Discover more about the hot topic of AI with these resources.
By Phil King
Further reading
Books to help MAKE YOUR OWN NEURAL is having on every aspect of our lives,
NETWORK and where it might go next.
you learn more With Python code examples, X magpi.cc/hwbook
about AI Tariq Rashid’s book gently guides
newcomers through the world of ARTIFICIAL INTELLIGENCE
neural networks inspired by the FOR HUMANS
human brain. Free on GitHub, Jeff Heaton’s trilogy
X magpi.cc/makeneural gives a practical introduction to AI,
covering fundamental and nature-
HELLO WORLD inspired algorithms, deep learning,
Professor Hannah Fry has written a and neural networks.
fascinating book about the impact AI X magpi.cc/aiforhumans
Introduction to Machine
Learning and AI
Raspberry Pi Available via edX for free (or examples to get hands-on.
AUTHOR
Beginning Artificial
to get it to drive autonomously
around a ‘Duckietown’
Intelligence with
miniature city.
X magpi.cc/duckietown
Tim
Stenning
The Raspberry Pi Store is filled with people knowledgeable and passionate
about what they do – including Tim, one of the original store employees
T he Raspberry Pi
Store in Cambridge’s
Grand Arcade recently
celebrated being open for five
years – quite a feat for a store
“Not too long after Maplin
closed I was approached by my
manager [Oli Wilkin], who I had
helped with the closing of the
stores in Cambridge,” Tim tells
on since the opening of the first
store, I’m finding that I’m still
learning something new every
day on the job.”
MagPi
Monday 01
Amazing projects direct from social media!
02
88 magpi.cc #MagPiMonday
THIS MONTH IN RASPBERRY PI
04
03
06
05
08
07
#MagPiMonday magpi.cc 89
THIS MONTH IN RASPBERRY PI
Events in pictures:
Raspberry Pi Day
2023 in Cameroon FIND
OU T A
Community and official events in the wild M ON
TH’S
BOU T
EV EN N E X T
T S ON
R
PAGE
aspberry Pi Days are events run in 92
Cameroon for people to learn about and
discuss working with Raspberry Pi – this 02
event at the end of 2023 also allowed attendees
to experience Raspberry Pi 5 as well.
03
01
Crowdfund this
Great crowdfunding projects this month
f magpi.cc/doly f magpi.cc/piwings2
YOUR LETTERS
Your
Letters
Image captions
We really enjoy our MagPi subscription - thanks for all the great
issues.
RAM check There’s a super-minor niggle that I’m hoping you can address
in future issues. In some (not all articles this year) you don’t
How do you check the RAM size of a Raspberry Pi, and label your photos. Now if it’s a graphic illustration fair enough,
what were the RAM variations released for Raspberry but increasingly we’re seeing unlabelled photos where it
Pi 3 Model B+? doesn’t make sense. Sometimes the photo is nonsensical (such
as a graph for ‘photon torpedos’ or ‘wibbly lines’), other times
Mahender via email the photos relate to the article but aren’t labelled to explain what
they are illustrating.
You’re in luck, for Raspberry Pi 3B+ only the 1GB version Usually, The MagPi labels the photos in articles, which is
was released. Multiple RAM types started with Raspberry also great for accessibility. Even when relevant photos aren’t
Pi 4, however there are also a couple of variations on available, if they are to be presented in the style of relevant
original Model B hardware. images, perhaps photos should have a ‘photo for illustrative
On Raspberry Pi 5 it will say on the board how much purposes only’ caption to save readers the time of trying to
RAM it has (there’s a little resistor soldered next to the figure out their significance.
number) and on other Raspberry Pi boards you can check
by opening the terminal and using:
Luke via email
$ cat /proc/cpuinfo
You’re absolutely right – the
This will give you a revision code, which you can check example you sent us was a case
against this list: magpi.cc/revcodes study that does not usually
have image captions for various
reasons, and the photos are just
illustrative. However sometimes
T The numbers on the board
represent the amount of RAM, an image might not get a caption
with a resistor soldered next because it was overlooked.
to the board’s onboard RAM
As you’ve mentioned,
picture captions are great for
accessibility across the magazine
and starting from next issue
we’re going to keep a closer
eye on our image labelling with S Like this image of a Raspberry Pi 5, all
this in mind. images should have a caption on them
FREE
RASPBERRY PI
S We do not recommend serving your
PICO W
Raspberry Pi board in this way.
Contact us!
> Mastodon magpi.cc/mastodon
>
>
Threads
Facebook
@themagpimag
magpi.cc/facebook
Subscribe online:
>
>
Email
Online
[email protected]
forums.raspberrypi.com
magpi.cc/subscribe
Email: [email protected]
Continuous credit card orders will auto-renew at the same price unless cancelled. A free Pico W is
included with all subscriptions. This is a limited offer. Not included with renewals. Offer subject to
change or withdrawal at any time.
EVENTS
Community
04
Events Calendar
Find out what community-organised Raspberry Pi-themed
events are happening near you…
01. CamJam’s Raspberry Pi Birthday Party 03. Raspberry Pi for Science Buskers
Saturday 2 March Friday 8 March
William Gates Building, Cambridge, UK Usap School, Harare, Zimbabwe
magpi.cc/cjrpbp magpi.cc/rpsb139
CamJam celebrates Raspberry Pi’s third (official) birthday! The Raspberry Pi for Science Buskers event provides high
The first ever Raspberry Pi computer was released 12 years school students with a rich and engaging set of activities
ago, but its birthday was February 29th! So while it’s 12 years related to the use of Raspberry Pi.
old, this is only the third time we have been able to throw it a The goals are:
proper bumper birthday party • To encourage them to use the Raspberry Pi in science
busking and projects.
02. Kanpur Raspberry Jam BIG • To promote a general interest in STEM among high
Birthday Weekend school students.
Sunday 3 March • To inspire the development of coding clubs in Zimbabwe.
MakerSpaceKanpur, Kanpur Nagar, India
magpi.cc/krj139
We’re celebrating Raspberry Pi’s birthday at this special
Jam. The topics are:
• Getting started with Raspberry Pi 5: Mr. Vivek & Himanshu FULL CALENDAR
• Sensors data using Raspberry Pi: Mr. Shivam & Hitanshu Get a full list of upcoming
• Raspberry Pi Pico Workshop: Mr. Harsh & Abhay community events here:
There will be lots of other tips and tricks by makers. magpi.cc/events
Please bring your Raspberry Pi or a charged laptop (either
one is required).
01
02
03
RASPBERRY PI
EMBEDDED WORLD 2024
Embedded World
2024
> Where NuremburgMesse, Nuremburg, Germany
> When Tuesday 9 April to Thursday 11 April
magpi.cc/ew2024
EDITORIAL
Editor
Raspberry Pi
Rob Zwetsloot
[email protected]
Sub Editor
Ian Evenden
ADVERTISING
Charlotte Milligan
[email protected]
+44 (0)7725 368887
CONTRIBUTORS
Alasdair Allan, David Crookes, PJ
Evans, Garath Halfacree, Rosie
Hattersley, Phil King, Dr Andrew
Lewis, Ashley Whittaker
PUBLISHING
Publishing Director
Brian Jepson
[email protected]
Director of Communications
Liz Upton
CEO
Eben Upton
DISTRIBUTION
Seymour Distribution Ltd
2 East Poultry Ave,
London EC1A 9PT
+44 (0)207 429 4000
SUBSCRIPTIONS
Unit 6 The Enterprise Centre
Kelvin Lane, Manor Royal,
The Magpi #140 Crawley, West Sussex, RH10 9PE
+44 (0)1293 312193
Raspberry Pi 5
conforming to ISO 14001.
The MagPi magazine is published by
& Pico THREADS @themagpimag Raspberry Pi Ltd, 194 Cambridge Science Park,
Milton Road, Cambridge, England, CB4 0AB.
The publisher, editor, and contributors
Liquid cooling
accept no responsibility in respect of any
FACEBOOK magpi.cc/facebook omissions or errors relating to goods,
products, or services referred to or advertised
Raspberry Pi 5 in the magazine. Except where otherwise
Program a Attribution-NonCommercial-
ShareAlike 3.0 Unported
ONLINE forums.raspberrypi.com
MIDI synth
(CC BY-NC-SA 3.0).
ISSN: 2051-9982.
THE FINAL WORD
Design updates
We’re now designing the magazine in house. It’s
Raspberry Pi through and through! By Rob Zwetsloot
really proud of the top notch design from a lot of people behind the
Rob has been working on model kits a
we’ve managed to maintain since the scenes – if you look back to the lot recently. They’re a bit small to fit a
relaunch in 2015. previous page we have a thing called Raspberry Pi Pico, but he has a bigger
I also appreciate them trying a ‘flannel panel’ which credits kit in the pile to build…
to indulge me in a fun idea I had everyone who works on the mag. magpi.cc
PiKVM V4 Mini
Small, cost-effective, and powerful!
PiKVM V4 Plus
The most feature-rich edition
More connectivity
Extra storage via internal USB 3.0
Upgraded powering options
More physical security features
Extra HDMI output
Advanced cooling solution
Availableatatthe
Available themain
mainRaspberry
Raspberry Pi
Pi resellers
resellers
List of official
resellers by country: