Project Specification — Board 1
Status: PCB prototype revision using external certified 2S charger/BMS modules; no raw-cell charging/protection is implemented on-board.
Project Overview
Central controller for a solar-powered bee monitor. Board 1 carries a plug-in 38-pin ESP32 NodeMCU-32 development board, powers and breaks out environmental/motion/load-cell/audio/light sensors, controls an ESP32-CAM and remote bee-gate interface, and manages a protected 2S Li-ion pack charged from a nominal 12 V / 30 W solar panel.
Intended Use
Outdoor prototype in a weather-resistant enclosure. This design is not safety certified. Li-ion and solar hardware require qualified engineering review, controlled bench validation, and final enclosure/environmental testing.
What the Device Should Do
- Preserve NodeMCU onboard USB and UART0 programming.
- Read SCD40, SHT31-D, MPU-6050, OPT3001, ADXL345, HX711, and INMP441 breakouts.
- Switch ESP32-CAM and gate 5 V loads off by default.
- Communicate with the gate over half-duplex RS-485 and expose UART/control.
- Accept protected output only from an external certified 2S charger/BMS module. Raw solar and B-/B1/B+ interfaces are diagnostic/isolated and are not a charging path.
- Monitor protected battery and solar voltages on ADC1.
Main Features
Solar input protection; 2S charger; primary pack protection and balancing; regulated 5 V and clean 3.3 V rails; keyed/labeled sensor headers; camera UART/power; protected RS-485 gate port; status/test points.
System Architecture
Solar panel -> fuse/reverse/TVS/filter -> 2S charger -> 2S cells
-> protection + balance -> protected battery
protected battery -> 5 V buck -> NodeMCU VIN, camera switch, gate switch
-> 3.3 V regulator -> sensor headers, RS-485, mux
NodeMCU -> I2C/SPI/I2S/HX711/UART/ADC/control interfaces
Hardware Subsystems
- Isolated raw-solar diagnostic interface only.
- External certified 2S charger/BMS module (off-board, mandatory).
- Protected battery input from the external module; raw B-/B1/B+ diagnostics remain isolated.
- 5 V high-current buck and 3.3 V sensor regulator.
- 38-pin NodeMCU-32 carrier headers.
- Sensor, camera, and gate connectors.
- ADC monitoring and test/status points.
Interfaces and Connections
- Solar: 2-pin outdoor-rated field connector, 24 V maximum design input.
- Battery: B-, B1, B+, NTC; matched 2S1P 18650, 8.4 V full.
- Sensor headers: explicit 3.3 V unless a breakout requires 5 V and verified level compatibility.
- Gate: switched 5 V, GND, RS-485 A/B; UART TX/RX and DE/~RE control available locally.
- NodeMCU carrier: two 19-position 2.54 mm female rows; assumed original ESP32 DevKit/NodeMCU-32 38-pin mapping with 25.4 mm row-center spacing. This is a procurement assumption, not a universal standard. Exact pin order, USB-end orientation and spacing must be verified against the purchased module before insertion or PCB work. USB and antenna ends remain unobstructed.
Power and Runtime Expectations
2S1P 3000 mAh pack, 6.0–8.4 V operating range. Nominal energy about 22.2 Wh. Solar panel assumed 18 Vmp, 22–24 V Voc, 30 W. Charge target approximately 1.2 A, subject to charger/reference-design verification.
Power Tree and Power Budget
See Power Budget Analysis. Provisional design targets: 5 V rail >=4 A peak capability; 3.3 V rail >=1 A; protected battery path >=5 A pulse; solar input path >=2.5 A continuous with voltage rating above 24 V.
Manufacturing and Assembly Expectations
Professional mixed SMD/through-hole 100 mm × 100 mm, 4-layer prototype. Beginner-friendly pluggable/locking connectors where practical. External certified 2S charger/BMS is mandatory.
Firmware-Relevant Hardware Requirements
UART0 GPIO1/3 reserved. I2C preferred GPIO21/22. VSPI GPIO18/19/23 with non-strapping CS. GPIO6–11 prohibited. GPIO34–39 input-only. ADC monitors use ADC1 only. Load switches must default OFF during reset.
Physical Design Expectations
NodeMCU antenna keepout and USB access are assumptions pending exact module identification. External connectors must be enclosure-accessible and protected. Outdoor rating depends on final connector selection, enclosure, seals, creepage, and coating.
Important Design Decisions
- Use an I2C mux unless opposite SHT31-D and OPT3001 breakout addresses are proven; generic breakout strap state is not guaranteed.
- ADXL345 uses SPI.
- UART0 remains dedicated to programming/logging; camera and gate use other hardware UART mappings.
- No integrated charger/BMS is present. Only an external certified 2S charger/BMS may be used; diagnostic raw interfaces must not be used as a power/charging path.
Assumptions and Limitations
Breakout boards may include regulators, pull-ups, or level shifting; headers are defined for explicit rail voltage and firmware must not assume 5 V logic tolerance. Exact NodeMCU mechanical/pin-order variant and regulatory module identity remain procurement-controlled items.
Success Criteria
Low-voltage interface schematic and documentation complete; safety-critical power blocks may only be considered complete after their hard blockers are closed. No PCB changes.
Change Notes
Focused completion pass
- Replaced TPS56528DDA because its Flux footprint contained malformed duplicate unnetted exposed-pad geometry that blocked routing. Final 5 V regulator is TPS56637RPAR, rated 4.5–28 V input and 6 A continuous. Support network follows the TI 5 V table: 3.3 uH inductor, 2x22 uF input, 2x22 uF output, 100 nF VIN-PGND high-frequency capacitor, 100 nF BOOT-SW capacitor, 73.2k/10k feedback, 100k PG pull-up, MODE tied to GND for Eco-mode, and AGND joined to PGND at the regulator ground region.
- Completed TLV62568DBV 3.3 V support network: 2.2 uH, 10 uF input/output, 450k/100k feedback, EN pull-up and test point.
- Added CAM_5V_SW/GATE_5V_SW, default-off 100k enable pull-downs, 10 uF input and 100 uF output reservoirs.
- Added SM712 RS-485 protection, endpoint-only jumper-selectable 120 ohm termination, DE default-low, and local decoupling.
- Added ADC1_SOLAR_GPIO36 and ADC1_BAT_GPIO39 filtered dividers and test points; charger and primary 2S protection/balancing remain blocked and isolated.
Added verified library carrier headers, TCA9548A, TPS56528, TLV62568, SN65HVD75 and TPS2034 candidates, final GPIO allocation, connector interfaces, and required project files. Charger/BMS/solar protection/ADC support networks remain deliberately isolated rather than fabricated from unverified assumptions.