ESP8266 Live Sensor Data (Without IoT)

by Amazing11 in Circuits > Microcontrollers

55 Views, 0 Favorites, 0 Comments

ESP8266 Live Sensor Data (Without IoT)

20240610_084039.jpg
ESP8266 Live Sensor Data (Without IoT)

Hey, welcome, my friend! Today in this post, I’m going to show you how to create a super simple and useful live sensor data reader using an ESP8266 as a Soft Access Point (AP) Wi-Fi on a web server. There are many ways in this world to send data from one source to another, usually requiring an internet connection, a concept known as the Internet of Things (IoT). However, in this project, we don’t need the internet. We will simply send data or readings from the NodeMCU to browser devices using Wi-Fi.


Supplies

ESP8266 Node MCU x1

Ultrasonic Sensor x1

Rotary Encoder x1

LM35 Temperature Sensor x1

Please note that the sensors I used in this project are my personal choices. You are free to choose any other sensors or components, but you will need to modify the code accordingly. 

Circuit Diagram

ESP8266 Live Data_bb.jpg

Follow this Circuit diagram. I simply Made it on my breadboard.

Code:-

Code SS.JPG

Here is the complete code for the Arduino IDE. Just copy it from here and paste it into your Arduino IDE. Then, select the port and COM board, and upload the code.




Copy from here:- https://electechoz.blogspot.com/2024/06/esp8266-live-sensor-data-without-iot.html

How to Use and Works

We have integrated three sensors in this project:

  1. Ultrasonic Sensor: Measures the distance of an object from the sensor. The measured distance is displayed on the web page, and the background color of the display box changes based on the distance.
  2. LM35 Temperature Sensor: Measures the ambient temperature. The temperature is displayed in degrees Celsius, with the background color of the display box changing based on the temperature.
  3. Rotary Encoder: Captures the rotation angle, which is displayed on a circular progress bar. If the encoder’s button is pressed, a “BOOM!” message is shown with an animation.

The data from these sensors is refreshed every 100 milliseconds, providing a real-time update on the web page.

How to Use

  1. Setup: Connect the ESP8266 NodeMCU to your computer and upload the provided code using the Arduino IDE.
  2. Power Up: Once the code is uploaded, power the ESP8266. It will create a Wi-Fi network named "ESP8266 Live Data" with the password "12345678".
  3. Connect: Use your smartphone or computer to connect to the "ESP8266 Live Data" Wi-Fi network.
  4. Access the Web Server: Open a web browser and navigate to the IP address 192.168.4.1. You will see a web page displaying the live sensor data.
  5. Observe the Data: Place objects at varying distances from the ultrasonic sensor, observe temperature changes around the LM35 sensor, and rotate the rotary encoder to see real-time updates on the web page.

 Please Share this project with your friends and Subscribe my YouTube Channel.