Solving problems that are meaningful to us is at the core of our approach to teaching and learning about technology here at the Raspberry Pi Foundation. Over the last eight months, I’ve noticed that the types of digital making projects that motivate and engage me have changed (can’t think why). Always looking for ways to save money and automate my life and the lives of my loved ones, I’ve been thinking a lot about how digital making projects could be the new best friend of any new parent.
I never knew how much equipment one small child needs until very recently. I also had no idea of the range of technology that is on offer to support you as a new parent to ensure the perfect environment outside of the womb. Baby monitors are at the top of this list. There are lots of Raspberry Pi baby monitor projects with a range of sensing functionality already in existence, and we’ve blogged about some of them before. They’re a great example of how an understanding of technology can open up a range of solutions that won’t break the bank. I’m looking forward to using all the capabilities of the Raspberry Pi to keep an eye on baby.
Baby name generator
Another surprising discovery was just how difficult it is to name a human being. Surprising because I can give a name to an inanimate object in less than three seconds, and come up with nicknames for colleagues in less than a day. My own offspring, though, and I draw a blank. The only solution: write a Python program to randomly generate names based on some parameters!
<span style="color: #ff6600">import</span> names <span style="color: #ff6600">from</span> time <span style="color: #ff6600">import</span> sleep <span style="color: #ff6600">from</span> guizero <span style="color: #ff6600">import</span> App, ButtonGroup, Text, PushButton, TextBox <span style="color: #ff6600">def</span> get_name(): boyname = names.get_first_name(gender='male') girlname = names.get_first_name(gender='female') othername = names.get_first_name() <span style="color: #ff6600">if</span> babygender.get() == "male": name.set(str(boyname)+" "+str(babylastname.get())) <span style="color: #ff6600">elif</span> babygender.get() == "female": name.set(str(girlname)+" "+str(babylastname.get())) <span style="color: #ff6600">else:</span> name.set(str(othername)+" "+str(babylastname.get())) app = App("Baby name generator") surname_label = Text(app, "What is your surname?") babylastname = TextBox(app, width=50) babygender = ButtonGroup(app, options=[["boy", "male"], ["girl", "female"], ["all", "all"]], selected="male", horizontal=True) intro = Text(app, "Your baby name could be") name = Text(app, "") button = PushButton(app, get_name, text="Generate me a name") app.display()
Food, Poo, or Love?
I love data. Not just in Star Trek, but also more generally. Collecting and analysing data to understand my sleep patterns, my eating habits, how much exercise I do, and how much time I spend watching YouTube videos consumes much of my time. So of course I want to know lots about the little person we’ve made, long before he can use language to tell us himself.
I’m told that most newborns’ needs are quite simple: they want food, they want to be changed, or they just want some cuddles. I’m certain it’s more complicated than this, but it’s a good starting point for a data set, so stick with me here. I also wondered whether there might be a correlation between the amplitude of the cry and the type of need the baby has. A bit of an imprecise indicator, maybe, but fun to start to think about.
This build’s success is mostly thanks to Pimoroni’s Rainbow HAT, which, conveniently, has three capacitive touch buttons to record the newborn’s need, four fourteen-segment displays to display the words “FOOD”, “POO”, and “LOVE” when a button is pressed, and seven multicoloured LEDs to indicate the ferociousness of the baby’s cry in glorious technicolour. With the addition of a microphone, the ‘Food, Poo, Love Machine’ was born. Here it is in action:
Food Poo Love – The Raspberry Pi baby monitor project that allows you to track data on your new born baby.
Automatic Baby mobile
Another project that I’ve not had time to hack on, but that I think would be really awesome, is to automate a baby cot mobile. Imagine this one moving to the Star Trek theme music:
If you’ve got any more ideas for baby projects, do let me know. I’ll have a few months of nothing to do… right?
Source: Raspberry Pi – Digital making for new parents