Build an ESP32 prototype that measures motor temperature, vibration and current. The ESP32 sends readings over Wi-Fi to a dashboard that shows live values, history and warning alerts.
Hardware and software
| Component | Purpose |
|---|---|
| ESP32 and Arduino IDE | Read sensors and send data over Wi-Fi. |
| MPU6050 | Measure acceleration for vibration monitoring. |
| DS18B20 | Monitor motor surface temperature. |
| INA219 | Measure DC motor supply current. |
| 6–12 V DC motor and external supply | Provide a low-voltage demonstration setup. |
| Breadboard and jumper wires | Connect the low-current sensor signals. |
| Web dashboard | Display readings, status, history and alerts. |
| Python and scikit-learn | Optional anomaly detection using recorded data. |
Basic ESP32 connections
| Connection | Generic ESP32 pin |
|---|---|
| MPU6050 and INA219 SDA | GPIO 21 |
| MPU6050 and INA219 SCL | GPIO 22 |
| DS18B20 data | GPIO 4 with a 4.7 kΩ pull-up to 3.3 V if the module has no pull-up |
| Compatible sensor logic supply | 3.3 V |
| Sensor ground | GND |
Confirm the pins for your board. For high-side current sensing, route the external supply positive through INA219 VIN+ and VIN− to the motor positive. Use a common ground for this low-voltage setup and check that the INA219 module and wiring can handle the motor startup current.
Espressif pin reference · INA219 pin guide · DS18B20 hardware guide
How to build the project
- Connect the sensors and verify each reading in the Arduino Serial Monitor.
- Send timestamped readings over Wi-Fi and plot them on the dashboard.
- Record a normal baseline. Test alerts with safe operating changes or simulated abnormal readings.
- Set warning thresholds. Optionally train a Python model on baseline data and evaluate it using separate recordings.
Example dashboard output
| Indicator | Example |
|---|---|
| Temperature | 38.5 °C |
| Current | 0.8 A |
| Vibration | Normal |
| Motor status | Within limits |
These values are illustrative. In the demo, the dashboard should show a warning when a configured limit is crossed.

