This project has been taken from the following link: http://www.arduino.cc/en/Tutorial/LEDDriver
You can also try other experiments related to Smart Phone and Bluetooth.
FOLLOW THIS LINK.
In the given link, we can see how we use HEF4794 as a LED driver for controlling endless amount of LEDs with only 4 pins. Here, we would use CD4094BC in place of 4794 from Philips. CD4094BC is also 8-Bit Shift Register and Latch with 3-STATE Outputs.
In case of HEF4794, you connect all the anodes of LEDs to 5V and cathodes to the output pins and in case of CD4094, you connect all the anodes to output pins and cathodes to GND.
HEF4794 circuit configuration, adopted from arduino.cc.
In this particular example, we control the 8 LEDs using Android Smart Phone interface and CD4094. You can also control it(using Bluetooth) from the serial monitor of Arduino programming interface.
The code example takes a value and stores in the variable dato and shows it as a decoded binary number. For example, if you enter 1, only the first LED will light up; if you enter 255, all the LEDs will light up.
Follow the following circuit layout for this experiment. I have used BlueSMiRF Bluetooth adaptor(From Sparkfun.com) for bluetooth connection. The baud rate of Bluesmirf modem has been set to 57600. HOW TO CHANGE BAUD RATE OF BLUETOOTH ADAPTOR?
SMART PHONE APPLICATION: For this experiment you can download any kind of Android Emulator.
Out of all the applications, BlueTerm is the best application. DOWNLOAD BLUETERM
YOU CAN USE ANY KIND OF BLUETOOTH ADAPTOR FOR THIS EXPERIMENT.
Press a number from 0 to 255, and press ? , you will see LEDs responding to binary form of that number.
For example, press 1? glows 1 LED, i.e. 1= 00000001
or 255? glows all LEDs, i.e. 255 = 11111111
or 3? glows 2 LEDs, i.e. 3 = 00000011
EasyEDA: Ideas for Circuit Design, Innovation for Electronics Access
Free Circuit Design: Schematic - Simulation - PCB Layout - Gerber Viewer
Cheapest PCB Prototype: Only $2 for 10pcs 10×10cm PCBs, 24 hours Quick Turn, DHL Delivery in 3 Days