Hello everyone,
I’m currently developing an ESP32-based monitoring and control system using PlatformIO and VS Code. The project started as a simple prototype but has gradually grown into a larger codebase with multiple hardware variants, OTA updates, sensor interfaces, and a display subsystem.
As the project grows, I’m finding it increasingly difficult to keep the PlatformIO configuration clean while supporting different hardware revisions and deployment targets.
Current setup:
-
ESP32-WROOM
-
PlatformIO + VS Code
-
Multiple custom libraries
-
WiFi and Ethernet support
-
OTA firmware updates
-
TFT display interface
-
Sensor acquisition and data logging
At the moment I have separate build environments for:
-
Development hardware
-
Production hardware
-
Debug configuration
-
Manufacturing test firmware
While this works, the project structure is becoming increasingly difficult to maintain.
A few questions for developers managing larger PlatformIO projects:
-
How do you organize multi-environment projects without ending up with duplicated configuration files?
-
Do you prefer separate repositories for hardware revisions or a single repository with multiple PlatformIO environments?
-
How are you managing version control for custom libraries that are shared across multiple embedded projects?
-
Have you integrated automated testing or CI/CD pipelines with PlatformIO, and if so, what has worked well?
Hardware Design Question:
The firmware is approaching production readiness, and I’m now preparing a custom PCB that integrates the ESP32, power management, communication interfaces, and display connections. The board will likely be manufactured through PCBWay
For engineers who have transitioned from development boards to production hardware:
-
Need help with separating GND and Power Panels( How to Design an Efficient PCB Grounding System )?
-
What hardware issues appeared only after moving away from ESP32 development boards?
-
Are there PCB layout practices that significantly improve wireless performance and long-term reliability?
-
Have you found dedicated RF design reviews worthwhile before releasing a production board?
-
Which PCB fabrication or inspection options provided the most value during early production runs?
Wiring Harness and Connector Question:
The final product will include several external sensors, communication ports, and power connections, so I’m evaluating custom wiring harnesses(https://www.unikeyic.com/blog/wiring-harness-connector-types.html) with locking connectors instead of individual cable assemblies.
For those building commercial embedded products:
-
What connector systems have worked best for ESP32-based products?
-
Have connector or harness-related failures been a major source of field issues?
-
Is it worth outsourcing harness manufacturing for low-to-medium production volumes?
-
How much attention do you typically give to strain relief and serviceability during the design phase?
Mechanical Enclosure Question:
The prototype currently operates on an open bench, but the final product will require a custom enclosure that accommodates the PCB, display, wiring harnesses, antennas, and external connectors.
I’m considering CNC-machined and rapid-prototyped enclosure options through Justway.
For those who have moved from prototype to production:
-
What enclosure design mistakes caused the most rework?
-
How do you account for antenna placement and RF performance inside a custom enclosure?
-
Have thermal issues appeared after moving ESP32-based products into sealed housings?
-
Any recommendations regarding enclosure materials, mounting methods, or long-term maintainability?
I’d appreciate hearing how others are managing PlatformIO-based projects as they transition from development prototypes to production-ready products.