This project implements a multi-sensor telementary circuit using ESP32 microcontroller . It compiles all the real-time environmental and motion data that revolves around the drone and helps you visualise the drone in a 3️D environement replicating the same environment.
- ESP32 Microcontroller 🧠
- Accelerometer --> ADXL345🚅
- Ultrasonic Sensor --> HC-SR04📡
- BMP180🎈
- DHT11🌡️
- LDR Sensor☀️
- Wire
- Adafruit_Sensor
- Adafruit_ADXL345
- Adafruit_BMP085
- DHT
Step 1 - Initialization
- As soon as the whole circuit starts, the micrcontroller initializes the Serial conncection and verifies the connectivity of the different sensors like ADXL345 and BMP180.
Step 2 - Data Acquisition
- After the establishment of the connection, different data sets are received from different sensors, like
- Motion - Captures 3-axis acceleration from the ADXL345.
- Proximity - Measure the bstacles in the vicinity using the ultrasonic sensor (HC-SR04).
- Environment - Reads the meteorological elements, it reads the temperature and humidity using DHT11 and barometric pressure and altitude using BMP180.
Step 3 - Data Formatting & Transmission
- The collected data is compiled and structred into a JSON file that is sent to the backend of the webpage, where that JSON file is parsened and all the data is extracted from it and is displayed.
This project includes a companion web application that visualizes the real-time telemetry data streamed from the circuit. The dashboard parses the JSON output from the Serial port and displays it.
- Motion (ADXL345) --> X-Y acceleration tilts the 3D cube on the screen.
- Light (LDR) --> If light % is less than 50% => Night Mode (Dark Background)
- Distance (Ultrasonic Sensor) --> If distance < 20 cm => Warning (Red Background).
- Atmosphere --> Displays Altitude and Pressure.
