Professional Documents
Culture Documents
Lab 6
Lab 6
NOTE: The final report should be written in English and submitted with
the programming source files (if any).
- Good luck -
Hardware Requirement
# Device Quantity
1 Arduino Board 1
2 BreadBoard 1
3 LED 1
4 Resistor 220 3
5 Wifi Module (Wemos/ESP8266) 1
6 Jumper Wires (male, female) 10
Software Requirement
# Software Quantity
1 Arduino IDE 1
2 Fritzing tool 1
3 Visual Studio 1
Report Requirement
Submit the full source code
Final report (word): include the circuit diagram (by Fritzing tool) and the
photo taken when your app is running
Lab Experiment Procedure:
Task 1 – Control Wemos/ESP8266 via Serial interface
Hardware requirements
# Device Quantity
1 ESP8266 Module 1
2 BreadBoard 1
3 LED 1
4 Resistor 220 1
5 Jumper Wires Many
6
Experiment Procedure
Connect ESP8266 module and LED (with resistor) to the BreadBoard
Hardware fritzing:
Simulation on software proteus:
Write the code with Arduino IDE with the following requirements:
When you type “Led ON” in Serial Monitor: LED is turn ON, print “Led
ON” message to Serial Monitor
When you type “Led OFF” in Serial Monitor, LED is turn OFF, print
“Led OFF” message to Serial Monitor
Programme code:
Task 2 – Connect Wemos/ESP8266 to Wifi access point
Hardware requirements
# Device Quantity
1 Wemos/ESP8266 Module 1
2 BreadBoard 1
3 LED 1
4 Resistor 220 1
5 Jumper Wires Many
6
Experiment Procedure
Write a program on Arduino IDE to connect ESP8266 to Wifi AP and
then print out the IP address of ESP8266 in the serial monitor in two
cases:
Hardware fritzing:
Simulation on software proteus:
Use DHCP mode to receive IP address
Manual configure IP address of ESP8266
Programme code:
Task 3 – Control Wemos/ESP8266 via Wifi connection (TCP socket)
Hardware requirements
# Device Quantity
1 ESP8266 Module 1
2 BreadBoard 1
3 LED 1
4 Resistor 220 1
5 Jumper Wires Many
6
Hardware fritzing:
Programme code: