Building a Diy IoT LED Light - Device
by StefanWxx in Circuits > Microcontrollers
1679 Views, 4 Favorites, 0 Comments
Building a Diy IoT LED Light - Device
Made for the DIY hobbyist and IoT Fan.
This Instructable will show you the steps needed to get started to create a Windows 10 universal app,
configure the ESP 8266 Serial (UART) to Wi-Fi SoC (System On a Chip),
setting up the connections Universal App -> ESP8266 -> µC-Borad (Arduino, MSP430G2553)
and parsing the sent commands to control a WS2811 RGB LED Stripe.
To thank the community of which I have already learned a lot.
My own written Windows app Spekrum IoT connects via the WLAN / LAN to a TCP server or a ESP8266 and sends commands like this:
color 123EB4 // color in hex format
slider1 153 // values from 0-255
toggle1 true // true or false
Also custom commands are possible!
Of course, the communication works in both directions !
For testing, I have used SocketTest from http://sockettest.sourceforge.net/ . Later I'll even show you here how can you create your own custom IoT Device based on a microcontroller such as Arduino or a TexasInstruments MSP430G2553. Download link for Spektrum IoT is available on last step.
Have fun!
Things You Need
Create a Blank Windows Universal App With Visual Studio 2015
1. Start Visual Studio 2015 Community
and select New -> Project -> Windows universal -> blank App
2.Create a public socket object on the MainPage.xaml.cs
public sealed partial class MainPage : Page
{ public static StreamSocket socket { get; set; }
public MainPage() {
this.InitializeComponent();
socket = new StreamSocket();
}
under construction
Testing the Communication With SocketTest
under construction
Setting Up an ESP8266
under construction
Coding the ΜC Parser Program
Run the IoT
General Information
To Do:
fix bug with begining square in sent strings
add joystick user interface
add web cam support
Downloads:
You can download my Spektrum IoT universal app from here