Mag Pi 144
Mag Pi 144
£5.99
08
9 772051 998001
WELCOME
to The MagPi 144
A
ttaching a camera to Raspberry Pi opens up a world
of vision-based possibilities. I can take photographs,
but now thanks to AI Kit my Raspberry Pi can make
smart decisions based on what it sees.
I’ve been having a lot of fun this month with Raspberry Pi’s Lucy
EDITOR
Camera Module and AI Kit. Toby, our maker-in-residence, Hattersley
glued a GorillaPod to the bottom of an official Raspberry Pi Lucy is editor of The
MagPi and is training
case and made a portable smart camera to take out for testing. her camera to detect
a puppy to adopt.
My three-legged camera and AI Kit creation has yet to get a Don’t tell her pet
tripod project.
name (PiTriPod, maybe?)
magpi.cc
Read all about how to set up AI Kit on Page 46, Camera on
Page 56, and amazing camera projects to try out on Page 62.
Of course, what makes Raspberry Pi special isn’t just the
board but what you can make with it (just about anything,
really!) Our Essential Electronics guide on Page 32 has
everything you need to start making your own circuit
GET A
creations with Raspberry Pi.
RASPBERRY PI
Nothing beats building a
PICO W
good project.
PAGE 30
Lucy Hattersley Editor
magpi.cc 03
CONTENTS
Contents
> Issue 144 > August 2024
Cover Feature
32 Essential Electronics 32
ESSENTIAL
ELECTRONICS
Regulars
08 World of Raspberry Pi
26 Case Study: Revolution Pi
90 Your letters
92 Community events calendar
97 Next month
98 The Final Word
Project Showcases
14 LinAmp
18 Andotrope 22
22 Twirly Shirley
24 Video magnifier
18
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 46 52
40 Search PDFs wth Python
46 Adding the AI Kit to Raspberry Pi
52 Build a private cloud server
56 Photos and video with rpicam
Meet the AI Kit Build a private
Xxxxxxxxxxxx
cloud server
The Big Feature
70
62
Photography projects
ArmPi FPV AI vision
Reviews 84
70 ArmPi FPV AI vision
72 TouchBerry Pi Panel PC 10.1”
74 LoRaWAN HAT + Gateway Module
78 Ten amazing big builds
81 Learn databasing
Community
84 John Sheehan interview
86 This Month in Raspberry Pi John Sheehan and Raspberry Jam
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
Raspberry Pi finds a new home
Versatile enclosure for Raspberry Pi B+
The new UCS Universal Case System is now available with ready made cut-outs for
the 7” touch display and standard connections of the Raspberry Pi B+ single board
computers. The 237 x 195 x 47mm housings are available in black or grey and are
suitable for wall or desktop mounting
Raspberry Pi at
Open Sauce 2024
We had quite the weekend with makers in San Francisco.
By Ashley Whittaker
Raspberry Pi
Connect updated
Remote shell access and support for older devices.
By Chris Lowder
W Login to Raspberry
Pi Connect with your
Raspberry Pi ID
sudo apt update use these new features in their projects. If you
sudo apt install rpi-connect-lite haven’t dipped your toe into the water yet, our
Raspberry Pi Connect documentation (magpi.
Then, sign in using the rpi-connect command cc/connectdocs) has everything you need to
line interface: get started.
rpi-connect-signin
New edition of
Code the Classics
An updated edition of the game programming guide
with new chapters is on sale now. By Brian Jepson
O
in this book.
ur retro-gaming classic went on sale You won’t have to type in these games, though.
back in 2019, and this year we’re We’ve set up a GitHub repo with all the source
releasing the new edition of Code the code (magpi.cc/codeclassicsgit). However,
Classics Volume I. The biggest update is the we’ve printed abridged listings in the book to
addition of three new tutorials covering Python, approximate the type-in experience.
Pygame Zero, and Git for version control. These The simple act of typing in a game helped to
new tutorials will make working with the code familiarise you with a programming language
examples easier for beginners. (such as BASIC). By making mistakes, you could
Linamp
Adore music from the 1980s and 1990s? Then wind back
time and play your tracks on this Winamp/hi-fi-inspired
set-up. David Crookes gets into the groove
Méndez instantly accessible and it certainly caught the 4B with a 32GB microSD card. “I decided to
attention of a young Rodrigo Méndez – so much use the Raspberry Pi because of the software
Rodrigo is a so, he’s based a cool Raspberry Pi project on it. support and extensive documentation and online
software engineer,
hardware hobbyist “I remember when I first got my own PC – an resources,” he said. “In the past, I’ve completed
and industrial 800Mhz Athlon with Windows 98,” he recalls. projects with other single board computers and
design aficionado “My cousin installed Winamp in it and gave me I’ve always found small details that made their
from Mexico. He’s
some MP3s to play. At that time, seeing music usage much more complex, for example, limited
been tinkering with
hardware since 2010. coming from a PC, and having the visualisations documentation on how to do lower level things
move in real time to the music was unbelievable like interfacing with special displays, controlling
magpi.cc/linamp
to me because my previous experience with the boot process, or even just supporting recent
computers had been an old MS-DOS PC that Linux kernels.
my dad had at work.” “Since this was a hobby project, I didn’t want
For his project, Rodrigo wanted to bring to spend too much time figuring out those details
Winamp’s early days back to life in a more on other SBCs. Also I chose Raspberry Pi 4 because
physical form so he decided to produce a music it was the latest model at the time I started the
player that could easily be part of a hi-fi mini project. Raspberry Pi 5 was announced after I’d
system. Specifically, he took inspiration from a begun and I figured I didn’t really need that
Aiwa mini setup from around 1983, figuring he device’s performance anyway.”
could create a case and have all of the functions At first, Rodrigo toyed with the idea of making
available on a front touchscreen display. the front face physical. “I wanted to add real-life
One thing he noticed was the simplicity of buttons using a 3D printer and I was going to
design of the old devices. “Old electronics, design a custom PCB for the interface,” he says.
especially audio devices, managed to look high- But he couldn’t find screens with the correct
tech and yet elegant,” he explains. “They managed size and dimensions for the spectrum analyser
to fit in well with people’s home décor while using and song information displays that needed to be
relatively simple construction techniques such included to remain faithful to Winamp without
as sheet metal or wood. I thought that, with all making the build too complex.
14 magpi.cc Linamp
PROJECT SHOWCASE
Quick FACTS
> It’s a music player
inspired by the
Winamp app
Rodrigo had considered a front
cover 3D printed on Nylon but
> All of the
he opted for a multi-colour 3D The touchscreen display has been
functions are on
print created on his Bambulab based on Winamp 2.0’s Base Skin. This
a touchscreen
P1S 3D printer instead version was released in 1998 – two
years before Rodrigo got his own PC > The software
has been written
from scratch
Linamp magpi.cc 15
PROJECT SHOWCASE
X Rodrigo is looking
to create Linamp
devices for sale and
wants the community
to help him figure the
logistics by filling in
survey at magpi.cc/
linampsurvey
16 magpi.cc Linamp
PROJECT SHOWCASE
I looked into other open-source projects’ the ~/Music folder by default. Songs can be stored
on a home server or USB drive.
Linamp magpi.cc 17
PROJECT SHOWCASE
Gehn Imager
Andotrope
Replicating a beloved display from a favourite
game yielded amazing results for one Raspberry Pi
maker, discovers Rosie Hattersley
Quick FACTS
> The andotrope’s
display looks like
Two 10in Android tablets a normal screen
spin around at 1,200rpm
inside the brass cage. > It’s omnidirectional
Persistence of vision kicks and has no backing
in, creating an illusion of or sides
movement just like video
> Which is ideal for
groups viewing
it at once
t 1,200rpm, persistence
A
of vision kicks in, creating
an illusion of movement
just like video
Twirly Shirley
This remote-controlled precision turntable has Phil King spinning around
Quick FACTS
> The Twirly Shirley
name is a play on
‘lazy Susan’
Learning process
Martin reckons the project took around a year to
complete, working on and off. “There were a few
mini projects in there: learning enough OpenSCAD
for the gears, learning enough CSS for the remote
page, getting the stepper motor to work. It was one
of those things that you keep going back to when you
learn something new during another project.”
An impressive stop-motion video of a roller-
skate and disco ball for the Twirly Shirley
YouTube video (magpi.cc/twirlyshirleyyt)
was shot using a camera taking photos at set
intervals, but a possible upgrade would be to use a
Raspberry Pi single-board computer to automate
the process. “An SBC could take photos and send
requests for the turntable to move,” notes Martin.
“The last thing we made used web sockets to
make a Pico listen for signals being broadcast
S The components for the project include a motor driver board and 20V Power Delivery trigger
from a [Raspberry] Pi with a camera attached.” to supply the power for the stepper motor
Video magnifier
Don’t hunch over your books again thanks to this marvellous,
camera-powered magnifier using Raspberry Pi. Rob Zwetsloot zooms in
Quick FACTS
> Extra controls via
a keyboard are
The magnifier is useful for also built in...
both reading and writing
> … this includes
contrast controls and
focus adjustment
W Markus went
through several
3D-printed designs
for the device
Revolution Pi
industrial
computers
Powerful, flexible computing for industrial IoT and automation.
By Rosie Hattersley
The results
Creating an industrial product line around Raspberry
Pi couldn’t have gone much better for Kunbus. The
company has sold somewhere between 150,000 and
160,000 units and seen its Revolution Pi used in
everything from solar power units and electric race
cars to hydrogen filling stations, and in settings
from Nintendo to micro breweries. Crismancich
learned of the latter at the Hanover industrial trade
show when the owner saw Kunbus on his name
tag and showed him what was at the heart of the
beer rig. In fact, it turned out that nearly half of
the exhibitors had RevPi in their products.
Cloud certification for the likes of Microsoft Azure
and Amazon Web Services by Kunbus’ engineers
for their customers works like a dream, says
Krebs, because of the ready-to-use examples that
work with Raspberry Pi. Kunbus now has ten such
The solution engineers, some of whom are actively involved in
The three main Revolution Pi options are powered developing the Linux kernel on which Raspberry Pi
by Raspberry Pi Compute Module 4, with options OS and Revolution Pi’s custom OS are based, and 150
for 2GB, 4GB or 8GB RAM and either 8GB or 32GB employees. Krebs notes that the young engineers who
SD storage, together with two Gigabit Ethernet are now coming through learned about Raspberry
ports and USB 3.2, micro USB, and micro HDMI Pi at school, used it during their studies, and are
ports. A PiBridge allows for the addition of two confident choosing it as the basis of their own
companies’ products.
Crismancich also
unbus saw the potential for an
K points to the millions of
software engineers and
industrial Raspberry Pi controller developers using Raspberry
Pi worldwide and the 50
model that offered the more robust million plus Pis sold.
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)
30 magpi.cc
SUBSCRIPTION
SUBSCRIBE
on app stores
magpi.cc 31
FEATURE
ESSENTIAL
ELECTRONICS
Build your first simple circuits with
a handful of cheap components
Sean McManus
T
he magic of Raspberry Pi is that it can interact with the world.
You can gather input from buttons and sensors that detect light,
movement or distance. Send output through lights, buzzers or
motors that drive robots around the room.
It’s easy to get started. Using a breadboard, you press components and
wires into holes to build a circuit, with no need for soldering. Jumper wires
make it easy to connect your circuit to Raspberry Pi’s general-purpose
input/output (GPIO) pins.
The GPIO Zero library makes it easy to accept input and control your
circuits from Python.
SHOPPING LIST
Discover basic components you can
combine to make a variety of projects
MORSE CODE
TRANSMITTER PROGRAM
For if you always wanted to learn Morse code,
but never did it. Da-dit, da-dit, etc…
ELECTRONICS
PROJECTS TO TRY
Discover how to use buttons, sensors
and motors with these starter projects
Buttons are the simplest way to control circuits and collect input. In this
project, you see how to connect four of them to Raspberry Pi. They’re used to
trigger sound effects played with Python’s Pygame library, which you could
customise with your own recordings. You see how to connect all your buttons
to the same GPIO ground pin, by using the ground rail along the long side of
the breadboard. With this approach, you don’t need as many jumper wires to
Raspberry Pi, so your circuit is easier to build and understand.
Who can push their button quickest when the light goes off? This two-
player game uses a breadboard to connect two buttons and an LED to
Raspberry Pi. With the music box, it doesn’t matter in what order the
buttons are pressed, but in this game you see how to detect which button
was pressed first, and announce the winner on-screen. The program also
shows how a single Python function can be used with GPIO Zero to provide
different outputs for different buttons. You can extend the project by
adding a timer or keeping track of scores.
Laser Tripwire
Components: breadboard, capacitor, light-dependent resistor (LDR),
jumper wires
magpi.cc/lasertripwire
When intruders break the invisible beam, the alarm sounds. This project
works by shining a laser pointer at a photoresistor, and sensing when the
light changes because somebody has walked between them. GPIO Zero
enables you to wait until light or dark is detected, and to run a particular
function when it is. You can raise the alarm by playing a sound file through
speakers, or by connecting a buzzer to Raspberry Pi.
Parent Detector
Components: PIR motion sensor, Raspberry Pi Camera Module, jumper wires
magpi.cc/parentdetector
The parent detector project is a great way to experiment with a PIR motion
sensor. The sensor has pins that you can connect directly to your GPIO
pins using socket-to-socket jumper wires, with no need for a breadboard.
This project uses the sensor to trigger video recording, and only stops
when no motion is detected. The PIR sensor has dials you can use to adjust
the sensitivity and detection time of the sensor. Perhaps you could turn
down the sensitivity and make a game where players must sneak up on the
Raspberry Pi undetected?
Ultrasonic Theremin
Components: breadboard, ultrasonic distance sensor, tonal buzzer,
jumper wires
magpi.cc/theremin
Robot Buggy
Components: Motor controller board, motors, wheels, jumper wires,
AA battery holder and batteries for the motors, USB battery pack for
Raspberry Pi, ball caster
magpi.cc/robobuggy
This is the droid you are looking for! Build your first robot by connecting
a motor controller board, two motors and wheels to Raspberry Pi. A ball
caster keeps everything balanced, acting as a central third wheel. The
motors are powered by AA batteries. Log in to Raspberry Pi remotely using
VNC or SSH and use a USB battery pack for power, so there’s no need
for monitor or power cables and your robot can roam freely. Thanks to
GPIO Zero, you can use simple functions to move your robot forwards,
backwards, left and right. You can extend this project by adding a line-
following sensor (magpi.cc/linefollower). For motor boards and other
components, see CamJam EduKit 3 and Monk Makes Servo Kit.
Productive Python:
Part 02
or keyword search. Then, we’ll see how you can When the dialog box opens, click ‘New virtual
McManus
download web content and save it as a formatted environment’. Choose the empty folder you just
Author of Scratch file for LibreOffice. Next time you find you’re created. The virtual environment is created and
Programming in missing a tool for file management, perhaps you the ‘Python executable’ part of the dialog box is
Easy Steps, Mission
Python, and Web can use the ideas here to build your own. updated to show it’s being used. Click OK.
Design in Easy Steps.
Get free chapters at
Sean’s website.
has short codes either side of it, called tags. These docx file, overwriting any previous version.
describe the start and end of paragraphs, headings,
and so on. In lines 15 to 16, we download a web
page and create a soup object for it. To help
remove navigation links, lines 17 to 18 strip out
any sections marked with nav and footer tags. Line 12 View with LibreOffice
Open the Preferences folder in your desktop
23 shows how you to find specific HTML tags in menu and choose Recommended Software. Install
the web page. The program finds all the paragraph LibreOffice in the Office category. Double-click
(p) tags, heading (h1 to h6) tags, table tags, your output.docx file to open it in LibreOffice.
blockquote tags and list bullet (li) tags. Use CTRL+F to search in your document. F5
opens the navigator. This enables you to jump
between the documents and headings easily. T Download MagPi
Close the navigator again to edit the file. You can PDFs at magpi.cc/
listing1.py DOWNLOAD
THE FULL CODE:
> Language: Python magpi.cc/seancode
listing2.py DOWNLOAD
THE FULL CODE:
> Language: Python magpi.cc/seancode
S A still life in our Image Lab for testing the Camera Module
You’ll Need
> Raspberry Pi 5
The Hailo AI module
magpi.cc/
fits into the M.2 raspberrypi5
socket on the M.2 HAT
> Raspberry Pi OS (64-
bit) ‘Bookworm’
> AI Kit
magpi.cc/aikit
$ sudo raspi-config
$ sudo rpi-eeprom-update -a
Follow the instructions to enable PCIe Gen Additionally, you can run dmesg | grep -i hailo
3.0 (magpi.cc/pcigen3). This step is optional, to check the kernel logs, which should yield output
but highly recommended to achieve the best similar to the following:
performance with your AI Kit.
[ 3.049657] hailo: Init module. driver
$ sudo raspi-config version 4.17.0
...
Complete the following steps to enable PCIe Gen [ 3.231845] hailo 0000:01:00.0: Probing:
3.0 speeds: Select Advanced Options. PCIe Speed Added board 1e60-2864, /dev/hailo0
and Choose YES to enable PCIe Gen 3 mode. Select
FINISH to exit and choose YES to “Would you like To ensure the camera is operating correctly, run
to reboot now?”. the following command:
Install the dependencies required to use the AI
Kit. Run the following command from a terminal $ rpicam-hello -t 10s
window:
This starts the camera and shows a preview
$ sudo apt install hailo-all window for ten seconds. Once you have verified
everything is installed correctly, it’s time to run
This installs the following dependencies: some demos.
Top Tip
rpicam-apps
The commands
to add or modify some command line options
provided use the
JSON files in this to make the demo commands compatible with ailo’s extensive model zoo
H
repository. To make alternative applications.
it easy to reference
these files, this
To begin, download the post-processing JSON contains a large number
command creates
the cloned rpicam-
files required for the demos. These files determine
which post-processing stages to run and configure
of neural networks
apps directory in
the behaviour of each stage. For example, you can
your home folder.
If you modify the enable, disable, strengthen, or weaken the strength
location of this of the temporal filtering in the object detection To run the demo with the Yolov5 Person and Face
directory, you demos. Or you could enable or disable the output model, run the following command:
must also alter the
demo commands mask drawing in the segmentation demo.
to reference the To download the entire collection of post- $ rpicam-hello -t 0 --post-process-file ~/
new location of processing JSON files, clone the rpicam-apps rpicam-apps/assets/hailo_yolov5_personface.
the JSON files.
repo. Run the following command to clone json --lores-width 640 --lores-height 640
only the most recent commit from the repo,
saving space:
Image Segmentation
$ git clone --depth 1 https://github.com/ This demo performs object detection and segments
raspberrypi/rpicam-apps.git ~/rpicam-apps the object by drawing a colour mask on the
viewfinder image. Run the following command to
try the demo on your Raspberry Pi:
Object Detection
This demo displays bounding boxes around $ rpicam-hello -t 0 --post-process-file ~/
objects detected by a neural network. To disable rpicam-apps/assets/hailo_yolov5_segmentation.
the viewfinder, use the -n flag. To return purely json --lores-width 640 --lores-height 640
textual output describing the objects detected, add --framerate 20
the -v 2 option. Run the following command to try
the demo on your Raspberry Pi:
Pose Estimation
$ rpicam-hello -t 0 --post-process-file ~/ This demo performs 17-point human pose
rpicam-apps/assets/hailo_yolov6_inference. estimation, drawing lines connecting the detected
json --lores-width 640 --lores-height 640 points. Run the following command to try the
demo on your Raspberry Pi:
Alternatively, you can try another model with
different trade-offs in performance and efficiency. $ rpicam-hello -t 0 --post-process-file ~/
To run the demo with the Yolov8 model, run the rpicam-apps/assets/hailo_yolov8_pose.json
following command: --lores-width 640 --lores-height 640
$ rpicam-hello -t 0 --post-process-file ~/ Hailo has also created a set of demos that you
rpicam-apps/assets/hailo_yolov8_inference. can run on a Raspberry Pi 5, available in the
json --lores-width 640 --lores-height 640 hailo-ai/hailo-rpi5-examples GitHub repository
(magpi.cc/hailorpi5).
To run the demo with the YoloX model, run the You can find Hailo’s extensive model zoo, which
following command: contains a large number of neural networks, in
the hailo-ai/hailo_model_zoo GitHub repository
$ rpicam-hello -t 0 --post-process-file ~/ (magpi.cc/hailozoo).
rpicam-apps/assets/hailo_yolox_inference.json Check out the Hailo community forums and
--lores-width 640 --lores-height 640 developer zone (community.hailo.ai) for further
discussions on the Hailo hardware and tooling.
Build a private
Part 01
cloud server
Fed up with service subscriptions? Want to do things yourself
and protect your privacy? This new series shows you how
01 IsWe’re
this a good idea?
setting out to build a server that
Imager (magpi.cc/imager), selecting ‘Raspberry Pi
Lite (64-bit)’. If you don’t have a cable, install the
can replicate many of the popular ‘SaaS’ (software drive in the NAS and boot off a microSD card and
as a service) solutions out there, from email use that to burn the OS onto the SSD. Either way, use
to collaborative spreadsheeting. This is only the customisation feature to choose a good network
practical if you have the time to devote to keeping name and enable SSH for remote access.
You’ll Need it updated (security especially) and are happy to
deal with the inevitable glitches. You’ll also need
> Argon EON NAS a decent internet connection if you want to run
Top Tip
Choosing
disks
If using hard disk
drives, consider
buying dedicated
NAS drives. These
tend to be slower
07 Install OpenMediaVault
OpenMediaVault (or OMV) is a robust,
well-featured framework for creating our own
home storage. It’s excellent for avoiding some of
the more scary command line utilities for handling
disk storage and setting up sharing. OMV’s
job is to help you prepare your disks and share
them securely with the other computers on your
network. The OMV team have provided a custom
setup script at and you can run it directly by
entering:
wget -O - https://raw.githubusercontent.
com/OpenMediaVault-Plugin-Developers/
installScript/master/install | sudo bash
S You can create, view
and manage file
systems on this page 05 Test booting
Time to fire up the server for the first There will be a lot of text and the process will go
time and check everything is in order. It’s worth on for several minutes. At the end the server will
connecting a monitor and keyboard just in case reboot. Once complete you should be able to access
something is out of place. If you find the SSD OMV in a web browser at http://nas.local/ (or your
doesn’t boot, it may be because the Raspberry equivalent). You can login with username ‘admin’
Pi isn’t checking for it and you need to change and password ‘openmediavault’. Remember to
the bootloader. Open Raspberry Pi Imager. Under change that password!
operating systems choose ’Misc utility images’
> ‘Bootloader’ > ‘SD Card Boot’, burn that to a
microSD card and boot your NAS from it. When a
green screen appears, power off and remove the
card. Your SSD should now boot normally. 08 Configure your storage
You can now see the OMV web interface
for the first time. Feel free to have an exploration.
Assuming you’re starting with new disks, you
need to partition and format them. Luckily OMV
11 Nightly backup
So what about the other disk? We’re
going to use that to back up our precious data.
Under ‘Storage’, ‘Shared Folders’ create a share
for the second disk (e.g. ‘nas-backup’). Then
under ‘Services’ select ‘Rsync’ then ‘Tasks’. Top Tip
Select your first share as the source and the
second share as the target. Change ‘minute’ What about
to 0 and ‘hour’ to 0, leaving all other options RAID?
unchanged. Save and apply. Now, every night
We’ve not used
at midnight, the contents of the primary RAID (Redundant
disk will be backed up to the secondary disk. Array of Inexpensive
Although there is a small window where a file Disks) in our setup
as we’re prioritising
does not have an instant backup (we’ll address backup over
the plus sign on the toolbar. Select ‘EXT4’ and this, and off-site backups, in the future) a deleted file availability. RAID
choose your first disk. It may take a few minutes will be instantly recoverable. is not a backup
solution – if you
to complete. Repeat for each disk.
delete a file on
one disk, it’s
immediately gone
Capture images
and video with
Raspberry Pi
Camera Module
Learn how to capture images and video using rpicam,
the new command-line application for Raspberry Pi
You’ll Need
> Raspberry Pi
image is captured. So to capture the image after your keyboard and a monitor plugged directly into
ten seconds of preview, use: your Raspberry Pi.
Top Tip
libcamera
to rpicam
Raspberry Pi OS
to specify a quality factor indicating how much the same image. To save a DNG file, use the -r (or Bookworm renamed
compression you want. At very low values your --raw) parameter: the camera capture
image will indeed deteriorate, but at very high applications from
libcamera-* to
values the JPEG process will be visually lossless, rpicam-still -r on test.jpg rpicam-*. Symbolic
that is, it really will look as good as the original links allow users to
camera image. rpicam-still will automatically replace .jpg by use the old names
for now. Adopt the
The quality factor ranges from 1 to 99, and if .dng in the DNG file name, giving both test.dng
new application
you don’t give one it will choose the value 93, and test.jpg in this case. names as soon as
which equates informally to “quite high quality”. Many third-party software programs exist possible. Raspberry
To save a JPEG at a different quality level, use the to ‘develop’ these DNG files interactively – a Pi OS versions prior
to Bookworm still
-q (or equivalently --quality) parameter like this: rather complex procedure beyond the scope of use the libcamera-*
this guide. name.
rpicam-still -q 80 -o test.jpg
Time-lapse captures
Please experiment with quality values like 10 A time-lapse capture is where we capture an
and 50 to see what you get! image at regular intervals, perhaps every minute,
hour or day, and then reassemble them into a
PNG files video where we play them back at a much faster
PNG (or ‘Portable Network Graphic’) is another rate. rpicam-still is all set up to capture the
file and compression format which enjoys wide images we need out of the box.
support. PNG is a lossless compression format, We need to introduce the --timelapse option
meaning that you are guaranteed to be able to and we’ll review a couple that we’ve seen before:
recover exactly the same image that you started
from (unlike JPEG). On the downside, PNG files are • -t or --timeout The length of time in
normally larger than JPEG files, and they are harder milliseconds for which to perform a capture.
work to create, which takes longer. In the case of timelapse, rpicam-still
To save a PNG file you’ll need to tell rpicam- will run capturing images in total for this
still that you want to use a different encoder duration. You can pass the value 0 which
using the -e or --encoder parameter, like this: means “run indefinitely” (you will have to
stop rpicam-still manually, for example
rpicam-still -e png -o test.png by pressing CTRL+C on the keyboard).
• --timelapse The length of time, again
Note that it’s necessary to specify the -e option in milliseconds, between each of the
to get a PNG file - changing the file name on timelapse captures.
its own is not enough. PNG does not support a • -o or --output The name of the output file
quality parameter. or files. For timelapse captures, we can’t
give all the images the same name so we
DNG files use a special syntax that includes an image
DNG, or ‘Digital Negative’, files are quite different counter. For example, -o capture_%04d.jpg
from PNG files despite the similar abbreviation! means that all the files are named capture_,
As the full name suggests, they’re somewhat followed by a counter, and then .jpg. %04d
analogous to the ‘negatives’ we had from film specifies how the counter is formatted,
cameras before developing them into photos. In in this case the 0 means to add leading
our case, the DNG file stores the raw numbers zeroes to the number and the 4 means
received from the image sensor before the “so that every number has at least 4 digits”.
hardware on Raspberry Pi ‘develops’ it into a This is useful so that listing your image
viewable (JPEG or PNG) image. DNG files are saved files will return the list to you in
alongside the ‘developed’ JPEG or PNG version of chronological order.
This will run for 30 seconds, capturing an • --datetime Use this instead of -o to name the
image every five seconds, and they’ll be called output file after the current date and time. The
capture_0000.jpg through to capture_0004.jpg. format will be MMDDhhmmss.jpg where MM and DD
Note how we’ve reduced the resolution of the are the month and date number, and hh, mm and
images to something that is more appropriate ss are hours, minutes and seconds.
to the final video that we want to create. • -k or --keypress Capture an image when
ENTER is pressed on the keyboard. Press X and
Assembling your images into a video press ENTER to quit.
There’s a handy tool called FFmpeg which is
capable of turning your sequence of still images So the command to use is this:
into a video. We can use it like this:
rpicam-still -t 0 --keypress --datetime
ffmpeg -r 2 -i capture_%04d.jpg video.mp4
Here we’re running the capture indefinitely,
Note how we format the name of the input so we’ll have to type X followed by ENTER to
files with the special % syntax in the same quit (or press CTRL+C). Files would have names
way as we did for libcamera-still. The -r like 0405102742.jpg, meaning ‘10:27am, and 42
parameter gives the framerate of the output seconds, on 5 April’.
video, which is two frames per second in this case.
We’ve chosen the output file to have the MP4 Capturing in response to a signal
format (which is generally well supported), and For those familiar with Linux signals, an
called it video.mp4. alternative to pressing a key is to send a signal
FFmpeg is a highly versatile tool that we instead. To do this, simply use -s or --signal
recommend learning about. instead of -k (or --keypress).
Top Tip
Compatability
Raspberry Pi
Camera Modules
are compatible with
all Raspberry Pi
computers with CSI
connectors - that is,
all models except
Raspberry Pi 400
and the 2016 launch
version of Zero.
S The -- timelapse option enables ripistill to
capture images on a regular basis
Incredible
vision projects with
Raspberry Pi Camera
Raspberry Pi Camera Modules, and the fancy new AI Kit HAT+,
up the ante for vision-based projects, explains Rosie Hattersley
W
ho doesn’t love taking photos? Pets,
people, places, events, it’s wonderful
to be able to take a few snaps and
keep the resulting images as a memory you can
draw upon whenever you wish to.
Raspberry Pi has some great options for taking
both still photos and video thanks to the dedicated
Camera Modules that can be attached directly to the
board via the CSI (camera serial interface).
Raspberry Pi Camera Modules (magpi.cc/camera) MagPi 144
cost from just £24/$25 for Camera Module 3, or In this very issue, David Plowman, a Raspberry Pi engineer wrote a guide
£48/$50 for HQ Camera (magpi.cc/hqcamera). on how to take photos and videos with the Camera Module 3.
Of course, Raspberry Pi’s compact size means Page 56
it’s ideal for a whole range of visual projects, from
a static webcam for video chat from the comfort
of your home to outdoor adventures spotting and
recording wildlife or natural phenomena in the night
sky. You could even add a Camera Module to a robot
to act as its eyes and help decide whether to tackle or
avoid approaching obstacles.
One of the most appealing aspects of Raspberry
Pi is just how adaptable it is: you need only fit the
right hardware, often as a HAT to turn it into a
specialist device for monitoring, photographing,
playing or recording something, be it wildlife,
plants, nosy siblings, instruments you want to
master, or places you want to memorialise.
This month we’re going to look at how to attach
a Camera Module to Raspberry Pi and use the
Camera Software to integrate it into your projects.
X Camera Module 3
features a 12MP sensor
with HDR and an
autofocus lens
W Adding AI Kit to
your camera projects
can introduce fast
object recognition
sudo apt install -y python3-picamera2 001. from picamera2 import Picamera2, Preview
002. import time
Open Thonny Python IDE from the main 003.
Raspberry Pi OS menu, create a new file and save 004. picam2 = Picamera2()
it as camera.py. Note that you should definitely 005. camera_config = picam2.create_preview_configuration()
not name it picamera.py as this will overwrite the 006. picam2.configure(camera_config)
control app. 007. picam2.start_preview(Preview.QTGL)
Enter the code from camera.py, press Save 008. picam2.start()
and Run. Camera Module will display a preview 009. time.sleep(2)
for five seconds, and save the file as test.jpeg in 010. picam2.capture_file(“test.jpg”)
your home folder.
are ideal for capturing Pi, Raspberry Pi 4 and the HQ camera are used alongside
a Maksutov telescope and established astronomy software
celestial visual spectacles including KStars to build a picture of the night sky and identify
areas of photographic interest. Maker Santiago particularly liked
the HQ camera’s “bigger, exposed sensor [that] would allow it
Ward off unwanted visitors to essentially use the telescope as a big mirror lens” and found
Parents, nosy neighbours, annoying siblings: who wants them it good value for the quality it could offer. Santiago created
creeping around? Kids keen to try out Camera Module can a Python-based interface he called Astrocam that supports
turn the tables on snoops with a spycam that sends an alert if touchscreen control and allows him to control the ISO, shutter
someone uninvited enters their domain. speed and exposure times as well as capturing multiple shots at
The Parent Detector (magpi.cc/parentdetector) tutorial is once, all of which make it a cut above the average USB camera
easy to follow and explains how to set up Raspberry Pi Camera used for astrophotography.
Module and PIR motion sensor to trigger video recording should This year Europe and swathes of the northern hemisphere
an unexpected visitor be detected. It’s clever enough not to have been treated to some incredible aurora borealis activity
trigger if the door simply rattles, has a stealth mode (no telltale while other places witnessed an eerie solar eclipse. Raspberry
red recording light) to fool suspicious types and provides video Pi cameras are ideal for capturing celestial visual spectacles
evidence should a wannabe snoop plead innocence. Should you (magpi.cc/aurora) as well as being popular for tracking asteroids
receive an intruder alert from the Raspberry Pi camera you can and constellations with AllSky Cameras. We were really taken
view the footage in OMXPlayer to check it wasn’t just the cat with Svalbard resident Frank Prins’ Northern Lights project
paying you a visit before you launch in and raise merry hell with in which a weatherproofed to -50C Raspberry Pi and Camera
the oldies about an invasion of privacy. Module tucked inside
a 3D-printed tube
automatically detect the
aurora borealis, wake up
and record the spectacle
for viewing an whatever
hour he seems fit.
Because it is not
dependent on being
sited in a dark sky
region (and should work
well in light-polluted
urban locations too),
we like the meteor-
detection possibilities of
using Camera Module 3
Wide, especially as the
setup is clever enough
to discern shooting stars
and falling meteors,
then track and record
them as they pass across
the night sky (magpi.cc/
meteortracker).
SPECS
A sturdy robotic arm with computer vision for
FEATURES: an impressive range of AI abilities. By Phil King
6DOF (including
gripper),
HD camera,
breakout board,
metal base
and fittings
CONNECTIONS:
Breakout board
screw terminals
for power, JST
connections
for servos
SERVOS:
LX-255 (base)
— 25kg torque;
LX-15D —
17kg torque;
S Block-stacking makes use of computer vision
Anti-blocking and image recognition via Raspberry Pi
bus (gripper)
— 8kg torque
DIMENSIONS/ Strong arm
WEIGHT We tried out the Advanced kit with Raspberry Pi
277 × 177 × 5. The arm comes ready-assembled, sitting on a
428mm; 1.2kg solid black metal base whose rear section holds
Raspberry Pi, secured with screws and pillars. Four
suction cups stick the base to a desk or the floor
X Equipped with a – not the most secure of methods – but the unit
wide-angle camera,
the robotic arm has itself is very sturdy.
E
6DOF including a The breakout board is mounted on Raspberry Pi
strong gripper to
pick up objects up quipped with a camera, the ArmPi FPV is a and wired from JST connectors to the arm, with
to 500g in weight capable robotic arm that uses AI computer some spare servo and SPI sockets. Power – for the
vision to help it perform a range of tasks. arm and Raspberry Pi – is supplied from a 7.5V 6A
The kit is available with or without Raspberry Pi 4 DC PSU via a barrel adapter with two wires that fit
9
Advanced kit adds a couple of flat-pack shelving three types/sizes, each with 0.3° accuracy, 0–240°
units for ‘warehousing’ operations, while the rotation range, and feedback for angle read,
/10
Developer kit adds several extra sensors, a dot temperature, voltage and position. Arm movement
matrix display and a fan. is reasonably smooth, and not particularly noisy.
TouchBerry Pi Panel
PC 10.1
Industrial Shields magpi.cc/touchberrypi10 From £483 / €570 / $614
CONNECTIONS:
Screw terminals
for power,
I2C, SPI, RS485,
RS232/TTL,
2 × analogue
inputs,
3 × digital inputs,
5 × digital
outputs
D
1280×800 resolution
esigned for use in industrial settings, The touchscreen is surrounded by quite a large
the newly updated TouchBerry Pi is a bezel which forms part of the protective case.
panel PC powered by Raspberry Pi 4 With a lot of metal parts, it’s a pretty hefty unit
that comes in two screen sizes: seven and 10.1- that feels really solid – and heavy, at 1.67kg. Six
inch – we tested the latter. It has been designed mount points (two top and bottom, one either
and produced by Industrial Shields, a Spanish side) enable it to be mounted using the supplied
8
analogue I/O to replace a PLC (programmable a wide operating temperature range of 0°C to
logic controller) for some simple automation 50°C, with humidity of 0% to 90%. The unit
/10
applications. To this end, it has numerous screw also has a shock resistance of 80m/s2 in the X,
terminals on the left and right sides. Y, and Z directions.
T he touchscreen is surrounded
by quite a large bezel which forms
part of the protective case
SENSITIVITY
-125dBm
@125K/SF7,
-139dBm
@125K/SF12
CHANNELS
8 channels with
bandwidth of
125/250/500 kHz
From source
The software is a little more involved though. The
docs (magpi.cc/loradocs) help guide you in the
setup, which includes compiling the software from
source and connecting everything up to thethings.
network so you can control it all remotely. It’s a
bit of a lengthy process, however it’s definitely
streamlined once you get past the initial compiling
phase. This is not for folks wanting to try out their
first IoT set up though, with LoRaWAN products
definitely having a more professional user in mind,
W The Gateway Module
and the docs don’t help you beyond getting the makes the magic
gateway working. happen
W All mounted to
Raspberry Pi
Verdict
A great piece of kit
designed for folks
with serious remote
automation needs
that fits snugly atop
a Raspberry Pi
8 /10
LR1302 LoRaWAN HAT + Gateway Module magpi.cc 75
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
10 amazing:
big builds
Making something big, and Teslonda
making it with Raspberry Pi Custom electric car
Taking a 1981 Honda Accord and souping it up is one thing, then there’s
F
making it an electric hot rod. All powered by Raspberry Pi, of course.
eatures Ed Rob has been trying to make ‘Big Builds’
a thing in the magazine for a long time but it never magpi.cc/teslonda
really took off. That hasn’t stopped people from around
the world putting a tiny Raspberry Pi into projects big enough
for a server (sort of). Here are just ten of them.
Arcade machine
Retro cool
In Retro Gaming with Raspberry Pi, we show
you how to make your own nifty arcade
cabinet powered by Raspberry Pi, and with
your own custom vinyls too!
magpi.cc/retrobook3
DoodleBorg
Big rover
PiBorg's biggest robot is a rover they made themselves. It’s powerful
enough to pull a caravan, which is why it has a tow ball on it. It was built
to show just how powerful PiBorg tech is.
magpi.cc/doodleborg
Raftberry
Floating dock
It can be nice to pootle around a lake, especially with some delicious
food and company. This Raspberry Pi-powered raft uses arcade controls
to move around on the water.
magpi.cc/raftberry
Magic mirror
Rite of passage
A classic project that just about every Raspberry Pi fan has attempted at
least once, the software for it is very powerful and easy to use too.
magicmirror.builders
Odyssey Lights
Illuminating Blackpool
One of the biggest Raspberry Pi builds around, these 11-metre-high
interactive towers are full of lights, lasers, speakers and other special Pinball machine
effects which were made possible with Raspberry Pi.
magpi.cc/odysseylights
magpi.cc/teampinball
magpi.cc/openweed
SailBot
Robotic boat
Tired of winning robotic
sailing regattas, a group of
university students created
an autonomous sailboat
that could cross the Atlantic
ocean all by itself.
magpi.cc/sailbot
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
RESOURCES
Learn Databasing
with Raspberry Pi
Hone your database and SQL skills with
these handy resources. By Phil King
Foundation sophisticated way of storing text tutorials, along with quizzes to modify an existing database,
data than spreadsheets, and practical exercises. and explores the relationships
Price:
Free enabling large amounts of it After introducing the concept of between tables and how they
to be arranged in a logically databases, you’ll progress to using can be joined.
magpi.cc/
rpfdatabases organised way. This offers the SQL (Structured
advantages of easy access, data Query Language) to
integrity, and security. retrieve, filter, and
Since databases are so useful modify the data in a
in a wide range of fields, database. Practical
learning about them is a key activities require
part of computer science. the use of either
Designed by the Raspberry sqliteonline.com
Pi Foundation, this excellent or the DB Browser
introductory course is available for SQLite tool
for free via the eDX learning (preferred). The
Web resources
Useful online resources to gather data
DATABASE SYSTEMS of SQL, guides you through
This 25-hour, two-part video creating a database, and includes
course from Cornell University is a useful examples.
great introduction, covering SQL, X w3schools.com/sql
storing/indexing data, transaction
processing, and more. SQLBOLT
X magpi.cc/cornelldb A series of 18 interactive lessons,
including exercises, to help you
SQL TUTORIAL learn SQL quickly in your browser.
This excellent W3Schools There are some extra topics, too.
resource details all the functions X sqlbolt.com
LibreOffice
Base Documentation
The Document As well as being free, open exploring how databases work,
AUTHOR
Jeremy Tinley database management system) optimization, replication, classic hands-on guide is a great
that employs the widely used backup/recovery, and scalability. way to learn database design.
Price:
£53 / $66 SQL programming language for The 4th Edition has been X magpi.cc/
interacting with data. It also updated to reflect recent advances ddmeremortals4e
magpi.cc/hpmysql
forms a part of the classic LAMP in cloud- and self-hosted MySQL,
stack for website design (Linux, InnoDB performance, and new
Apache, MySQL, PHP). features and tools. SQL ANTIPATTERNS
Aimed at readers who already Antipatterns are erroneous
have some familiarity with practices that result in poor
using relational databases, results. Aimed at experienced
this in-depth guide promises SQL users, this book shows
to take your skills to the next you how to fix them.
level to unleash MySQL’s full X magpi.cc/sqlantipatterns
power. Over 375 pages, it
explores advanced techniques
for optimising MySQL databases PRACTICAL SQL
for improved performance, Billed as a ‘beginner’s guide
and how to turn traditional to storytelling with data’, it
database management tasks into takes you through all the
automated processes. Topics fundamentals of SQL with
covered include schema design plenty of real-world examples.
and management, indexing X magpi.cc/practicalsql
& 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
John
Sheehan
The brains behind a California Raspberry Pi
meetup that’s been running for 11 years
What is Riverside Raspberry regulars who have been working S Showing off the projects
and promoting the group
Pi Meetup? with or tinkering with embedded
at a Maker Faire
The meetup is an informal platforms for years. Ages range
monthly meetup for bringing from high schoolers to retirees.
W The event brings together
people together that are Most have at least a little bit people off all ages and
interested in electronics and of experience in some kind of backgrounds
MagPi
Monday
Amazing projects direct from social media!
01
02 05
86 magpi.cc #MagPiMonday
THIS MONTH IN RASPBERRY PI
Events in pictures:
Raspberry Pi Day
2024 Cameroon
Community and official events in the wild
04
03
02
01
05
04
FIND
OU T A
M ON BOU T
TH’S
EV EN N E X T
T S ON
PAGE
92
08
06
07
More Events
events in pictures magpi.cc 89
YOUR LETTERS
Your
Letters
T User MrDarSwag found a Raspberry
Raspberry Park Pi at the Jurassic World ride in
Universal Studios Hollywood
I was thinking about the many uses of waiting time displays malfunction and turn
Raspberry Pi and I was wondering – do you out to be driven by Raspberry Pi!
know of any rides in theme parks that use We have heard on the grapevine that they
Raspberry Pi? I’m sure some must, maybe do possibly use them at one of the more
they’re in that Star Wars Land somewhere. major, secretive theme park operators but
despite our best efforts we’ve never got
them to spill the beans on how Raspberry Pi
Beth via email powers their magic. Maybe because this would
unfortunately spoil that magic.
Unfortunately we’ve never had anyone tell or Perhaps we need to find an orange grove
admit to us that they’re using a Raspberry Pi and strongarm Eben into opening a Raspberry
in their theme park – although we have seen Pi amusement park there.
Future forecast
Hi, my dad gets tons of ads watching YouTube on his TV
and I want to learn how to use Pi-Hole to block them.
FREE
RASPBERRY PI
S Raspberry Pi Connect is very cool and works on
even Raspberry Pi 1 computers!
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
03
Community
Events Calendar
Find out what community-organised Raspberry Pi-themed
events are happening near you…
01. G
etting Started with Raspberry Pi 5: 03. Riverside Raspberry Pi Meetup
Unlocking Its Potential Monday 12 August
Sunday 27 July 3600 Lime Street, Riverside, CA, USA
Light House Event Center, Ipaja, Nigeria magpi.cc/rrpm144
magpi.cc/vikirp5 The purpose of Riverside Raspberry is to share
This workshop is designed to introduce participants to the knowledge related to Raspberry Pi hardware in particular,
basics of Raspberry Pi 5 and explore its diverse capabilities. and to promote interest in tech development in the
Whether you’re new to Raspberry Pi or looking to enhance Inland Empire in general. The group is currently meeting
your skills, this event will provide hands-on experience and on the second Monday evening of every month.
practical knowledge.
FULL CALENDAR
Get a full list of upcoming
community events here:
magpi.cc/events
02. Melbourne Raspberry Pi Meetup 04. Tech Cornwall Explorers
Sunday 4 August Summer Sessions Redruth
Docklands Makerspace and Library, Melbourne, Australia Monday 12 August and Tuesday 13 August
magpi.cc/mrpm144 FibreHub, Redruth, UK
This meetup is open to everyone with an interest in magpi.cc/tcessr24
electronics, robotics, home automation, 3D printing, laser Two mornings of interactive learning: Three-hour sessions
cutting, amateur radio, high-altitude balloons, space tech, each morning, packed with engaging discussions and hands-
etc. Makers are invited to bring along their projects and on projects. From Basics to Build: start with setting up a
project ideas, and come connect with other makers. Get Raspberry Pi and progress to constructing your own simple
your questions answered, show off the work you are doing, rover. Focus on Teamwork: collaborate, share ideas, and
and get support to resolve nagging issues. build together in a student-led, inquiry-driven environment.
04
01
02
MAKER FAIRE
HANNOVER
Maker Faire
Hannover
> Where Hannover Congress Centrum, Hannover, Germany
> When Saturday 17 August and Sunday 18 August
magpi.cc/mfh24
WIN 1 OF 3
HOME ASSISTANT
YELLOW
We reviewed Home Assistant Yellow from the Home Assistant
folks in issue 141 and really liked how user-friendly and
powerful it was. We now have three Home Assistant Yellow Kits
(the version with power supply, without PoE) to give away!
SAVE UP
TO
ISSUE #81
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
Nate Contino, David Crookes,
PJ Evans, Rosemary Hattersley, Phil
King, Chris Lowder, Sean McManus,
David Plowman, Ashley Whittaker
PUBLISHING
Publishing Director
Brian Jepson
[email protected]
Director of Communications
Helen Lynn
CEO
DISTRIBUTION
Seymour Distribution Ltd
Make the most of 2 East Poultry Ave,
London EC1A 9PT
Raspberry Pi’s microcontroller +44 (0)207 429 4000
SUBSCRIPTIONS
Unit 6 The Enterprise Centre
Kelvin Lane, Manor Royal,
Build a camera
operates an environmental management
MASTODON magpi.cc/mastodon system which has been assessed as
conforming to ISO 14001.
that writes poetry The MagPi magazine is published by
THREADS @themagpimag Raspberry Pi Ltd, 194 Cambridge Science
Check for damp EMAIL [email protected] noted, content in this magazine is licensed
under a Creative Commons
with Raspberry Pi
Attribution-NonCommercial-
ShareAlike 3.0 Unported (CC
ONLINE forums.raspberrypi.com BY-NC-SA 3.0).
ISSN: 2051-9982.
THE FINAL WORD
AI puppetry
On interesting uses for the new Raspberry Pi AI Kit, by Rob Zwetsloot
I’ve probably mentioned here or in able to load it into the popular tracking which you usually need
past tutorials that I am a streamer VRChat software, and at least give an iPhone to do? I need to start
when I’m not working on the the illusion that I am running experimenting and hacking I think.
magazine. I play games and build around with full-body tracking.
robot model kits on camera, which However, I recently did a very silly Mobile pose detection?
probably does not surprise anyone stream where I played a Sonic the I’ve also been dreaming up a mobile
who knows me. Hedgehog hoverboard game on the puppeteering system. I mean, it’s
Specifically, I stream as a VTuber. Xbox 360 using the Kinect. It was not often that I would need to walk
What this means is that I have an horrendous, but very funny as I was around with a cartoon version of
animated avatar which I puppet using a web app full-body tracker myself on my chest but it could be
with my face; it uses a mixture of with my 3D model. very funny! And maybe it could be
technologies such as face tracking, used for a silly costume where you
which is mapped to specific image
manipulation software to simulate a
T his has got me put a screen on your stomach and
pretend you’re being controlled by
living, breathing cartoon character. thinking – can a Krang from the old TMNT cartoon?
You also get VTubers who use a 3D I love it when Raspberry Pi
model that works similarly to mocap Raspberry Pi power releases new technology that I can
done for movies and video games. get to mess around with and possibly
I mainly stream with a 2D VTuber tracking? make with stuff with. I really should
cartoon model – one I rigged learn to polish up my projects though
myself, of course, defining how the Usually, full-body tracking so they’re a little more presentable.
different image layers move and requires motion sensors on specific Looking at you, NES controllers with
warp as I do – however I do have a body parts, however like the Kinect a Raspberry Pi Zero inside that I
3D model which can be controlled before it, modern software is able to hacked apart with a Dremel.
with my entire body. make out your body using machine
learning. Just like the new Raspberry Rob Zwetsloot
AUTHOR
98 magpi.cc AI puppetry
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: