Rocking our baby daughter to sleep on the blockchain powered cradle rocker.

avatar

Birth of the Steem Blockchain Baby Rocking Cradle

A while ago I was hacking on the Bluetooth enabled Duplo train of my son. As our (now about half a year old daughter) is almost outgrowing her baby cradle I still wanted to give this other Bluetooth hack one more shot!

Screenshot 2019-04-04 at 18.19.56.png

A couple of months ago we bought this E-Leon automatic rocking device. A nice invention for lazy parents like ourselves. Intended to be used for baby strollers, but we mostly use it for rocking the good old family owned cradle instead on a makeshift, but totally secure setup as you can see :) The E-leon rocking device is a battery powered slider, controlled using Bluetooth Low Energy through an accompanying app in which you can pick several rocking modes, sliding speed and so on.

Now when I see Bluetooth, I think 'let's try to hack this thing!'. So I thought, what would it take to turn this device into a Blockchain Powered Baby Rocking Cradle, to showcase the diversity of use cases of the Steem chain once more :)

I picked the Steem chain, because of it's abundance of developer tools, one can simply use basic REST API's to query the chain, the chain has fast blocktimes of 3 seconds and I am a huge fan of the diverse community.

Scroll down for the video if you want to skip all the technical mumbo jumbo!

Here is how I got it all working:

Step 1. Reverse engineer the accompanying Baby rocking app from the E-leon device. I simply pulled the app's APK package from my phone and unzipped it to explore its contents. It happened to be a cordova hybrid HTML app which had it's source code unencrypted so I could quickly discover the needed Bluetooth UUID's for the rocking slider's so-called services and characteristics and the appropriate values to call.

Step 2. Get the Bluetooth working with my computer instead of the E-leon app. Using a node package for Bluetooth callednobe, I discovered the Bluetooth UUID of the E-leon rocking slide. Then I fumbled around by using the services and characteristic's UUIDs found in the app's source and explored the app's source code some more to learn about the possibilities and appropriate values of the baby rocking slide.

Step 3. Hook up the Steem chain and interpret the data. For this project I could use two data points: Amount of transactions per block and whenever I (the daddy) signed a block (Randomly, but roughly at least every minute). Using the dsteem node package I got this working in a flash and before I knew it the Steem Blockchain Baby Rocking Cradle was born!

Walkthrough of the demo-video:

  1. Launching the script on the computer.
  2. Put the baby in the cradle.
  3. Enabling bluetooth discovery on the rocker
  4. Computer and rocker pair.
  5. Steem chain is being connected.
  6. Blocks start streaming in.
  7. Speed of the rocker gets adjusted based on the amount of transactions per block versus the average amount of transactions per block.
  8. Whenevery "Daddy" signs a block the Rocking mode changes.
  9. Theoretically the Baby falls asleep dreaming of a decentralised world.

DEMO-VIDEO


The node script (dependencies are dsteem and noble package) are available on my github and the E-leon device can be bought here. (page in dutch :().

Ps. our daughter just slept 2 hours straight on the Steem Blockchain :) - while I was editing the demo-video haha.

Other Steemprojects by me:

If you like what I do, consider supporting my witness @roelandp

See you on the chain, @roelandp



0
0
0.000
41 comments
avatar

When steem moons again she is gonna get quite a rocking ... maybe need a seat belt for that genius contraption!! Well done Roeland :)

0
0
0.000
avatar

The same thing on the EOS blockchain, with a block produced every 0.5 second:

image.gif

It's definitly safer to stay on Steem!

0
0
0.000
avatar

Lol OMG i hope its just a doll

0
0
0.000
avatar

:') This is too funny.

"Baby dreams powered by Steem"

0
0
0.000
avatar

i hope this makes it to trending because this is awesome 👍

0
0
0.000
avatar

with the birth of the blockchain system, everyone must be proud of this

0
0
0.000
avatar

I also like you choosing the steem chain as a development, this is very interesting

0
0
0.000
avatar

With you blockchain could do almost everything! I’m happy that you’re with us on steem blockchain.

Posted using Partiko iOS

0
0
0.000
avatar

First SteemWhale, now SteemRocker? Just don't add a live stream, people will do bets how long it takes for the baby to throw up.
:P

0
0
0.000
avatar

Not sure whether this Steem Baby Rocking Cradle or BTC trading on Steem Engine is today's coolest new Steem application. :-)

0
0
0.000
avatar

You're such a geek, it's a compliment!

0
0
0.000
avatar

Hello Velocity! :-D

0
0
0.000
avatar

hahahah best post of the day! this is superb and your little babe is just adorable!

0
0
0.000
avatar

amazing, babby dreams of a decentralized world ! :D :D :D

0
0
0.000
avatar

Whales, trains, cradles... You never cease to amaze me! Well done, one more time!

Posted using Partiko Android

0
0
0.000
avatar

Hi @roelandp!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 8.477 which ranks you at #2 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 225 contributions, your post is ranked at #1. Congratulations!

Evaluation of your UA score:
  • Your follower network is great!
  • The readers appreciate your great work!
  • Great user engagement! You rock!

Feel free to join our @steem-ua Discord server

0
0
0.000
avatar



Hello, @roelandp.

The Talent Club is a space of mutual collaboration, with reserved admission right, which puts the club's account at the service of its members and which grants them more than a 1500% daily benefit.

We are constantly looking for talented users to offer them the possibility to enjoy our advantages.

Currently we are more than 89 members and we help more than 11 different projects, having a total amount of more than 60.000SP, with our own trail.

If you want to know more about how we work and be able to access the club, come by our Discord server, without any commitment.

Regards.


0
0
0.000
avatar

A Rube Goldberg cradle rocker! Why didn't I think of that? ;-)

0
0
0.000
avatar

Well, it's official. You are a true geek and that is fun and funny!

0
0
0.000
avatar

Haha thats true-Lazy parent like ourselves lol

0
0
0.000
avatar

This is so damn cool and even funny.

So, the Daddy has to get a !BEER for his wonderful work and his "hopefully" now sleeping daughter!

Your @detlev

0
0
0.000
avatar

Hahah that is soo cool! What an adorable daughter you have btw!

0
0
0.000