This is a project to create a connected LED,
controlled via the Blynk IoT app and a NodeMCU ESP 8266 chip.
In my project, I have placed this apparatus inside a 3D printed case shaped like the Michigan "mitt" for which I am including the .stp files. The case is approximately 2.25"/7cm wide x 3-3/8"/8.5cm tall x 2-1/8"/54mm deep.
This project requires:
- NodeMCU ESP8266 chip,
- 3 LEDs of any colour,
- 3 330Ω resistors (one for each LED),
- A PCB. All details for the PCB are in the
PCB
folder. All parts are listed in thehardware/PCB/BOM_NodeMCU_PCB
and can be ordered (including the PCB) via the EasyEDA website which was used to design this project, - 4 M2-0.4 x 6 screws to close the case (Ref. 91420A003),
- A USB cable to power the device. The NodeMCU chip uses a micro USB-B port.
First, install the Arduino IDE software which is necessary to load .ino files onto your board. You will then need to install the Arduino core for ESP8266 which can be found here.
You will then need to create an account on Blynk IoT and follow the instructions below:
- Create a new template,
- Select Hardware
ESP 8266
and Connection TypeWiFi
, - Select
Set Up Datastream
and selectVirtual Pin
, - In your Virtual Pin Datastream, select PIN
V0
and Data TypeInteger
. Everything else can remain as is. - Click
Create
, - Go to your web dashboard and add a switch to your dashboard,
- Click on the switch settings and add the datastream you just created,
- Go back to
Home
and selectAdd first Device
, - When you create a new device, a
BLYNK_AUTH_TOKEN
is immediately generated, - Copy the token and paste it in the
char auth[] = "";
section of theled/led.ino
file.
You are now ready to load the led/led.ino
file onto your NodeMCU ESP8266 chip.
Once the software has compiled and is loaded, you will be ready to use the Blynk IoT app or web dashboard to control your LED.
- Add a
blinking
mode, - More luminous LEDs.
Jérôme Launay