Sports Technology & IoT

ESP32-S3 Smart Sports Stopwatch with Go Backend

A connected sports timing system powered by the ESP32-S3, featuring high-precision MQTT time synchronization with a Go backend, adaptive low-power operation, lap and split recording, local flash storage, and OTA firmware updates.

ESP32-S3 Smart Sports Stopwatch with Go Backend
ESP32-S3 Smart Sports Stopwatch with Go Backend
ESP32-S3 Smart Sports Stopwatch with Go Backend
ESP32-S3 Smart Sports Stopwatch with Go Backend

Project Overview

The ESP32-S3 Smart Sports Stopwatch is a connected timing platform developed for sports applications requiring accurate lap and split recording, device-to-server synchronization, reliable data storage, and battery-efficient operation. The wearable device is powered by an ESP32-S3 running ESP-IDF and FreeRTOS, with dedicated firmware functionality for stopwatch timing, lap and split capture, OLED display management, MQTT communication, local flash storage, OTA updates, and intelligent power management. A Go backend communicates bidirectionally with the stopwatch through a Mosquitto MQTT broker using publish/subscribe messaging. Both the Go backend and Mosquitto broker are hosted on a Raspberry Pi, creating a compact edge-server architecture. One of the primary engineering challenges was achieving accurate time synchronization between the ESP32-S3 stopwatch and backend despite wireless communication latency. A custom MQTT-based synchronization mechanism was developed and achieved approximately 1–5 ms synchronization accuracy under test conditions. The second major challenge was optimizing battery consumption without sacrificing connectivity. When connected to the BrainApp, the stopwatch must remain subscribed to MQTT commands, making deep sleep unsuitable. To address this, the firmware turns off the OLED and transitions the ESP32-S3 into a connected light-sleep operating state, reducing consumption to approximately 10–12 mA while maintaining MQTT communication. When the BrainApp is disconnected and the stopwatch is offline, an inactivity timeout transitions the device into deep sleep, reducing consumption to approximately 500 µA. Any stopwatch button can wake the device and restore normal operation. This adaptive architecture balances high-precision synchronization, network responsiveness, and battery life while maintaining reliable local and server-side timing data.

Challenge

The project presented two primary engineering challenges: high-precision time synchronization and power optimization. The first challenge was maintaining accurate synchronization between the ESP32-S3 stopwatch and Go backend over MQTT. Sports timing requires lap and split events captured by the watch to remain closely aligned with the backend time reference despite wireless communication latency and timing differences between the embedded device and server. The second challenge was reducing battery consumption without sacrificing connectivity and responsiveness. When connected to the BrainApp, the stopwatch must remain reachable through MQTT so it can subscribe to and receive commands, making deep sleep unsuitable. However, keeping the ESP32-S3 fully active consumed approximately 200 mA. When the BrainApp is disconnected and the stopwatch is offline, maintaining MQTT and Wi-Fi connectivity is unnecessary, creating an opportunity to enter a significantly lower-power state. The firmware therefore needed to dynamically manage active, connected low-power, and offline deep-sleep states while coordinating MQTT communication, OLED operation, timing functions, FreeRTOS tasks, and button wake-up events.

Solution

For high-precision synchronization, a custom bidirectional MQTT publish/subscribe mechanism was implemented between the ESP32-S3 and Go backend. The synchronization logic compensates for device-to-server timing differences and maintains a closely aligned timing reference, achieving approximately 1–5 ms synchronization accuracy under test conditions. For power optimization, a connectivity-aware multi-level power-management architecture was implemented. During normal stopwatch operation, the system remains fully active at approximately 200 mA. When the stopwatch is connected to the BrainApp but becomes inactive, the OLED is turned off and the ESP32-S3 transitions into a light-sleep operating strategy, reducing consumption to approximately 10–12 mA while maintaining MQTT connectivity so BrainApp commands can still be received. When the stopwatch is not connected to the BrainApp and remains inactive beyond a configured timeout, the device transitions into deep sleep at approximately 500 µA. GPIO/button wake-up functionality allows any stopwatch button to wake the ESP32-S3 and restore normal operation. This state-aware architecture provides both high-precision timing synchronization and efficient battery usage without sacrificing connectivity when it is required.

Key Features

Sports stopwatch with accurate lap and split time capture
Approximately 1–5 ms ESP32-to-backend timing synchronization under test conditions
Custom MQTT-based time synchronization between the ESP32-S3 and Go backend
Bidirectional MQTT publish/subscribe communication
Go backend for timing synchronization and data management
Mosquitto MQTT broker hosted on Raspberry Pi
Raspberry Pi edge server hosting the Go backend and MQTT infrastructure
Local lap and split storage using ESP32-S3 internal flash
Server-side storage and synchronization of timing data
Continued local timing and data retention during temporary network interruptions
Adaptive power management based on BrainApp connectivity
Automatic OLED screen-off during connected inactivity
Light-sleep operation while connected to the BrainApp
MQTT connectivity maintained in connected low-power mode for receiving BrainApp commands
Approximately 10–12 mA consumption in connected screen-off/light-sleep mode
Automatic deep-sleep transition after an inactivity timeout when offline
Approximately 500 µA power consumption in deep-sleep mode
Button-triggered wake-up from deep sleep
Approximately 200 mA power consumption during active operation
OTA firmware updates for remote maintenance and feature deployment
FreeRTOS-based architecture for timing, MQTT communication, display control, storage, OTA, and power management

Results & Impact

Successfully developed an ESP32-S3-based connected sports stopwatch with accurate lap and split recording.
Achieved approximately 1–5 ms synchronization accuracy between the ESP32-S3 stopwatch and Go backend under test conditions.
Implemented a custom MQTT-based synchronization mechanism for maintaining closely aligned device and backend timing.
Implemented reliable bidirectional MQTT publish/subscribe communication for synchronization, data exchange, and remote commands.
Reduced connected idle power consumption to approximately 10–12 mA using OLED screen-off and light-sleep operation while preserving MQTT connectivity.
Reduced offline idle power consumption to approximately 500 µA using automatic deep-sleep operation.
Implemented automatic power-state selection based on BrainApp connectivity and stopwatch activity.
Implemented button-triggered wake-up from deep sleep for immediate user interaction.
Integrated local flash storage and server-side synchronization for reliable lap and split data management.
Implemented OTA firmware updates for remote maintenance and future feature deployment.
Deployed the Go backend and Mosquitto MQTT broker on a Raspberry Pi to create a compact edge-server architecture.
Delivered a scalable embedded-to-backend architecture combining high-precision synchronization, real-time MQTT connectivity, and adaptive low-power operation.

Project Info

Client

Michael Reber

Duration

4 Months

Year

2026

Technologies

ESP32-S3ESP-IDFFreeRTOSEmbedded C/C++Go (Golang)MQTTMosquitto MQTT BrokerRaspberry PiWi-FiReal-Time SynchronizationOTA Firmware UpdatesOLED DisplayInternal Flash StorageLow-Power DesignLight SleepDeep SleepGPIO Wake-UpEmbedded SystemsIoTEdge Computing

Client Success

Don't Take Our Word For It, Read Our Client Success Stories

HR

ZyntelliTech exceeded our expectations in delivering a custom firmware solution for our IoT distance measurement device. Their team expertly developed firmware on the Nordic nRF9160 platform, integrating a Time-of-Flight (ToF) sensor to measure distance with high precision and consistency. In addition to accurate sensor integration, ZyntelliTech implemented GPS functionality and designed a reliable data pipeline to transmit real-time sensor readings and location data to our AWS cloud infrastructure. Their deep understanding of LTE-M/NB-IoT communication, MQTT protocols, and cloud connectivity enabled seamless, low-latency performance across our system. Throughout the project, ZyntelliTech demonstrated excellent technical skills, clear communication, and a proactive approach to problem-solving. Their firmware was well-structured, power-optimized, and thoroughly documented—making it easy to scale and maintain. We highly recommend them as a development partner for any IoT, cloud-connected, or sensor-driven project.

Hunter Raley, CEO

CR

We partnered with ZyntelliTech Development LLC to develop a custom IoT solution based on the ESP32-S3 platform—and the results were exceptional. Their team engineered a reliable, low-power controller that captures real-time UV sensor data and seamlessly transmits it to our AWS cloud infrastructure. ZyntelliTech handled every layer of the system: from embedded firmware with OTA update capabilities and AWS IoT Core fleet provisioning, to full mobile app development using Flutter. The mobile apps allow users to monitor and manage devices effortlessly, with real-time data visualization and secure device onboarding. Their ability to deliver a tightly integrated solution—from hardware to cloud to mobile—was exactly what we needed. The firmware was efficient, the cloud communication was rock-solid, and the apps were beautifully designed and intuitive. ZyntelliTech proved to be a reliable and forward-thinking development partner, and we highly recommend them for any end-to-end IoT project.

Charles Rigby, CEO

DC

ZyntelliTech Development LLC delivered a complete RF control solution for our vehicle system, handling both hardware and firmware development with precision and professionalism. Their team designed custom electronic boards for the RF transmitter and receiver modules, ensuring reliable long-range communication and signal integrity under demanding conditions. In addition to hardware design, ZyntelliTech developed embedded firmware optimized for responsive control, robust pairing, and interference resistance. The system performed flawlessly in field tests, demonstrating the team's deep understanding of RF communication protocols and automotive-grade reliability. This project showcased ZyntelliTech’s end-to-end capability—from schematic and PCB design to low-level embedded programming and RF performance tuning. We highly recommend them for any project requiring custom wireless control systems or vehicle integration.

Dennis Chim, Co-Founder

AN

ZyntelliTech Development LLC played a pivotal role in the successful development of our advanced wireless sensor system. The team engineered a scalable solution using Nordic’s nRF52 series for BLE mesh networking and the nRF9160 as a cellular gateway, seamlessly connecting edge devices to our AWS cloud infrastructure. ZyntelliTech provided full-stack services—including custom PCB design, low-power firmware development, and end-to-end AWS integration. Their implementation of a robust BLE mesh network enabled reliable, long-range communication between sensor nodes, while the nRF9160 gateway ensured real-time data transmission over LTE-M with secure cloud connectivity. In addition to the technical architecture, they managed prototype manufacturing and hardware validation, delivering a complete, production-ready system. Their deep expertise in embedded systems, wireless communication, and cloud-connected IoT made them an invaluable partner. We highly recommend ZyntelliTech for complex IoT product development and deployment.

Alexander Nunez, Founder

Team collaboration in modern office

Let's Work Together

Whether you're an entrepreneur with a new idea or a company seeking to digitize operations, ZyntelliTech Development LLC is your trusted development partner.
Contact us today to bring your vision to life.

ZyntelliTech Development LLC