scrobble.life
#steemhacks

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

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

Comments · 31

  • @anouk.nox(70)· 2661d

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

  • @detlev(82)· 2697d

    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

  • @vibesforlife(65)· 2698d

    ahahah this is cool and you are hot :D

  • @shanghaipreneur(72)· 2700d

    Whhaaaaaa? Cool stuff.

    Posted using Partiko iOS

  • @kheys(57)· 2700d

    Haha thats true-Lazy parent like ourselves lol

  • @whatsup(76)· 2700d

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

  • @arcange(79)· 2700d

    Congratulations @roelandp! Your post was mentioned in the Steem Hit Parade in the following category:

    • Pending payout - Ranked 9 with $ 100,07
  • @rufusfirefly(62)· 2700d

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

  • @autovoters(64)· 2701d

    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.


  • @pangoli(68)· 2701d

    Roelandp. This was brilliant and innovative!

    Posted using Partiko Android

  • @steem-ua(64)· 2701d

    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

  • @rmach(72)· 2701d

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

    Posted using Partiko Android

  • @veryspider(69)· 2701d

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

  • @steemengines(62)· 2701d

    Wow! That’s ingenuity. Wish I had those skills.

    Posted using Partiko iOS

  • @c-squared(61)· 2701d

    This post was shared in the Curation Collective Discord community for curators, and upvoted and resteemed by the @c-squared community account after manual review.
    @c-squared runs a community witness. Please consider using one of your witness votes on us here
  • @thekitchenfairy(77)· 2701d

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

  • @chrisbarth(63)· 2701d

    Great... Makes absolute sense @roelandp

    Posted using Partiko Android

  • @gtg(76)· 2701d

    Hello Velocity! :-D

  • @elipowell(60)· 2701d

    Was just thinking about you today when @andrarchy shared this. Love this! You rock.

  • @yidneth(74)· 2701d

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

  • @apshamilton(73)· 2701d

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

  • @breadcentric(60)· 2701d

    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

  • @maxdevalue(69)· 2701d

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

    Posted using Partiko iOS

  • @ironshield(76)· 2701d

    Brilliant!

    Posted using Partiko Android

  • @agil04(49)· 2701d

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

  • @ustazkarim(60)· 2701d

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

  • @doitvoluntarily(80)· 2701d

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

  • @soyrosa(75)· 2701d

    :') This is too funny.

    "Baby dreams powered by Steem"

  • @arcange(79)· 2701d

    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!

  • @rivalzzz(75)· 2701d

    Fantastic idea 😅🤟

  • @vladivostok(71)· 2701d

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