Control LED is always the first class to learn hardware like Arduino, Raspberry Pi…

But D-duino can do more than them.Let’s start the 1st class: Web control LED.

Here I use the LUA language to write this program.

Step 1: Prepare

Prepare: D-duino x1

Bread board x1

LED x8

wire x9

Step 2: Programe

First I think you need to burn a new version firmware to D-duino.

Please refer to thishttp://nodemcu.readthedocs.org/en/dev/en/build/

Then open ESPlorer write this program into D-duino:

Code example

Don't forget to change your WiFi name and Password at the sencond line.

Remember LED's long foot is positive,short foot is negative.
Connect LED's positive pin to D3,D4,D5,D6,D7,D8,D9,D10

Connect LED's short pin to GND

Step 3: Control Your LED

Check the site address on the OLED display and open it through internet explorer,

OK, Your first project is over.
You see,control led is the same with relay,buzzer... Have a try and enjoy this...

<p>i dont understand where the program????</p>
<p>If you click the code example you will jump to </p><p><a href="http://dong-sen.com/first-class-web-control-led-d-duino/?ckattempt=1" rel="nofollow">http://dong-sen.com/first-class-web-control-led-d-...</a></p><p>Here is the full code</p>
<p>Great tutorial. This basic design could be used to make all kinds of web interactive projects.</p>
Thank you very much. Next I want to add more class for D-duino

About This Instructable




More by lspoplove:How to Attack WiFi by Pocket 8266 Pocket 8266 --ESP8266+18650 Battery(DHT to Thing Speak Project) Make a WiFi Necklace 
Add instructable to: