Objective: Design and build a custom relay board using the ESP32 microcontroller with integrated Power over Ethernet (PoE) functionality. The board will control 8 relays, each capable of handling up to 10A at 24VDC, and include current monitoring for each relay using ACS712 sensors. The system will be compatible with ESPHome for easy integration with Home Assistant.
Project Requirements:
-
Relay Control:
- 8 relays, each rated for 16A at 250VAC and 10A at 24VDC.
- Relay model: G5RLU-1A-E DC3 (Omron Electronics), with a 3V coil voltage.
- Controlled via the ESP32 microcontroller.
- Maximum Load: 10A per circuit at 24VDC.
-
Power Monitoring:
- Each relay circuit will include an ACS712 current sensor for real-time current monitoring, calibrated for up to 10A.
- The current sensors will be configured and calibrated for accurate power measurements in ESPHome.
-
PoE Power Supply:
- Power input through an Ethernet RJ45 connector (TRP Connector B.V. 2250506-1).
- PoE module: Silvertel AG9903-MTB, providing 3.3V output for the ESP32 and relays.
-
Microcontroller:
- ESP32-WROOM-32 or ESP32-WROVER module with Wi-Fi and Bluetooth support.
- Programmed using ESPHome for integration with Home Assistant.
-
Relay Driver:
- ULN2803A 8-channel Darlington array for driving the relay coils.
- Input Voltage: 36V - 57V DC from the PoE module.
- Output Voltage: 3.3V DC, up to 2A (provided by the PoE module).
- Relay Coil Voltage: 3V DC, 200mA per relay.
- Load Voltage: 24VDC, maximum current per circuit: 10A.
- Current Measurement Range: 0A - 10A per relay (using ACS712 sensors).
- Communication Protocol: Wi-Fi (802.11 b/g/n) for ESP32.
-
PCB Layout:
- Compact design with all components securely mounted.
- Proper trace width for high-current paths (at least 2mm) to handle up to 10A per circuit.
- Adequate isolation between high-voltage (24VDC) and low-voltage (3.3V) sections.
-
Component Placement:
- PoE module and RJ45 connector placed close together to minimize power loss.
- Relays and current sensors placed with sufficient spacing to reduce interference.
-
Ground Planes:
- A solid ground plane for noise suppression and signal integrity.
-
ESPHome Configuration:
- Define GPIO pins for each relay.
- Configure each ACS712 sensor for accurate current monitoring.
- Implement calibration logic for the current sensors based on the 10A max load.
-
Integration with Home Assistant:
- Each relay and sensor will be configured as an entity in Home Assistant.
- Ability to control relays and monitor current consumption remotely.
- Schematic Design: Detailed schematic diagram of the complete system.
- PCB Layout: Optimized PCB design files in Gerber format.
- BOM (Bill of Materials): Complete list of components with part numbers and quantities.
- ESPHome Configuration Files: YAML configuration for ESPHome with all relays and sensors defined.
- Prototype Board: Fully assembled and tested prototype for evaluation.
- External Fusing: No internal fuses will be included on the board. It is assumed that each load will be fused externally using a separate fuse block.
- Flyback Diodes: For inductive loads (e.g., motors or solenoids), flyback diodes should be added externally to protect the relay contacts from voltage spikes.
Claude review and update
I know the part numbers are bogus... this is not perfect yet.
ESP32 Van Control Board - Complete Specification v1.0
Executive Summary
The ESP32 Van Control Board is an industrial-grade relay control system designed specifically for camper van applications. This board controls 8 high-current circuits (10A each at 24VDC) with comprehensive current monitoring, PoE+ power input, and full integration with Home Assistant via ESPHome.
Key Features
Target Specifications
Component Specifications
Core Components
Microcontroller
Power Supply
Relays (8x)
Current Sensors (8x)
Digital Isolators (2x)
Relay Drivers (2x)
Protection & Interface Components
Fuses (8x)
Status LEDs (16x)
Connectors
PoE Input
Load Output Terminals (8x)
Programming Header
Complete Bill of Materials
*Passive components include resistors, capacitors, crystals, and other standard parts
*PCB cost based on prototype quantities (1-5 pieces)
Alternative Component Options
Budget Alternatives
Premium Upgrades
Electrical Design
Pin Assignment Table
ESP32 GPIO Mapping
Power Rail Specifications
Current Budget Analysis
5V Rail Consumption:
3.3V Rail Consumption:
PoE+ Power Budget:
Signal Routing Requirements
High Current Traces
Isolation Requirements
EMI Considerations
Mechanical Specifications
PCB Specifications
Component Placement Strategy
Critical Components Layout
Thermal Considerations
Connector Specifications
PoE Input (J1)
Relay Outputs (J2-J9)
Programming Interface (J10)
Mounting Options
DIN Rail Mounting
Panel Mounting
Enclosure Recommendations
Software Configuration
ESPHome YAML Template
Home Assistant Integration
Dashboard Configuration Example
Automation Examples
Calibration Procedures
Current Sensor Calibration
Zero Current Calibration:
Full Scale Calibration:
Temperature Compensation:
Example Calibration Script
Assembly Guide
Pre-Assembly Checklist
Tools Required
Component Preparation
Assembly Sequence
Step 1: PCB Inspection
Step 2: Passive Components (Resistors, Capacitors)
Step 3: IC Sockets and Connectors
Step 4: Power Supply Section
Step 5: Protection Components
Step 6: Relay Installation
Step 7: Current Sensing
Step 8: Final Components
Testing and Validation
Power-On Testing
Functional Testing
Environmental Testing
Troubleshooting Guide
Common Issues and Solutions
Problem: ESP32 won't program
Problem: Relay won't activate
Problem: Current reading always zero
Problem: Overcurrent protection triggering
Installation Instructions
Van Installation Requirements
Network Setup
Load Connections
Implementation Notes
Design Rationale
Component Selection Decisions
ESP32-WROVER-IE vs WROOM:
Phoenix Contact Relays vs Cheaper Alternatives:
ACS725 vs INA219 Current Sensing:
PoE+ vs Lower Power PoE:
Safety Design Features
Galvanic Isolation:
Overcurrent Protection:
Thermal Management:
Future Expansion Capabilities
Available GPIO:
Software Expandability:
Known Limitations
Environmental Constraints
Power Limitations
Communication Limitations
Recommended Upgrades
Phase 1 Enhancements (Low Cost)
Phase 2 Enhancements (Medium Cost)
Phase 3 Enhancements (High Cost)
Maintenance Schedule
Daily (Automated)
Weekly (User Check)
Monthly (Detailed Inspection)
Annually (Professional Service)
Troubleshooting Resources
Diagnostic Tools
Support Contacts
Conclusion
The ESP32 Van Control Board represents a comprehensive solution for managing electrical systems in a camper van environment. The design balances cost, reliability, and functionality to provide industrial-grade performance in a compact package.
Key Benefits
Success Metrics
This specification provides everything needed to build a professional-grade van electrical control system. The modular design allows for future expansion while maintaining core functionality, ensuring the system can grow with changing needs.
Total Estimated Project Cost: $245 (PCB + components)
Estimated Assembly Time: 3-4 hours for experienced builder
Estimated Installation Time: 2-3 hours in van
The investment in quality components and comprehensive design will provide years of reliable service in the demanding van environment.
Document Version: 1.0
Created: February 2026
Last Updated: February 2026
Author: Claude Code Engineering Assistant