RFID Gro Clock
By Rosemary Hattersley. Posted
Getting enough sleep when you’ve got small children can be a challenge. David Gardner took a practical approach to sleep deprivation, devising a clock that uses a traffic light system to let the kids know when it’s okay to get up.
The RFID Gro Clock is based around Raspberry Pi Zero W and has a custom-made 3D case. The project took about six weeks to complete and was finished just in time for Christmas.
Man with a plan
The aim of David’s RFID Gro Clock project was “to get my son to be more independent in going to bed and then also to stay in bed longer in the morning. From a purely selfish point of view, that would give me a bit more time in bed.”

To entice his three-year-old to go to bed in the first place, he decided to provide “some form of entertainment.” He also needed “a method to show somebody who cannot tell the time when it is OK to get up.”
Story books that mentioned CDs piqued his son’s interest, so David decided this was a good option for the entertainment element. Using RFID as the control mechanism (for MP3s and other audio files) also made using the Gro Clock more intuitive: “I don’t like my children having lots of interactions with screens, so this is a great, physical way for kids to be able to control things.”
Building blocks
David based the project around Raspberry Pi Zero W for its GPIO programmability, memory, and microSD card support, as well as its compact size and low cost. He used Python to code everything and decided to use VLC Player for the MP3 playback “as this has a pretty well documented API and Python library, plus support for playing audio CDs.”

He added a ‘setcd’ command to identify the number of tracks on a CD when it was inserted and used events in his Python code to understand when the next or previous track was being played.
He advises anyone planning a similar project to do their research and planning first. For example, he has no 3D printer so used a 3D printing website. Having created a design in FreeCAD (using YouTube videos as a guide) and sent the resulting STL file to print, David realised he’d omitted two, thankfully non-critical items – a potentially pricey mistake since 3D printing was already under way.
“Raspberry Pi has been great for the project it allowed me to have the flexibility of a computer and all the software packages that are available, whilst also giving me the ability to interface with a wide variety of electronics components,” he reveals.
Because he was using existing components as far as possible, not everything came together immediately. The RFID element caused a few issues with power consumption due to the Python package chosen, and because it and the OLED connect via SPI. Nonetheless, David recommends RFID cards as a method of control.”It’s a great way to allow little people to interface with devices,” he says. “Maybe when [my son] gets a bit older and more into music, I may look to have some RFID cards play Spotify songs.”
Rosie has worked for consumer tech titles such as PC Advisor, Computeractive, CNET and Macworld and written For Dummies books on using iPads, Androids and tablets
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
Win one of three Raspberry Pi 4 with 3GB RAM!
Raspberry Pi 4 is still a powerful piece of kit, and this new 3GB version is great for projects and builds that need slightly more than 2GB of RAM but don’t quite need 4GB. We have three to give away and you can enter below. Win 1 of 3 Raspberry Pi 4 3GB
Read more →
Etch A Sketch CNC machine
The software controlling the Etch A Sketch logs the image, turns it into vectors, turns the vectors into G-code, then sends the G-code to the Etch A Sketch – and it was all written by AI
Read more →
Vintage Radio Plex Server
There’s an antenna sticking up on this build, but it’s just for show
Read more →