I have always wanted to use an accelerometer in a project, so when my daughter Beatrice was born I knew exactly what to build; The Hypno-Jellyfish! The Hypno-Jellyfish is a jellyfish-shaped toy filled with RGB LEDs that changes color when you move it. So if you have just become a father, (or want to give someone else a very personal/strange gift), this is the project for you.

Design requirements

When designing a toy for a baby you need to understand the intended users modus opperandi.

1. If it fits in the mouth, it will go in the mouth.

  • Has to be free of toxins
  • No small parts that can be swallowed
  • All parts that can be touched by the user has to be waterproof

2. If it can be pulled it will be pulled with as much force that can be achieved by a 0 year old.

  • Needs to be built to handle some serious pulling.

3. If it can be dropped on the floor it will be thrown on the floor repeatedly and you have to pick it up over and over again.

  • Make it undroppable or very sturdy.

4. Blinking lights are beautiful and will be stared at intently.


Step 1

To remove as much sensitive parts out of Beatrices reach as possible, I decided to go with a two part design. The first part contains the Arduino and the battery, this part will sit on top of the babygym and out of baby reach. The other part is the jellyfish, constructed from polymorph plastic, that contains the Neopixel ring and the accelerometer.

To achieve a sturdy connection between the two parts that would hold for design requirement 2, I made use of some paracord where I replaced the center strands wires from an ethernet cable. I could only fit two wires in each paracord mantle, so to get the 6 connections I needed, I had to use three pieces of paracord with two wires in each mantle. I then braided the paracords to make one wire. This way all mechanical stress will be picked up by the paracord and the wires will hopefully stay soldered in place.

Step 2 – Electronics

The accelerometer (MPU6050) is connected to the Arduino Nano with five wires.

  • MPU6050 – Arduino
  • VCC – 3.3V
  • GND – GND
  • SCL – A5
  • SDA – A4
  • INT – D2

The NeoPixel ring only needs VDD (PWR), GND and a DATA in. I chose to power the Neopixel ring from the 3.3V output on the Arduino. In a worst case scenario the Neopixel ring could draw to much power from the Arduino, but to save on the number of parts, and also number of wires, I decided to try it and it worked. Ideally I should have used a power regulator circuit to provide power to the Neopixel straight from the battery to avoid overloading the Arduino.

  • Neopixel Ring – Arduino
  • PWR – 3.3V
  • GND – GND
  • IN – 100 ohm resistor – D5

 Step 3 – Making the jellyfish

The jellyfish is made from Polymorph plastic which I bought of BLRTronics on ebay. Polymorph plastic is a really cool material. In room temperature it is hard and durable, but if you heat it to above 60 C it becomes translucent and soft, and can easily be molded by hand. It is non-toxic and is often used in medical implants. However it is not super easy to work with, and when it is soft it tends to stick to itself.

My first approach was to mold body and tentacles from one pice of plastic. As I was almost finished I decided to heat up only the tentacles to give them a final twist. This was a bad decision and all the tentacles got tangled and stuck to each other so I was back to square one again.

To avoid making the same misstake again, I decided to mold the tentacles and the bottom part of the body, (that houses the neopixel ring), as separate parts. I then heated the bottom part of the body and made little knobs with a pair of tweezers where I planned to attach the tentacles. Finally I attached the tentacles to the body by heating only the knobs on the body in some hot water and only the top of the tentacles to avoid a sticky tangly tentacle mess again.

This method turned out to be much more successful. After successfully attaching all tentacles, I attached the Neopixel ring and accelerometer to the bottom part of the body with a small pice of polymorph plastic across the ring and accelerometer. The top part of the body was molded around the paracord to avoid any joints to the body. To make sure all mechanical stress is picked up by the paracord, and not the wires, I made a big knot inside the jellyfish that is to big to pass through the hole. Finally I joined the top and bottom part of the jellyfish with another piece of polymorph plastic that I had heated thoroughly so that it was rely sticky and acted as a glue.

Step 4 – Code

The code is based on the i2cdevlib by Jeff Rowberg and Adafruits neopixel library. The basic concept is to read the position of the accelerometer every 300 ms and compare the result. If there is a big enough change between the current and last value it is considered as a ”movement detected” and the color changes. The code can be found at my github in the Hypno-Jellyfish repo.

If you don’t have any kids or know anyone who has and still want to build one, you can always claim you are going to use it for light painting.

15 svar till “Hypno-Jellyfish”

  1. Hello Jens:

    Congratulations! Your Hypno-Jellyfish is a fun and well thought toy. It seems that Beatrice enjoys playing with it.
    I like your use of paracord to provide sturdiness to the wires. My only concern is that ethernet wire, being solid, could break after some rough play. Some flexible cable would make it really sturdy.
    Have you considered using the accelerometer to provide a battery saving feature?
    Thanks for sharing your build notes. I don’t have any kids but I will make one for myself.

    Best regards,



    • Thanks Chris! The ethernet wire I used is a multi-strand wire so it is actually quite flexible. It has also been through some through stress tests when I took some light painting photos with it and swung it around in a rope. You can see the photos on my facebook page, https://www.facebook.com/jenslabsdotcom I had not thought about using the accelerometer as a battery saving feature that was a cool idea. Send me a picture if you build one, I would rely like to see it.


  2. Very cool. I’ve got a family member expecting, and I think this would make an excellent gift.

    One question: did you evaluate any plastics other than the polymorph? I think it would be really cool if the tentacles were flexible.


      • Will do! I’ve been looking at plastics, but it’s not easy to get them. Silicone would be nice, but I’m not sure how to manipulate that. Thermoplastic elastomers sound pretty good – inert, flexible, injection moldable – but I haven’t found clear ones in small quantities.

        I’ll let you know if I find anything interesting.

        (sorry bout the double post, I got a bit mixed up)


      • Finally found some time to start building one of these. I had no luck with soft plastic, but I did have the idea to wrap the thermoplastic around some fiberoptic cable. This illuminates the whole tentacle in a somewhat irregular and interesting way. Check out an image here: http://www.thescrapyard.org/hw/hypno/leg_2_glow.jpg

        This also made it a bit easier to shape the tentacle, as the soft thermoplastic sticks to the fiberoptic strands and the strands give the tentacle some stiffness.

        Now I just have to make four more like that, plus a body with fiberoptic in it as well. I also need to write some new software, as I made a compact ATtiny85 + accelerometer board that uses a different chip.


  3. Very cool. I’ll have to build one of these for my nephew.

    One question: did you evaluate any plastics other than the polymorph? I think it would be even better if the tentacles were soft and flexible.

    Gillad av 1 person


Fyll i dina uppgifter nedan eller klicka på en ikon för att logga in:


Du kommenterar med ditt WordPress.com-konto. Logga ut /  Ändra )


Du kommenterar med ditt Twitter-konto. Logga ut /  Ändra )


Du kommenterar med ditt Facebook-konto. Logga ut /  Ändra )

Ansluter till %s

%d bloggare gillar detta: