HackSpace_-_Issue_78__2024
HackSpace_-_Issue_78__2024
HackSpace_-_Issue_78__2024
Editor
Ben Everard
[email protected]
Features Editor
Andrew Gregory
Welcome to
[email protected]
Sub Editors
David Higgs, Nicola King
What does the future hold? It’s one of those impossible DESIGN
questions that is so inviting, and sometimes seems Head of Design
Jack Willis
straightforward. However, if you try to pin down the future, Designers
Sara Parodi, Natalie Turner
it becomes slippery. Who had a global chip shortage in their Illustrator
predictions for the early 2020s? Sam Alder
Photographer
Still, we’re trying to pin down a few people with a good insight Brian O Halloran
KPVQVJGƓGNFQHOCMGTVGEJPQNQI[CPFƓPFQWVYJCVVJG[VJKPM
CONTRIBUTORS
KUIQKPIVQJCRRGP$WVDGHQTG[QWVWTPVJGRCIGUCPFƓPF Marc de Vinck, Jo Hinchliffe, Rob
Miles, Nicola King, Andrew Lewis,
QWVYJCVVJG[JCXGVQUC[JCXGCDKVQHCVJKPM9JCVFQ[QW Phil King, Stéphane Godin
VJKPMKUIQKPIVQJCRRGP!9KNNVJGHWVWTGDG&RTKPVGFQTYKNN
PUBLISHING
VJCVTGOCKPIGGMUQPN[!9KNN#+EJCPIGGXGT[VJKPIQTKUKVLWUV Publishing Director
Brian Jepson
another fad? [email protected]
What do I predict? I predict that whatever happens in the Director of Communications
Liz Upton
technological or geopolitical landscapes, people will go on CEO
Eben Upton
OCMKPIVJKPIULWUVCUVJG[JCXGFQPGHQTVJGRCUVEQWRNGQH
million years. Civilisations come and go, technologies evolve, DISTRIBUTION
Seymour Distribution Ltd
DWVRGQRNGCTGUVKNNRGQRNGCPFYGOCMGVQQNUVQUQNXGQWT 2 East Poultry Ave,
problems. It’s what we’ve always done, and I suspect it’s what London EC1A 9PT
+44 (0)207 429 4000
we’ll always do.
SUBSCRIPTIONS
Unit 6 The Enterprise Centre
BEN EVERARD Kelvin Lane, Manor Royal,
Got a comment, Editor [email protected] Crawley, West Sussex, RH10 9PE
question, or thought +44 (0)1293 312193
about HackSpace
26
hsmag.cc/subscribe
magazine? PAGE [email protected]
get in touch at
hsmag.cc/hello FREE PICO W
WHEN YOU
SUBSCRIBE This magazine is printed on paper
GET IN TOUCH sourced from sustainable forests and
the printer operates an environmental
hackspace@ management system which has been
raspberrypi.com assessed as conforming to ISO 14001.
3
Contents
Cover Feature
48
17 LENS
18 The Future of Making
Who knows what tomorrow brings?
48 Objet 3d’art
The most impressive maker business card we’ve seen
50 Letters
Robots, robots, robots, plus the wonder of Tiny Tapeout
Tutorial
18 3D-printed planters
4
CONTENTS
Interview
The Sanjay Mortimer
Foundation
86
Review
Bangle.js 2
53 FORGE
94 Welcome to the cyborg age: monitor your life force
with an open-source computer worn on your wrist
54 SoM KiCad
Make an RP2040 temperature sensor
Some of the tools and techniques shown in HackSpace 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. HackSpace Magazine is intended for an adult audience and some projects may be dangerous for children. Raspberry
Pi Ltd does not accept responsibility for any injuries, damage to equipment, or costs incurred from projects, tutorials or suggestions in HackSpace Magazine. Laws and regulations covering many of the topics in
HackSpace 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 HackSpace Magazine may go beyond. It is your responsibility to understand the manufacturer’s limits. HackSpace
magazine is published monthly by Raspberry Pi Ltd, 194 Cambridge Science Park, Milton Road, Cambridge, England, CB4 0AB, United Kingdom. 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 please send address changes to HackSpace magazine c/o
Publishers Service Associates, 2406 Reach Road, Williamsport, PA, 17701.
5
Top Projects
REGULAR
Desktop
flamethrower
Right
A big gear with
numbers 0–9
sits atop the
ÅHTL[OYV^LY0[»Z
controlled by a
stepper motor, and
the numbers relate
By Mellow_Labs hsmag.cc/Mellow_Labs to the last digits
VM+HU»Z@V\;\IL
follower count
6
SPARK
7
Top Projects
REGULAR
Right
;OPZJSVJRPZSV\KLY
than thunder, and is
thus unsuitable for
bedroom use
3D-printed
marble clock
By Sakati1984 hsmag.cc/MarbleClock
8
SPARK
9
Top Projects
REGULAR
0V;IH[[LY`JOHYNLY
By Clarke, Rembor & Ruiz2 hsmag.cc/BatteryMonitor
10
SPARK
11
Top Projects
REGULAR
StoRPer
By Jo Hinchliffe hsmag.cc/Storper
12
SPARK
Left
;OPZWYVQLJ[OHZILLU
VU1V»Z^VYRILUJO
MVYHNLZ¶^L»YLNSHK
OL»ZÄUHSS`NV[P[V\[
the door
13
Top Projects
REGULAR
Universal
remote control
By Armerdan hsmag.cc/UniversalRemote
14
SPARK
Power switch
[V[\YU[OL;=VU
and off
Joystick: directional
control for navigating
menus
15
The new case from the HiPi.io team
PG
28 PG
18
HOW I MADE:
BRAILLERAP
If you like laser-cut acrylic, open- THE TECHNOLOGY
source hardware, and making life-
enhancing technology massively OF THE FUTURE
cheaper, we’ve got a treat for you
FEATURE
THE FUTURE
OF MAKING
What lies ahead for the world
of making? We ask the experts…
18
FORGE
19
The Future of Making
TUTORIAL
MAINSTREAM
MAKING how to craft a ‘smart’ chicken coop monitor or
an automatic pet food bowl. Fashion lovers can
drape themselves in LEDs! Skateboarders can use
accelerometers to analyse their air time.”
Kevin points out that making is already more
This brings us neatly onto the subject of whether mainstream than it was ten years ago. “I think
Above
Programmable robots making will become more mainstream over the next that’s a combination of events like MakerFaire,
are cheap enough
these days, or if you
few years. magazines (like HackSpace), and the availability of
want a challenge, you “I think it will continue to grow,” says Matt Venn. parts from companies like Pimoroni and Adafruit. The
can use 3D printing
(or bend sheet metal) “We see a lot of creativity with mobile phones and ecosystem for makers is there for makers to be part
to build your own apps, as more people have access to tools, but I do of and to learn from other makers too, particularly
Above Right think that there is something special about physical with social media and YouTube….” He has one
Limor Fried – an making. Holding something in your hands that you caveat: “I think for making to become even more
electrical engineer
and the founder of made is special, and as the barriers to that continue mainstream, it needs to lose a bit of its nerdy image.
Adafruit Industries
(adafruit.com). She
to drop, more people will get involved. Having access Making is for everyone!”
PZ]LY`PUÅ\LU[PHS to the tools, equipment, and time is a privilege that
in the open-source
hardware movement still many people don’t have, so as well as appealing LOWERING BARRIERS
to people from different backgrounds, we also need Not only is making likely to become more
to support them when they are interested.” mainstream, it will continue to have an impact on
“Making will be more mainstream because of mainstream technology, says Jude Pullen. “Through
accessibility and community,” agrees Jeff. “Kids their enthusiasm and experimentation, makers can
especially are at the leading edge of ‘mainstream’ create unexpected breakthroughs in technology that
maker culture, for example CrunchLabs build boxes, shape our future. It spreads the ‘bets’ on where the
or Raspberry Pi’s deep penetration into classroom next revolution or evolution will come from… The
STEM projects. That will have long-term effects as makerspace communities often ‘tinker’ with future
kids are exposed to the tech, just like my generation tech long before it reaches wider adoption.”
was inspired by video games and the early internet.” He gives the example of bio-hacking communities,
Limor concurs: “We think that making gains a lot “where even school kids can sequence a plant
of STEAM (ha!) from being introduced in schools, genome using only ~$1000 worth of hardware. This
so as we saw schools returning back to in-person is kind of mind-bending when you think about it.
instruction and workshop projects, we’ll also see Another space I’m watching is edge computing, but
more makers. I’m a strong proponent of meeting this is going to be governed by privacy and security.
kids where they are: if they have a background that So this is sometimes the ‘friction’ between makers’
they love medicine, teach them about how to build can-do attitude, and industry still needing to be
a pulse sensor. If they love animals, show them compliant and safe.”
20
FORGE
Left
When it comes to
open hardware, more
and more projects
are being OSHWA
JLY[PÄLKZ\JOHZ
this Adafruit Proto
Doubler PiCowbell
for Pico
Far Left
Matt Venn – science
and technology
“I do think we’ll see a communicator
and electronics
lot more work in the engineer who runs
the Zero to ASIC
chip design course –
ASIC / semiconductor zerotoasiccourse.com
space”
BETTER BOARDS
In the field of single-board computers and
microcontrollers, Jeff says that software support
and community are paramount. “Companies like
Raspberry Pi build ‘stickiness’ to their platforms
with software and support. The companies that get
that, and invest in software and hardware-adjacent
community development, will lead the next few
years of growth.” seeing more folks get comfy with the idea of an
While he reckons there’s still headroom for more interpreted language on a microcontroller: with tons
performance in the boards, “I think on the hardware of processing speed and RAM, why not convert
side, there will be more competition on integrated that into ease-of-use! And RISC-V is also gaining
chip features and efficiency, like with ESP devices attention; it’s great to see a competitor to Arm.”
adding built-in Matter/Thread support.” The use of SBCs in industry will continue to grow,
“I think we’ll continue to see innovations at she adds. “Why design when you can pop in a ready-
all levels,” agrees Matt. “I think the RP2040 is a to-go pre-built and pre-certified machine?”
remarkable chip that no one expected. We also Cryptographic chips, such as in the Arduino Nano
see more FPGA fabric incorporated (e.g. the latest 33 BLE, will make boards more feasible for industrial
Microchip parts). We’ll have to see whether people and commercial use, says Jude, where data security
go for PIO or FPGA. One thing where Raspberry is vital. “I think it’s a clear sign of Arduino’s journey
Pi excels is in documentation. They know it’s as catering to makers/amateurs, but now wooing those
important as the hardware if you want adoption in the who also need a more professional architecture.”
maker space.” He gives the example of an insulin monitor/
He also thinks there’s still room for speciality dispenser that was shown to him when he worked
devices such as the Daisy (electro-smith.com). for Sugru: “The idea was certainly solid, but the
“They aren’t exactly doing anything new, but they’re execution was not robust enough for us to publicly
very successful because they have a niche, and they champion. Some ten years later, this is something
are the easiest way to do embedded music.” many startups are working on – so it’s not the
Limor predicts lots more use of microcontrollers originality; it’s the security, the ‘real-world’ stuff, that
for IoT and home automation. “We’re also is the key to success.”
21
The Future of Making
TUTORIAL
Above
Kevin McAleer – a
hobbyist robotics
fanatic who likes
to build robots
and share videos
about them on
@V\;\ILHUK°OPZISVN
(kevsrobots.com)
Above
Better CAD tools could
help makers to create
more complex 3D printing
projects, such as this 7.4:1
scale model of a Mitsubishi
Pajero by Casadio Design
Right
Makers are pushing the
boundaries in 3D print
technology, such as
with Jón Schone’s TIME
machine, which is in effect
two 3D printers in one
3D PRINTING
“In 2024, makers can purchase a desktop filament adapted in ways that are difficult to predict. It’s an
3D printer that is fully assembled and ready to print exciting time for desktop 3D printing, and the future
for under $300,” notes Andrew. “It’s hard to predict is brighter than ever for this technology.”
when the market saturation of desktop 3D printing Advancements in 3D printing hardware will
will occur, but we’re reaching a point where makers be matched by those in software, reckons Jude.
are more likely to have used a desktop 3D printer “Although there will be more detail, more materials,
than not, something that wasn’t always the case. new processes (FDM, SLA, SLS, etc.), and hopefully
“The exciting next step for the field of desktop better safety awareness (do please get extraction –
3D printing is the continuing trend of makers who even with PLA!). I think it’ll be software that creates
are pushing the boundaries of existing technology the biggest impact in innovation: CAD software
and sharing their work to inspire a new generation of will reasonably start to have ‘feedback’ loops. For
makers,” he continues. “For instance: Jón Schone’s example, photogrammetry is now so advanced that
TIME (True Independent Multiple Extrusion) 3D if you scanned the resulting 3D print you created, the
printer (hsmag.cc/SchoneTIME), which essentially 3D printer might be able to ‘look’ at the difference
adds an entire second 3D printer to an existing 3D between what you got and what you designed – and
printer, is a novel development that will no doubt be offer to create a second improved attempt.”
22
FORGE
DIY robotics
In the world of robotics, Kevin an SBC and microcontroller
McAleer thinks we'll see more perspective, I think we'll see a lot
sophisticated homemade robots: more power and capability in this
“Once a technology is open- space, particularly around AI add-
sourced and documented well, ons to make, say, object detection a
it tends to be picked up and simple add-on, freeing up the main
enhanced by the community. If SBC board to do other work. Large
you compare this decade with say language models have seemed to “I see an influx of
the 1980s, you'll find robots being come out of the blue in the last
created all over the world in coder two years. I suspect we'll see a lot
makers who don’t have
dojos, maker spaces, schools, more development in this area.” much of a coding
and colleges.” To this end, he thinks we’ll also
He is also hopeful that the hobby see more AI-related add-on boards background”
will become less expensive, as for SBCs.
“the parts for robots can currently
be an obstacle for some.”
He doesn’t envision robots
becoming widespread in the home
yet, though. “I think we're still a
Left
long way off from having robot Jeff Geerling –
software developer
butlers or humanoid robots in and YouTuber whose
general, and that's for a number of channel shares a wide
]HYPL[`VM[LJO°]PKLVZ!
reasons, including cost, complexity, hsmag.cc/JeffGeerling
and more practical aspects such
as battery power and safety
concerns.” The news is brighter
on the DIY robotics front, however.
“We will probably see a lot more
Above
hobby robots becoming full DIY robotics is set to grow in
products – Otto DIY [ottodiy.com] popularity and scope. Expect to
see more hobby robots become
is a good example of that.” full products, such as the ultra-
customisable Otto DIY
Home-built robots are likely
to become smarter, too. “From
23
The Future of Making
FEATURE
24
FORGE
BRIGHT FUTURE
One thing our experts agree strongly on is that the all help to create an environment for makers to find
future is bright for the makersphere. “I’m incredibly their happy place and to share parts of their soul with
optimistic about the future of making,” says Jeff. others in the form of robots, code, projects, builds,
“For many people, making is a compulsion, and and art.”
outside of the freedom of expression being stripped Finally, Jude notes that so many more of the
away, there’s nothing that will stop it!” world’s problems are “being solved by small groups
“There are so many cool projects out there,” adds of people… the global community can do more than
Kevin. “The community, suppliers and educators ever before to shape a better future.”
25
FREE
Pico W
GET SIX for subscribers!
ISSUES
FOR JUST:
£30 UK / €43 EU / $43 USA & Canada
SUBSCRIPTION
SUBSCRIBER BENEFITS:
> Get every issue of > Learn from hackers and
HackSpace magazine makers in our in-depth
delivered to your door tutorials
> Early
access to the > Get a free
PDF edition Raspberry Pi Pico W
hsmag.cc/subscribe
Open-source Braille Embosser
FEATURE
AN OPEN-
I
magined in 1829 by Louis Braille,
Braille is a tactile alphabet for blind
SOURCE
and partially sighted people. Made
of a grid of six dots, each Braille cell
corresponds to a letter or an escape
code to specify a capital, number, or
BRAILLE
punctuation mark. As each cell consists of
six dots, there are 64 combinations available.
Due to the limited number of combinations,
EMBOSSER
each country has adopted its own Braille
standard. The usage of computers and
information technology shows the need for
a better standard with more combinations.
Since the start of the 21st century, we also
have eight-dot Braille standards. At this
time, eight-dot standards are used only on
numerical devices, such as Braille displays.
28
LENS
Left
Clear acrylic lets you
see what’s going on
inside
29
Open-source Braille Embosser
FEATURE
Above
The machine is small PAPER FEED We then decided to try a simpler system
LUV\NO[VÄ[LHZPS`VU When handling the paper, the sheet must using only two rollers, as it is easier to align
a desk
be securely held between the two rollers. two points. We had what we thought was
The bottom roller is driven by the Y motor, a good design that was simple to build
while the top roller applies the required and reliable. We made a few prototypes
pressure. If the sheet slips on the rollers, using this design and had some success.
it can lead to inaccurate printing or even However, with only two rollers, you can’t
cause a paper jam. use materials like aluminium cans.
We created our first prototype using We then attempted to upgrade the paper
three rollers and paper pressers. The presser by adding springs, one for each
pressers were all situated on the same presser. We found the GT2 tensioner spring
8 mm linear rod axis, with two springs was both affordable and easy to find. So,
at each end to ensure good pressure on we redesigned the presser with two plastic
the paper. Although this system worked parts articulated around an M3 screw, using
adequately, it was difficult to build and a GT2 tensioner as a spring. Success! This
adjust. So, we decided to experiment with new presser is more flexible and applies
three independent pressers and relied firmer pressure on the paper, resulting in
Below
It was hard to get the on the plastic’s elasticity to maintain the a better paper roll that securely holds the
paper feed to work pressure. However, the paper feeding sheets of paper.
well, but we’re happy
with our solution system was still tricky to adjust and was
not very reliable. DETECTING THE EDGE
On our board, we need a reference to
define an absolute X and Y position on the
paper. On the X axis, there is a standard
end switch that detects the minimum
position of the bottom carriage and defines
it as the 0 position for X. The Y axis runs
along the paper sheet, so we must detect
the start of the paper. Initially, we used a
standard end switch with the end switch
lever in contact with the paper to detect the
top edge of the sheet, defining the top edge
as the 0 position for Y. It worked fine, but it
was difficult to set up – the paper jammed if
it was too close to the end switch and was
often undetected if too far. To improve
30
LENS
Left
The complete machine
ready to run
Below
Maybe I’m biased, but I
think this looks good as
well as being functional
31
Open-source Braille Embosser
FEATURE
Left
A WORD ABOUT SOFTWARE The dots left by the machine are easy for people to feel
We now have a device that enables us to ^P[O[OLPYÄUNLYZ
32
LENS
Left
Paper can be one of
the hardest materials
to work with because
of its tendency to jam
and crease
33
The Sanjay Mortimer Foundation
INTERVIEW
34
LENS
WHAT IS NEURODIVERGENCE?
The term ‘neurodiversity’ refers to the natural variation in
neurodevelopment across all individuals. We’re all different.
‘Neurodivergent’ describes a person whose neurodevelopment
falls outside of the ‘typical’ range, including but not limited to
neurodevelopmental differences such as autism, attention deficit
hyperactivity disorder (ADHD), dyslexia, dyspraxia, and Tourette’s
syndrome, among others.
Various academic studies have shown that neurodivergence is a massive
hindrance within the traditional educational setup. The Sanjay Mortimer
Foundation (SMF) has sifted through loads of research, most of it from US
academia. Kent (2011) showed that high-school students with ADHD have
significantly lower grades, and are over eight times more likely to drop
out than their peers without ADHD. And according to Berkeley (2010), only
9–20% of students with ADHD graduate from college, compared to 68% of
neurotypical thinkers.
High dropout numbers consequently means that neurodivergent thinkers
are under-represented at all levels of higher education. And in the UK, the
Office of National Statistics has found evidence that neurodiverse people
are massively more likely to be unemployed, and that half of those who
are employed are under-employed, meaning that they have skills that are
being wasted. Something small like access to a bit of kit or training, or a
mentorship, can make a huge difference to someone’s life.
The SMF is looking for applications from people aged 14–25 in
England and Wales who are neurodivergent and who love engineering.
It could be 3D printing, electronics, robotics – anything, as long as it
fits under the STEM umbrella. They’re well aware that mental health
diagnoses take time, so you don’t need to be officially diagnosed –
as long as you’re on the waiting list, you’re eligible to apply. Go to
sanjaymortimerfoundation.org to find out more.
35
The Sanjay Mortimer Foundation
INTERVIEW
36
Left
3D printers used to
be rubbish. The fact
that they are not
rubbish anymore is in
large part thanks to
Sanjay Mortimer
37
The Sanjay Mortimer Foundation
INTERVIEW
Below
The inaugural Sanjay
Mortimer RepRap
Festival, held in 2023,
was a riot of noise,
colour, and sharing.
This year’s will be in
sunny Manchester,
and should be an
unmissable event for
fans of 3D printing
38
LENS
was getting told off all the time, and he ěßϰũĢŏϞľãϰ¾ϰēÿŊŊēãϰØÿŊϰęĢľãϰãłŊ¾Øēÿłüãßμϰ to mentor these kids. And everyone’s
had really low self-esteem as a result you’ve hopefully had some support that different. Our last Star, she was
of that. you need. That’s not always the case, attending Brunel University, and she
ØŏŊϰţãϰü¾ßϰŊĢϰü¾Ţãϰ¾ϰÙŏŊϒĢööϰłĢęãţüãľãϰ had some form of rare neurological
HS And this brings us on to what the ¾ěßμϰüĢĻãöŏēēũμϰØũϰŊüãěϰũĢŏϞľãϰÿěϰ żŊłλϰĢϰłüãϰţĢŏēßϰżŊμϰö¾ēēϰŊĢϰŊüãϰŽĢĢľμϰ
foundation is all about. employment or you have the support to and then she would really injure
try and get you there. üãľłãēöλϱüãϞłϰßãŢãēĢĻÿě÷ϰ¾ϰłãēöϒ
TB ϰAŊϞłϰľã¾ēēũϰ¾ØĢŏŊϰŊü¾ŊλϰAŊϞłϰ¾ØĢŏŊϰ We’re a charity registered in England ÿěŽ¾Ŋÿě÷ϱ¾ÿľØ¾÷λϰ
÷ÿŢÿě÷ϰĢŏľϰŊ¾ľłϰŊüãϰÙĢěżßãěÙãϰ¾ěßϰŊüãϰ ¾ěßϰ¡¾ēãłλϰĢϰũĢŏϰü¾ŢãϰŊĢϰØãϰľãłÿßãěŊϰ §ĢŏϰÙ¾ěϰţã¾ľϰÿŊϰĢěϰũĢŏľϰØãēŊϰ¾ěßϰÿŊϰ
self-esteem that they need to recognise in England and Wales. We want to go puffs up and protects her during her
that they can go on to thrive in their ÷ēĢؾēμϰţãϰľã¾ēēũμϰľã¾ēēũϰßĢϰϔϰ¾ϰēĢŊϰĢöϰ żŊłλϰüãľãϰţãľãϰłÿęÿē¾ľϰŊüÿě÷łϰĢěϰŊüãϰ
ÙüĢłãěϱżãēßλϰ ĢŏľϰłŏĻĻĢľŊϰÿłϰöľĢęϰ¾ØľĢ¾ßλϰŏŊϰÿěϰŊüãϰ ę¾ľĐãŊϰēÿĐãϰŊüÿłμϰØŏŊϰŊüãũϰţãľãϰľã¾ēēũϰ
Because they’ve had so many initial stages, the Charity Commission ãŨĻãěłÿŢãλϰ`ěãϰţ¾łϰAϰŊüÿěĐμϰÿěϰţãßãěμϰ
ĐěĢÙĐؾÙĐłλϰ8ľĢęϰ¾ϰũĢŏě÷ϰ¾÷ãμϰŊüãũϞßϰ ÿłϰŢãľũϰłŊľÿÙŊϰ¾ØĢŏŊϰľã÷ŏē¾Ŋÿě÷ϰ¾ϰÙü¾ľÿŊũμϰ a device that you wear around your
ØããěϰŊĢēßμϰϛßĢěϞŊϰßĢϰŊü¾ŊϜμϰϛßĢěϞŊϰßĢϰÿŊϰ ¾ěßϰÿöϰÿŊϞłϰ¾ØľĢ¾ßϰ¾ěßϰęŏÙüϰØÿ÷÷ãľμϰÿŊϰ neck when you’re cycling, and if you
ēÿĐãϰŊü¾ŊϜμϰĢľϰŊüãũϞŢãϰČŏłŊϰØããěϰę¾ßãϰ makes it very hard for them to regulate ö¾ēēμϰÿŊϰÿěŽ¾ŊãłλϰěßϰŊüãϰĢŊüãľϰĢěãϰÿłϰöĢľϰ
to feel different constantly. And so it’s us. So the advice I was given was to old people who wear this sort of vest
¾ØĢŏŊϰÙãēãØľ¾Ŋÿě÷ϰŊüĢłãϰßÿööãľãěÙãłμϰ¾ěßϰ łãŊϰŏĻϰ¾łϰ¾ϰPϰÙü¾ľÿŊũϰŊĢϰØã÷ÿěϰţÿŊüμϰ ϔϰ¾ěßϰÿöϰŊüãũϰö¾ēēμϰÿŊϰØēĢţłϰŏĻλϰĢϰłüãϰ
making them realise that that’s OK. And ãłŊ¾ØēÿłüϰĢŏľłãēŢãłμϰ÷ãŊϰ¾ϰöãţϰũã¾ľłϰ was desperate to get hold of these two
they can just harness what it is that ŏěßãľϰĢŏľϰØãēŊμϰę¾ĐãϰłŏľãϰũĢŏϞľãϰěĢŊϰ pieces of equipment just to understand
they love doing, focus on that strength- ¾ϰØÿ÷ϰľãßϰŽ¾÷ϰŊĢϰŊüãϰĢęęÿłłÿĢěλϰěßϰ and take them apart and research them.
ؾłãßϰēã¾ľěÿě÷λϰüãϰöĢŏěß¾ŊÿĢěϰÿłϰ¾ēēϰ then, once you’re a well-known entity, ĢϰţãϰØĢŏ÷üŊϰüãľϰŊüãłãϰŊţĢϰĻÿãÙãłϰĢöϰ
¾ØĢŏŊϰÿěÙľã¾łÿě÷ϰŊüãϰãßŏÙ¾ŊÿĢěϰÿěϰ¾ϰ you can spread your wings further. equipment so that she could further her
żãēßϰŊü¾ŊϰŊüãũϞľãϰľã¾ēēũϰÿěŊãľãłŊãßϰÿěλϰ The support we offer is completely education in that area.
We focus on STEM – science, ØãłĻĢĐãϰ¾ěßϰŏěÿĽŏãϰŊĢϰŊü¾ŊϰŊ¾ľϰϔϰţãϰ Another of our Stars got 3D printers,
technology, engineering, and refer to them as our Stars or SMF üãϰ÷ĢŊϰţĢľĐϰãŨĻãľÿãěÙãμϰ¾ěßϰŢ¾ľÿĢŏłϰ
mathematics. That’s the area that we’re Stars. So a Star will apply, and they other things.
ÿěμϰØãÙ¾ŏłãϰŊüãľãϰ¾ľãϰĢŊüãľϰÙü¾ľÿŊÿãłϰĢŏŊϰ ţÿēēϰßãłÙľÿØãϰŊĢϰŏłϰŊüãϰÙü¾ēēãě÷ãłϰ
there that focus on arts and drama and they’re having and a particular area HS From your website, I learned that
theatre. We just thought, let’s focus on ĢöϰÿěŊãľãłŊλϰěßϰłĢϰÿŊϰęÿ÷üŊϰØãϰAξϰÿŊϰ people with neurodivergent minds
ţü¾Ŋϰ¾ěČ¾ũϰţ¾łϰ¾ēēϰ¾ØĢŏŊλϰ ęÿ÷üŊϰØãϰ8Ģľęŏē¾ϰ`ěãμϰũĢŏϰĐěĢţμϰ are highly under-represented in
any kind of engineering that they’re engineering degrees. That’s a surprise.
HS What sort of form does that take? particularly interested in. And then
I’m guessing that you can’t give ţãϰţĢľĐϰţÿŊüϰĢŏľϰÙĢēē¾ØĢľ¾ŊĢľłϰţüĢϰ TB It is. The evidence shows that
everybody a right-hand man, so you are generally their teacher/tutor, could ěãŏľĢßÿŢãľ÷ãěŊϰĻãĢĻēãϰ÷ãŊϰēĢłŊϰØãöĢľãϰ
need a slightly more scalable solution ØãϰŊüãÿľϰãęĻēĢũãľμϰĢľϰÿŊϰÙĢŏēßϰØãϰŊüãϰ they make it into engineering careers.
than that? ę¾ĐãľϰłĻ¾ÙãϰĢţěãľμϰłĢęãØĢßũϰţüĢϰ They fall out of the system. And this
ĐěĢţłϰŊüãęϰϔϰŊĢϱÙĢęãϰŏĻϰţÿŊüϰŊüãϰØãłŊϰ ÿłϰؾłãßϰĢěϰŊüãϰö¾ÙŊϰŊü¾ŊϰŊüãũϰü¾Ţãϰ
Our application process is open łŏĻĻĢľŊϱĻĢłłÿØēãλϰ ¾ϰŊãľľÿØēãϰŊÿęãϰ¾ŊϰłÙüĢĢēξϰŊüãũϰöããēϰ
at the moment. To apply, you need to ü¾Ŋϰęÿ÷üŊϰØãϰϔϱ¾łϰ¾ěϰãŨ¾ęĻēãϰ like they can’t achieve, they feel like
ØãϰØãŊţããěϰŊüãϰ¾÷ãłϰĢöϰΎϰ¾ěßϰΌΏλϰ¡ãϰ – funding them through further ŊüãũϞľãϰö¾ÿēÿě÷λϰěßϰÿŊϞłϰØãÙ¾ŏłãϰŊüãũϰ
ÙüĢłãϰŊü¾Ŋϰ¾÷ãϰľ¾ě÷ãϰØãÙ¾ŏłãϰţãϰü¾ßϰŊĢϰ education. So through a training course, ü¾ŢãěϞŊϰØããěϰŊ¾ŏ÷üŊϰÿěϰŊüÿłϰłŊľãě÷Ŋüϒ
ÙüĢĢłãϰ¾ěϰ¾÷ãϰľ¾ě÷ãξϰţãϞßϰØãϰłĻľã¾ßϰŊĢĢϰ or a degree course, or whatever it might ؾłãßϰö¾łüÿĢěλϰěßϰłĢϰŊüãũϰßľĢĻϰĢŏŊϰ
ŊüÿěēũϰÿöϰţãϰßãÙÿßãßϰŊĢϰüãēĻϰ¾ØłĢēŏŊãēũϰ ØãλϰAŊϰęÿ÷üŊϰØãϰĻľĢŢÿßÿě÷ϰŊüãęϰţÿŊüϰ¾ϰ of the system, they don’t make it to
ãŢãľũØĢßũλϰãēĢţϰŊüãϰ¾÷ãϰĢöϰΎϰũĢŏϞľãϰ resource or a piece of equipment that senior school, or they don’t make
łŊÿēēϰēã¾ľěÿě÷ϰ¾ēēϰŊüãϰ¾Ù¾ßãęÿÙϰłŏØČãÙŊłλϰ they can use to further their education it to university, and therefore they
AŊϞłϰěĢŊϰŏěŊÿēϰŊüãϰ¾÷ãϰĢöϰ¾ľĢŏěßϰΎμϰΏμϰ ÿěϰŊüãϰżãēßϰŊü¾ŊϰŊüãũϞľãϰÿěŊãľãłŊãßϰÿěλϰ ¾ØłĢēŏŊãēũϰßĢěϞŊϰę¾ĐãϰÿŊϰÿěŊĢϰ¾ϰÙ¾ľããľϰ
16 that you start noticing where your AŊϰęÿ÷üŊϰØãϰłãŊŊÿě÷ϰŊüãęϰŏĻϰţÿŊüϰţĢľĐϰ in engineering. That’s where that
strengths lie and what you enjoy. ãŨĻãľÿãěÙãϰĢľϰ¾ěϰÿěŊãľěłüÿĻϰţÿŊüϰ¾ϰ statement comes from.
ěßϰŊüãěϰΌΏϰÿłϰŊüãϰÙŏŊϒĢööϰØãÙ¾ŏłãϰ company that they would really love to Another stat is that autistic people
ţãϰöãēŊϰØũϰŊü¾ŊϰŊÿęãϰϔϰ¾ěßϰŊüÿłϰÿłϰ¾ϰ get a foot in the door with. have one of the worst employment
very generalised view – you will have We’ve got some mentors on our rates in the country, and they are paid
manifested some coping mechanisms. ØĢĢĐłμϰãŨϒãě÷ÿěããľłϰţüĢϰü¾Ţãϰ÷ĢŊϰŊÿęãϰ the least. It’s an awful statistic.
39
The Sanjay Mortimer Foundation
INTERVIEW
40
SEARCH FOR A STAR
If you know someone who fits the Foundation’s eligibility criteria – aged
14–25, resident in England and Wales, neurodivergent, loves STEM
subjects – and you think they could benefit from access to equipment,
or to extra mentoring in their chosen field, gently nudge them toward
applying for support from the Sanjay Mortimer Foundation. And
remember, they don’t have to be fully diagnosed as neurodivergent: it’s
enough to be on the waiting list.
sanjaymortimerfoundation.org
41
THE MAGPI
This feature is
from The MagPi,
the official
Raspberry Pi
magazine. Each
issue includes a
huge variety of
projects, tutorials,
tips and tricks to
help you get the
re
most out of your
Raspberry Pi.
Find out more at
tiv ity a
magpi.cc
d cre a
y an r ry Pi
h nolog as pb e ether.
Tec ive and R e two tog
inclus brings th
42
FORGE
KIT
_SL_^_Z[[PZ[WPTY_SPT]_]LNV^MPNL`^P_SPd
PT_SP]WZZVRZZOZ][P]QZ]X_L^V^_SL_L]PU`^_
^SPP][WLTYQ`Y?SP^PL]PZ`]VTYOZQXLVP]^
4Y_ST^QPL_`]PbP_LVPLWZZVL_L]_^LYON]LQ_^
[]ZUPN_^_SL_TY^[T]P`^4Y^ZXPNL^P^_SPdɪ]P
^_]LTRS_QZ]bL]OM`__SPdbTWWSZ[PQ`WWd`YWZNV
_SPTYaPY_TaP[L]_ZQdZ`]M]LTY^Z_SL_dZ`NZXP
`[bT_SXZ]PTYRPYTZ`^bLd^ZQ_LVTYR[]ZUPN_^
Q`]_SP]4YZ_SP]NL^P^L[]ZUPN_XLdMPOTʯN`W_
PISHOP.US
f pishop.us
_Z]P[WTNL_PWTVPQZ]WTVPM`__SL_OZP^Yɪ_XPLY
Light up your projects with NeoPixels, screens,
dZ`NLYɪ_MPʮPcTMWPLYO[`]^`PLYLW_P]YL_TaP
[L_SDZ`XLdPaPYOPNTOP_ZXL^S`[_bZZ] ±ĹÚX)%Ÿţ¥ŅƚűĬĬĀĹÚĬŅ±ÚŸŅĹŸ±Ĭå±Ƌ{ĜĘŅŞŸŅ
XZ]P[]ZUPN_^ take your pick.
BSL_PaP]dZ`OZ%MPMZWOLYOTYYZaL_TaP,YO
]PXPXMP]bT_S=L^[MP]]d;T[ZbP]TYRdZ`]
[]ZUPN_^dZ`LW]PLOdSLaPLSPLO^_L]_?SP
[Z^^TMTWT_TP^L]PPYOWP^^
THE
f
PI HUT
thepihut.com
FĹƋŅĵ±ĩĜĹčƵå±ų±ÆĬåŸũűŞƚŞÏŅĹÚƚÏƋĜƴå
thread, woven conductive fabric and more
from The Pi Hut.
PIMORONI
f pimoroni.com
Find great creative kits such as the Bearables Fox
LED Badges and LED circuit stickers at Pimoroni.
43
th a t w ill h elp you to
Insp iring projects rn itu re, and a
Diffficulty , clothe s, fu
guid de make music he r m akers!
o n o t
B
Beginner
egin
nner big impact
Pro
ojects for
everryone
a
advanced
dvanced
Pro
ojects th
hat
require
e some
experience
e
expert
xpert f mag
gpii.cc/112
Pro
ojects that
require skilll f magpii.cc
c/gp
pio
omu
usicb
box 1LYNdN]PL_TYRLYL]_T^_TN_LWVTYR
[ZTY_QZ]dZ`]SZXPbT_SZ`_RZTYR
/ZYɪ_MPLQ]LTO_ZXLVPLYZT^PLMZ`_ ZaP]_SP_Z[* These honeycomb wall
dZ`]L]_^LYON]LQ_^[]ZUPN_4YQLN_%TQ shelves may do the trick. Adopting a
Tools dZ`_]ddZ`]SLYOL_XLVTYR_ST^2;4: hexagonal design, the shelves were
Needed X`^TNMZc_SL_ɪ^PcLN_WdbSL_dZ`ɪWW designed with a channel, through
f Ras
spb
berrry Pii MPOZTYR.ZYYPN_L^P_ZQM`__ZY^_ZL which 12 V RBG light strips could be threaded.
=L^[MP]]d;TNZX[`_P]LYOdZ`NLYMPRTY Once outputted to a
f Bre
eadboard
_Z[WLd^Z`YO^`^TYR;d_SZY?SPXZ]P Crealty Ender 5 Pro 3D
f Fou
ur tacttille swittch
hes M`__ZY^dZ`LOO_SPXZ]P^Z`YO^dZ` To printer, the shelves
NLYPYUZd[Z_PY_TLWWd_`]YTYR_SP[]ZUPN_ could then be connected
f Five
e pin-tto-s
sock
ket
ju
umpeer le
eads s TY_ZLQ`WWdʮPORPOTY^_]`XPY_0T_SP] up to a Raspberry Pi 4
_SL_Z]L^Z`YOMZc_SL_NLYXLVP]`OP computer from which
f Fouur pin--to-p
pin YZT^P^ZYOPXLYO?SPNSZTNPT^dZ`]^ they are controlled,
ju
umpe er le
eadss
LWWZbTYROTʬP]PY_
f Spe
eak
kers
s/ levels of red, green or
hea
adp
pho
oness blue to be displayed.
44
FORGE
Needed
f Rasp
pbe
erry
y Pi Pic
co
f magpii.cc
c/ras
spberrryypibe
ere
et
f NeoP
Pix
xel LEDs f ma
agp
pi.c
cc/sc
creen
ndre
ess
s
4QdZ`bLY__ZRP_LSPLOTYQL^STZY_SPYdZ` f Mic
croPyth
h on
YPPO_ZRP_LSL_LYO_ST^;]TYNPTY^[T]PO 7P_ɪ^MPSZYP^_SP]PN]PL_TYR
SPLObPL]T^^`]P_ZTY^[T]P,^bPWWL^LWWZbTYR ^ZXP_STYR_SL_NZ`WOMPbZ]YZY_SPNL_bLWVT^
_SP]TYRZQNZWZ`]Q`W70/WTRS_^_ZLYTXL_PL_ NP]_LTYWdYZNLVPbLWV-`_L/`_NS1L^STZY?PNS
]LYOZXTY_P]aLW^dZ`NLYNZYYPN_L[SZYPLYO OP^TRYP]SL^^SZbYbSL_T^[Z^^TMWPTQdZ`WP_
NZY_]ZW_SPWTRS_^Q]ZXLbPMM]Zb^P]_SLYV^ dZ`]TXLRTYL_TZY]`YbTWO3P]>N]PPY/]P^^XLVP^
Advice!
_Z=L^[MP]]d;T;TNZBɪ^bT]PWP^^7,9,YdSL_ `^PZQ3d[P][TcPW=Z`YO7./^N]PPY^NZ^_TYR
bZ`WObZ]VQZ]_ST^[]ZUPN_LYOdZ`NZ`WOPaPY L]Z`YOn PLNSLYO_SPdɪaPMPPYOP^TRYPO_Z
OPNTOP_ZXLVPdZ`]ZbY5`^_XLVP^`]P_SP]Pɪ^ WZZVWTVPPdP^bSTNSNSLYRPLNNZ]OTYR_Z_SP
PYZ`RS]ZZXLMZaPdZ`]SPLOQZ]_SP^PaP]LWQPP_ You could turn bPL]P]ɪ^_SZ`RS_^RL_SP]POMdLY002^PY^Z]
ZQbT]P]P\`T]POQZ]_SP[]ZUPN_ ^_]L[[PO_Z_SPSPLO?SPd^SZbSZbdZ`NLY
Raspberry Pi into a
M]TYR_PNS_ZRP_SP]TYLN]PL_TaPbLd
live coding music
ŸƋƚÚĜŅƚŸĜĹčŅĹĜÏ
Pi (sonic-pi.net) Tools
Needed
f Ras
spbe
erry Pi Ze
ero 2 W
f Hyp
perp
pixell 2.1 Ro
ound
d LCD sc
cre
een
ns
f Uniicorn
n He
eadb
band
f 3D prin
nter
Tools
Needed
f Ra
asp
pberrry Pi
f mag
gpi.c
cc/s
speec
chtotextbad
dge
e Ze
ero
o2W
f Toucchscrreen
>ZdZ`ɪ]PL_L[L]_dZ]LNZYQP]PYNPLYO_SP dis
spla
ay
[P]^ZYdZ`ɪ]P_LWVTYR_ZNLYɪ_SPL]LYd_STYR
dZ`ɪ]P^LdTYR=L_SP]_SLY]P^Z]__Z[ZTY_TYR f Miinii HDMI –
HD
DMI Ada apter
dZ`NLYXLVPdZ`]^PWQLMLORP_SL_[TNV^`[dZ`]
bZ]O^aTLL@>-WL[PW f Ba
atttery pack
XTN[]ZNP^^P^_SPX an
nd caablee
ZYL=L^[MP]]d;TEP]Z US
SB Micrropho
one
f
bT_S_SPOPP[WPL]YTYR
^[PPNS]PNZRYT_TZY
^d^_PX/PP[R]LXLYO
_]LY^N]TMP^dZ`]^[PPNS
ZYL^XLWW^N]PPY
45
o catch the eye
cts are sure t
oje
These pr
f mag
gpii.c
cc/artle
edm
mattrix f mag
gpi..cc/sun
nriselam
mp
,^X`NSL^bPWZaP^_]PLXTYR^P]aTNP^bP ?SP>`Y]T^PWLX[XL]]TP^_PNSYZWZRdbT_SLY
NLYɪ_SPW[M`__STYVbPɪaPWZ^__SPL]_ZQ_SP Z]TRLXT_PNSYT\`PNLWWPO^YL[ZWZRd4_]P\`T]P^L
LWM`XNZaP]With this fab project, you can bring WZ_ZQ[L_TPYNPM`_TQdZ`SLaP_SP_TXP_ZWPL]YSZb
those covers back to life by displaying them _Z`^P^_]T[^ZQ[L[P]_ZN]PL_P^SL[P^Q]ZX]TRTO
on Adafruit’s LED matrix. It’s a simple enough _]TLYRWP^_SPYdZ`_ZZNZ`WON]PL_PL]L_SP]^[PNTLW
project which ties in with the WTRS_,=L^[MP]]d;TEP]ZBT^NZYYPN_PO_ZL^P_ZQ
music you’re playing so check 9PZ;TcPW^LYO_SPWTRS_^SLaPMPPY[]ZR]LXXPO_Z
out the maker’s GitHub page OTXL_YTRS_MPQZ]PM]TRS_PYTYRTY_SPXZ]YTYR_ZSPW[
(XLR[TNNQ_L]_bZ]V) to learn PL^P^WPP[P]^Q]ZX_SPT]^W`XMP]?SP]Pɪ^WZ_^ZQ^NZ[P
how to make it. _ZN]PL_P^ZXPLXLeTYROP^TRY^SP]P
Tools Tools
Needed Needed
f Rasp
pberry
y Pi 3B+ f Rasp
pbe
erry
y Pi Zero W
f Adaffruit 64x64
4 RGB
B LED Matrrix f Pllas
stic
c cas
se
f Adaffruit matrix
x bon
nnet f NeoP
Pix
xels
s
f Powe
er sup
pply
y f Pa
ape
er
f 5v 10
0 A sw
witch
hing PS
SU
f 3D-p
printe
ed ma
atrix fee
et
f Pi mo
ount
46
FORGE
f magpi.cc/
povdispla
ay
?ST^aT^`LWWd
L]]P^_TYR[]ZUPN_bZ]V^Md]Z_L_TYR
L^_]T[ZQ70/^L_STRS^[PPO-d^dYNTYR_SPT] Tools
MWTYVTYR[L__P]Y^LYObZ]VTYRZY_SP[]TYNT[WP
f ma
agp
pi.cc
c/ru
uhaca
am _SL_S`XLY^NZY_TY`P_ZM]TPʮd^PPLYTXLRP_SL_
Needed
f Rasp
pbe
erry
y Pi Pic
co
SL^^_Z[[POPY_P]TYR_SPPdPT_ɪ^[Z^^TMWP_Z
;SZ_ZR]L[SP]^OZYɪ_YPPO_Z^[PYO N]PL_P_SPTWW`^TZYZQLXZaTYRTXLRP?SP^_]T[^ f Adaffruuit DotSttar
LQZ]_`YPZYLN`__TYRPORPM]LYOYLXP L]PNZYYPN_PO_Z_SP;TNZXZ`Y_POZYL]Z_L_TYR Digittall LED
D Strrip
p
NLXP]LYZ]OZ_SPdYPPO_Z]PLNSQZ]_SPWL_P^_ L]XLYO^[`YL_STRS^[PPO,bT]PWP^^NSL]RTYR
f }ěŎee å
åāåÏ
ÏƋ±Ĺ
ĹÏå
å
^XL]_[SZYP^BT_S_SP3TRS<`LWT_d.LXP]LQZ] XZO`WP[]PaPY_^_SPbT]P^Q]ZXMPNZXTYRL å
åĹŸŸŅųų
=L^[MP]]d;TT_ɪ^[Z^^TMWP_Z[]ZO`NPdZ`]ZbY _LYRWPOXP^^
OPaTNPTYLYd^_dWPdZ`bLY_ɧLWWZbTYRdZ`_Z f DFR
Robot Wireele
ess
s
ʱųųčĜĹ
Ĺč aŅÚ
ÚƚĬåĂ
ʮPcdZ`]L]_T^_TNX`^NWP^TY_SPN]PL_TZYZQLNZZW
NL^PMPQZ]P^SZbNL^TYRdZ`]ʮLT]QZ]LRZZO[SZ_Z f %a
aŅƋŅų
ěĂ
ĂĉLj
B
?ST^[L]_TN`WL][]ZUPN_Z[_^QZ]L]P_]ZWZZVM`_
f aĜÏųųŅŸ
ŸŅüƋ ĜŸƚ
ƚ±Ĭ
T_NZXP^NZX[WP_PbT_SLXZOP]YaTPbʭYOP],^
ƋƋƚÚ
ÚĜŅ
Ņ ƖLjŎƀ
ƀ
N]PL_Z];PYV.SPY^Ld^ɭT_ɪ^WT_P]LWWd_PNSYZWZRd
XL]]TPObT_SWTMP]LWL]_^ɮ
Needed
f Rasp
pberrry Pi Zero
oW
f High
h Quality Camera
a
f 2.2-iinc
ch TFT disp
pla
ay Advice!
f 200
00 mAhh lith
hium
m
poly
ymer batteery Why not make
yourself a light
f Case
e
meter too? magpi.
cc/picolightmeter
f mag
gpi.c
cc//crea
atiingaiiarrt
?SLYV^_ZL]_TʭNTLWTY_PWWTRPYNPdZ`NLYPY_P]L
[]ZX[_NWTNVRPYP]L_PLYO^PPL[TN_`]PL[[PL]
MPQZ]PdZ`]PdP^4QdZ`QLYNdPc[P]TXPY_TYR
bT_S_SP_PNSYZWZRd_]d:YYc>_]PLXL^XLWW Tools
TYQP]PYNPWTM]L]d_SL_]`Y^>_LMWP/Tʬ`^TZY Needed
ZYL=L^[MP]]d;TEP]ZB>`]PT_NLYMP Ra
aspberrry Pi
f
^WZbM`_T_ɪ^^`[P]TX[]P^^TaP.SPNVSZbT_ Ze
ero
o2W
bZ]V^LYOWPL]YSZb_Z^P_T_`[L_RT_S`MNZX
f On
nnxStre
eam
aT_Z[WLY_LX`]L:YYc>_]PLX
47
Objet 3d’art
REGULAR
Objet 3d’art
3D-printed artwork to bring more beauty into your life
G
enerations of British kids got their first taste of
making things through Airfix kits. These cheap,
extruded plastic model kits of WWII-era vehicles
brought the Hawker Hurricane, Mitsubishi Zero,
Messerschmitt, Spitfire, and more into homes up
and down the land for pocket money prices. Some painted
them meticulously; some threw them out of windows to find
out if their model aeroplanes would actually fly. They did not fly!
Stian Ervik Wahlvåg, aka agepbiz, has taken this idea and
run with it in the shape of this overly complicated business
card. Rather than injection moulding, Stian’s used a Bambu
Lab X1-Carbon 3D printer to produce a four-colour model of
the parts of a toy jeep. For the packaging, he’s printed a design
onto card, which he’s cut out using a Silhouette Portrait 2 vinyl
cutter, folded with the relatively primitive but no less satisfying
means of a ruler and a craft knife. He’s then wrapped the box in
cellophane sealed using a PFS-200 Heat Sealer, and heat-shrunk
with a Bosch UniversalHeat 600.
Unlike most business cards, this doesn’t have any words
other than social media handles, but it does tell you that the
maker has some pretty advanced skills.
hsmag.cc/BusinessCard
48
SPARK
49
Letters
COLUMN
Letters ATTENTION
ALL MAKERS!
If you have something you’d
like to get off your chest (or
even throw a word of praise
in our direction) let us know at
hsmag.cc/hello
Mark
Telford
Ben says:+EQORNGVGN[CITGG+VũUƓPKUJGFQHHYKVJCNGXGNQH
RQNKUJVJCVRWVUOCP[QHWUVQUJCOG
TINY TAPEOUT
I don’t normally write in to magazines, but Tiny Tapeout
just knocked my socks off. I can’t believe that it’s not only
possible for a hobbyist to design a chip (or a part thereof), but
reasonably achievable for mere mortals. I can’t wait to
get started.
Sam
Hull
Ben says:+MPQYTKIJV!К+ũOUVKNNCNKVVNGDKVKPUJQEMVJCVO[
FGUKIPKUGVEJGFKPUKNKEQP;GUO[FGUKIPKUUKORNGVQVJG
RQKPVQHDGKPIVTKXKCNDWVKVũUUVKNNOCFGKVQPVQCEJKRCPFKV
YQTMU+ũOPQYRNCPPKPIYJCVVQFQPGZV
50
SPARK
AIR QUALITY
The interview in issue 77 sent me down a rabbit hole. Obviously
I was aware that pollution was bad, but I didn’t realise just how
bad it could be on a personal level. Thanks for bringing this up.
I’m going to start monitoring it at my house to see how badly
I’m affected.
Jane
Stroud
Ben says:#KTSWCNKV[KUQPGQHVJQUGVJKPIUVJCVOQFGTPNKHG
TGCNN[OCMGUEJCNNGPIKPIKPCNCTIGPWODGTQHYC[U6JGTG
CTGUQOGVJKPIUVJCVCTGEQORNGVGN[YKVJKPQWTEQPVTQNťHQT
GZCORNGWUKPICPCKTƓNVGTYJGPUQNFGTKPIYGCTKPICFWUV
OCUMYJGPFQKPICP[VJKPIVJCVECWUGUFWUVCPFGXGPVJKPIU
CUUGGOKPIN[UKORNGCUEQQMKPIECPRWVQWVFCPIGTQWUNGXGNU
QHRQNNWVKQPKPVJGXKEKPKV[VJCVJCXGVQDGFGCNVYKVJ
6JGTGCTGCNUQVJKPIUCVCNCTIGTNGXGNťOCKPN[ECTCPFHQUUKN
HWGNTGNCVGFťVJCVVCMGOQTGEQQTFKPCVGFCEVKQP
6JGVYQVJKPIUVJCVDQVJCTGCUJCXGKPEQOOQPKUVJCVKVũU
OWEJGCUKGTVQVCMGGHHGEVKXGCEVKQPYJGP[QWMPQYYJCVũU
IQKPIQP/KEJCGNũUCKTFTQKFUCTGGZEGNNGPVCPFGPICIKPIDWV
[QWTOQPKVQTFQGUPũVJCXGVQNQQMSWKVGCUUVTKMKPIVQ
DGGHHGEVKXG
ROS
I’ve played about with a few robots over the years, and always
struggled when the software side started to get complex.
I’m not a skilled coder – just a bit of a tinkerer – and it just
seemed to get unmanageable very quickly. Rob Miles’ tutorial
on ROS seems like it might be the answer. I’m going to dig
out my old line-following robot and see what new skills I can
give it!
#NK
Sunderland
Ben says:)NCF[QWHQWPFKVWUGHWN5QHVYCTGũUCHWPP[
VJKPIťUQQHVGPYGUVCTVCRTQLGEVYQTT[KPICDQWVVJG
JCTFYCTGDWVGPFWRƓPFKPIVJCVVJGUQHVYCTGKUVJG
TGCNEJCNNGPIG6JGIQQFPGYUVJQWIJKUVJCV[QWũXGIQV
UQOGJCTFYCTGVQJCXGCJCEMCDQWVQP)GVVKPIENWGFWR
QP415UJQWNFPũVDGVQQJCTFCPFYKNNCFFCTGCNUMKNNVQ
[QWTOCMGTCTOQWT[
51
200 PAGES OF RASPBERRY PI
QuickStart guide to setting up The very best projects built by
your Raspberry Pi computer your Raspberry Pi community
PG
60
CASH REGISTER PG
Build your own portable shop 54
66
PG
SCHOOL OF
3D-PRINTING
PLANTERS
MAKING
Start your journey to craftsmanship
Add more greenery to your house with these essential skills
54 KiCad
PG
70
GAMEPAD
Add high-performance buttons to your rig
PG
PG 82
74 ANIMATRONIC
ROBOT MOVEMENT COSTUMES
One step closer to Boston Dynamics Pico gives you wiiiiiiiiiings
KiCad: Making an RP2040 temperature sensor
SCHOOL OF MAKING
Making an RP2040
temperature sensor
Let’s explore adapting our RP2040 layout to make a simple weather station
I
n this final project of the KiCad series, SDA and SCL pins having a pull-up resistor and a
we’re going to adapt our RP2040 layout to bypass capacitor placed near the package. So far,
make a rudimentary weather station. The straightforward. The datasheet also recommends,
PCB will host an AHT20 sensor, which is a where possible, that the package has a routed
good-quality sensor that can detect both channel around it to isolate it thermally from the rest
temperature and humidity via I2C. It’s made of the system. You can get away without this, but
Jo Hinchliffe by the same company that created the venerable your temperature readings will be influenced by the
Jo Hinchliffe (AKA DHT22, which has long been a popular sensor for this rest of the components on the board. You can never
Concretedog) is a constant type of project. fully thermally isolate a temperature sensor, but the
tinkerer and is passionate
about all things DIY space. Scouring the JLCPCB parts library revealed that more you can disconnect it from the rest of the
He loves designing and they have two versions of the AHT20 in surface- board, the more accurate your readings will be.
scratch-building both
mount packages. It’s important to double-check
model and high power
rockets, and releases the
designs and components
components carefully, as one of the options (the F
DOTSTAR GPIO PINS
variant) was built so that the vent hole for the sensor
as open-source. He also
has a shed full of lathes
was placed underneath the package, so required a You can use any pins for DotStar LEDs. However,
and milling machines and very accurate footprint that included a matching hole underneath the library, they communicate using the
CNC kit! through the PCB under the footprint. With our correct SPI protocol. If you use the pins that are enabled
package identified, we created a KiCad footprint for for the appropriate SPI functions, you’ll get better
performance. For a strip of 14 LEDs, the difference
the 6-pin device (although two pins on the device are
is negligible, if there even is any. However, if you’re
not connected).
handling larger displays, it pays to fully utilise the
Above The next step is a quick read of the datasheet. It’s
The completed specific SPI hardware on the RP2040.
AHT20 board pretty straightforward to connect the AHT20, with
54
FORGE
”
Figure 1 (Below)
Adding a slot around the AHT20 sensor to thermally isolate it
somewhat from the PCB We wanted to be able to
Right
Our completed PCB layout
hook this board up to a
wide range of outputs,
so we broke out a
healthy number of
”
GPIO pins
55
KiCad: Making an RP2040 temperature sensor
SCHOOL OF MAKING
BRING IT TO LIFE
In the previous issue, we looked at creating a custom
version of CircuitPython but, this issue, we’ll use the
easier (though perhaps a little more boring) method
of using the CircuitPython build for Raspberry Pi Pico,
and incorporating any changes we need in the code.
When you receive your boards, they should come
GETTING HELP with blank flash chips, which means that when you
Above (Left) plug them into a computer, an RP2 flash drive
This is smaller and
more robust than We’ve covered the basic use of KiCad in this series appears. You can copy the Raspberry Pi Pico build
a dev board and but, as you progress, you may have questions or hit of CircuitPython onto this (download it from
separate temperature
sensor upon problems that you aren’t sure how to solve. circuitpython.org). Once this has fully copied over,
There are a few places that you can go for the RP2 drive should disappear and a CircuitPython
Above (Right) additional support.
A break in the PCB drive should appear. The only thing we need to add
thermally isolates the The first port of call in most cases should be the
temperature sensor documentation at docs.kicad.org. These go into more to this is the DotStar module that we’ll need to
as much as possible depth than we have in this series, and should also be control our LEDs. You can get this from the Library
updated as things change. bundle which is also at circuitpython.org. This
There are also online communities, both of the comes as a zip file, so extract it, and copy the
forum variety (kicad.org/community/forums) and chat adafruit_dotstar.mpy file from the lib folder to the
(kicad.org/community/chat). In both cases, these are
lib folder on the CircuitPython drive. Your device is
community resources for users to help each other out.
If you are using KiCad for a professional project now all set up and ready to start coding.
and you want an appropriate level of support, the The AHT20 sensor on this board is connected via
KiCad Services Corporation may be able to help. It I2C, and we can connect to it using the adafruit_
covers everything from helping you use KiCad, to ahtx0 module. We just need to set up an I2C object
bug fixes, and implementing features you need. This first. This is done with:
company employs some of the lead developers of
KiCad, so directly supports the project.
i2c = busio.I2C(board.GP1, board.GP0)
sensor = adafruit_ahtx0.AHTx0(i2c)
56
FORGE
Once this is set up, you can access the import adafruit_dotstar as dotstar
Above
temperature and humidity with sensor.temperature Make sure you
and sensor.relative_humidity. dots_temp = dotstar.DotStar(board.GP28, board. attach wires to the
right end of the
Now we’ve got temperature and humidity readings GP27, 14, brightness=0.2, auto_write=False) LED strip (the arrow
shows the direction
on the board, the next question is what to do with dots_humid = dotstar.DotStar(board.GP24, board. the information
them. We’ve broken out the spare GPIO pins, so we GP23, 14, brightness=0.2, auto_write=False) travels through
the strip)
can hook up almost any other hardware we want.
We’ve opted for two strips of DotStar LEDs. These i2c = busio.I2C(board.GP1, board.GP0)
are addressable RGB LEDs, so we can set any of sensor = adafruit_ahtx0.AHTx0(i2c)
them to be any colour. We’re going to use them as
thermometer-style outputs, with one LED lit up at a ďŦƢƖȱƢĕśƉȪǙŒŒȺȺǟȤǟȤǟȻȻ
time. As the temperature or humidity goes up, the lit ďŦƢƖȱķƪśļďȪǙŒŒȺȺǟȤǟȤǟȻȻ
LED moves up the relevant strip.
The DotStar LED strips have four connections, temp_range = (10,30)
VCC goes to 5 V, GND goes to GND (and there are temp_colour = (100,0,0)
two of each on the board, so they can connect
directly to the pin). Each strip also has a Clock and humid_range = (0,100)
Data input connection, labelled SCK and DIN. We’ve humid_colour = (100,100,0)
used pins 23 and 24, and 27 and 28 for these, but
any of the GPIO pins will work. while True:
We can create the two DotStar objects with: print(“\nTemperature: %0.1f C” % sensor.
temperature)
dots_temp = dotstar.DotStar(board.GP28, board. print(“Humidity: %0.1f %%” % sensor.relative_
GP27, 14, brightness=0.2, auto_write=False) humidity)
dots_humid = dotstar.DotStar(board.GP24, board. ďŦƢƖȱƢĕśƉȪǙŒŒȺȺǟȤǟȤǟȻȻ
GP23, 14, brightness=0.2, auto_write=False) ďŦƢƖȱķƪśļďȪǙŒŒȺȺǟȤǟȤǟȻȻ
You can then access them like lists and assigning temp_index = int(((sensor.temperature-
an RGB tuple to an element in the list with. For temp_range[0])/(temp_range[1]-temp_range[0])) *
example, dots_temp[0] = (100,0,0). There are also len(dots_temp))
some methods that we can use including ǙŒŒȺȻ, dots_temp[temp_index] = temp_colour
which sets all LEDs in the string to a particular dots_temp.show()
colour. The full code for our temperature and
humidity thermometers is: humid_index = int(((sensor.relative_humidity-
humid_range[0])/(humid_range[1]-humid_range[0])) *
@import time len(dots_humid))
import board dots_humid[humid_index] = humid_colour
import busio dots_humid.show()
import adafruit_ahtx0
import board time.sleep(2)
57
KiCad: Making an RP2040 temperature sensor
SCHOOL OF MAKING
You can save this to your board and you should see
Above
We’ve left as many the appropriate LEDs light up. Hold your thumb over OTHER PROGRAMMING
pins as possible for
additional hardware
the temperature sensor and you should see the LANGUAGES
to be connected LEDs change.
We’ve focussed on CircuitPython because that’s the
GOING FURTHER language we’re most familiar with, but you can program
We’ve now come to the end of our series on KiCad, the RP2040 board in a wide variety of languages.
The two officially supported options are C (via the
and we’ve worked our way up from simple boards that
Pico SDK), and MicroPython. Additionally, there are
connect modules and breakout pins, to creating our
community projects that have brought a wide variety
own microcontroller boards with the hardware we of languages to the RP2040 processor. Some of these
want, and we’ve programmed them along the way. might work out of the box, and others might need a little
From here, you can take this hobby wherever you like. tweaking in order to run.
”
• Arduino – technically, this is C++, but the IDE and
ecosystem make this feel like a distinct language. It’s
If you’re interested in
incredibly popular with hobbyists, mostly because there
are languages for essentially every bit of hardware
the skill of PCB design, ever created.
• TinyGo – hsmag.cc/TinyGoPico. Go was designed by
then you can work on Google to help them solve very large problems. Despite
technically more
the fact that microcontrollers, by their nature, very rarely
solve large problems, this language has leaked into the
challenging boards embedded world. We’ve never used it, so can’t really
”
comment, but lots of people smarter than us think it’s
good, so it probably is.
• Rust – github.com/rp-rs/rp-hal. As far as we can tell,
this is supposed to do the same things as Go, but it was
created by Mozilla rather than Google.
If you’re more interested in practical solutions, then • Forth – hsmag.cc/PiPicoForth. According to people with
grey hair who inhabit universities, Forth is the greatest
you can keep designing boards as you need them. If
language ever written. We’re not entirely sure why, but
you’re interested in the skill of PCB design, then you
they’re very convinced of this fact.
can work on technically more challenging boards. For • BASIC – geoffg.net/picomite.html. This writer learned
example, you could try starting with some of our to program in BASIC and has a certain fondness for it.
examples and seeing how small you can make them. However, the world has moved on over the last 30 years,
You could work on interesting or artistic boards, and BASIC hasn’t. It can give some people a good hit of
such as those used for badges at hacker-focused nostalgia, but that’s about its only purpose.
tech events.
58
Your FREE guide to
making a smart TV
BUILD A RASPBERRY PI
MEDIA PLAYER
Power up your TV and music system
magpi.cc/mediaplayer
Raspberry Cash
TUTORIAL
Raspberry
Cash
Build a working cash register with a Raspberry Pi
Dr Andrew Lewis
Dr Andrew Lewis is a
specialist fabricator
and maker, and is the
owner of the Andrew
3L^PZ°>VYRZOVW
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
connection can save
hundreds of pounds
CALCULATOR WITH CONTROL ISSUES
T
in cash if you’re at a he world of the future is a largely
trade show where the
organisers charge for
cashless society, but the world Cash register and EPOS system are really just
power connections of today still uses metal tokens catch-all terms for a fancy calculator, and it’s worth
and paper promises to facilitate defining exactly what we’re going to be building
QUICK TIP transactions. In an urban store you’ll here, and why. A typical modern cash register sits
probably find an electronic point of on the counter next to the cashier and it allows
If you want to
sale (EPOS) system that handles the shopping the cashier to calculate the total value of the items
delete the last item
scanned, use the experience, but when you’re on a market stall being purchased. In the old days, this was a purely
BACKSPACE key. If away 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
character typed. If
printer. You’ll get it all running from a Raspberry Pi the cash register and checked against a database
the buffer is empty,
it will delete the and DeWalt battery, and you’ll also have a built- of prices, so that the cashier no longer needed to
last line item added in daily transaction log, and the option to use any enter 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
60
FORGE
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 key on the main keyboard, the
numeric keypad, or an external device. You may need
to adjust the Python 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 YOU’LL NEED
acts like a keyboard. When the user scans a barcode,
Raspberry Pi 3
the code is translated into a string of characters and (or similar – less
‘typed’ into the computer. To avoid the need for a powerful versions
database of scannable items, the barcode is encoded as draw less power)
a simple string with a ‘:’ symbol as the delimiter. The first
part of the string is an item description, and the second 7” HDMI
touchscreen
is the price of the item. So a barcode with the string
or a tablet to view
‘snacks:5.4’ would generate a sale item with the title the till display
‘snacks’ for £5.40 (or whatever currency you’re working
in). The type of barcode isn’t actually very important: as Barcode scanner
long as it can encode the text you want to enter correctly, amazon.co.uk/dp/
B08CHFN3T2
the scanner will read 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 multiple web browsers to the same cash till and (or suitable project
container)
and the shop makes us do all of the work ourselves, use 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. gp/product/
a touchscreen interface, a barcode scanner, a remote You 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 DeWalt battery
you want it. With a little extra work and a third-party of 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 DWBatteryAdapter)
The cash register application is written in Python, on 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
61
Raspberry Cash
TUTORIAL
62
FORGE
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 Edit the autostart file using nano:
ƖƪďŦŝëŝŦȰķŦśĕȰƉļȰȪĈŦŝǙİȰŒLJƖĕƖƖļŦŝȰfÚ'-ɀƉļȰëƪƢŦƖƢëƌƢ
at hsmag.cc/AdafruitReceiptPrinter. Next, you’ll
Add the following lines to the autostart file:
need to install the Flask framework, which you ʭƉLjƢķŦŝȰķŦśĕȰƪƖĕƌȰ'ĕƖŏƢŦƉȰƢļŒŒȰŏĕLjƖȪƉLj
will be using to create a Python-based web server. ʭĈķƌŦśļƪśɀĆƌŦǂƖĕƌɀɀŏļŦƖŏɀɀļŝĈŦİŝļƢŦɀɀďļƖëĆŒĕɀƉļŝĈķɀɀŦǁĕƌƖĈƌŦŒŒɀķļƖƢŦƌLjɀ
Follow the instructions found at hsmag.cc/Flask navigation=0 http://127.0.0.1:5000
to do this. Then, install the cash register files into ʭLJƖĕƢƖŝŦĆŒëŝŏ
a folder called till on the desktop (or in the location @xset s off
@xset -dpms
of 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 need
be drawing power from an 18 V battery, and dropping 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 ʭŒLJƉëŝĕŒɀɀƉƌŦǙŒĕfÚ'-ɀƉļ
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
63
Raspberry Cash
TUTORIAL
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 Raspberry Pi itself (and USB peripherals) will only
ask you to create a relay connected to GPIO 17, and should only trigger be drawing a couple of watts, but if you are using
risk assessment for
your stall, and prove for a few milliseconds at a time, which would a touchscreen display, it can add another 4 or 5
that your equipment is probably prevent the solenoid from damage, but watts to overall consumption depending on how it’s
safe. Exposed wires or
pins (even low voltage that isn’t 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 consider taking along extra batteries just in case you
to an event organiser or
OLHS[OHUKZHML[`VMÄJLY Pi and the thermal printer. It’s not unusual for start running short.
64
FORGE
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
65
3D printing planters
TUTORIAL
3D-printing planters
Make the most of your growing space
D
espite the best efforts of the we can fit a lot of different plants into a small space
gods of rain, the winter is finally and keep each contained in its own pot.
coming to an end. Plants are
sprouting all around – ones we ONWARDS AND UPWARDS
planted and ones we haven’t. A lot of vertical gardening is built around hydroponics,
This author has decided to turn and if that’s a route you want to go down, you’ll find
Ben Everard
his attention to generally making his home a little
Ben enjoys gardening greener and much more flavourful.
because, unlike most of Plants, like all life, are amazing replicators. Inside
his projects, plants will
complete the building
each seed is a tiny spool of cellulose filament and
process themselves (as a solar-powered print head capable of squirting out
long as he remembers this building block into exactly the right shape for
to water them).
that species (OK, we’re computer nerds rather than
biology nerds, and might have got that bit wrong).
This makes us think that they’re perfect partners for
a bit of 3D printing.
Right
You can mix and The two big problems we’ve had with herbs are
match pots of that there are quite a lot of them and they take up a
different styles, sizes,
and colours lot of space (whether you want them to or not). One
little mint plant very quickly becomes a whole carpet
that, while delicious, covers half the garden.
There is a solution to both these problems –
vertical gardening. This is the process of building
your plants upwards rather than outwards. With this,
66
FORGE
plenty of inspiration online. However, we wanted a additional builds, such as this vertical garden. Each
Above
more traditional soil-based approach for now. After tier consists of three 3D-printed plant pots that The PrusaVert
perusing some repositories of 3D-printable models, attach to one of the spool halves. They are designed system uses old
ÄSHTLU[ZWVVSZ
we found a couple to try out. to screw together, but we decided to try a drop of to add strength
to the planter
PrusaVert (hsmag.cc/ glue instead and, so far,
prusavert) incorporates they seem to be holding.
”
Prusament spools Each tier can be joined
(which we just so With this, we can fit a lot of together, but we have
happen to have a left them loose so they
few spares of at the different plants into a small can be rearranged as
moment) to make a space and keep each needed. We think this
”
robust barrel-like vertical will be useful when it
planter suitable for life
contained in its own pot comes to bringing some
outside, while High of them indoors to
Gardens (hsmag.cc/ overwinter.
highgardens) makes it possible to tower-up plant The pots come in two sizes – we went with the
pots on the windowsill. larger 12 cm-high version as these will hold more
Let’s take a closer look at PrusaVert first. water and allow for bigger plants. Our plants seem
Prusament spools are two sides of plastic joined happy and are quickly adapting to their new home.
by cardboard in the middle. You can pull the two
sides apart to remove the middle. You can buy CHOOSE YOUR OWN
replacement filament with just the cardboard, High Gardens is composed of multiple pieces. You
then slot the sides from the previous spools on. start with a base and then add as many pots as you
Alternatively, you can use these as the basis for like (or dare). Each pot slots into the one below it.
67
3D printing planters
TUTORIAL
68
FORGE
69
Pico keyboard and gamepad
TUTORIAL
Pico keyboard
and gamepad Above
The easiest way of building
a controller like this is to
Two ways of using a Raspberry Pi Pico to control a computer solder some buttons onto
protoboard
T
he first thing that you usually learn You can hook up GPIO pins like this on many
when doing electronics with a microcontrollers, but there are a few features that
microcontroller is blink an LED. The make some work better than others. The first is
second is connecting a button. In this internal pull-ups. To read the position of a button, you
article, we’re going to take this second need to connect one part of it to ground, but you also
Ben Everard skill and use it to build a peripheral for a need to add a resistor between the GPIO pin and a
Ben spends more computer. There are surprisingly large stacks of positive voltage. Since this is a very common thing to
time making games software between the switch on a keyboard and the
controllers than he does
playing games. It’s a
program you use it to control. Fortunately, though, we
strange hobby, but he don’t have to concern ourselves with them. We can GETTING TO GP2040-CE
enjoys it. grab some pre-written firmware, adjust a bit of WEBCONFIG
configuration, and then have everything ‘just work’.
Buttons come in many different shapes and sizes, You configure GP2040-CE using the web-based config
but they mostly do the same job – bring two tool. To get there in the first place, you have to hold down
contacts together when you press them. For our button S2 while you plug in your controller. However, if
microcontroller to read the state of the button, you don’t have a button S2, you can flash the force-
webconfig version as we have done. If you want to get
we just have to connect it between a GPIO pin
back to the web config, you can just flash it again.
and ground.
70
FORGE
Left
Once all the
components are in
place, you can solder
wires between them
to connect them
up as needed
71
Pico keyboard and gamepad
TUTORIAL
Left
Regular readers may remember this controller from a previous
HY[PJSL>L^LYLHISL[V\ZL[OLUL^ÄYT^HYL^P[OV\[HU`
OHYK^HYLTVKPÄJH[PVUZ
JOYSTICK
Joysticks come in two forms: analogue and digital.
You can get either type in modules that are easy to
wire up to a microcontroller. Analogue joysticks are
basically two potentiometers, set up so each one
reads a separate axis: one for X and one for Y. Each
potentiometer has three connections: one for 3.3 V,
one for ground, and one output. You can wire them
up to an ADC input on Pico and read them using the
GP2040-CE firmware.
On this website, you can go to the ‘Pin Mappings’ Digital joysticks are basically a stick with four buttons,
section and select which GPIO pins you want to be with a different button being pressed depending on how
responsible for what actions. Once you’ve entered you move the stick – it’s basically a D-pad arrangement
rotated in on itself with a stick to do the pressing. In
everything and clicked Save, you can reboot your
these joysticks, there is usually a single common ground
Pico as a gamepad. It’s a regular USB gamepad, so connection, and then a separate GPIO connection for
you can use it for your favourite games in just the each button. You can wire them and connect them to
same way you’d use any other gamepad. Want more either gamepad or keyboard firmware.
features? No problem, you can add them. As well as
adding buttons, you can add analogue inputs such as
joysticks and feedback from LEDs and buzzers.
The code for our keyboard is:
TINY KEYBOARD
GP2040-CE is great for making games controllers, import board
but what if you want to control a game that takes from kmk.kmk_keyboard import KMKKeyboard
input from regular old keyboard presses? We can from kmk.scanners.keypad import KeysScanner
do that too using the exact same circuit as with our from kmk.keys import KC
gamepad. There’s a sizeable community of DIY
keyboard makers who have created some
excellent and hackable keyboard firmware. The one # GPIO to key mapping - each line is a new row.
that we’ll be using is called KMK, and it is _KEY_CFG = [
based on CircuitPython. board.GP2, board.GP3, board.GP4, board.GP5,
To use it, you first need to install CircuitPython board.GP9, board.GP13, board.GP17, board.GP21
on your Pico. To do this, head to circuitpython.org ]
and download the latest version for Raspberry Pi
Pico, then flash it to your device. You should find keyboard.keymap = [
that when you plug in your Pico now, a USB drive [
called ‘CircuitPython’ appears. KC.UP, KC.DOWN, KC.RIGHT, KC.LEFT,
Now, you’ll need the KMK firmware from KC.A, KC.B, KC.C, KC.D,
hsmag.cc/getkmk. Unzip the file and copy both
the kmk directory and the boot.py file to the ],
CircuitPython drive. To turn this into a working ]
keyboard, we need to add a code.py file that
describes the particular keyboard. # Keyboard implementation class
72
FORGE
Right
Thanks to the number of ground connections on Pico, we can
solder on all the buttons without complicated wiring
Below
The joystick is really just four buttons that get triggered when
the stick is moved
OTHER FIRMWARE
We’ve used KMK because it’s based on CircuitPython,
which we’re familiar with, but there are other options.
QMK is probably the most famous of the keyboard
class MyKeyboard(KMKKeyboard): firmware, and there are a lot of things built on top
def __init__(self): of it, including complex and powerful systems to
allow multiple key presses to be interpreted in
# create and register the scanner
different ways.
self.matrix = KeysScanner( ZMK is another option that’s built specifically for
# require argument: wireless keyboards, but unlike KMK and QMK, we’ve
pins=_KEY_CFG, not tested it out fully.
# optional arguments with defaults:
value_when_pressed=False,
pull=True,
interval=0.02, # Debounce time in The main part here is the two lists: _KEY_CFG and
ǚŦëƢļŝİƉŦļŝƢƖĕĈŦŝďƖ keyboard.keymap. These two match up to link a GPIO pin
max_events=64 with a key press. You might have to adjust the GPIO
) pins depending on where your buttons are attached.
Save that code.py file to the CircuitPython drive and
keyboard = MyKeyboard() you should be able to start using your Pico as a very
minimal keyboard.
You can use this controller as is, or expand it to have
as many buttons as you can cram on. It can be as
if __name__ == '__main__': simple or complex as you like, but the important point
keyboard.go() is that it can be customised to exactly the way you
want to control your computer. Happy gaming!
73
Get a ROS-powered robot moving
TUTORIAL
Get a ROS-powered
robot moving Above
The motion sensor clips
underneath the robot and is
Create a drive system for a ROS robot with motor control and connected via a Raspberry
Pi Pico
I
n the last article, we discovered how
ROS 2 applications are structured and
how components can communicate using
publish and subscribe. In this article, we
are going to build on this to make the robot
move, and then we are going to discover how
Rob Miles
we can add a sensor to determine the distance and
Rob has been playing direction of movement.
with hardware and
software since almost
before there was
ROBOT CONTROL
hardware and software. The robot kit is from Hiwonder (hiwonder.com).
@V\JHUÄUKV\[TVYL It uses a HAT which fits on the Raspberry Pi driving
about his so-called life at
robmiles.com. the robot. The HAT drives the motors and servos and
is controlled by Python code supplied by Hiwonder.
It works well, but the author was keen to use
ROS 2 with the robot, so the first step was to
convert the motor driving code into a ROS 2 node
with the original name of motors.
74
FORGE
QUICK TIP
The motors node will subscribe to a topic which
FLEXIBLE WORKING If you have a robot
will be used by any process wanting to tell the robot
to move. However, before we can create the motors of your own that
The robot we are using is controlled by a Raspberry
you want to control
node, we must look at how the motors are presently Pi 4 with 4GB of memory. This is because the robot
with ROS, you can
controlled by the Hiwonder code. has a vision system which needs a powerful machine.
replace the setMotor
However, you can run ROS on very small platforms
function with one
(including Raspberry Pi Zero). You can also run a ROS
CONTROL POWER WITH PYTHON that controls your
application over multiple connected devices. A node
Each of the wheels on the robot is turned by a DC robot hardware and
running on one device can subscribe to messages
motor connected to the controller HAT. The controller everything else in
published by a node running on another. As an
HAT creates pulse-width modulation (PWM) signals this article will work.
example, you could have a simple rover controlled
to control the power going into the motor. PWM by a Raspberry Pi Zero which is connected over
works by rapidly turning the driving voltage on and Wi-Fi to a vision system running on a Raspberry Pi 5.
ROS gives you great flexibility when deploying your Figure 1
off to vary the amount of power being delivered. If you’ve ever wondered
solution, and you don’t have to decide where the what ‘professional’
You can get the effect of a dimmed light at home
nodes run at the start. code looks like, this is a
by rapidly turning a light switch on and off (although good example
this wouldn’t make you very popular with the house
owner). PWM works in a similar way, except that the
on and off times are much smaller, and the switching
is performed by a MOSFET. The HAT contains
circuitry that generates PWM signals for four motors.
All we need to do is call the Python setMotor function
to tell this hardware to set the speed of a particular
motor. The function accepts two parameters: the
number of the motor to be controlled and a power
level in the range of -100 (full-power reverse) to 100
(full-power forwards).
setMotor(1,50)
75
Get a ROS-powered robot moving
TUTORIAL
NICE PLACE TO WORK humans call this ‘walking round a corner’. Whether
or not a robot can move in a requested direction
ROS comes with graphical tools that you can use to build and simulate your robot depends on the drive configuration. A car-like robot
application. Below, you can see the author’s first attempt at designing a robot using the with steering wheels at the front will have difficulty
Unified Robotic Description Format (URDF). He used the RViz2 graphical tool and the joint rotating on the spot (i.e. it could not implement a
state publisher to validate his robot description (which, in this case, needed some work). Twist request with an angular component but no
These tools require quite a powerful machine. The author used a Raspberry Pi 5 with a
linear component). One of the great things about the
solid-state drive (SSD) for this part of the project. He then placed the code in a GitHub
(github.com) repository and the smaller Raspberry Pi in the robot and loaded it from there.
mecanum wheel drive system is that it is possible for
a robot to move in any direction and turn at the same
time. We can use a bit of trigonometry to convert
a Twist move request into the speeds each wheel
should move:
def calculate_motor_speeds(twist):
# Robot dimensions in meters
L = 0.059 # Half the distance between front
and back wheels
W = 0.067 # Half the distance between left
and right wheels
76
FORGE
TAKING CONTROL
The aim is to make a robot which will decide for DOCKER IS WONDERFUL
itself which way it wants to move. But for testing,
it is very useful to be able to control the robot Docker (docker.com) is not a robotics tool. Docker is used to deploy large and
complex applications. You create a ‘Docker image’ file which contains all the
directly from the keyboard. We can make a simple
components you need for an application, and this image runs on your machine inside
node which checks for key presses and publishes to a software object called a ‘Docker container’. The container sits on top of a layer
a topic when it sees them. The code below creates which hides details of the underlying system. This makes it possible to deploy a ROS
a class called KeyboardTeleop which publishes solution (which would otherwise need a particular version of Linux) on a standard
movement instructions to the cmd_vel topic. Raspberry Pi. Learning a bit about Docker is a great idea; you can use it to deploy
and manage all kinds of software.
The author has created a Docker image which contains ROS and a selection of
class KeyboardTeleop(Node):
useful tools that you can use with the examples in these articles. He has written a
guide to setting up a Raspberry Pi, installing Docker, building a Docker image and
def __init__(self): running it, along with instructions for the exercises in this article. You can find it all
super().__init__('keyboard_teleop') here: hsmag.cc/RosIntro.
self.publisher_ = self.create_
77
Get a ROS-powered robot moving
TUTORIAL
The function uses a method called get_key to get the would not work well in practice because the motor
currently pressed key. It then selects a movement slows down when it is under load.
option and calls a function called publish_twist for Figure 3 shows a motor which has a shaft
each movement. encoder. The encoder sends pulses when it detects
motor movement. We could use this signal to
def publish_twist(self, linear, angular): determine exactly how much a motor is turning
msg = Twist() and work out how far a wheel is moving the robot.
msg.linear.x = linear Unfortunately, the motors in the Hiwonder robot
msg.angular.z = angular don’t have shaft encoders, so there is no way that
self.publisher_.publish(msg) the robot control software can know how far the
motors have turned. The author decided to add a
The publish_twist method takes the linear and sensor to the robot to detect movement. This will
angular values and uses them to construct a Twist provide feedback to a ROS application which can
value (called msg) which is then published. This node then adjust the movement commands. The sensor
can be used to drive the robot from the keyboard. If he has chosen is called an ‘optical flow sensor’.
we start these two nodes running, we can use the It works in the same way as an optical computer
keyboard to steer the robot around. mouse. The camera on the sensor detects changes
in position of the surface beneath the robot and
transmits X and Y values to a connected computer.
Figure 3
The black disc on
the left of the motor GETTING INTO THE FLOW
contains a magnet
which moves past the Figure 4 shows the selected sensor. The sensor has
two sensors when been mounted on a bracket which will be clipped
the motor turns
underneath the robot. When the robot moves, the
Figure 4
The sensor is
sensor will send movement information, giving
Ä[[LK^P[O[^V3,+Z the direction and speed of the movement it has
to illuminate the
scene viewed by detected. This information will be broadcast so that
the camera control software can monitor the robot’s position.
78
FORGE
import time
POWER FOR TESTING
import json
from machine import Pin The robot is battery-powered and runs for around half an hour on the enclosed
from breakout_paa5100 import BreakoutPAA5100 as batteries. The author added a speed limiter to the setMotor function so that he could
FlowSensor restrict the motor power and allow the robot to run on a mains adapter with less power
capacity than the batteries. This proved very useful when developing the code.
ǚŦɲEŒŦǂ©ĕŝƖŦƌȺȻ
ǚŦȪƖĕƢȱƌŦƢëƢļŦŝȺEŒŦǂ©ĕŝƖŦƌȪ'-F¡--©ȱǟȻ
led = Pin(25,Pin.OUT)
while True:
ďĕŒƢëɲǚŦȪİĕƢȱśŦƢļŦŝȺƢļśĕŦƪƢɲǟȪǠȻ
if delta is not None:
x = delta[0]
y = delta[1]
result = { "x":x, "y":y }
led.value(1)
print(json.dumps(result))
time.sleep(0.1)
led.value(0)
79
This stunning 224-page hardback book not only tells
the stories of some of the seminal video games of
the 1970s and 1980s, but shows you how to create
your own games inspired by them using Python and
Pygame Zero, following examples programmed
by Raspberry Pi founder Eben Upton.
Xå±ŹĻƐĚŇƾƐƒŇƐÏŇÚåƐDžŇƣŹƐŇƾĻƐ
ď±ķåžƐƾЃĚƐ{Džď±ķåƐ¬åŹŇ
TUTORIAL
W
e saw an excellent tutorial ourselves the challenge of building this without
from Adafruit on making buying anything new. Obviously, you won’t have the
some animatronic wings: same bits and pieces lying around, but we’d
hsmag.cc/AdafruitWings. encourage you to use what you have and improvise
They looked awesome! The where necessary.
only problem was, we didn’t
Ben Everard
have the parts needed to make them. Obviously, we A SOLID BASE
Ben spends more could have ordered all the parts we needed from We won’t go through the whole build as the base is
time making games those good folks in New York, but we did have a lot documented well on the Adafruit website. We’ll focus
controllers than he does
playing games. It’s a
of similar parts. We wanted to know, could we on the parts where we’ve differed from Adafruit.
strange hobby, but he reproduce the wings using just what we had At the core of the project is a pair of servos, and
enjoys it. hanging around the workshop left over from we had some the exact same size, so we were off to
previous projects? a good start. The other parts we had that matched
Re-using stuff you have is a great practice to get exactly what was used are a pair of 608-ZZ bearings
into. It’s cheaper, better for the environment, and (we used them to make a filament spool holder and
means you can make stuff now rather than waiting had a few left over) and a lithium battery (that has
for a delivery (and this can be key to finishing a been through a few projects already, and regular
project rather than ending up with a pile of half- readers will recognise from an extremely janky pair of
finished projects). headphones).
It does sometimes mean suboptimal results That’s not a bad start. However, we didn’t have a
Above
Swap out the wings, – we’ll look at some of the areas where our wings Feather M4 Express, a Servo FeatherWing, a
and this is a prop that
can be recycled for
aren’t as good as the originals. However, as the FeatherWing Doubler, a PowerBoost Charger, or any
many costumes saying goes, done is better than perfect. We set of the nuts and bolts used.
82
FORGE
The first thing we had to work out was if we could they’re built on different Arm cores with completely
Above
mount the servos, as the servo arms designed by different things around these Arm cores. The fact We’re not completely
the Adafruit team screwed into the bearings. After a that it works so easily on different microcontrollers is sure if this Raspberry Pi
Pico will come off the
bit of fiddling, we worked out that rather than attach thanks to the work of the CircuitPython developers. glue without breaking,
but given that, at £4, it’s
these arms to the bearings with a machine screw, We swapped the PowerBoost board for a about the same price
we could simply add a protrusion to the arm. This Pimoroni LiPo Amigo board. This was swapping a as a delivery of bolts
to screw it on, we’re
had the downside of forcing us to print the arm in a similar component for a similar component. The willing to take the risk
less favourable orientation, which both meant biggest impact of the microcontroller and power
additional support material and layer lines in a board swap is that they no longer fitted on the Below Left
weaker position. However, in practice, they printed mounting plate. At this point, we had two options: We were late arrivals to
the world of cable ties,
OK and seemed strong enough. design a new mounting place, or hack it together. but now keep some
in different sizes on
We opted for the latter of these two options. Our hand because they’re
workshop is currently devoid of any machine screws incredibly useful
below M4, so we couldn’t have built it without
ordering more hardware anyway, and that’s against
our self-imposed rules.
We now have a bunch of parts and no nuts and
bolts to join them. We do, however, have a tube
of superglue (also known as Krazy Glue or
cyanoacrylate). Sometimes the easiest solution is
perfectly acceptable. Yes, superglue probably isn’t as
secure as bolting everything together, but then the
wings are by far the weakest part, so it’s really not
the end of the world if the base is slightly weaker
than it could be. Gluing them on does mean that the
cables are a bit more exposed than they could be, so
we used plenty of cable ties to tie the cables down
and keep things as tidy as possible.
That’s just about all there is to it. We didn’t add
the potentiometer, because we didn’t really need the
features it offered.
It would have been slightly stronger and noticeably
more tidy if we had built it as it was designed, but
With the servos in place and working, it was time then it’s strong enough and tidy enough as it is, and
for our next hardware flip – changing the Feather M4 with many builds, speed is of the essence. The
for a Raspberry Pi Pico. The short version of this quicker you can complete something, the more likely
story is that it just worked. The longer version is that you are to see it through to completion.
it’s actually really impressive that you can switch Waiting for parts to arrive is a recipe for
controllers like this. While both the Feather M4 and distraction and waning enthusiasm. At least, that’s
the Raspberry Pi Pico are built on Arm CPU cores, our experience (and our excuse).
83
DON’T MISS THE BRAND NEW ISSUE!
SUBSCRIBE
FOR JUST
NEW
+ FREE
MO DEL!
RASPBERRY PI
*W
PICO W*
hil
e
sto
ck
sl
as
t
Three issues and free Pico W for £10 is a UK-only offer. Free Pico W is included with a
12-month subscription in USA, Europe and Rest of World. Not included with renewals.
Offer subject to change or withdrawal at any time.
magpi.cc/subscribe
FIELD TEST
HACK MAKE BUILD CREATE
Hacker gear poked, prodded, taken apart, and investigated
PG
92
CARDPUTER PG
The teeniest of tiny computers 86
PG BEST OF
BREED
94
BANGLE.JS 2
A smartwatch that you can control
Kits, kits, and more kits
PG
96
CROWDFUNDING
Power for your outdoors projects
DIY kits
BEST OF BREED
ONLYTHE
BEST
DIY kits
A collection of fun kits to build
By Marc de Vinck
K
its! Anyone who knows me, knows that are not only fun, but useful too. That second
I love kits. It’s how almost everyone part, usefulness, is often overlooked. I really enjoy
gets into soldering and electronics. I building something and then being able to use it for
manufactured electronic kits for many a long period of time afterwards. Not just blinky little
years and, at times, I really miss it. I LED things, although those are fun too! But I’m far
loved the process of prototyping and more inclined to pick up a kit that, after I’ve enjoyed
figuring out what people would like to build. And building it, I can plug it in, turn it on, and get some
even though I don’t create and sell kits any more, I longevity out of the labour of love.
do still love to pick some up and spend So, let’s jump right in and take a look at a few kits
some time building other people’s creations. In that I’ve built before, and a few kits that I have on my
this Best of Breed, I will be looking at some kits list to build in the future.
86
FIELD TEST
T
he Freaq FM is a desktop 8-bit
digital synthesizer designed by
Wirehead Instruments in Australia.
It features dual two-op FM voice
architecture and multiple waveforms,
and an LFO and modulation envelope.
So, what does that mean? It means that you can
make some really cool-sounding distortions and
electronic music. And you can even sync it with
external instruments.
You can buy this as an assembled synthesizer or
do what I would do, which is buy the kit. Building
a synth is a very popular DIY project, and one that
I highly recommend everyone do. Be sure to head
over to the product page, which includes more
information and a great demo of what this unit can
do. After watching the video and listening to the
sounds, I’m sold! It’s awesome!
T
he PDP-11 replica kit from The original PDP-11 computers were sold by
Obsolescence Guaranteed, located Digital Equipment Corporation from the start of the
in Switzerland, is an amazing piece 1970s all the way through to the late 1990s. Yes, VERDICT
of hardware history that would be the 1990s! Freaq FM Digital
incredibly fun to solder together. In fact, from my limited research, it seems like Synthesizer
some of these are still in use, which is kind of Ideal for
amazing considering how powerful a Raspberry Pi makers who
is, never mind how inexpensive. make music!
Behind the scenes of this replica version is
a Raspberry Pi that runs the system, but you
wouldn’t know, considering all the amazing retro-
looking controls in the front.
10 / 10
The PiDP-11 runs all the original operating VERDICT
systems, including UNIX systems 5/6/7, 2.11BSD, PDP-11 Replica
RSX-11, RSTS-E, and RT-11. And it can simulate kit: the PiDP-11
many different types of peripherals. A truly unique kit.
If you like retro computing, go ahead and check
out this kit!
9 / 10
87
DIY kits
BEST OF BREED
N
ow this is a strange kit! Certainly
not for the faint of heart. Unlike
most kits that I love, the Cordwood
Puzzle Too by Boldport doesn’t
include any instructions. That’s
part of the fun, or frustrating part,
depending on your viewpoint.
In the 1950s and 1960s, engineers saved space
by using what is called the Cordwood assembly
method. Components were sandwiched, quite often
vertically, between two circuit boards. As surface-
mount technology advanced, and components got
smaller, this type of circuitry faded away. Boldport
created an inexpensive and fun little demonstration
of this period technique. If you’re up for a challenge,
this might be a good kit for you. But if you’re new to
soldering, I’d hold off on picking this one up until you
learn the basics. Head over to the website to learn
more about this unique puzzle kit, and some hints on
how to assemble it.
T
he MintyBoost from Adafruit is a
must-have kit for anyone getting
started with soldering. I have
bought over 100 of these kits to teach
soldering over the years. People are
9 / 10
so amazed at how easy it is to build, VERDICT
and how interesting the electronics are that make it MintyBoost Kit
work. Yes, you can charge your phone from two AA - v3.0
batteries! The latest version of the kit provides Why buy
500 mA at 5 V. It works with almost anything that when you can
requires 5 V power. It’s a perfect example of kits that make it?
are fun to build, and have longevity. Head over to
Adafruit to learn more about this fun little kit.
10 / 10
88
FIELD TEST
VERDICT
B
uild your own phone? Sort of! It’s basically an all-in-one radio unit that features
The unPhone is an IoT development LoRa, Wi-Fi, and Bluetooth technologies coupled with unPhone –
platform that is based on the very a LiPo battery and LCD touchscreen. all-in-one
popular ESP32-S3 microcontroller. It also includes an SD card reader, accelerometer, Powerful and
It’s an open-source project developed compass, and vibration motor for haptic feedback. It versatile.
by the University of Sheffield, in won’t exactly replace your phone, but you can send
partnership with Pimoroni and Gareth Coleman. So,
what does it do exactly?
messages over long distances, or create a wireless
IoT device. 9 / 10
89
DIY kits
BEST OF BREED
Noisette Optical
Theremin kit
TINDIE $44 tindie.com
I
love theremins! I have built several over
the years. The Noisette by Zeppelin Design
Labs is an optical theremin, my favourite
type, that looks to be very easy to assemble
and fun to use. If you’ve never heard of the
theremin before, just imagine those old
black-and-white horror movies with their creepy and
spacey soundtracks. VERDICT
The Noisette features two optical sensors, allowing Noisette Optical
you to control pitch and volume. There is also a Theremin kit
master volume knob and a wave shape selector. You Fun to build and
can create square waves, sine waves, or a mix of play.
either. It also features an on-board speaker for ease
of use. This looks like a great kit for teaching anyone
basic electronics and learning how to solder. 10 / 10
SPOOLT
PIMORONI $8.32 pimoroni.com
Who says you can’t solder together some tools too?
Typically, you solder electrical components, but in
this kit from Boldport, you solder together a solder
spool holder. It’s a clever use of PCBs. It’s also
something everyone needs! Pick one up and get
ready to build a fun little conversation piece for your
electronics workbench.
90
Learn coding
Discover how computers work
Build amazing things!
magpi.cc/beginnersguide
M5Stack Card Computer
REVIEW
M5Stack
Card Computer
Bridging the line between microcontroller and computer
By Ben Everard
T
he Card Computer, also known as each piece is very basic. The advantage comes, not
the Cardputer, is an expansion of in any one piece of it, but in having it all together in a
the M5StampS3. This base board has single, affordable device.
an ESP32-S3, which has a dual-core The ESP32 packs a big processing punch – it’s
Tensilica processor running at up to the most powerful of the common microcontrollers.
240MHz with 512kB of RAM, 8MB of It can, for example, emulate a Game Boy (Espeon:
flash, and Wi-Fi and Bluetooth connectivity. hsmag.cc/cardputergb). Given the processing
Onto this removable board is a 56-key keyboard, power of this board, and the fairly minimal
1 W I2S amp with speaker, 1.14 inch IPS screen, interfacing options (just two GPIO pins on the Grove
microphone, and 1400 mAh battery. You can also add connector), it really feels more like a computer than
more hardware via a Grove connector. a microprocessor board.
All of this comes in a sturdy plastic case which While it doesn’t have an operating system in
features Lego-compatible mounts and magnets for the conventional sense, some of the firmware
attaching to, well, anything ferrous. This is a huge can launch different apps, and fulfil the role of
amount of hardware for the price, so it should come a rudimentary OS. One slight note of caution to
as no surprise that it does have limitations: the consider here: while 512kB of RAM is a huge
240 × 135 pixel screen is pretty small for most amount by most microcontroller standards, many
purposes; the buttons are hard to press, and the other ESP32 boards have additional PSRAM, which
speaker is quite tinny. The hardware isn’t bad, but the Cardputer does not. In some memory-hungry
Right
Any spare space is
ÄSSLK\W^P[OKL[HPSZ
VMOV^[OLOHYK^HYL
is connected up
92
FIELD TEST
Left
56 buttons is a
O\NLU\TILYMVYH
JVTW\[LY[OPZZPaL
applications, you might find it more limited than Army knife for data collecting. It could also be useful
other options. for running Python scripts on the go if you need to
You can program the Cardputer via the ESP-IDF, or interact with some networked hardware. Given its
Arduino. The example code is a bit lacking, and slightly cyberpunk look, we could definitely see it
it’s not the easiest microcontroller to get started fitting into some cosplay outfit or prop, but the lack
with – so we wouldn’t recommend this for of a secure mounting option makes that a bit more
beginners – but if you’ve got a bit of experience with tricky than it needs to be.
embedded programming, it should not present too It could certainly be a fun project for becoming
many problems. more familiar with the ESP32 microcontroller in
Fortunately, though, if you set out programming general, or the M5Stack specifically. The board at
the Cardputer, you’re not on your own. There is the heart of the Cardputer is removable, so if you
an emerging community around this device that is prototype something that needs only a portion of the
based around a subreddit (hsmag.cc/cardsr), and hardware, you could pop it out and just connect up
a Discord server (hsmag.cc/carddisc). They’ve what is required.
created a few useful additions to the official In all these cases, it feels a bit like we’re making
firmware, including a MicroPython build (and app up a potential project because, in truth, we like the
launcher called MicroHydra (hsmag.cc/cardhydra), Cardputer. What it lacks in utility, it makes up for in
a binary app launcher (hsmag.cc/cardlauncher), fun. Perhaps this is simply because this reviewer
and some modifications to the official firmware has done too many orbits around the sun, but the
(hsmag.cc/cardextended). Cardputer seems like exactly what he thought the
future would be like when he was younger.
FORM OR FUNCTION? In many ways, it’s like a 1980s home computer
The big question, in our mind at least, is what is the but shrunk down to miniature size, and that was
Cardputer for? what we thought technological progress would be
We’re a bit perplexed that the makers added like. Yes, almost all the examples we’ve seen could
Lego-compatible mounts and magnets, but not be done better by a phone app, but somehow, that VERDICT
mounting holes. This means there’s no way of just wouldn’t be the same. It’s a fun
bolting it down to anything. The 56-key keyboard We don’t want to second-guess your projects, gadget,
obviously gives you a lot of buttons to press, but so you’ll have to work out for yourself if it can be but we’re not
sure what to
they’re not particularly nice buttons and, with such a useful to you. Some products, though, are worth it
use it for.
small screen, it’s hard to do much useful text entry. simply because they make you smile, and for us, the
There are a few niches that this could fit into well. Cardputer is one of these. It might not be the most
The Grove-compatible connector means that you can
plug in some sensors and it could be a bit of a Swiss
practical microcontroller development board around,
but we love it anyway. 9 / 10
93
Bangle.js 2
REVIEW
Bangle.js 2
ESPRUINO £76.80 shop.espruino.com
By Ben Everard
T
here are two sides to any bit of up with most of your needs. There’s a bit of a delay
electronics: the hardware and the in starting apps, but not enough to annoy us.
software. On the Bangle.js 2, both are This reviewer is really impressed by the hardware,
worth a close look. There is no such mainly because of how much software it keeps
thing as perfect hardware – especially running and how little battery power it uses.
on a device as constrained as a However, there is another take – the screen isn’t
smartwatch. There is simply hardware that makes as bright and crisp as some others. The heart-rate
trade-offs – for some users, those trade-offs will be monitor is a little finicky, and the GPS can be slow.
good, and for others, they won’t. For us, the trade-off of having good battery life is
Any smartwatch has to find the right balance well worth these aspects, but others may prefer a
between features and power consumption. By far different trade-off.
the hungriest bit of kit on a smartwatch is the screen.
Producing light takes power. A 60 mA backlight A SOFTER SIDE
might be insignificant to a mains-powered device, While the hardware is a good proposition, it’s the
but it’ll kill a watch in just a few hours. However, software that brings this watch to the attention
a bright, crisp display needs these photons. The of this magazine. The entire software stack is
Bangle.js 2 keeps this part of the power budget designed to be programmable and is based on
low by using a 176 × 176 3-bit colour transflective the open-source Espruino framework. This means
display. Transflective means that it’s lit by reflected that everything is written in JavaScript – a language
light rather than a backlight, and, in normal light that seems to delight as many people as it horrifies.
conditions, you can read it without the backlight JavaScript was originally a language used to add
enabled. Having this display means that the battery features to web pages, where it sat between two
life is measured in weeks rather than days. Exactly asynchronous and unpredictable things: people and
how many weeks depends on what you’re doing web servers. The way it developed here – with a
with it, but it’s likely to be in the range of one to four. strong emphasis on event-based programming –
Strapped onto this screen is an impressive range means it’s a good fit for some other cases,
of sensors, including GPS, heart rate, and barometric including where low power use is essential. It can
pressure. A 64MHz Nordic microcontroller with take a bit of time to get your head around event-
an Arm Cortex-M4 core pulls all the data together based programming if you’re used to a more
and keeps the screen ticking. This is a reasonably traditional paradigm, but it’s a good fit for watches
powerful microcontroller that should be able to keep (and web pages).
94
FIELD TEST
Left
Less excessively
1990s clock faces are
available for people
whose tastes have
progressed since
Saved by the Bell
Far Left
Apps are delivered to
the Bangle directly
from a Web Bluetooth-
capable browser
REGULAR
CROWDFUNDING
NOW
The Power Mole
Fire electrons through your windows
O
utdoors projects are great fun, Mole on the inside, and plug it into a normal power
especially once the skies darken in outlet. Then you fix the other part to the outside of
autumn and LEDs shine. Whether the window. There’s a USB socket that you can plug
it’s Halloween props scaring passers- anything you like into. It provides up to 10 watts at
by, winter solstice lights shining, or 5 V. This solves a very real problem that we have,
Christmas decorations dazzling, there’s a great run and we suspect a lot of other makers do as well.
of outside fun over the darker months. However, However, we won’t be able to try this out as it only
what’s not fun are draughts caused by cables ships to the USA. Our readers across the pond can
running through open windows. test this out, but we’ll have to wait until they open
The Power Mole solves this by letting you transmit up international shipping.
electricity directly through glass up to 30 mm thick.
This might sound like witchcraft, but it’s exactly the
Left
same sort of witchcraft that lets you charge your This is chunky and
not particularly
phone without wires. You pop one side of The Power aesthetic, but it does
solve a very real
problem that we face
96
BUYER
BEWARE
!
When backing a crowdfunding
campaign, you are not purchasing
a finished product, but supporting
a project working on something
new. There is a very real chance
that the product will never ship
and you’ll lose your money. It’s
a great way to support projects
you like and get some cheap
hardware in the process, but if
you use it purely as a chance to
snag cheap stuff, you may find
that you get burned.
Invisibility shield
Hide from your enemies
I
nvisibility shields, cloaks, and vehicles photos all have bold horizontal stripes in
have been staples of science fiction for the background.
almost as long as there has been science There is obviously the concern about nefarious
fiction, and now, thanks to the Invisibility uses of such a device, but fortunately, it’s a bit too
Shield Company, you can buy one. obvious that something is there for this to be a real
This invisibility shield works with some clever concern. This risk is further reduced because it’s not
optics we don’t really understand, but we think it see-through in the other direction. In other words,
basically comes down to blurring things that are close if you can’t see the person hiding behind the shield,
behind the shield while less blurring things further they can’t see you.
away. While we haven’t tried one out, it’s probably Basically, we have no idea what this is for, but also,
no coincidence that the most impressive example we want one.
(Far) Left
If you have any idea
what you could
actually use this
for, get in touch
– hackspace@
raspberrypi.com
Left
The invisibility shield
is really impressive in
the video. Take a look
at the link above to
watch it
97
#79 ON SALE
30 MAY
The best
3D printers
ALSO
CIRCUITPYTHON
RASPBERRY PI
TINY COMPUTERS
LASER CUTTING
AND MUCH MORE
hsmag.cc/subscribe
RFID treasure hunter
Some time ago, Robert MacLaren had an idea to create a treasure hunt using
5),' UDGLRIUHTXHQF\ LGHQWLÀFDWLRQ FDUGV DQG DQ 03 SOD\HU PRGXOH 1RZ
WKDQNVWRDQ$UGXLQR1DQRD')5RERWVSHHFKV\QWKHVLVPRGXOHDQGDORYHO\
FXVWRPFDVHIHDWXULQJWKUHDGHGLQVHUWVPHOWHGLQWR'SULQWHGSODVWLFLW·VKHUH
8VLQJWHFKWRXSGDWHROGJDPHVLVDJUHDWZD\WRJHWNLGVDFFXVWRPHGWRWKLQJV
WKDWJREHHSDQGEOHHS8VLQJ\RXURZQWHFKWKDW\RX·YHPDGH\RXUVHOILVHYHQ
EHWWHU ² LW H[SRVHV \RXQJ PLQGV WR WKH SRVVLELOLWLHV WKDW D VROGHULQJ LURQ FDQ
XQORFNDQGPRVWLPSRUWDQWO\RIDOOLWHDUQV\RXVHULRXV%URZQLHSRLQWV
Manage your
servers or PCs
remotely!
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