D-duino Tutorial(Control LED and Vibrating Motor by Web)

by lspoplove in Circuits > LEDs

2883 Views, 52 Favorites, 0 Comments

D-duino Tutorial(Control LED and Vibrating Motor by Web)

SAM_2235.jpg

Control D-duino is easy like Arduino.

You can use Arduino IDE or LUA to control D-duino.

Today I want to show LUA control D-duino.

I use a LED shield and add 3 vibrating motor to Pin 4,7,10.

The other pins I soldered Red,Green,Blue,Pink,Yellow LEDs.

Prepare

SAM_2223.JPG
SAM_2227.jpg
SAM_2228.jpg
SAM_2225.jpg
SAM_2232.jpg

Hardware is easy.

D-duino x1

18650 shield x1

LED shield board x1

LED x5

Vibrating motor x3

Connect

SAM_2230.jpg
SAM_2231.jpg
SAM_2233.jpg

Like the picture.

I added 3 vibrating motors to Pin 4,7,10

The other pins I soldered different color LEDs.

Then I open the IP address by web browser or smartphone.

Here is a video for what I have tested.

https://youtu.be/OyA-GRobc-4

About Programming

QQ截图20161030160046.jpg

Here I will simply introduce how to program with LUA.

1.Build your own firmware.

https://nodemcu-build.com/

Please follow this link to build your own version firmware.

Then download it.

2.Burn the firmware into your D-duino.

http://dong-sen.com/the-first-thing-you-need-to-do/

Follow this link to learn how to burn firmware.

3.Download ESPlorer and program under this IDE.

Remember: Your code should be saved as init.lua.

Read these links you will find program D-duino is very easy