Introduction: Bluetooth WS2811 Controller With Windows Phone and MSP430G2 Launchpad

Look at the video, then you see what you get here.

Against the hype of Android and Arduino my project is based on Windows Phone 8 and a microcontroller from Texas Instruments.

I have nothing against a fringe group, and I'm so happy about this :-)

Should you find any errors, feel free to correct me!

I've upload the new Version to the Windows Store. It's called: Spektrum

http://www.windowsphone.com/de-de/store/app/spektrum/32a8a064-f03e-45b8-a1cd-5d8b194a1af1

also i've uploaded the µC Code, please use spektrum.ino in step 6

Step 1: Accessories Required

For this project you will need:

1. Windows Phone 8 or 8.1 (Mine is a Samsung Ativ-S with WP8.1 Preview for Developers installed)

2. Texas Instruments Launchpad MSP430G2553 V1.5 (ordered cheap & directly from TI)

3. Wireless Serial 4 Pin Bluetooth RF Transceiver Module HC-06 RS232 with backplane (from ebay.cn)

4. some arduino breadboard wires

5. some WS2811 or WS2812b LEDs on strip, i used 10 LEDs for development

6. some Software, you can download it for free (explained later)

7. A Hyper-V capable Computer (Intel Core i3 or higher)

Otherwise the Windows Phone emulators does not work.
Debuggin or developing directly on the device is still possible!

Step 2: Windows Phone SDK 8.0 + Coding4FunToolkit

I use Microsoft Visual Studio Express 2012 because the newest version does not yet support the Coding4Fun Toolkit.

Download Visual Studio Express 2012

After the software has been installed, a manual update for the nuget package manager must be done.

The Color Picker used in my App is from Coding4Fun, more info here:

Download Coding4Fun Toolkit

Install it as follows:

Note: Nuget packages must be added separately for each project, open the Menu 'Tools' / 'Nuget Package Manager' / 'Manage Nuget Packages for Solution and search for "coding4fun".

In the search results select: "Coding4Fun Toolkit - Controls" and click 'Install'

If everything was successful, the solution explorer shows the corresponding entries for this solution.

Here I had to conclude that it still did not work with Visual Studio 2013.

Step 3: Register Your Phone for Development for Windows Phone 8

The outstanding article from Microsoft is nothing to add:

register your phone for development

http://msdn.microsoft.com/library/windows/apps/ff769508(v=vs.105).aspx

Step 4: Install Energia and WS2811 Library

Energia is an open-source electronics prototyping platform started by Robert Wessels in January of 2012 with the goal to bring the Wiring and Arduino framework to the Texas Instruments MSP430 based LaunchPad. Energia uses the mspgcc compiler by Peter Bigot and is based on the Wiring and Arduino framework. Energia includes an integrated development environment (IDE) that is based on Processing.

Download Energia

Here I would like to mention the exceptionally friendly forum community of 43oh.com. Thanks to all who have supported me.

43oh.com Forum

here's the link to the library

ws2811 driver library

Step 5: Wire the Components

Connect the Power Supply to the Bluetooth Module and TX Port to 13 (P2.5) and RX to 12 (P2.4)

Connect the Power Supply to the LED Stripe and Connect the Data PIn to 15 (P1.7)

In my configuration I use a LED-strip with 10 LEDs.

You have to make adjustments in the energia-code if you have a different number of LEDs.

Step 6: Download Code for Phone and ΜC

The code is Originated by reverse engeneering and is in alpha status.
Thanks to the developers, I'll mention you still here later.

Everything i need i have picked up from 3 different sources, Microsoft and from the Nokia Developer Forum.

For Windows Phone you can download the source Code via github:

Download Windows Phone App Source

The source code for the µC is attached.

ToDo:

more exeption handling

save rgb color to µC ---> use spektrum.ino and the new Windows Phone App: Spektrum

http://www.windowsphone.com/de-de/store/app/spektrum/32a8a064-f03e-45b8-a1cd-5d8b194a1af1

Step 7: Troubleshooting / FAQ

Remote Control Contest

Participated in the
Remote Control Contest