Decimal to binary converter using CD4094, Android Phone and Bluetooth adaptor

0
4062

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.

GET A LIST OF ANDROID APPLICATIONS SUITABLE FOR THIS EXPERIMENT.

Out of all the applications, BlueTerm is the best application. DOWNLOAD BLUETERM

DOWNLOAD SOURCE CODE OF ANDROID EMULATOR- BLUETERM

YOU CAN USE ANY KIND OF BLUETOOTH ADAPTOR FOR THIS EXPERIMENT. 

DOWNLOAD THIS LAYOUT

SEE ALL THE PHOTOS

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

DOWNLOAD THE SOURCE CODE

Some other important posts about Bluetooth and Smart Phone.

DATASHEET OF HEF4794

DATASHEET OF CD4094

BLUESMIRF BLUETOOTH ADAPTOR

BuildCircuit proudly recommends EasyEDA for circuit and PCB design

EasyEDA: A Powerful Free Circuit, Simulation & PCB Design Tool

Register now to use it for free. No Need to download. Lots of resources and Step by step tutorials

 

SHARE

LEAVE A REPLY