Here’s a high-to-step guide to build your own ESP32-powered smartwatch—from choosing parts to flashing firmware and assembling the case.
1. Define Your Feature Set
Before you buy anything, decide what your smartwatch must do. Common features:
- Time & date (via NTP or onboard RTC)
- Basic UI (watch faces, menu, buttons/touch)
- Step counter / accelerometer
- Notifications (via BLE/GATT or Wi-Fi)
- Heart-rate sensor (opt.)
- Vibration motor for alerts
- Rechargeable Li-Po battery + charger
- Low-power deep-sleep mode
2. Bill of Materials
| Part | Qty | Notes / Examples |
|---|
| ESP32 module | 1 | WROOM, WROVER, or TinyPICO |
| Display | 1 | 1.3″ IPS/ST7735 or 0.96″ OLED SSD1306 |
| Li-Po battery (3.7 V, 150–300 mAh) | 1 | Small pouch cell |
| Li-Po charge IC | 1 | TP4056 + protection board |
| RTC (optional) | 1 | DS3231 or PCF8563 |
| Accelerometer / IMU | 1 | MPU-6050 or BMA400 |
| Vibration motor | 1 | 2 mm coin or cylindrical vibration motor |
| Push-buttons / tactile | 2–3 | For mode up/down/select |
| 3D-printable watch case | 1 | Custom or downloadable (Thingiverse, etc.) |
| Misc: Wires, solder, strap | — | — |
3. Wiring & Schematic
-
Power
- Li-Po → TP4056 board → 3.7 V → ESP32 VIN & display VCC
- TP4056 “BAT+” → battery, “5 V” input from USB
-
Display (SPI example)
- MOSI → ESP32 GPIO23
- MISO → GPIO19 (if used)
- SCLK → GPIO18
- CS → GPIO5
- DC (Data/Command) → GPIO17
- RST → GPIO16
-
I²C Bus (RTC + IMU)
- SDA → GPIO21
- SCL → GPIO22
- VCC → 3.3 V, GND → GND
-
Buttons & Vibe
- Button1 → GPIO0 (with pull-up)
- Button2 → GPIO2
- Vibe motor → MOSFET on GPIO15
(Adjust pins to your layout.)
4. Software & Libraries
Choose your environment: Arduino IDE, PlatformIO, or ESP-IDF. We’ll outline Arduino/PlatformIO:
-
Install board package:
- In Arduino IDE: Preferences → Additional Boards URL →
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
- Select “ESP32 Dev Module.”
-
Key libraries:
- Display:
TFT_eSPI (for ST7735/ILI9341) or Adafruit_SSD1306
- GUI:
LovyanGFX or LVGL
- IMU:
MPU6050 or Adafruit_BMA400
- RTC:
RTClib (for DS3231)
- BLE/Notifications:
NimBLE-Arduino
-
Sample pseudo-sketch outline:
#include <TFT_eSPI.h>
#include <Wire.h>
#include <RTClib.h>
#include <MPU6050.h>
TFT_eSPI tft = TFT_eSPI();
RTC_DS3231 rtc;
MPU6050 imu;
void setup(){
Serial.begin(115200);
tft.init();
tft.setRotation(1);
Wire.begin();
rtc.begin();
imu.initialize();
// Optional: sync time via WiFi + NTP
}
void loop(){
DateTime now = rtc.now();
int16_t ax,ay,az;
imu.getAcceleration(&ax,&ay,&az);
// Count steps, update GUI
tft.fillScreen(TFT_BLACK);
tft.setTextColor(TFT_WHITE);
tft.setTextSize(2);
tft.setCursor(10, 10);
tft.printf("%02d:%02d:%02d", now.hour(), now.minute(), now.second());
// ... draw steps, battery level, notifications …
delay(1000);
}
- Power saving:
- Use
esp_deep_sleep_enable_timer_wakeup() to sleep between updates
- Disable unused peripherals (BT/Wi-Fi) when idle
5. Enclosure & Assembly
- 3D-print your case. You can find “ESP32 watch” models on Thingiverse or design with Fusion360.
- Mount PCB (you can use perf-board or design a custom PCB in KiCad).
- Solder all parts, strap lugs, place vibration motor.
- Glue or screw case shut, insert strap.
6. Next Steps & Enhancements
- Add BLE GATT for phone notifications (use
NimBLE-Arduino)
- Draw richer UIs with LVGL (animations, widgets)
- Integrate heart-rate sensor (MAX30100, MAX30102)
- Over-the-air (OTA) updates via Wi-Fi
- Battery gauge with INA219 or ADC
Tips & Tricks
- Keep display brightness low to save power.
- Use a real-time clock (RTC) to maintain time when asleep.
- Test each module individually before final assembly.
Good luck! Let me know which features you want to focus on, and I can deep-dive into the code or mechanical design. 🚀🕒