Bluetooth low energy is an area with a wide variety of applications. In this class we learnt how to integrate the BLEPeripheral library with hardware like the BLENano and RFduino to make applications.

Screen Shot 2016-02-24 at 9.04.39 PM.png

I set out to make a bluetooth controlled LED matrix. Where you can enter the pattern which you wish to see on your phone and it will be displayed on a LED matrix. I used an RFduino to run this.

LED Matrix

This was made with 64 LEDs  (although only half are being controlled by the phone currently). They are controlled using SN74HC595 shift registers. This enables us to pass bytes through  bluetooth and the chip will convert it into highs and lows for each LED.

The circuit diagram for a single byte is as followsIMG_20160211_225702081

The circuit for 2 bytes is below

IMG_20160212_123409000

The completed board

IMG_20160219_145625497

IMG_20160218_131934883.jpg

PhoneGap

PhoneGap was used to develop the phone app that controls the matrix. It creates a local server through which it is possible to communicate between the phone and the BLE device (RFduino in this case)

The code for the same is here

RFduino

The matrix was controlled by the RFduino.

The codes for the initial circuit which took 2 bytes of data is here. This was tested using nrfMaster on the android.

The code to control the complete matrix is here.

In working 

 

Advertisements