Pico Birthday Card
Raspberry Pi Powered Birthday Card
23 April 20234 minute read
By Kevin McAleer
Share this article on
Raspberry Pi Powered Birthday Card
23 April 2023
By Kevin McAleer
Share this article on
Watch the associated video here:
Are you tired of giving boring, generic birthday cards? Want to give a personalized and interactive card that will impress your loved ones? Look no further! In this tutorial, weβll show you how to create a unique and special birthday card with the power of Raspberry Pi Pico.
Raspberry Pi Pico is a microcontroller board that offers a simple and low-cost way to interact with the physical world. With its easy-to-learn programming language and some extra components, Raspberry Pi Pico is perfect for creating fun and creative DIY projects. In this tutorial, weβll show you how to use Raspberry Pi Pico to build an ultimate DIY birthday card.
Iβve not heard of any using a Raspberry Pi Pico to power a birthday card before, so maybe Iβm the first to do this!
Here are a couple of images of the construction process.
| Item | Description | Qty | Price |
|---|---|---|---|
| Pico | Raspberry Pi Pico | 1 | Β£3.90 |
| Touch Sensor | TTP223 Capacitive Touch | 1 | Β£1.00 |
| 5x5 Display | 5x5 RGB Matrix Breakout | 1 | 9.90 |
| Buzzer | Piezo Transducer (Passive Buzzer) | 1 | Β£0.90 |
| Lipo Battery | Galleon 400mAh Hard Case LiPo Battery | 1 | Β£7.50 |
| Lipo Charger | LiPo Amigo (LiPo/LiIon Battery Charger) | 1 | Β£8.40 |
In this tutorial, we will guide you through the process of building an ultimate DIY birthday card using Raspberry Pi Pico. In the accompanying video you can see the cardβs exciting features, including a touch sensor, a 5x5 RGB LED display, and a speaker that plays the Happy Birthday tune.
Before starting the project, Kevin introduces the necessary materials and components needed for the card.
Next, Kevin leads us through the assembly process. He shows us how to connect the Raspberry Pi Pico to the touch sensor, LED display, and speaker. He explains how to place all components in the enclosure, and gives us tips on how to secure everything in place.

Wiring the Pico to the components may look complicated, however it is actually straight forward.
| Component Pin | Pico GPIO |
|---|---|
| Touch Sensor | GPIO 00 |
| Touch Sensor GND | GND |
| Touch Sensor VCC | 3.3v |
| 5x5 Display - SDA | GPIO 02 |
| 5x5 Display - SCL | GPIO 03 |
| 5x5 Display - VCC | 3.3v |
| 5x5 Display - GND | GND |
| Buzzer + or signal | GPIO 09 |
| Buzzer - or GND | GND |
Print out 3d printbale cart insert, below. The parts will fit into the card insert and can be attached to the card with either hot-glue or blutac.
You can design a foldable card using the online graphics creation tool, Canva. Its free to use, and is very simple to create amazing designs.
After completing the assembly process, itβs time to code. Kevin walks us through the coding process using MicroPython, a programming language perfect for microcontrollers. He explains the different sections of the code, and how to adjust the settings to personalize the card.
There are a couple of programs:
buzzer_demo.py - plays the happy birthday tunecake.py - Shows the cake image on the 5x5 displayfont.py - This file contains all jonny five font thats specifically designed for the 5x5 displaytouch.py - displays touched or not touched using the touch sensorscroll.py - displays scrolling text on the 5x5 displayhappy_birthday.py - bring all the programs above together so that when you touch the sensor it shows the cake, plays the music, and then displays the messageYou can download the 3d printable enclosure here:
card-insert.stl - Card InsertThis tutorial provides a fun and engaging way to create an ultimate DIY birthday card using Raspberry Pi Pico. With the easy-to-follow instructions, you can impress your loved ones with a personalized and interactive card that they will cherish.
So, what are you waiting for? Grab your Raspberry Pi Pico, follow the steps in the video, and create an ultimate DIY birthday card that your loved ones will never forget!
Kevin McAleer
I build robots, bring them to life with code, and have a whole load of fun along the way
Social Links:
If you found this high quality content useful please consider supporting my work, so I can continue to create more content for you.
I give away all my content for free: Weekly video content on YouTube, 3d Printable designs, Programs and Code, Reviews and Project write-ups, but 98% of visitors don't give back, they simply read/watch, download and go. If everyone who reads or watches my content, who likes it, helps fund it just a little, my future would be more secure for years to come. A price of a cup of coffee is all I ask.
There are a couple of ways you can support my work financially:
If you can't afford to provide any financial support, you can also help me grow my influence by doing the following:
Thank you again for your support and helping me grow my hobby into a business I can sustain.
- Kevin McAleer
Comments