|Hand tools and fabrication machines:|
Around Halloween, even the most innocent of things seem to turn evil. For example our office mascot, Goat, has started acting weird lately…
This tutorial teaches you how to make your own plush toy with LED eyes that can be controlled by an iPhone. The perfect Halloween scare!
We will use the LightBlue Bean to control the two LED eyes. This is what you’ll need:
Connect the battery to the BAT pin on the Bean and ground. Then connect the RGB pins to pin 0-5 on the Bean with resistors in between, and the cathode to ground. Insulate with heat shrink tubing.
Find a plush animal of your liking. Cut a hole in its abdomen and feel like a horrible human being for doing this to an innocent toy. Then feel even worse when you remove its eyes.
Put the LEDs, battery holder and Bean in your toy and adjust the LEDs so that they fit in the eye sockets.
Sew the goat together where you put in the electronics. Also sew a bit around the eyes if the holes are too big for the LEDs. Nobody likes saggy eye sockets. That’s just scary in a wrong way.
To be able to fade the LEDs, we will need to use a SoftPWM library. This lets you use any digital pin on the Bean as analog output. By calling the function SoftPWMSetPercent(PIN_NUMBER, BRIGHTNESS) we can go from 0-100 percent brightness. If you need help installing libraries to Arduino, check out this guide.
Upload this code to your Bean.
Open the LightBlue app, connect to the Bean, click options and choose Sandbox View. Use the sliders and checkboxes to control the LEDs! The first slider will set how red the LED is, the second green, the third one blue and the last one sets Goat in disco mode. Nothing makes a party like that!
Did you replicate this project? Share it!I made one
Love this project? Think it could be improved? Tell us what you think!