Normal view

There are new articles available, click to refresh the page.
Before yesterdayMain stream

Cardiography signal measuring device built on Raspberry Pi Pico W

5 February 2025 at 22:36

Having looked to see how blood pressure monitors operate, Miloš Rašić has been hard at work trying to improve their accuracy. David Crookes conducted this interview for the special 150th anniversary issue of our official magazine.

Keeping track of blood pressure is crucial for maintaining good health, especially when managing heart-related conditions. Electrical engineer Miloš Rašić knows this only too well. “Like most older people, my grandma suffers from elevated blood pressure, so a digital pressure monitor is something that is being used daily in the household,” he says. But he also noticed the machines can be flawed.

Besides the main PCB, which is based around a Raspberry Pi Pico W, there is an air pump and valve, GX12 connectors, buttons, an 18650 battery, NeoPixel LEDs, an OLED display, and some other smaller parts

“Different monitors have provided widely different measurements and their performance was highly dependent on their battery level, which is not a good thing,” he explains. “So for my master’s thesis project, I wanted to explore digital blood pressure monitors and discover how they work.” This led him to develop a cardiography signal measuring device based around a Raspberry Pi Pico W.

Conducting experiments

When Miloš approached his project, he had a list of requirements in mind, chief among them being safety. “The device had to have optical isolation when connected to a PC and be battery-powered or have an isolated power supply,” he says. 

As a priority, it needed to measure blood pressure. “This included measuring the air pressure inside an arm cuff, controlling a small air pump, and controlling an electromagnetic valve,” he adds. Miloš also wanted the device to use a well-supported microcontroller unit with wireless capabilities, hence the use of a Raspberry Pi Pico W. “It provided everything I needed in a small package and was supported by a large community, which meant everything would be easy to troubleshoot,” he says.

The main device casing as well as the PPG clamp have been 3D printed using a Creality K1C. The models can be downloaded from Printables

Along the way, Miloš began to add more features, including a stethoscope and the ability to take an ECG measurement. By using a photoplethysmography (PPG) clamp, he also figured the device could detect blood volume changes in the microvascular bed of tissue and that, combined, these sensors would be able to give a better insight into a person’s heart health.

And yet he was clear from the start that he wasn’t going to create a medical device. Instead, the ultimate aim was to take readings and conduct experiments to discover an optimal algorithm for measuring blood pressure. “The whole area of blood pressure monitors was a curiosity for me and I wanted to demystify it a bit and generally have a platform which other people can experiment with,” he explains. “So I created a setup that can be used for experimenting with new methods of analysing cardiography signals.”

To connect the stethoscope to the system, the earphones were removed and a small piezo microphone was then connected to an amplifier circuit

Heart of the build

To fulfil his ambition, he got to work designing the PCB before looking at the other necessary components, such as the pump, valve, battery, and connectors. Some parts were simple enough — for example, the air pressure cuff, which you’ve likely seen on a visit to a GP or hospital. “This is the only sensor most commercial devices use, and the estimations using it are good enough for most cases,” Miloš says. But others required more work.

The ECG sensor to record heart activity was an important part of the build. “I wanted to extract the pulses from the air pressure signal and for the ECG to be my reference measurement so that I knew the algorithm was working properly,” he says. For this, Miloš included a custom layout of the AD8232 IC on the PCB (AD8232 is an integrated signal conditioning block for ECG measurement applications), allowing measurements to be taken.

The pressure sensor calibration apparatus was created so that constant pressure can be maintained in the system

Miloš also made a PPG clamp using a MikroE Oxi5 Click board that communicated with the rest of the system over I2C. “The PPG clamp is often used to measure blood oxygen saturation, but since it works by detecting the changes in blood flow in the finger, it’s a very useful sensor when it’s used in combination with the arm cuff,” Miloš says. “Since the arm cuff cuts off circulation in the arm, and then slowly lowers the air pressure inside until the circulation is established again, by using the PPG we can have a precise detection of when the laminar flow has been established again, which is the moment that the air pressure inside the arm cuff is equal to the diastolic air pressure.”

Finally, an old analogue stethoscope was added. Miloš combined this with a small piezo microphone, turning the stethoscope into an electronic device. “A stethoscope is used when doing manual blood pressure measurements, and since [this] is still the gold standard for non-invasive methods, I wanted to see how the signal on the stethoscope looks during this process and if I could draw any conclusions from it,” Miloš reveals.

Pressure’s on

To make sense of the data, Miloš decided the project would need a graphical interface. “This would have a live view of all of the measured signals and the capability of recording all of the data into a CSV file,” he says. It required a hefty dose of programming; Python was used to code the GUI, handling the graphical interface, the communication with the device, and the data logging capabilities. Python was also used to analyse the recorded signals, while the firmware was written in C++, “so that it runs as fast as possible on the Pico,” Miloš explains. 

A custom four-layer PCB was developed, using Raspberry Pi Pico W as the microcontroller

With everything working, Miloš designed a case. “I needed to see the rough space required for everything, which allowed me to design a case with mounting points for each of those things,” he says. “On the top, there is a lid that has NeoPixel LEDs and a small OLED display that can be programmed to show information to the user.”

Since then, he’s been using the project to conduct many tests, and you can see the results of those on Miloš’ GitHub page. The project has also been made open source because he hopes it will help others with their own projects. “It can give them a head start so they don’t have to develop their electronics from scratch if all they want to do is, for example, signal analysis,” he says. “This is why I’ve also included some data that I’ve recorded with this device if anyone wants to use just that without ever having any contact points with the hardware!”

Of course, you shouldn’t use home-made tools to diagnose medical problems; Miloš made it clear from the start that he wasn’t creating a medical device.

The post Cardiography signal measuring device built on Raspberry Pi Pico W appeared first on Raspberry Pi.

Word clocks, SSH pranks, and circuit design: YouTubers grow up with Raspberry Pi

3 February 2025 at 21:44

A very rewarding thing about designing affordable hardware is watching young makers grow up with it, sometimes taking their interest in computing to university and beyond. We’ve seen kids who began playing around with Raspberry Pi go on to use our devices in their professional lives — in fact, that’s how a couple of our own engineers started out. In issue 149 of The MagPi, we spoke to the three siblings behind the GurgleApps YouTube channel. They’ve been sharing STEM projects for ten years now.

We’ve been covering projects from the team of siblings who make up GurgleApps for a long time — most recently their Colour Word Clock (image below) — and they themselves have been using a Raspberry Pi since the year it came out. In fact, it helped turn them into the makers they are today.

Buy your own Colour Word Clock

“Making became a part of our lives largely due to the influence of our parents, who filled our home with electronics, science, and coding projects,” the GurgleApps trio tell us. “Funnily enough, we weren’t hooked immediately — we had all this amazing equipment and knowledge at home, but took it for granted. The real spark came when Caleb received his first Raspberry Pi in 2012. Our dad playfully ‘forgot’ to tell us about the startx command, so we spent the first month working solely in the terminal, using simple commands like top and programming in Vi (a text editor) to create quiz and adventure games — without realising there was a graphical interface! It was rather frustrating for us at the time, but as our dad reminded us, it was nothing compared to his old ZX Spectrum.”

How did you start making videos together?

We started making videos together somewhat accidentally in 2015. It all kicked off with a prank on our dad where we used a Raspberry Pi to SSH into his computer and close the app he was working on. Amélie demonstrated the prank using simple shell commands, while Caleb handled the filming. Since we were too young for social media, we posted the video on our parents’ account. Unexpectedly, it went viral, gathering 1.4 million views! The overwhelming support inspired us to create more content, leading to the birth of our channel, GurgleApps.

Subscribe to GurgleApps on YouTube

During the COVID-19 pandemic, we noticed that many students — including us — were missing out on hands-on science experiments. We started recreating school physics experiments at home and sharing tutorials on our channel. This allowed others to keep learning and exploring STEM subjects despite the circumstances. We’re dedicated to making STEM education accessible and fun for everyone.

What was your first group maker project?

Our first significant group project was creating the Pico Piano (watch below). We built it using a Raspberry Pi Pico microcontroller and designed our own circuit board right at home. To make the circuit board, we used a DIY method: drawing the circuit design on a copper board with Sharpies and then etching it using ferric chloride. This hands-on process was both challenging and exciting, as it combined electronics, coding, and a bit of chemistry.

How has the channel affected your lives?

Running our YouTube channel has taught us a wide range of skills — from presenting and video editing to live-streaming and valuable maker and business skills. Live streaming helped us handle mistakes on the fly and build confidence. We’ve also been guests on podcasts and other live streams, which allowed us to meet lots of fun and interesting people in the maker community.

Our STEM knowledge has deepened significantly. Supportive viewers often share their expertise; for example, one viewer spent hours teaching us about PCB manufacturing, and another pointed out an inaccuracy in our light gate calculations, helping us learn and improve.

Imitation is the sincerest form of flattery — Raspberry Pi 400 was inspired by the ZX Spectrum

What’s your favourite thing you’ve made together?

Our favourite project we’ve made together is definitely the Word Clock! It’s special to us because it was inspired by our very first word clock project with a tiny 8×8 display over ten years ago. We’ve evolved it into a kit that you can now buy, and we’ve made everything open source — even the 3D print files for the case are available. We spent months perfecting it and putting everything we’ve learned into making it something we’re really proud of. What’s even more exciting is seeing people hack it to do things we never dreamed of. Watching others take our creation, build upon it, and share their own versions has been incredibly rewarding. We’ve recently updated our custom-made RGB LED matrix display — a key component of our word clock — and hopefully it will be ready for purchase from our shop very soon!

To see more of the trio’s projects and tutorials, subscribe to GurgleApps on YouTube.

The MagPi #150 out NOW!

You can grab the latest issue right now from Tesco, Sainsbury’s, Asda, WHSmith, and other newsagents, including the Raspberry Pi Store in Cambridge. It’s also available at our online store, which ships around the world. You can also get it via our app on Android or iOS.

You can also subscribe to the print version of The MagPi. Not only do we deliver it globally, but people who sign up to the six- or twelve-month print subscription get a FREE Raspberry Pi Pico W!

The post Word clocks, SSH pranks, and circuit design: YouTubers grow up with Raspberry Pi appeared first on Raspberry Pi.

The MagPi celebrates milestone issue with 150 Raspberry Pi people and projects

30 January 2025 at 20:32

Raspberry Pi’s official magazine, The MagPi, has turned the big 150 and decided to mark the occasion in true maker style with a special feature celebrating 150 Raspberry Pi people and projects previously featured on its hallowed pages. Here, we’ve cherry-picked a few of our favourites. You can read the full feature, including Raspberry Pi appearances on TV, some famous makers, and excellent Pi-focused events, in The MagPi #150.

We Still Fax

People found creative ways to stay entertained in 2020. Enter We Still Fax, an intriguing theatrical project that interacts with an audience remotely using a fax machine. The core components of the show are the fax machine, Raspberry Pi, and Grandstream adapter, which translates a phone signal into an Ethernet signal and vice versa.

› From issue #102

Bluebot shoal fish robots

Linked cameras attached to Raspberry Pi Zero W monitor what surrounding fish are doing. The Bluebot robot then mimics their behaviour, such as moving its fins

The Blueswarm team from Harvard University set out to explore how shoals of fish coordinate by building a swarm of underwater fish robots. Raspberry Pi Zero W was used to create multiple Bluebot fish-style robots that can be accessed remotely.

› From issue #107

Doom on a LEGO brick

Taking gaming on a tiny screen to its extreme, maker James Brown responded to enquiries about whether his LEGO brick-embedded console could play the popular first-person shooter. With a 0.42-inch OLED, 4MB flash chip, and RP2040 microcontroller (as on Pico), it uses the latter’s second core to update the screen fast enough to create greyscale images and play video.

› From issue #129

BrewPi

BrewPi was one of the first initiatives to recognise the power of Raspberry Pi for precision brewing. The BrewPi Spark 3 is a temperature controller that handles beer or wine fermentation with 0.1°C precision and sends data to an on‑board display.

brewpi.com

Teasmade 2.0

Martin Spendiff and Vanessa Bradley updated a Goblin Teasmade with a Raspberry Pi Zero WH to produce their hot drink of choice… coffee! It uses a Grove ReSpeaker HAT and a speaker with a relay switch to replace the alarm. A script monitors Google Calendar, and if it sees a trigger phrase, it starts the boil cycle.

› From issue #114

NOUS: Undersea vision surveillance system

nous

Greece’s NTAU School of Naval Architecture and Marine Engineering knew plenty about Raspberry Pi before selecting it for its underwater archaeology surveillance project, in which a self-powered submarine unit detects people or craft coming close to sensitive marine areas and sites of historic wrecks and alerts authorities to potential intruders.

› From issue #117

Smart Buoy

A solar-powered sensor buoy that is “cheap to build, easy to run”, and provides continuous and reliable data. It helps study rising sea levels and was deployed in Grenada in the Caribbean for this job. It communicates via radio signals to a Raspberry Pi base station — something Raspberry Pi is very well suited to.

› From issue #106 

ScreenDress

ScreenDress maker Anouk Wipprecht

Art and technology can go hand-in-hand, especially with this Raspberry Pi Zero W-powered dress that shows how the wearer is feeling via the special EEG headband they wear and the images displayed on various (eye-catching) screens attached to the outfit.

› From issue #135

The MagPi #150 out NOW!

You can grab the new issue right now from Tesco, Sainsbury’s, Asda, WHSmith, and other newsagents, including the Raspberry Pi Store in Cambridge. It’s also available at our online store, which ships around the world. You can also get it via our app on Android or iOS.

You can also subscribe to the print version of The MagPi. Not only do we deliver it globally, but people who sign up to the six- or twelve-month print subscription get a FREE Raspberry Pi Pico W!

The post The MagPi celebrates milestone issue with 150 Raspberry Pi people and projects appeared first on Raspberry Pi.

❌
❌