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!
Step 1: Get the Parts
We will be using an Arduino compatible microcontroller called the LightBlue Bean to change the color of the LEDs. It connects to your phone over BLE and comes with an iPhone app called LightBlue that you can use to control it.
This is what you'll need:
Step 2: Solder the LEDs
Step 3: Perform Surgery on Goat
Step 4: Put in the Electronics
Step 5: Install SoftPWM Library
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.
Step 6: Upload Code to Bean
Upload this code to your Bean.
Download the iOS application LightBlue, open it and 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!