You are on page 1of 2

Weekly Report(May1-May8)

New Objective
 Interface the LDR, Atmospheric pressure, and Water Level Sensor with NodeMCU
 Send real-time data to the server using Websocket protocol
 Analyses the data and plot the graph with time-stamp for respective sensors.

Worked on Websocket protocol on NODEMCU Esp8266

1. To perform communication between Microcontroller and server using Websocket.


 
 
This section created a small chat-based application where Microcontroller can send a text
message to the web page and vice-versa using WebSockets.
The sending and receiving of text were rapid. Websocket server is created on port 81, which will
get the data to the local hostname, which the IP address received from ESP8266 after connection.
Once the connection is made, the text can be received and sent from any device connected to that
local server.
I have attached the working video link below.

https://drive.google.com/file/d/121-B72CQyAksm8QM08HX1_j-WnFdH6ss/view?usp=sharing

2. To switch On and Off LED from Webpage using Websockets

In this section, I created a two-way Led toggle, one from the webpage and one through the
conventional button. The LED is connected to the D3 pin of NodeMCU, and through the
webpage toggle button, we can change the status of D3 pin to Low or High. Furthermore, if the
LED is switched On and Off from the normal push button, the webpage will also record those
corresponding changes. The webpage was designed using HTML and JavaScript. These two
activities were to get hands over experience on Websockets
I have attached the photos and working video link below.

Video link- https://drive.google.com/file/d/11e4sekrZczUX6pD7Iyrp2HoXn4uBV8Hv/view?


usp=sharing
For Next week I will take one sensor (LDR) and will send the sensor data to server and plot the
graph with the time stamp on webpage and add some graphics to the webpage.

You might also like