Mag Pi 143
Mag Pi 143
£5.99
07
9 772051 998001
WELCOME
to The MagPi 143
R
obots are a true passion here at The MagPi. Few things
you make with computers have the same potential to
impress as a walking, wheeling, or even talking ‘bot.
The real skill isn’t just building a robot that rolls around,
but creating a smart rover that can sense its environment Lucy
EDITOR
and react accordingly. These rovers are sent into hazardous Hattersley
environments, or even to other planets. Lucy is the editor
of The MagPi
Our robot explorer feature (page 40) has everything you and her favourite
fictional robot is
need to get rolling. Marvin. But don’t
tell him. It’ll only
Have fun building your robot, and don’t forget to give it a bring him down.
name. And when you’re done check out the new AI Kit (page 8). magpi.cc
This new Raspberry Pi kit offers the potential to vastly speed
up artificial intelligence projects. We can’t wait to start making
with it, and I know our community will put it to good use.
Making intelligent robots is a childhood dream and, thanks
to Raspberry Pi, it’s now possible. I can’t wait to see what you
GET A
all make with it.
RASPBERRY PI
PICO W
Lucy Hattersley Editor
PAGE 38
magpi.cc 03
CONTENTS
Contents
> Issue 143 > July 2024
Cover Feature
40 Robot explorers 40
Regulars
08 World of Raspberry Pi
34 Case Study: Homey Pro
90 Your letters
92 Community events calendar
97 Next month
98 The Final Word
Project Showcases
12 Spin
16 Dicemaster 2000 16
20 Colour Word Clock
24 PUTTR
28 Math GPT
32 Retro Gaming Magic Mirror
20
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 48 58
48 Add M.2 HAT+ to Raspberry Pi 5
52 Experiment with time in Python
58 Build a Raspberry Pi cash register
Reviews 84
72 PiDP0-10
74 CrowPi electronics kit
76 ED-IPC
80 Ten amazing cooking projects
82 Learn Java
Community
84 Brian O’Halloran interview
86 This Month in Raspberry Pi Brian O’Halloran interview
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
Raspberry Pi AI Kit
available now at $70
Discover neural networks and integrate AI into your projects with AI Kit.
By Naush Patuck
Schematics
A nice side-effect of launching of the M.2 HAT+
a bit later has been all the third-party products,
such as the NVMe Base (magpi.cc/nvmebase)
from our friends at Pimoroni. We want to make
it easier to build high-quality PCIe accessories
for Raspberry Pi 5, and so we’re publishing our
schematics (magpi.cc/m2schem) as a reference
design. You can also browse our documentation
S Raspberry Pi ‘s M.2 HAT+ for the M.2 HAT+ online (magpi.cc/m2hatdocs).
Spin
Ever wondered what death metal disco sounds
like? Spin will not only create it, but let you scratch
it, too, as Sean McManus discovers
Danger! Play that funky music using sliders. Knobs control the volume and
Mains Electricity At first glance, Spin looks like a record player. speed. “I thought: What are the maximum different
In fact, half of it is. The other half is a grid of kinds of physical interactions I can bring to this
This project involves buttons. One row allows you to select a mood, such device?” Arvind says.
disassembling a mains-
powered record player. as spacey, warm or dark. Two rows set the genre, When you press the generate button, your
including death metal, trance and jazz. Three rows chosen options are used to create music. When it’s
magpi.cc/
electricalsafety are dedicated to sounds. There are instruments ready, the record starts to rotate. “It is a signal or
12 magpi.cc Spin
PROJECT SHOWCASE
Quick FACTS
> Raspberry Pi stores
all the music files
to revisit later.
These knobs control the speaker volume
and speed of the record player motor > Meta trained
MusicGen with
20,000 hours of
licensed music.
W Raspberry Pi 4 is
mounted under the
record player. The
tiny HDMI screen is
shown bottom right.
Spin magpi.cc 13
PROJECT SHOWCASE
T Arvind removed
the record player
from its casing so it
would fit his cabinet.
invitation for you to listen to it,” says Arvind, “but He chose the Arduino Mega so he could be certain
in order to listen to it, you need to physically take he’d have enough input pins. “I always want a little
the needle and put it on the record.” By turning the more freedom,” he says. “I can use extra pins if I
record backwards and forwards (scratching), you want to add something in the future.”
can manipulate the sound. A keyboard matrix library takes the input from
the buttons and maps it as if it’s a keyboard. The
Leave a light on Arduino creates the text prompt for the AI by
Inside the cabinet, Spin houses an Arduino Mega, combining the words associated with the buttons
Raspberry Pi 4, and Behringer audio interface. There and the tempo and duration options. The prompt is
is also a speaker and a tiny HDMI screen at the back, sent to Raspberry Pi through a serial to USB cable.
connected to Raspberry Pi, to help with debugging. Arvind’s Python program on Raspberry Pi sends
The buttons have individual NeoPixel LEDs on the prompt to MusicGen, running in the cloud. “At
them (WS2812b) that light up when the button the time, MusicGen was one of the most flexible and
is selected. They’re illuminated in an animated creative platforms out there and it sounded relatively
pattern, using the FastLED Arduino library, good compared to others,” says Arvind. “The other
when the device is switched on, and 3D-printed models didn’t have openly accessible application
enclosures act as diffusers for the LEDs. programming interfaces that I could use.”
Arvind prototyped Spin on a breadboard, and
then used the open-source design software KiCad Spin me right round, baby
to design a printed circuit board (PCB). The PCB To play the music, Spin uses xwax, an open-
was made for him by a company in India. source digital vinyl system for Linux. This software
14 magpi.cc Spin
PROJECT SHOWCASE
Spin magpi.cc 15
PROJECT SHOWCASE
Hall wanted to do something special for him.” To that end, Chris modelled the device on a
Most of the games played by the group involve gamepad. “I tried to imagine a controller, like an
Christopher Hall is the rolling of dice and the problem for his friend Xbox controller,” he says. “I sought to work out
a Senior Network
Engineer from was all too apparent: without someone reading out how it would look, feel and where the thumbs
Pikeville, KY, USA. the result, he wouldn’t know what numbers were would rest. I wanted to make something that was
He’s a maker at showing. The answer, Chris surmised, was a dice- comfortable and felt familiar and I also needed it
heart and lover of
rolling device that his friend could use independently to operate without being plugged in so I chose a
all things geeky.
which would read out the results and incorporate Raspberry Pi Pico and used an 18650 battery shield
magpi.cc/
dm2000 some other handy features. “I figured it would help to power it along with the other components.”
him out and be a surprise gift,” he tells us.
Roll with it
Selecting the Raspberry Pi Pico meant the dice
roller could be compact and use minimal power.
“It’s instantly on and it was able to handle the
different components I needed, such as a microSD
card reader, an audio amp with speaker and a
litany of buttons,” Chris says.
Those buttons would be 3D printed with Braille
so that his friend would be able to read their various
functions and control the device effectively and
independently. “Adding Braille wasn’t very difficult,”
Chris says. “I designed flat button caps then added
the Braille numbers to them in Blender, the free
open-source 3D computer graphics software.”
Board games often make use of non-traditional
dice – in other words, they’re not always familiar
cubes with six marked faces. The standard
polyhedral dice set also includes those with four,
eight, ten, 12 and 20 sides (the entire set being
referred to as d4, d6, d8, d10, d12 and d20). “I
S The device makes use of a Raspberry Pi Pico board
connected to a protoboard which is wired to the buttons needed to have a button for each one,” Chris says.
and a PAM8302 2.5 Class D single channel amp He also added two extras: Reset and Roll.
Quick FACTS
> It’s a handheld
dice-roller for visually
impaired people
S The prototype
Dicemaster 2000
with its eight
buttons and 18650
battery shield
X As you can see, as
well as a rechargeable
battery and a lot of
soldering, the device
is neatly wired
Amelia, Caleb,
and Zivya are the
three-person team
of GurgleApps, a
STEM YouTube
channel focusing on
electronics that has
been going for years.
They’re also siblings.
magpi.cc/
colwordclock
X The completed
kit, ready to tell
the time
Quick FACTS
> This is not their first
product – that was
the Raspberry Pi
Pico Pinout Coaster
Puttr
Getting good at golf without the green fees with a bit of help
from Raspberry Pi? Rosie Hattersley wants to know more
24 magpi.cc Puttr
PROJECT SHOWCASE
Quick FACTS
> The hole in a golf
course is only 2.5x
the diameter of
the ball
Puttr magpi.cc 25
PROJECT SHOWCASE
he soon discovered this approach was limited: “I user able to access stats on their performance and
could detect when a ball went in the hole, [but] optionally share it with other Puttr users.
I couldn’t detect missed putts.” Next, Matthew Raspberry Pi quickly proved a great choice,
tried break-beam IR sensors to get more precision since it offered an operating system with all
and measure missed putts, as well as ‘makes’, but the tools he needed for the software along with
“quickly realised that any sun exposure would cause good value hardware that worked well together.
false positives in the break-beam”. “Many suppliers tried to talk me into creating my
A friend tipped him off about Raspberry Pi, and own board [but] there were many reasons to use
Matthew soon saw he could use computer vision Raspberry Pi.” The camera connection, Bluetooth,
and a wide-angle lens to detect the location of the Wi-Fi, and processor were all included. Matthew
physical hole, then track any golf ball that passed was also encouraged by the strong community keen
T Putts can be
its field of view. Once a ball has entered or exited, to help with any troubleshooting he might need,
attempted from it sends the full ball path data over Bluetooth to given this was his first ever Raspberry Pi project.
multiple distances
with balls returned
a connected app on an iOS or Android device, he
down a chute explains. Details of each putt are logged, with the Embrace the light
At first, Matthew stuck with his infrared break-
beam idea, testing it in his garage in the evenings
after long days at his day job. There were “a ton of
tweaks” to get the computer vision to work well
under different lighting conditions. Eventually, it
seemed as though the beams were working just as
he expected. “I would get a break when the ball
enters the ramp, and another one when and if it
entered the hole. Perfect!”
Replicating results when demonstrating
the embryonic Puttr game to his son was less
successful. In fact, it didn’t work at all in daylight.
Matthew eventually realised that sunlight hitting
the beam’s receiver was preventing the circuit
being broken even when a ball passed through
26 magpi.cc Puttr
PROJECT SHOWCASE
Puttr magpi.cc 27
PROJECT SHOWCASE
MathGPT
A fun way to learn maths, powered by Raspberry Pi
and AI. Rob Zwetsloot sees if it adds up
28 magpi.cc MathGPT
PROJECT SHOWCASE
Quick FACTS
> Currently answers
are input via a
keyboard
MathGPT magpi.cc 29
PROJECT SHOWCASE
30 magpi.cc MathGPT
PROJECT SHOWCASE
A game of maths
or toys, it was like [a switch turned on]. Suddenly,
they could picture it in their mind and come up
with the answers. It made me see how this kind of
approach could help with visual, verbal, and logical
thinking. I thought if one kid was struggling,
there might be others facing the same issue. So, I
decided to create a fun and engaging way to learn
maths, using what I had learned to help kids grasp
the concepts more naturally.”
Wrangling an AI
Divya broke down the build process into
Turn it on and Math GPT greets you, ready
multiple parts: conceptualising and design, 01 to start giving you questions. Input is
game mechanics, software and AI integration,
currently made via a keyboard.
choosing the hardware, programming, and
testing. With the concept and game mechanics
already sorted, she began designing the prompts
to be used. “Designing the prompts for the
OpenAI API was crucial,” Divya tells us. “The
prompts needed to be carefully crafted to generate
questions that are age-appropriate, engaging, and
varied in difficulty.”
Raspberry Pi became the computer of choice for
the project after this initial development.
“I chose Raspberry Pi 4 for this project because
it’s affordable and portable, making it an excellent
option for a setup that can be easily moved
around,” Divya explains. “Raspberry Pi also makes
Correct answers to the questions posed via
integrating ChatGPT straightforward, allowing for 02 ChatGPT light a green LED to let you know
the use of AI technology without complications. you’re going on to the next question. Wrong answers
Plus, it’s simple to connect hardware like the LCD result in a red, but you’re allowed to keep trying.
display and LED lights to Raspberry Pi.”
After testing and refining her program, she built
the very striking LEGO enclosure. “This hands-
on approach not only protected the electronics
but also added a playful, tactile element to the
project,” Divya says.
Next steps
The project works perfectly in its current form,
with Divya quite proud of how the user interface
is easy to use. She’s not done yet though.
“The next iteration, MathGPT2, aims to
introduce story-based math problems,” Divya
says. “This approach will make learning even more
engaging by weaving arithmetic operations into
compelling narratives, allowing children to solve
math problems within the context of stories.” At the end of the level, your score is tallied and
She also plans to add multilingual support, and 03 you go onto the next level. Questions become
X With Math GPT on wheels
even voice support starting with text-to-speech it looks like it truly is
harder, yet are still suitable for children.
and maybe moving onto voice input too. portable, like Raspberry Pi
MathGPT magpi.cc 31
PROJECT SHOWCASE
Retro gaming
magic mirror
David Edwards’ magic mirror gives information about the present and future
while also providing a blast from the past, reflects David Crookes
David Edwards
smartphone. I have also liked wall-hanging small
arcade machines, but I have neither the space or
I wanted the mirror to
has been tinkering
with electronics
from a young age
permission to install one! The solution, for me, was
to combine both concepts into one device.”
play as many gaming
and he presents
insightful videos for
With that in mind, he went big. And we mean platforms as possible
really big. He took a 65-inch touchscreen and
Element14.
connected it to a Raspberry Pi 5 computer, figuring
magpi.cc/
retromirror games would look amazing across such a large
display. It also enabled David to create a full-
length mirror, despite it posing
issues of its own.
“Working with such a large
display was a challenge due to the
physical weight of moving and
manipulating it,” he explains. “I
think it weighed 48kg so I really
shouldn’t have been lifting it on my
own. I was afraid I would break it by
letting it flex, cracking the screen.”
Looking good
Initially, David tested the concept
using a Raspberry Pi 3 computer
and an official Raspberry Pi
seven-inch touchscreen. He played
around with PINN, a version of the
NOOBS operating system installer, S The display activates
and sought to get everything when someone
walks in front of it,
S With no information being displayed nor any game
working with RetroPie before showing the time,
being played, the device is a simple, full-length mirror ordering the larger equipment. date and more
Quick FACTS
> It uses Raspberry
Pi OS’ Magic
Mirror app
On reflection
David also added motion-sensing using a PIR
sensor. When someone walks in front of the
sensor, the screen turns on. When the person
moves away, it turns off. The display also turns
off at night and comes back on in the morning,
using the Raspberry Pi OS’ Magic Mirror app to
show the weather forecast, a calendar and more.
The build also includes an RS232 converter so
that the Raspberry Pi’s Universal Asynchronous
Receiver/Transmitter (UART) can be converted
for serial communications.
When you want to play, controllers can be
connected via Bluetooth Low-Energy or USB, and
the games look a treat on such a large screen.
There is still room for improvement, however. “I
still need to get around to reapplying the mirror
film again,” he says. “I’d also like to spend more
time with the plugins to the magic mirror platform,
maybe even develop a couple of my own to make W When assembled,
the best use of the screen real estate available. the magic mirror
dual boots between
Maybe in the future there is scope for a camera, Raspberry Pi OS
facial recognition and a multi-user experience.” and Recalbox
Homey Pro
smart home hub
An advanced hub that makes smart home systems smarter,
more customisable, and easier to control. By Phil King
The challenge
omey Pro has a wide target audience:
H “With Homey Pro we really wanted to make the
world’s most advanced smart home hub,” says
anyone with smart devices who wants co-founder and creative director Emile Nijssen.
to automate their home “We always try to strike a balance between user-
friendliness and polished design… but also very
advanced software. So our customers can go really
deep and customise many things, but still without
sacrificing usability. That’s the main reason our
customers choose Homey instead of open-source
projects or limited stuff like big tech delivers. They
want the best of both worlds.”
The new-generation Homey Pro was in
development for over two years and is built
upon the architecture of Homey Bridge, released
in 2022 to add local wireless connectivity to
earlier Homey models. To work with the widest
possible range of devices, it supports numerous
communications systems, including Zigbee,
W Raspberry Pi
Compute Module 4
inside the Homey Pro
Z-Wave, Wi-Fi, Bluetooth, 433MHz RF, infrared, Instead, the team was able to focus specifically
and Thread. on the excellent smart home functionality they
One challenge was to fit all the necessary aimed to offer.
antennas and modules into the device. “We didn’t Integrating Raspberry Pi Compute Module 4 into
want it to look like a gaming router with all these the design was straightforward, he says. “It’s well
antennas sticking out,” says Emile. “So getting documented. The software is readily available. And
that right took a long time. And we also wanted to that’s something I’m very proud of: we did really
profit from the development that we did on Homey build on the booting software so that the Pi turns
Bridge. So actually while designing Homey Bridge, into USB mode so you can flash it with software. And
which is sort of a light version of Homey Pro, even we built this beautiful website around it so you can
if you look at it from the outside, we already were actually flash your Homey Pro within the browser.”
thinking about how we could put our own carrier Most of the other electronics within the device
board on top of it that could carry, for example, a are communication modules. “We have Zigbee and
Compute Module.” Doing this would offer a way Thread. They share a radio, and we have a Z-Wave
to support all the communications modules that chip, and we have a 433MHz modem from Texas
were needed, while providing a mature software Instruments.” There’s also an infrared LED to
environment that would help the team build a rich transmit IR data, along with an RGB LED ring to give
and frictionless user experience. feedback to the user. Everything is connected to a
Raspberry Pi Compute Module 4, which also controls
The solution an ESP32 board to talk to some other peripherals.
“At the point in time when we were designing, the
Compute Module was a perfect candidate for what Why Raspberry Pi?
we wanted to do because the time to market is “I’ve always had my eyes on Raspberry Pi from
faster,” recalls Emile. “We didn’t have to reinvent the beginning,” reveals Emile. “So finally when
the wheel to build a small Linux computer.” the Compute Module 4 with Wi-Fi and Bluetooth
was announced, we jumped immediately on it.
I think like one day after the announcement I
called my electrical engineers and said, you have
to throw everything you did in the trash and we’re
switching to this right now.”
He says the main advantage of using Raspberry Pi
is the software support. “I mean there are a lot of
Linux boards out there, but they come with a ‘build
your own device tree’ kind of vibe. So the Raspberry
Pi community is amazing. There’s a lot of stuff
already done before you. For the Compute Module
itself, it strikes a pretty good balance between W The Homey Pro
functionality, form factor and cost.” Insights Dashboard
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)
38 magpi.cc
SUBSCRIPTION
SUBSCRIBE
on app stores
magpi.cc 39
FEATURE
By Phil King
W
hether on another planet, or our own, robot rovers are
commonly used to explore hostile environments too dangerous
for humans. Equipped with a camera and various sensors robots
can analyse the environment and detect dangers. Some even have a robotic
arm to manipulate objects.
You can build one of these robots from the many Raspberry Pi robot kits
available! These are smaller, and more affordable, making it easy to get involved
with robotics from a safe standpoint. Here, we take a look at some of the best,
from starter kits to more feature-rich builds such as the 4tronix M.A.R.S. Rover
that can handle outdoor terrain. Let’s start exploring…
Starter Robots
If you’re new to robotics and want a simpler project
to get started with, why not build one of these kits?
One of the most affordable starter kits around, it includes the components
needed to build your first wheeled robot, including a motor controller board,
two DC motors and wheels, ball castor, mini breadboard, jumper cables and
resistors. You even get a couple of sensors: ultrasonic for obstacle detection,
and a line follower to track black lines marked on the floor.
The only thing missing – apart from a Raspberry Pi and four AA batteries to
power it – is a chassis. You can either buy one or use the kit’s cardboard box.
Detailed online worksheets, based around Python 3 and GPIO Zero, take
you through building and programming the robot, including getting it to
move autonomously.
W This entry-level kit is ideal for beginners and even includes a couple of sensors
In the standard Pi2Go kit, you get everything apart from a Raspberry Pi and
six AA batteries – if using a Raspberry Pi 4 or 5, you’ll need to switch in a
2 × 18650 battery board. There’s also a 4WD pack option to convert it into a
four-wheeled robot.
The main motor driver board is packed with sensors: four analogue light
sensors, two infrared, and two line-followers. Two breakout slots let you connect
the supplied ultrasonic distance sensor and it includes a four-digit display,
although you could switch these out for other Breakout Garden-standard sensors.
An extra 12-pin connector enables you to add up to four servos too.
W This two (or four) wheeled robot is packed with features and sensors, plus expansion options
W The supplied ultrasonic distance sensor and optional Camera Module are mounted at the front of the robot
Explorer Robots
Start exploring the outdoor terrain of the planet with one
of these robot kits, many equipped with multiple sensors
The Tiny 4WD’s design originated in a tutorial written for The MagPi many
moons ago, but this is a much-improved version. Controlled by a Raspberry
Pi Zero W (not supplied), this mini robot is sturdy and powerful enough to be
used outside, even on gravel paths.
The kit contains all you need to build the chassis, including a mount for a
Camera Module, while a Pimoroni Explorer pHat drives four motors that spin
the large grippy wheels. A mini breadboard is also included, enabling you to
add optional sensors.
W One of the smallest robots around, the Tiny 4WD is a mini marvel that can handle the outdoors
One of SunFounder’s range of PiCar kits, it has four chunky wheels and
is crammed with features including ultrasonic distance and line-follower
sensors, a built-in speaker, rechargeable custom battery pack, plus a camera
with a servo to rotate it. By streaming live video, you can get a first-person
view from the robot. The PiCar-X is programmable in Python or Blockly
– online guides and videos help you get started. AI computer vision enables
the robot to drive itself and recognise objects, faces, and hand gestures.
W Packed with features, this is one smart car – with text-to-speech, it can even talk
W This mini tracked robot can navigate difficult terrain while using an impressive array of sensors
W Mecanum wheels make this one of the most manoeuvrable Raspberry Pi robotic rovers
Not every robot moves about on wheels – some have legs, like this amazing
mechanical humanoid from HiWonder. Powered by Raspberry Pi 4, the TonyPi
has a built-in IMU (inertial measurement unit) to help maintain its balance
as it walks around – it can even get up from lying on its back. It also boasts a
pair of robotic arms with gripping hands to pick up objects. Equipped with an
HD camera, its head can tilt and pan to see around. With computer vision, you
can get it to recognise and track objects, enabling it to kick a football.
W This impressive humanoid robot has AI vision, gripping hands, and the ability to walk
There are quite a few kits available for building an insect-like Raspberry Pi
robot. While some have four legs, this one from Adeept has six limbs as well
as a self-stabilisation mode, making it capable of creepy-crawling over rough
ground. With a camera mounted on a servo on top and four NeoPixel strips for
lighting, it can also look around and use computer vision to recognise objects
and detect motion. Note that for lower power drain and legacy software
compatibility, it’s advisable to use it with a Raspberry Pi 3B/3B+.
W This bug-like robot can crawl over surfaces and use a camera to look around
Underwater ROV
A rocker-bogie suspension
system enables it to roll
over even large obstacles
N
ot only does this robot look remarkably
similar to the real Mars Curiosity rover,
it uses the same type of rocker-bogie
suspension system developed by NASA. This
allows the six wheels to move up and down semi-
independently so they all maintain contact with
the ground while the rover’s body stays level. It’s
amazing to watch in action and far superior to
fixed-wheel buggies in handling difficult terrain.
It can even clamber over fairly large rocks.
The kit does take a little while to assemble, but
the result is a quality build with metal PCB panels,
six N20 micro gear motors, and chunky wheels.
The finishing touch is a mast with an ultrasonic
distance sensor to the top – it’s mounted on a
servo so you can rotate it. The four corner wheels
have steering servos too, enabling quicker turning.
An optional keypad can be added on the rear for
hands-on route programming.
Robot sensors
Give your robot an awareness of its surroundings
by adding one or more sensors NEXT MON
Start bui
TH!
lding
your rob
ot!
Unless it has the more complicated A key metric for analysing your When exploring an unknown
computer vision, the most common robot’s environment is the ambient environment with your rover, you’ll
way a robot can detect large obstacles temperature. Many popular temperature want to sniff out any dangerous gases.
is to use an ultrasonic sensor such sensors can also measure relative The MQ-5 gas sensor can detect LPG,
as the HC-SR04. This works like a humidity and barometric pressure. The natural gas, and coal gas. It has both
form of sonar, and involves emitting a BME280 measures all three and delivers digital and analogue output pins. You
signal and then listening for the echo the data via a digital output to Raspberry could combine it with a flame sensor
to return. The time delay indicates the Pi, so there’s no need to use an ADC to (e.g. magpi.cc/flamesensor) to detect
distance to the object. decode analogue readings. both gas leaks and fires.
Your robot may have eyes (or at least An IMU can determine a robot’s When controlling your rover remotely,
ultrasonic object detection) to help motion and orientation. Sensors a camera is a vital aid for navigation
it find its way around, but adding come with varying DOF (degrees of and getting a detailed view of its
‘ears’ can aid it in understanding its freedom); a 9DOF one (as here) can environment. Whether you use a
surroundings. This sound sensor has an detect three-axis acceleration, three- Raspberry Pi Camera Module or a
adjustable loudness threshold – when axis gyroscopic motion, and three-axis USB webcam, there’s the option
reached, it switches the digital output to compass heading. While not essential of using computer vision such
high. Alternatively, you could use a USB for a wheeled rover, an IMU is vital for as OpenCV (magpi.cc/opencv) to
mic to record and analyse sounds. a walking robot’s sense of balance. recognise objects automatically.
BUILD A RASPBERRY PI
MEDIA PLAYER
Power up your TV and music system
raspberrypi.com
FROM THE MAKERS OF THE OFFICIAL RASPBERRY PI MAGAZINE
magpi.cc/mediaplayer
TUTORIAL
Includes:
supply up to 3A of power. • ribbon cable
The M.2 HAT+ uses Raspberry Pi’s HAT+ • 16mm GPIO stacking header
specification, which allows Raspberry Pi OS • 4 threaded spacers
Nate
MAKER
runs the latest software sudo apt update && sudo apt upgrade
You’ll Need
> Raspberry Pi 5
magpi.cc/
raspberrypi5
> M2 HAT+
magpi.cc/m2hatplus
sudo raspi-config
sudo rpi-eeprom-update -a
6. Remove the drive attachment screw by turning 8. Congratulations, you have successfully
the screw counter-clockwise. Insert your M.2 installed the M.2 HAT+. Connect your
SSD into the M.2 key edge connector, sliding Raspberry Pi to power; Raspberry Pi OS will
the drive into the slot at a slight upward angle. automatically detect the M.2 HAT+. If you use
Do not force the drive into the slot: it should Raspberry Pi Desktop, you should see an icon
slide in gently. representing the drive on your desktop. If you
don’t use a desktop, you can find the drive at
/dev/nvme0n1. To make your drive available for
file access automatically, consider configuring
automatic mounting (magpi.cc/automount).
Time travel
Part 01
experiments
in Python
Create inventive new clocks and calendars
using Python’s built-in datetime module
so you can schedule work to fit. A bar graph calendar top one shows the date, the middle one the month,
McManus
shows where you are in the day, month and year, to and the bottom one the year. Each row is 256 pixels
Author of Scratch help you measure your progress toward your goals. high, a third of the window height. The magic is
Programming in that each row is also a bar graph, showing progress
Easy Steps, Mission
Python, and Web through the day, month and year. The draw_bar()
Design in Easy Steps. function is passed the fraction to show (e.g. 0.5),
green, blue). The Pygame Rect object stores the minute. The day_progress variable calculates
coordinates for the bar as (left, top), (width, height) the minutes elapsed in the day and then divides
and the pygame.draw.rect() function creates a it by the total minutes in a day. To convert the
You’ll Need
filled rectangle. First a bar is drawn full width (the day number into a piece of text (or ‘string’)
> 4-digit 7-segment
background colour). Then a bar is drawn with the for display, we use str(today.day). The month_ display 5461AS
width of the fraction for that row. progress is calculated by dividing the current aliexpress.com or
day number by the number of days in the ebay.co.uk
Top Tip perfect for clocks and can also show most letters
(k, m, q, v, w and x can’t be done). Various types
set its connected pin to 1. The GPIO.output()
function enables you to pass a list of values to
are available. Mine is labelled 5461AS and has 12 a list of pins. In line 23, it’s used to activate
Keep the pins, which you connect to Raspberry Pi’s GPIO the right digit. In line 24, GPIO.output() sends
code simple array. Four of the pins control which digit lights the appropriate number_segments values to the
up. To protect the LEDs, put a 100 ohm resistor pins for the segments. The decimal point is
The calendar’s leap
year calculation is between these pins and your Raspberry Pi. Check turned on for the second digit to separate hours
only accurate until the documentation for connection instructions if from minutes.
the year 2100, but you’re using a different display.
this code is highly
unlikely to be in use
in 76 years’ time. DOWNLOAD
listing1.py THE FULL CODE:
08 Designing the number shapes
Take a look at Listing 3, which runs the magpi.cc/seancode
countdown clock. Each digit on the display has > Language: Python
seven segments, which can be either lit or off. The
segments are ordered in a clockwise direction, 001. import datetime
starting at the top and ending with the middle 002. today = datetime.datetime.now()
bar. They’re usually known by the letters A to 003. xmas = datetime.datetime(
G. The number_segments list contains the on/off year=today.year, month=12, day=25)
settings for the segments in each number. The 004. days_to_xmas = xmas -
first number is zero, so all the segments are lit datetime.datetime.now()
except the middle bar. The last one is nine, so all 005. print(days_to_xmas)
the segments are lit except E.
listing2.py DOWNLOAD
THE FULL CODE:
> Language: Python magpi.cc/seancode
001. import pygame, datetime, time 018. days_in_month = [31, 28, 31, 30, 31, 30, 31,
002. from pygame.locals import * 31, 30, 31, 30, 31]
003. pygame.init() 019. today = datetime.datetime.now()
004. calendar_surface = pygame.display.set_ 020. if today.year % 4 == 0:
005. mode((1024, 768)) 021. days_in_month[1] = 29 # leap year
022. day_progress = (((today.hour * 60) +
006. def draw_bar(fraction, row, color, color2, today.minute) / (60*24))
text): 023. draw_bar(day_progress, 0, (204,153,255),
007. box = Rect((0, row * 256), (1024, 256)) (178,102,255), str(today.day))
008. pygame.draw.rect(calendar_surface, color, 024. month_progress = today.day /
box) days_in_month[today.month - 1]
009. box = Rect((0, row * 256), (fraction * 1024, 025. draw_bar(month_progress, 1, (255,153,255),
256)) (255,102,255), today.strftime(“%B”))
010. pygame.draw.rect(calendar_surface, color2, 026. year_progress = (sum(days_in_month[
box) 0:today.month - 1]) + today.day) / sum(
011. font_object = days_in_month) # Split misses last value
pygame.font.Font(‘freesansbold.ttf’, 160) 027. draw_bar(year_progress, 2, (255,153,204),
012. text_surface = font_object.render( (255,102,178), str(today.year))
text, True, (255, 255, 255)) 028. pygame.display.update()
013. shadow_surface = font_object.render( 029.
text, True, (190, 190, 190)) 030. while True:
014. calendar_surface.blit(shadow_surface, ( 031. draw_calendar()
56, 61 + (row * 256))) 032. for seconds in range(60):
015. calendar_surface.blit(text_surface, ( 033. for event in pygame.event.get():
50, 55 + (row * 256))) 034. if event.type == pygame.QUIT:
016. 035. pygame.quit()
017. def draw_calendar(): 036. time.sleep(1)
Top Tip
Everything
but the sync
12 Displaying the time remaining
The for loop starting at line 37 extracts
The calendar the number for each digit from the time_
updates at one-
difference string and calls the show_number
minute intervals, but
it’s not synchronised function to display it. The time_difference
with the clock. string always has a 0 on the front, even if the
Depending on when
hours are 10 or more. That’s why negative
you start it, it might
update mid-way indexes are used to find each digit number,
through each minute. counting from the end of the string. The third
digit we want to display, for example, is at
position -5. Strings are great for extracting
individual numerals from a long number, but
we have to send show_number() an integer,
because it will be used as a list index to find
the segments to light. Line 38 uses int() to
do the conversion. The tiny time delay in line
X The four-digit display 39 ensures you see all the digits at once, and
measures 5cm by
1.8cm and costs a
the while loop keeps updating the time and
few pounds online. refreshing the display.
listing3.py DOWNLOAD
THE FULL CODE:
> Language: Python magpi.cc/seancode
& GUI
PROGRAMMING
All you need to know
to write simple
programs in C and
start creating GUIs
Inside:
■ Create simple command-line C programs
■ Control flow with conditions and loops
■ Handle variables, strings, and files
■ Design graphical user interface
applications in C
■ Handle user input with buttons and menus
■ Use advanced UI features such as data
stores and dialogs
Raspberry
cash
Build a working cash register with Raspberry Pi
Dr Andrew Lewis
Dr Andrew Lewis is a
specialist fabricator
and maker, and is the
owner of the Andrew
Lewis Workshop.
Right
Yes, you could always
just wear a trader’s
money belt and
carry a calculator
if you need to, but
a battery-powered
cash register with a
working drawer looks
much nicer. Being
able to take cash and
generate receipts
without a power
T
connection can save
hundreds of pounds
in cash if you’re at a he world of the future is a largely CALCULATOR WITH CONTROL ISSUES
trade show where the
organisers charge for
cashless society, but the world of Cash register and EPOS system are really just
power connections today still uses metal tokens and catch-all terms for a fancy calculator, and it’s worth
paper promises to facilitate defining exactly what we’re going to be building here,
QUICK TIP transactions. In an urban store you’ll and why. A typical modern cash register sits on the
probably find an electronic point of sale counter next to the cashier and it allows the cashier
If you want to
(EPOS) system that handles the shopping to calculate the total value of the items being
delete the last item
scanned, use the experience, but when you’re on a market stall away purchased. In the old days, this was a purely
BACKSPACE key. If from regular power, the conventional EPOS mechanical beast that required the cashier to know
you have text in the experience isn’t as easy to implement. In this article, the price of each item and enter it correctly. As
register’s buffer, it you’ll see how to create a working cash register with technology advanced, barcodes were used to give
will delete the last a secure money drawer, barcode scanner, and receipt each item a unique code that could be read by the
character typed. If
printer. You’ll get it all running from a Raspberry Pi cash register and checked against a database of
the buffer is empty,
it will delete the and DeWalt battery, and you’ll also have a built-in prices, so that the cashier no longer needed to enter
last line item added daily transaction log, and the option to use any the items manually into the register unless the
to the current sale. wireless device as an extra till display. barcode was damaged. In modern times, the cashier
REGISTER INPUT
The cash register application gets input from the
barcode scanner and keypad by monitoring system-
wide key presses using pynput. Key presses from the
touchscreen web interface are generated by passing
an API request from the web page back into the main
app, which generates the appropriate key codes
using pynput. It’s worth noting that the generated key
code may vary between OS and the type of device
that generates them. For example, the decimal point
may generate different codes depending on whether
it’s being sent from the main keyboard, the numeric
keypad, or an external device. You may need to adjust
the code slightly to suit your particular input devices.
The barcode scanner used in this project appears
as a standard input device, and to all intents and
purposes acts like a keyboard. When the user scans YOU’LL NEED
a barcode, the code is translated into a string of
Raspberry Pi 3
characters and ‘typed’ into the computer. To avoid the (or similar – less
need for a database of scannable items, the barcode powerful versions
is encoded as a simple string with a ‘:’ symbol as draw less power)
the delimiter. The first part of the string is an item
description, and the second is the price of the item. So 7” HDMI
touchscreen
a barcode with the string ‘snacks:5.4’ would generate
or a tablet to view
a sale item with the title ‘snacks’ for £5.40 (or whatever the till display
currency you’re working in). The type of barcode isn’t
actually very important: as long as it can encode the Barcode scanner
text you want to enter correctly, the scanner will read amazon.co.uk/dp/
B08CHFN3T2
and decode it as plain text.
DC solid-state
relay
that displays the current transaction in a browser. The amazon.co.uk/dp/
B07PYZZ3G4
browser launches in kiosk mode when the computer
starts. This might seem a strange way to implement Cash drawer, 12 V
the display, given that there are several GUI tools RJ11 connection
amazon.co.uk/dp/
(like Pygame, PyQt, or Tkinter) available for Python, B09ZL3J1M9
but it’s actually a very flexible way to implement the
interface. The web browser can be easily customised M110 thermal
receipt printer
with HTML and CSS to alter its appearance without amazon.co.uk/dp/
needing to change the main Python code, and B0C33JSKTL
additional interface functionality can be added using
Set of laser-cut
JavaScript on the client side. You can also connect case pieces
is sometimes entirely missing from the equation and multiple web browsers to the same cash till and use (or suitable
project container)
the shop makes us do all of the work ourselves, them as remote displays or remote terminals
paying for items by putting money into a slot or for the register. 2 × XL4015 5 A
waving a debit card in front of a scanner. What you For this project, you will be connecting the step-down
will be creating is something like the last generation Raspberry Pi to a basic receipt printer, which adjustable PSU
amazon.co.uk/
of cashier-driven register. Your cash register will have requires between 5 and 9 volts to power it. You gp/product/
a touchscreen interface, a barcode scanner, a remote may have already spotted the immediate B081JP5YZP
keypad, a receipt printer, and the facility to keep daily problem that the Raspberry Pi GPIO header uses DeWalt 5 A
transaction lists that can be read at a later date. This 3.3 V and isn’t 5 V tolerant, although this isn’t battery
register won’t accept debit or credit cards by default, actually a huge issue. The printer only needs
3D-printed
but it should be possible to add that functionality if bidirectional communication to report the status of DeWalt battery
you want it. With a little extra work and a third-party the paper tray (which isn’t really necessary for adapter
API like Square, you could generate transactions that everyday use) and the 3.3 V GPIO voltage of the (or similar,
hsmag.cc/
accept card payments from a contactless reader. Raspberry Pi is high enough to trigger a high input on DWBatteryAdapter)
The cash register application is written in Python, the printer, so it’s possible to connect the printer
and uses a Flask web server to generate a web page directly to the Raspberry Pi without a level shifter, Inline fuse 1 A
KIOSK MODE
and serial console is disabled, accept any changes,
You’ll probably want to automatically run the keys.py file and start a kiosk mode
and reboot the machine.
web browser when the computer starts up. To do this, you need to install some
Next, you’ll need to install some Python libraries packages that will help you control the window manager, and edit the autostart file in
that the cash register application depends on to /home/user/.config/lxsession/LXDE-pi.
get your code working. You’ll need the Blinka Begin by installing the packages:
library and the Adafruit Thermal Printer library, sudo apt-get install x11-xserver-utils unclutter
which you can install by following the instructions at Edit the autostart file using nano:
sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
hsmag.cc/AdafruitReceiptPrinter. Next, you’ll
Add the following lines to the autostart file:
need to install the Flask framework, which you will @python /home/user/Desktop/till/keys.py
be using to create a Python-based web server. @chromium-browser --kiosk --incognito --disable-pinch --overscroll-
Follow the instructions found at hsmag.cc/Flask to history-navigation=0 http://127.0.0.1:5000
do this. Then, install the cash register files into a @xset s noblank
folder called till on the desktop (or in the location of @xset s off
@xset -dpms
your choice). The main application in the folder
@unclutter -idle 0.1 -roo
is keys.py.
Save the file and exit nano. This autostart configuration will cause the Raspberry Pi to
Next, you need to wire up all of your electronic boot into a kiosk mode, disable the screensaver, and hide the mouse. It’ll also mean your
components to the Raspberry Pi’s GPIO pins. You’ll desktop will be completely blank. If you want to be able to access the desktop, you’ll
be drawing power from an 18 V battery, and dropping need to edit the autostart again to include the following lines at the top of the file:
to 5 V and 12 V using buck converters. The 12 V buck @lxpanel --profile LXDE-pi
converter is used to open the cash drawer, and can
QUICK TIP
The more powerful
the Raspberry Pi,
the more battery
power it will need
to run. A Raspberry
Pi 3 will be fine for
this project.
Left
You can see from
this diagram that
the wiring for the
cash register is not
complicated, but
there are a couple
of things that you
should watch out for.
Firstly, this diagram
doesn’t show
the USB or HDMI
connections for a
touchscreen or other
peripherals. When
you are mounting
your Raspberry Pi
inside your case, be
sure to allow enough
space for cables to
plug in. You should
also apply the same
thinking to make
sure that you can get
batteries in and out
easily. Remember
that any digital cable
is susceptible to
interference, so keep
the cables to your
external components
as short as possible
be omitted if you have a 24 V cash drawer. If you thermal printers to print out their input voltage
have a 12 V drawer and want to risk omitting the buck during a self-test. This isn’t very accurate, so don’t
Above
The inside of the case converter anyway, the risk and responsibility are your be too worried if the reported voltage is slightly
should be neat and own to consider. It may work fine, or it may burn out under 5 volts. The thermal printer is also a power
tidy, properly fused,
and inaccessible to the drawer solenoid after a while. hog, and can draw up to 10 W while printing. The
the general public.
Lots of venues will
The 12 V power is controlled by a solid-state relay Raspberry Pi itself (and USB peripherals) will only
ask you to create a connected to GPIO 17, and should only trigger for a be drawing a couple of watts, but if you are using a
risk assessment for
your stall, and prove few milliseconds at a time, which would probably touchscreen display, it can add another 4 or 5 watts
that your equipment is prevent the solenoid from damage, but that isn’t to overall consumption depending on how it’s
safe. Exposed wires or
pins (even low voltage guaranteed safe to use. The other 5 V configured. If you’re planning on a long workday,
ones) don’t look good buck converter is used to power the Raspberry Pi consider taking along extra batteries just in case
to an event organiser or
health and safety officer and the thermal printer. It’s not unusual for you start running short.
Below
This project is likely
to get bounced
around a bit when
you’re setting up and
disassembling your
store. Make sure that
your case is sturdy
enough to deal with
that by gluing your
joints well
Left
There’s plenty
of spare pins for
expansion of the
cash register, so
adding NFC readers,
servos, or custom
button boards is
absolutely possible
Raspberry Pi
SUCCESS
STORIES
As well as lending itself to innumerable creative projects,
Raspberry Pi has a trusted role at the heart of many products.
By Rosie Hattersley
T
he relatively low cost of Raspberry Pi has researchers and start-up businesses make regular
always been one of its prized features, use of Raspberry Pi alongside its industrial
lowering the cost of entry to technology cousin, Compute Module; prizing its robust
and computing in an attempt to make the hardware, Linux base, passionate user community
discipline more accessible. and, yes, relatively low cost, when designing and
Since 2012 Raspberry Pi has been “on a mission building putative products for commercial release.
to put high-performance, low-cost, general- Raspberry Pi is rightly proud of the hundreds
purpose computing platforms in the hands of of ways its passion–project has been adopted
enthusiasts and engineers all over the world”. by home users, educationalists and industry.
Global sales of Raspberry Pi over the 12 years of Money from industrial sales is ploughed back
its existence have topped 60 million, with users into the Raspberry Pi Foundation to fund ongoing
in almost every country. The MagPi has reported computing education projects while buying
on Raspberry Pi projects from New Zealand to the products badged ‘Powered by Raspberry Pi’ has
Arctic, Hawaii to Nepal with many instances of become a hallmark of quality and reliability.
remote classrooms, distant wildlife monitoring, Here are some of the practical and prosaic ways
citizen stargazing, telemedicine, antigen testing, Raspberry Pi has been making a difference.
and diverting forms of entertainment regularly Maybe one day your passion project will become a
filling our pages. Medical institutions, university success story!
ENTERTAINMENT
Korg synthesisers
magpi.cc/korg
Korg is an iconic Japanese synthesiser brand that came to prominence in the 1970s and
1980s having launched drum machines in the 1960s. Expanding into both professional and
hobbyist synthesiser markets it was a very early adopter of DSPs (digital signal processors)
– specialised chips that enable real-world analogue audio to be rapidly manipulated in
digitised form. Success soon equalled demand for ever more complex processing along
with support for polyphonic voices, leading Korg to launch pricier models in part because
it used custom ASIC (application-specific integrated circuits) designs. To break free from
the constraints of ASIC designs, Korg’s California-based Korg R&D team has focused on
producing affordable DSP synthesisers without compromising on features. Their goal was
to make products accessible to many more musicians, by reaching the sub-$1000 price
point. Korg made the switch to Raspberry Pi’s Compute Module 3 to get
all of what it needed, for a lot less.
“It’s smaller, cheaper, faster, lighter, and better” says product
development manager Dan Phillips. The main panel board contains
all of the user interface elements, including display, buttons,
knobs, wheels, and other synth-specific controls, along with
MCU microprocessors to support them and communicate with
the CM3. Development took only a year, with the “very well-
received” wavestate modwave synth launching in 2020. The
CM3 is “very powerful, which makes it possible to create
deep, compelling instruments.”
Making homes ‘smarter’ using IoT (internet of things) connected devices is a fabulous
use of Raspberry Pi: connect your device via a web-based service and use a dashboard
Read more or app to remotely control or schedule lights, heating, curtains, music, washing
on page
34
machines, fridges and more. Trouble is, you can quickly end up needing multiple
apps, hubs and remote controls, since compatibility isn’t a given.
Homey Pro combines everything into a single,
local network-controlled hub that is largely
brand-agnostic. The Compute Module 4 smart
hub works with almost every IoT device, supports
Zigbee, Z-Wave, Wi-Fi, Bluetooth, 433MHz
RF, infrared and Thread, and is “packed with
modules and antennas to support a wide range
of communications protocols,” explain its Dutch
makers Emile Nijssen and Stefan Witkamp.
They were keen to strike a balance between
user-friendliness and polished design, without
sacrificing usability; this user-adaptable ‘best of
both worlds’ approach in which users can create
and share code-free Flow home automation
setups has paid dividends in terms of attracting
customers. Compute Module being Linux-based
works well for the Homey team, as they didn’t
need to reinvent the wheel, allowing them to focus
specifically on excellent smart home functionality.
iPourIt
magpi.cc/ipourit
Queuing at the bar trying to catch the quickly swapped out behind the scenes and
server’s eye is rarely the most edifying a greater range of beers offered. Customers
experience. Indeed, lengthy waits for have to pass an ID check that verifies their
food and drink service partly inspired the age, saving the business another headache,
concept of iPourIt, in which customers while the streamlined self-serve beer
instead buy an RFID smart key to distribution system also saves on waste.
open a bar tab and then walk up to the Bars can optionally offer a taster before the
selection of drinks and serve themselves. customer buys a full or half pint.
The idea encourages beer drinkers The iPourIt concept began in 2011 as an
(craft beer aficionados are the typical Android tablet-based business, but they
demographic) to drink new products as were expensive to maintain and could not
well as democratising and streamlining be reliably fixed or upgraded remotely. A
the purchasing process. 2019 switch to Raspberry Pi solved both
It also has a novelty factor and proved issues, with Power over Ethernet support
a selling point for pubs and restaurants adding remote control and troubleshooting
keen to attract punters into venues. to the compelling concept. Components
Hospitality venues that buy into iPourIt can be easily switched out. This Raspberry
have a space-saving bar wall installed Pi auto-pourer also undercuts rivals by
while the smarts are handled by either roughly 20%. The concept is accurate to
Raspberry Pi 4 and Compute Module 3. A a millilitre, and its reliability impressed
single CM3 for each beer line controller iPourIt sufficiently that it introduced a
serves 12 taps, precisely measuring each liquor self-service model five years ago.
pour, while Raspberry Pi 4 powers the There are now several thousand iPourIt
touchscreen menu. The idea works well for walls in the US, and a growing number in
beer festivals in which single kegs can be the UK. Thirsty yet?
INDUSTRIAL
AUTOMATION
Sfera Labs
magpi.cc/sfera
When buying technology for personal use – a tablet, router, laptop or screen – you probably expect to use
it for a few years and then either upgrade or get something newer or different. For industry customers,
long-term availability and knowing a key component won’t be discontinued is fundamental. “Nobody is
going to invest in an application if they are not 100% sure that in five years they will be able to use the
application,” Sfera COO Maria Chizzali notes. Her company, Italy’s Sfera Labs, designs and manufactures
critical automation hardware, sensors and controllers for the
energy industry as well as server companies, data centres and
factories. Sfera Labs’ hardware-independent Strato Pi products –
DIN rails, power supplies, hardware enclosures, controllers and
sensors and RAID arrays – all work seamlessly with Raspberry Pi
Compute Module and are top-quality components that don’t tie
customers to a specific company because of the software. Sfera
also makes a range of Iono IoT controllers and sensors aimed at
micro-businesses, such as boutique hotels that need to manage
heating, lighting, and ventilation, and to control guest access. These
user-friendly Bluetooth devices also use CM4, which was chosen as
the ideal device for fast prototyping, value and resilience, as well as
Raspberry Pi’s guarantee to business customers of ongoing support.
Given the undoubted success of Compute Module, Pi had already sold seven million units and was
the industrial version of Raspberry Pi, it may seem known and embraced by developers. IoT devices
odd to suggest that such uses were not part of needed some form of ‘glue’ to work with hardware
initial plans. Accessible, modular, user-configurable across brands and industry sectors, and consumer
hardware also seems a natural fit for developers. electronics firms were all about proprietary hardware
German company Kunbus GmBH recognised this and software. “There was a culture clash. The
potential as early as 2016. Industrial controllers (as Internet of Things made PCs and controllers need to
industrial computers were termed) were prized for get along and Raspberry Pi was common ground,”
their reliability but were a largely unknown quantity says Kunbus founder Boris Crismancich.“The
outside their specific use cases, whereas Raspberry company’s commitment to sharing code and
schematics wherever possible, together with the
adaptability of the platform – pretty much anything
open source was compatible with Raspberry Pi by
design – made it unique.
Kunbus set about developing what was to become
Revolution Pi, the first ever industrial Raspberry
Pi controller model featuring the more robust
specifications OEMs needed, including open-source
modular design, support for a 24V power supply, DIN
rail mounting, I/O expansion modules, and optional
Ethernet, alongside a custom operating system. In
an unheard of 10 months, with valuable input from
the Raspberry Pi community, Kunbus developed
and launched Revolution Pi to great success. When
Raspberry Pi launched its own industrial model,
Compute Module 1, two months later, its hunch was
fully validated.
Brompton Bikes
magpi.cc/brompton
GLOBAL
IMPACT Freight Farms
magpi.cc/freightfarms
Container farming offers a way to improve food security, and is ideal for
locations with insufficient space, water or nutrients in the soil to raise crops
in fields. The hydroponic approach of companies such as Freight Farms, which
supplies university campuses, remote island communities that lack natural
resources, and food banks with fresh leafy vegetables and herbs, is to increase
“local food access and create a replicable model and a product that could be
used to grow food anywhere, all across the world”. Freight Farms was founded
by two Massachusetts Institute of Design graduates who wanted to set up roof
gardens in inner-city Boston. For their Leafy Green
Machine they fitted out old shipping containers
as climate-controlled environments split into a
seeding area and a main growth area with plants
growing vertically. Raspberry Pi sensors would
monitor pH levels, nutrients, light, temperature,
air and soil moisture, while cameras checked on
plant growth. Highly efficient LEDs and filters to
clean and recycle water kept energy costs relatively
low, with the result that a single container could
produce up to four tonnes of food annually.
Raspberry Pi 4 hardware made controlling each
Leafy Green Machine practicable remotely using IoT
components and a web-based dashboard, while a
switch to a wider angle of view, user-configurable
Raspberry Pi Camera Module made this, and a
switch to app-based monitoring, feasible, with
notable improvements to each site’s efficiency
and food yield. “The cameras take us to that next
level of the farm being foolproof, says supply chain
manager Meaghan Holmes, “while the app helps
the crop grower to notice problems promptly”.
Directed Machines
magpi.cc/directedmachines
CLEVER
CAMERAS
Raspberry Shake
magpi.cc/raspberryshake
Velo AI
magpi.cc/veloai
It’s no secret that cyclists and motorists don’t always share road space harmoniously.
Velo AI is on “a core mission to improve safety for all forms of mobility through the
use of smart technology,” using Compute Module 4 and a camera to detect approaching
vehicles. These, plus an M.2 Hailo generative AI accelerator board, work out what sort
and size of vehicle is nearby – a small car being less problematic than a lorry or bus
– and determine whether they are coming close enough and travelling fast
enough to distract or endanger the cyclist. The device, known as CoPilot (not
related to either the sat-nav company or Microsoft AI tool of the same name),
attaches to the bike frame beneath the saddle and has a fixed-lens camera
to monitor approaching traffic. Broadly speaking, CoPilot provides the rider
with situational awareness. Moving objects are categorised as ‘following’ but
not coming closer; ‘approaching’ or, the most likely to be dangerous due to
closer proximity, ‘overtaking’. Should a hazard be detected, CoPilot sets off
lights and sounds the alarm to help prevent dangerous situations and crashes.
A handlebar-mounted smartphone can also show current traffic and the road
layout on a Velo AI app.
Low power consumption isn’t a given for processor-intensive AI tasks, and
other boards were rejected largely because they used so much juice. Velo AI’s
robotics expert Clarke Haynes says: “The mere fact Compute Module 4 is a
separate discrete component that just works; we can use everything that’s on
it, including the Wi-Fi and Bluetooth.” CoPilot draws only four to five Watts,
resulting in up to five hours battery life between charges.
SMART
STUFF
Medical marvel critical heart treatment to be stored and
magpi.cc/ekoracardiology efficiently retrieved. The Zero W’s lovely
compact and low-power solution that includes
Medical monitoring equipment doesn’t come USB OTG functionality was “spot-on for our
cheap, but knowing who needs to have their requirements,” while the level of support
organ health checked in the first place is another available from the community and running
tricky aspect of managing a modern health on such a well-designed OS as Raspberry
service. Cardiologists Dr Alan Robertson and Dr Pi OS Lite “made all the difference during
Dougie Elder decided to tackle the thorny issue development,” he says.
of managing patients’ records (often kept on
paper in filing cabinets) and how to efficiently Having proved the concept worked, he set
transfer data from machine to database. Securely about designing a case for it in KiCAD and
downloading pacemaker information from a has since helped with the rollout of EKORA
patient to electronic records and ascertaining across neighbouring healthcare trusts in
priority cases turned out to be a matter of Scotland and beyond. “Some people get
initiating a USB thumb drive download without a defibrillator fitted because their heart’s
the incumbent access risks that means NHS response at times needs a strong electric
hospital networks block such devices. shock to get them back to a normal rhythm.
That episode is the kind where you want to
Alan realised emulating USB On-The-Go on store what happened because it will actually
Raspberry Pi would mean it could be used show the heart rhythm during the episode and
in a similar way to a flash drive, and enable whether the treatment was appropriate.”
CubeSats
magpi.cc/space
CubeSats are tiny but important self-erecting as the many experts who helped Raspberry Pi
space modules that can be used for research launch Astro Pi, which accompanied British
purposes and lend themselves very well to being astronaut Tim Peake aboard the ISS, readily
launched into the atmosphere with satellites attest (magpi.cc/astropiyt). The UK Space
(hence their name) and being stowed away on and European Space Agency project involved
spacecraft such as the ISS (International Space schoolchildren developing investigative citizen
Station). Anything that is to go into space science investigations that are then deployed by
undergoes rigorous testing and certification, ISS astronauts and results sent back to Earth,
underpinning rigorous scientist learning and
promoting STEM careers. Raspberry Pi has been
accumulating a solid flight heritage since Astro
Pi’s debut space mission in 2015. Hardware used
in Raspberry Pi-based in CubeSats are space-
hardened versions of the industrial board which is
popular for rapid prototyping. CubeSat designers
can build a flatsat using the same tooling they
use in orbit, and move to industrialised versions
of the hardware once they are flight-ready.
Examples include the GASPACS (Get Away Special)
CubeSat designed and launched by Utah State
University students which was based around the
tiny, lightweight Raspberry Pi Pico. The NASA-
backed GASPAC spent 117 days in space in 2022
testing passive attitude stabilisation on a metre-
long satellite balloon, correcting its trajectory and
demonstrating enhanced control options.
he NASA-backed GASPAC
T
spent 117 days in space in 2022
Blue Robotics’ range of modular underwater drone kits and parts is one of
the very coolest commercial uses of Raspberry Pi that we’ve encountered.
With a back story involving a personal challenge to autonomously power
a surfboard from the US West Coast to Hawaii, the submersible Blue Rov
(short for remotely operated vehicle) can capture
1080p video footage and has an on-board
gyroscope, accelerometer and magnetometer as
well as pressure, depth, temperature, voltage
and leak detection sensors. A Raspberry Pi 4
capped with a Navigator Flight Controller runs
Blue Robotics’ own BlueOS and adroitly handles
processing and computing duties. Impressively,
it can be used to depths of 100m, while a
premium model can operate 300m beneath the
waves. Withstanding such pressures and depths
makes Blue Rov far more than a hobbyist device:
emergency services’ search and rescue crews have
made invaluable use of them.
PiDP-10
Oscar Vermeulen / CEDS magpi.cc/pidp10buy From £296 / $370
SPECS
Oscar Vermeulen is back with his most ambitious
ASSEMBLY retro kit yet. PJ Evans returns to the space age
TIME
Approx six hours
DIMENSIONS
Approx 56w
x 16h x 13d
POWER
Via Raspberry Pi
INTERFACES
HDMI, SSH,
RS232
OPERATING
SYSTEMS
EMULATED
TOPS-10, ITS
72 magpi.cc PiDP-10
REVIEW
Assembly
Assembling the kit is not for the impatient. It took
your reviewer a total of about six hours over two
days. What really made the assembly a pleasure is
the solid online documentation, with lots of hints
and tips, and a superbly notated PCB, ensuring the
builder knows orientation of components at every
step. Oscar has been generous with spares and even
provided parts for mounting optional ‘hacks’.
There are a lot of components to assemble,
including over 120 LEDs and 74 switches. The kit
is well within the capabilities of anyone who is
confident with a soldering iron and there is no
SMD soldering to worry about. Patience is a virtue
here, and will be rewarded with neatly aligned
LEDs and switch banks. Oscar has some great
tips along the way to help you achieve a perfectly
aligned lamp array.
To run everything Raspberry Pi 5 is recommended, It’ll be the best-looking
mounted on the rear of the main PCB, but depending
on what you want to do, you can go all the way
computer in your collection S Once completed,
the builder is
down to a Zero 2 W. The kit comes with a number of rewarded with an
impressive light show
optional hardware improvements, including cutouts A nice touch is the teleprinter software included
and mounting points for RS232 adaptors and large (you’ll need to use HDMI for this). You can also use
cooling fans for an authentic sound. SSH or even hook up an original terminal or teleprint
via the optional RS232 interface. Care has been taken
Software to ensure the main OS is not tampered with, so you
Once built, generous instructions for its use are can ‘double duty’ your Raspberry Pi if you wish.
provided. Software installation is straightforward, The price may make you wince but this still
running on top of an existing Raspberry Pi OS install. represents good value for money. The time, care
You have the option of running DEC’s own TOPS-10 and effort put into the kit design, its instructions
OS or the more fun ITS from MIT. Documentation and provided software truly impressed us. Fun to
and lots of software make this a great tool for build and rewarding to explore. A must for any
exploring computer history. retro computer enthusiast.
Verdict
A near-perfect
execution of
preserving
computer history in
a fun and creative
way. Patience and
a steady hand
will reward you
with an amazing
experience and a
beautiful object.
CrowPi Compact
Raspberry Pi
Educational Kit
Elecrow magpi.cc/crowpi £165 / $208
SPECS
FEATURES:
An educational electronics kit that looks smart
• Nine-inch and bristles with fun stuff. By Ian Evenden
touchscreen
• LCD module
• Camera
• LED segment
display
• vibration motor
• buzzer
• sound sensor
• PIR
• servo interface
• UART
• temperature
sensor
• GPIO
• more
CONNECTIONS:
• USB-C
• USB-A S The board is nicely laid out, and the components aren’t
cramped together
• HDMI to
U
connect to
Raspberry Pi sing Raspberry Pi as a platform to microSD card, USB lead, and power/video cable
4B or 5 experiment with electronics is excellent first) and you’ve instantly created a small
DIMENSIONS: fun. However, sometimes it can be messy, electronics lab. Downloadable lessons are available
270mm × and it takes time to amass the bits and pieces for Scratch, Python and Minecraft, or you can go
170mm × 80mm needed. Enter the CrowPi Compact Raspberry Pi your own way.
Educational Kit, a board in a box to which you add
your own Raspberry Pi. Box of delights
The board itself comes in a sturdy case with Elsewhere on the board you’ll find a USB-C power
a handle, looking very much like we assume input, speakers, an LED display, GPIO pins, an
espionage equipment looks, and in this upgraded RFID chip, plenty of sensors and switches and
version there’s a nine-inch touchscreen in LEDs, and more besides. In the box there’s also a
the lid. Screw your Raspberry Pi 5 (or 4B) to startling array of extra components, including a
the mainboard (remembering to plug in the pair of SNES-like gamepads, a US-style power plug
74 magpi.cc CrowPi
REVIEW
7
Having a power connection enter vertically at the they do mean is that, in its current state, it’s
top right of the motherboard feels clunky too - it slightly difficult to recommend the CrowPi
/10
would have been so much tidier to have it pierce Compact Raspberry Pi Educational Kit, which
the casing at the rear. is a shame, as it could be brilliant.
CrowPi magpi.cc 75
REVIEW
ED-IPC3020
EDATEC magpi.cc/ipc3020 From £113 / $140 (ex. VAT)
SPECS
An industrial PC based around Raspberry Pi 5. By Phil King
FEATURES
Metal case,
heatsink base
and cover, RS-
232 and RS485
ports, audio in
and out, M.2 M
Key connector,
RTC CR1220
battery holder,
5V out, speaker
connector,
buzzer
S Removing the case top reveals Raspberry Pi 5 connected to
RAM a motherboard with some extra ports
4GB or 8GB W The metal case, with a large ridged heatsink, includes extra
ports for RS-232/RS-485 and audio in/out
(Raspberry Pi 5)
STORAGE
(SUPPLIED):
32GB or 64GB Pi 5, covered by a ridged heatsink, with access to
microSD, 128GB its other ports and GPIO header. The motherboard
or 256GB SSD includes extra connectors for 5V out (for an
D
optional LCD screen), speakers (4Ω 3W stereo), and
esigned for industrial settings, the ED- extended PoE. On the underside, requiring removal
IPC3020 houses a Raspberry Pi 5 and an of the base to access, are an RTC battery holder (for
extra motherboard inside a robust metal
case. That motherboard provides a few more ports
and features. On the front, alongside the usual USB Y ou can buy the unit
and Ethernet ports, are 3.5mm audio in and out
jacks, four LED indicators, plus a couple of three- with an optional 128GB
pin connectors for RS-232 and RS-485 – used
to connect industrial-standard add-ons such as
or 256GB SSD installed
Verdict sensors and relays.
or add your own
There’s a slot in the case for the microSD
A solid unit with card, although you’ll need tweezers to pull it out
super cooling and
extra features,
again. Power is via USB-C using a standard 5V/5A CR1220) and an M.2 M Key connector for an NVMe
but no DIN rail Raspberry Pi 5 PSU, rather than the 8–24V barrel SSD stick. You can buy the unit with an optional
mounting option. jack used in previous EDATEC IPC models. 128GB or 256GB SSD installed or add your own.
The lack of a fan is no problem as the passive
8
cooling from the two heatsinks is highly
Inside the case effective. During a 30-minute stress test, the CPU
/10
Removing a few screws enables you to remove temperature reached a maximum 59.3°C, nowhere
the top of the case. Inside, you’ll find Raspberry near the level requiring throttling.
76 magpi.cc ED-IPC3020
Learn coding
Discover how computers work
Build amazing things!
magpi.cc/beginnersguide
PLAY
& CODE
GAMES!
RETRO GAMING WITH
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
cooking QR cooking
‘Food should have a QR code your microwave can read’ is an excellent
projects
thesis statement, and this Raspberry Pi-powered Microwave does
exactly that. It’s manually programmable too.
magpi.cc/rpimicrowave
OnionBot
Perfect caramelisation Smart kitchen display
Using computer vision, this project
keeps an eye on your food while Info at-a-glance
you’re otherwise distracted, Smart displays are a similar kind of project to a magic mirror, and this
controlling the power of an induction one is designed for the kitchen. We’d add some recipe web pages
hob. It was originally made to help ourselves, along with measurement converters.
create perfectly softened onions.
magpi.cc/kitchensmart
magpi.cc/onionbot
magpi.cc/burning
Warning!
Electrical Safety
Many kitchen gadgets
use high-power circuitry,
be extremely careful if
you plan to copy one
of these projects
magpi.cc/
electricalsafety
magpi.cc/aisteak
magpi.cc/pifire
magpi.cc/picosv
Raspberry Pi
controlled oven
Beer brewing
Reliable baking
If you’ve ever had an oven that Ale’s well
doesn’t keep a constant temperature, In issue 130 we covered brewing
you’ll know it’s tricky to cook some beer, using Raspberry Pi to make
things properly. Fix it with better the perfect alcoholic beverage
temperature control. to your tastes.
magpi.cc/ovencontrol magpi.cc/130
Java Programming
University Java is one of the world’s
AUTHOR
CodeGym
CodeGym One of the best ways to learn online environment. A gamified
Further
AUTHOR
Brian
O’Halloran
The Raspberry Pi Brand Manager helps makes sure
everything you see is beautiful and consistent
W Raspberry Pi in-house
photography
X A creative cracked-mirror
shot from Shoreditch
W Raspberry Pi 4 boards
being soldered on the
line at Sony Pencoed
factory, Wales
Events in pictures:
Mayday Pi Jam
in Leicester
FIN
NEX T D OU T AB
Community and official events in the wild AND
M ON O
TH’S U T
POP-U EVEN TS
P S ON
H
PAGE
eld at Leicester Hackspace, this event 92
focussed on camera projects, with
members of the hackspace old and new
(and lapsed!) coming along to see some cool
projects. Here’s a small report from the event
organiser Steve Gale.
“The All Sky camera was popular, with images
from Leicestershire, plus some photos taken in
South Australia with an identical device, We were
all jealous of the photos of the milky way! We also
had a Raspberry Pi 5 controlling a servo using
gestures, based on one of “Kevs robots” projects,
plus a USB controlled arm. Another member set up
retro-pie. Our youngest member Anna showed off
her nature cam using a Raspberry Pi Zero W.”
03 01
Offline
have an abundance of USB
ports to use too
GPS
fly around the sky in some virtual planes
tracking
Track your movements and map your past
route, no mobile internet required
03
MagPi
Monday
Amazing projects direct from social media!
01
88 magpi.cc #MagPiMonday
THIS MONTH IN RASPBERRY PI
05
04
06
Crowdfund this
Raspberry Pi projects you can support this month
PiWings 2.0 is finally live, this custom flight controller The latest CodeRover is a beefy looking robot, with its friend
for Raspberry Pi Pico-powered drones is designed Snowcat complete with treads for rough terrains – maybe
specifically for educational purposes but we won’t tell this would be a good platform for a science smart robot. They
anyone if you use it to make a cheap, light drone for you come with the ability to add a huge number of add-ons, and
to play around with are fully programmable.
f kck.st/3x6epnY f magpi.cc/coderoveratv
#MagPiMonday magpi.cc 89
YOUR LETTERS
Your
Letters
Upgrade worries
I’m worried, and maybe others are too. Or have I misunderstood Updating Raspberry Pi OS, which is based on Debian Linux, is a
something? I have a nice Raspberry Pi 5 8GB with M.2 HAT+. little different to doing the same thing in Windows. Depending on
I’m booting from the M.2 and took out the microSD card. So I’ve how you use it, you won’t necessarily need to update it anyway.
loaded up Apache and MySql and some web pages and various However, if you want you can get some more software updates by
other software and lots of MP3s, and am about to play with using the command sudo apt dist-upgrade instead of upgrade in
AI. I’m running Bullseye... but what happens when I want to the command line.
upgrade to Bookworm? The recommended route seems to be to If you decide you do want to update to the next version
use Imager... but won’t I lose everything I installed? of Raspberry Pi OS properly, though, you will need to install
I’m not sure I’m up to a manual update – possibly rpi-update it from scratch. Luckily, you can back up your Home folder,
– but I’d feel safer doing that and a backup with you holding my along with settings for important apps, and return most of them
hand. Can you show me (and others) how please? once installed. It’s likely you will have to set up some of your
software again though.
We haven’t done a backup article in a while though, so perhaps
Paul via email that is something for the future!
FREE
RASPBERRY PI
S Our back issues aren’t going anywhere either PICO W
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
04
Community
Events Calendar
Find out what community-organised Raspberry Pi-themed
events are happening near you…
01. M
elbourne Raspberry Pi Meetup 03. Experience Raspberry Pi @ Purple Space
Sunday 7 July Sunday 7 July
107 Victoria Harbour Promenade, Melbourne, Australia Purple Space Library, Udupi, India
magpi.cc/mrpm143 magpi.cc/ps143
This meetup is open to everyone with an interest in Raspberry Pi enthusiasts come together to share their
electronics, robotics, home automation, 3D printing, laser passion for creating and designing projects with Raspberry
cutting, amateur radio, high altitude balloons, space tech, Pi technology. This is an opportunity to empower young
etc. Makers are invited to bring along their projects and minds to learn computing using Raspberry Pi and become
project ideas, and come connect with other makers. Get your confident innovators and creative digital makers Get to see
questions answered, show off the work you are doing, and the newest addition to the Raspberry Pi product family, the
get support to resolve nagging issues. Raspberry Pi AI Kit with the Hailo-8L co-processor, a 13 trillion
operations per second (TOPS) neural processor, making
02. Japanese Raspberry Pi Users Group at edge machine learning and computer vision much faster on
Open Source Conference Kyoto 2024 a Raspberry Pi.
Saturday 27 July
Kyoto Research Park, Kyoto, Japan FULL CALENDAR
magpi.cc/jrpug143 Get a full list of upcoming
Japanese Raspberry Pi Users Group is coming to the community events here:
Open Source Conference in Kyoto in June! We will exhibit magpi.cc/events
Raspberry Pi 5 and Raspberry Pi use cases. Please join if you
live in the Kansai area of Japan!
04. Riverside Raspberry Pi Meetup
Monday 8 July
3600 Lime Street, Riverside, CA, USA
magpi.cc/rrpm143
The purpose of Riverside Raspberry is to share knowledge
related to Raspberry Pi hardware in particular, and to
promote interest in tech development in the Inland Empire
in general. The group is currently meeting on the second
Monday evening of every month.
02
03
01
magpi.cc/mfh24
SAVE UP
TO
ISSUE #80
OUT NOW
hsmag.cc
NEXT MONTH
EDITORIAL
Editor
Lucy Hattersley
[email protected]
Features Editor
Rob Zwetsloot
[email protected]
Sub Editor
Ian Evenden
ADVERTISING
Charlotte Milligan
[email protected]
+44 (0)7725 368887
DESIGN
Head of Design
Jack Willis
Designers
Sara Parodi, Natalie Turner
Illustrator
Sam Alder
Photographer
Brian O’Halloran
CONTRIBUTORS
James Adams, Nate Contino,
David Crookes, PJ Evans,
Rosemary Hattersley, Phil King,
Dr Andrew Lewis, Sean McManus,
Naush Patuck
PUBLISHING
Publishing Director
Brian Jepson
[email protected]
Smart
Director of Communications
Liz Upton
CEO
Electronics
Eben Upton
DISTRIBUTION
Seymour Distribution Ltd
2 East Poultry Ave,
Boost your projects with wires, buttons, and components! London EC1A 9PT
+44 (0)207 429 4000
SUBSCRIPTIONS
Unit 6 The Enterprise Centre
Photography
operates an environmental management
MASTODON magpi.cc/mastodon system which has been assessed as
conforming to ISO 14001.
projects The MagPi magazine is published by
THREADS @themagpimag Raspberry Pi Ltd, 194 Cambridge Science
Talking
Park, Milton Road, Cambridge, England, CB4
0AB. The publisher, editor, and contributors
accept no responsibility in respect of any
tomato plants FACEBOOK magpi.cc/facebook omissions or errors relating to goods,
products, or services referred to or advertised
in the magazine. Except where otherwise
code with C
Attribution-NonCommercial-
ShareAlike 3.0 Unported (CC
ONLINE forums.raspberrypi.com BY-NC-SA 3.0).
ISSN: 2051-9982.
THE FINAL WORD
Public
Raspberry Pi has hit the stock market. Rob Zwetsloot finds out what this means
If you’ve been reading the financial “And the start of a new phase in to finance a sustainable expansion
papers over the last few months, you’ll our evolution: access to the public of our educational activities. Put
have been aware that Raspberry Pi was market will enable us to build more simply, instead of receiving a share
looking to float on the stock market. of the products you love, faster. And of the company’s profits each
This is, understandably, quite a big the money raised by the Raspberry Pi year, we will convert some of our
deal, so when I got the email sent Foundation in the IPO will support shareholding into an endowment
around to staff asking if they’d want its ambitions for global impact in its that we will use to fund our
to go to the London Stock Exchange second decade.” educational programmes.”
for 7:45 AM on a Tuesday morning for Philip Colligan, CEO of the
the launch, I gracefully... declined. Raspberry Pi Foundation wrote in What’s next
Unfortunately, my car was due to be a post a couple of weeks ago just There’s been a whole lot of work
returned to me after some repairs (hit how that would work: “To date, behind the scenes for this for some
and run on the motorway time now – I’ve only caught
at 70; I was fine, my glimpses on my monthly
car not so much), and oney raised by the Raspberry Pi
M visits to Raspberry Pi Towers
also, I didn’t really fancy – so hopefully some of
getting up at 3am to get Foundation in the IPO will support that pressure has now been
to London in time. Lucy alleviated. I’ll find out on
went though, so there was its ambitions for global impact in my next visit.
The MagPi representation
there for the big moment
its second decade Anyway, I thought I’d
talk about it here as for
where the button was various reasons we’ve not
pressed to open the had a chance to mention it
market. The video feed made the Raspberry Pi Ltd has donated elsewhere in the magazine [lots of
whole thing look very cool, with nearly $50m from its profits to the exciting new opportunities to end up
fancy light displays and video to Foundation, which we have used to in front of a judge - Ed]. Also, my car
signify the event. I wonder if the City advance our educational mission got returned the following day and
uses Raspberry Pi for that – it would combined with over $60m in funding now I sort of regret not having got up
be very fitting. from philanthropy, sponsorship, early for it. Ah well – onwards.
and contracts for educational
Rob Zwetsloot
AUTHOR
Raspberry Pi dot com that morning. some of our shares to raise money magpi.cc
98 magpi.cc Public
HIGHPI PRO
The new case from the HiPi.io team
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: