Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 18

Course: CSE479 – Internet of Things (IoT)

Lab 6 – Wireless Communication


Duration: 4 hours

Group ID Group 8 - iot


Student’s name Student code class
PHAN QUỐC HÙNG 2002210158 12DHDT5
ĐÕ VÕ SỸ 2002217227 12DHDT3
NGUYỄN PHƯƠNG 2032225079 13DHTDH02
THÙY
THẠCH LÊ QUY NA 2032222746 13DHTDH02
NGUYỄN LONG HỒ 2032221517 13DHTDH02
Final Score

Lab Exercise Submission


Students are responsible for submitting the final report by the stated
deadline for full marks. Late submissions will NOT be accepted.
Learning Objective: At the end of this Lab, students will be able to:
Use Wemos/ESP8266 sensor module
Understand serial communication and wireless communication
Content Lab Description
Lab 6. Wireless Communication - Remote monitoring using the Wi-fi
module
- Implementation of Web page using
the Wi-Fi module
Equipment: Computer,
Wemos/ESP8266 module

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:

Simulation on software proteus:


Write a C# program and the code on Arduino IDE to control LED with
the following requirements:
Create a TCP socket between ESP8266 (server) and C# program (client)
Control LED (ON/OFF) using button on your program
Control LED using user input from a text box on C# program:
+ When you type “Led ON”: LED is turn ON, print “Led ON” message
+ When you type “Led OFF: LED is turn OFF, print “Led OFF” message
Programme code:
Task 4 – Collecting data 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 DHT11 sensor 1
Hardware fritzing:

Simulation on software proteus:


Write a C#/Java program (or Web application) and the code on Arduino
IDE to collect data (temperature and humidity) and display them in your
program with the following requirements:
Create a TCP socket between ESP8266 (server) and C# program (client)
Information of temperature humidity will be displayed in the text box
Programme code:
Task 5 – Cloud computing application using Blink
Hardware requirements
# Device Quantity
1 ESP8266 Module 1
2 BreadBoard 1
3 LED 1
4 Resistor 220 1
5 Jumper Wires Many
Hardware fritzing:

Simulation on software proteus:


Experiment Procedure

Install Blynk app for Android

Get the AUTH toten

Install Blynk library for Arduino IDE

Create a program to connect ESP8266 to Blynk server

Connect some LEDs or electric device to ESP8266 board

Create a new project on Android phone

Try to control LEDs or devices by using Blink app

Programme code:

You might also like