Project tutorial
LED Drawing with Virtual Shields

LED Drawing with Virtual Shields

In this sample, we will connect an RGB LED strip to an Arduino and hand draw the lights through a Windows 10 phone over Bluetooth.

  • 6,220 views
  • 4 comments
  • 28 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
×1
Digital RGB LED Weatherproof Strip
LPD8806, 32 LEDs / 1 meter
×1
BlueSMIRF Bluetooth Modem
×1
Red, black, green, and yellow wires
6" each; 5 sets of 4 colors
×1
Picture Frame
×1
8x11" paper drawing
×1
Soldering Materials
Soldering iron and solder
×1

About this project

In this sample, we will connect an RGB LED strip to an Arduino and draw colors using a Windows 10 phone over Bluetooth using Windows Virtual Shields for Arduino.



Components

You will need the following components :

  • an Arduino UNO or compatible

  • a Digital RGB LED Weatherproof Strip - LPD8806 32 LED - (1m))

  • a SparkFun Bluetooth Modem - BlueSMiRF Silver](https://www.sparkfun.com/products/12577)

  • solder and a soldering iron

  • 20 red/black/green/yellow wires at 6 inches length each (5 sets of 4 colors).

  • a picture frame

  • a 8x11” paper drawing from an artistic family member, friend or yourself

Connect to your Device

Modify the RGB strip

The RGB LED strips come with 48 LEDs in a strip.

  • Carefully split apart the RGB strips at the seams so that you have 6 strips of 8 lights.
  • Keeping the power connector (and other original wires) at the bottom right of the 6 strips,
  • … solder wires between the splits so that the ends are reconnected through the wires.


Upload to your device

  • In the Arduino IDE (set up from Connect to your Device : Arduino), choose the menu item File->Examples->VirtualShield->RGB-LED Draw.

  • Upload to your Arduino.

See it run

  • The phone will show a grid of gray blocks. Each block represents a pixel on the picture backing. On the right is a set of colors to choose from. 
  • Touch a color (i.e. Blue). The "Set All" button should turn to your color indicating it is ready to draw.
  • Slowly start drawing on the grid. The blocks will change to that color on the phone, and the RGB pixels will update on the frame.
  • The "Set All" button clears the grid to the chosen color.

Here’s what’s happening…

  • The Windows 10 phone only has an app which responds to requests from the Arduino sketch. The app is currently sideloaded, however will be provided as a free app in the app store when available.
  • The Arduino sketch creates a grid of rectangles using the screen.fillRectangle() method (of Virtual Shields.Graphics). When those rectangles get the pointer entered/exit or tapped events, they change to the selected color while also updating the RGB LED strip.



Code

Comments

Similar projects you might like

Bluetooth control led with lcd led status display real time.

Project tutorial by Youssef Sabaa

  • 17,304 views
  • 4 comments
  • 34 respects

LED Emergency Lights using WS2812 RGB LED Module

Project tutorial by bigboystoys13

  • 10,099 views
  • 5 comments
  • 20 respects

SmartQ Notification with Azure IOT Hub and Virtual Shields

Project showcase by vincent wong

  • 1,730 views
  • 0 comments
  • 6 respects

Control your LED with Cortana

Project tutorial by Mohamed Emam

  • 8,682 views
  • 7 comments
  • 21 respects

Bluetooth TFS Build LED strobe light

Project tutorial by Jimmy Ramkisoen

  • 3,516 views
  • 0 comments
  • 10 respects

LED Matrix

Project showcase by Team Windows IoT

  • 9,208 views
  • 1 comment
  • 17 respects
Add projectSign up / Login