Aldo Briano Stanford University (email@example.com)
LightPad lights up a room to the creativity of its user and the rhythm of the music. It is an Android hardware accessory that communicates wirelessly to the phone. LightPad's intuitive interface makes it fun for all ages and any musical genres.
The LightPad is a plug-in daughter board for the MSP430 LaunchPad programmed for the MSP430G2553. The LightPad is a mobile light effects controller featuring a high power LED that lights up to different colors. The LightPad is controlled wirelessly through bluetooth with the Google Nexus S phone. The LightPad Android app uses Near Field Communication (NFC) to connect both bluetooth devices and send all the user-initiated light messages. The app features a color pad with 9 different colors that when pressed sends a LightOn message to the LightPad hardware. Effects such as mixing colors, dimming, and strobing are also possible with the app.
LightPad Key Features
**********Click Here to watch another video demo of LightPad!***********
NFC, or Near Field Communication, is a new technology that allows you to interact with the environment around you simply by placing your phone against NFC readers, tags or other NFC-enabled phones. It is a wireless short range communication technology which enables the exchange of data between devices over about a 10cm distance. It is considered to be a subset of RFID technology, operating in the 13.56MHz frequency range. This technology is forecasted to enable the era of the digital wallet, allowing consumers to use their phones to pay at physical stores. There are many applications enabled by NFC, such as ticketing, payment, authentication, advertisement, and others. The Google Nexus S is the first android NFC enabled phone available for consumers.
In this project, NFC was used to encode the Bluetooth information of the LightPad and to establish a connection seamlessly with a touch. The NFC tag in the LightPad is a passive sticker that contains the MAC address of the Bluetooth module inside. The tag was written using the free NXP TagWriter app. When the android phone touches the tag it sends the information to the LightPad app. The app will read the tag and use that address to initiate the Bluetooth connection instantly. Important to note, that NFC tags are passive components and don’t require power.
Color Pad: The LightPad app features a 3x3 grid of colors. When any color is pressed, the color will be transmitted to the hardware device and the color will be displayed. Unpressing one of the color pads will turn off the LED in the device. Up to 2 colors can be mixed, for example, if Red is pressed and yellow pressed, the colors will be mixed to produce orange.
Sliders: The intensity slider controls the LED brightness. It defaults to 100% where the LED is consuming the most power. The strobe slider can be used to create the strobe effect where flashes of light are produced. Increasing the value from 1 to 100% will begin a separate thread that sends light messages to the hardware device. At 100% the light messages are sent at its maximum rate. The strobe effect will send a light message of the colors that are currently pressed. Thus, the LED will remain off if the strobe effect is on and no color pad is pressed.
The android app transmits all messages through a Bluetooth insecure connection. The Bluetooth insecure connection available on android 2.3.3 eliminates the need for devices to pass through the pairing process. Two devices can establish a Bluetooth communication channel through the Bluetooth MAC address. Note that this method is subject to man-in-the-middle attacks, yet for Lightpad’s purpose, encryption and authentication is not desired. (Android Developers Documentation)
LightOn = [65 r g b intensity]
LightOff = [62 r g b intensity]
where 0 < r,g,b < 255 and 0 < intensity < 6, 0 being the max intensity of the LED.
The NFC Android programming was implemented using EasyNFC (a wrapper library that makes handling all the intricacies of NFC simpler). The open source EasyNFC library was developed by the MobiSocial Laboratory at Stanford University (mobisocial.stanford.edu), find more NFC projects at their website. I recommend this library for any NFC-Android related projects.
Pulse Width Modulation (PWM) was implemented in the
MSP430G2553 with Timer A0 and Timer A1.
There are three high power LEDs (red, green, blue). PWM enables the micro to set each LEDs to
different intensities, therefore achieving desired color mixes.
An external 9 volt batter is used to power the
LEDs. Since each consume around 350mA
with a forward voltage of 3.2V, an external power source and a driver circuit
was necessary. For each LED, a
darlington pair was created using two npn transistors.
Schematic and Picture:
LightPad MSP430 and Android App Source Code
Aldo Briano: firstname.lastname@example.org or email@example.com
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.