A live WebSocket testing framework using ESP8266 microcontrollers and Django/JavaScript frontend, designed for real-time sensor data streaming and visualization.
- The ESP8266 reads sensor data (e.g., MPU6050 accelerometer), then pushes it via WebSocket.
- A Django Channels server processes the WebSocket and serves data to the browser.
- The frontend uses Chart.js to render historical and real-time graph data, alongside a live log.
- 📡 Real-time WebSocket data streaming
- 📈 Chart.js visualization: historical + live updates
- 🧠 Sensor data tracking (x, y, z axes)
- ⚙️ Dashboard-style UI with log and parameters section
- 🪄 Responsive CSS styling
| Component | Description |
|---|---|
| ESP8266 Module | e.g., NodeMCU or Wemos D1 Mini |
| MPU6050 IMU | Accelerometer/Gyroscope sensor |
| Jumper Wires | For connecting ESP8266 and sensor |
| Breadboard (optional) | Easy prototyping setup |
- Clone the repo to Arduino's sketchbook directory.
- Open your
.inofile (e.g.ws_sensor.ino). - Update Wi-Fi credentials.
- Select the correct board in Arduino IDE (e.g., NodeMCU 1.0).
- Install required libraries:
WebSocketsClientWireAdafruit MPU6050
- Upload the sketch.
- Navigate to the project folder.
- Install Python dependencies: