Bluetooth LED Controller with Accelerometer


"Charging Safety and USB Lockout" completed.
I applied and checked the charging and USB lockout wiring. USB now powers the ESP32 even with the main switch off, as planned, and forces all three strip power switches and data buffers off in hardware. The 500 mA USB limit and approximately 445 mA charge setting are unchanged; the controller shares that USB budget, so actual charging can be slower.
I found one remaining safety gap: if the 3.3 V rail fails during charging, the temperature-sense circuit can still hide a cold battery. I’ll check how to isolate the charger’s sensor input from the controller so the cutoff doesn’t depend on the logic rail. The fresh electrical rules check still reports 5 errors and 35 warnings, with none introduced by these edits. No bench testing or layout work was done.
Finished execution
"Isolate Charger Thermistor Input" completed.
The USB LED lockout is wired, but the charger’s temperature input still needs isolation. Do not fabricate this revision or use it to charge a cell.
I added hardware clamps that disable all three strip power switches and data buffers whenever USB is connected. I also moved the 3.3 V regulator’s input capacitor to the correct rail and changed the charge-timer resistor to 69.8 kΩ. USB now powers the ESP32 even with the main switch off. The 500 mA USB input limit and approximately 445 mA charge setting are unchanged, though the controller shares that USB budget.
I verified the changed connections in the schematic. The latest electrical rules check still lists 5 errors and 36 warnings. No bench testing, placement, or routing was completed.
Next: Isolate the charger’s thermistor input from the ESP32 and its bias circuit. Those connections can still mask a cold or disconnected sensor if the 3.3 V rail fails or during USB startup. I recommend keeping the LED outputs disabled until a separate way to monitor battery temperature during discharge is validated.
I recorded the changes and remaining tests in Charging Safety Follow-up. Execution stopped because your account ran out of ACUs.

Last modified 9d ago

Accelerometer Integration Status
User selected LIS3DH for firmware ecosystem support.
Circuit added
U5 LIS3DHTR; C21 100 nF VDD, C22 10 µF ceramic VDD, C23 100 nF VDDIO; R12/R13 4.7 kΩ I2C pullups. Functional group SENSE U5 Accelerometer.
Reported net readback: VDD/VDDIO/CS to 3V3; SA0, RES pin 10 and both grounds to GND. SDA to ESP32-C3 IO6; SCL to IO7; INT1 to IO10. Address 0x18. INT2, ADC1–3 and NC pins marked No Connect. Circuit report received but independent final verification was interrupted by ACU exhaustion. Schematic arrangement and PCB placement remain undone.
Checks
Reported ERC findings: SA0 tied to GND and INT1 to bidirectional GPIO classified as expected by datasheet review; existing undriven 3V3 finding persists, likely regulator pin metadata, not independently confirmed. Do not claim zero ERC. Review GPIO8 boot requirement before manufacturing.
Firmware still pending
Update existing firmware-starter-esp32-c3-mini-1-n4, not a duplicate. Use Wire SDA6/SCL7; interrupt IO10; address 0x18; Adafruit LIS3DH, Unified Sensor and BusIO libraries. Initialize WHO_AM_I 0x33, ±4g, 100 Hz; read acceleration and handle missing sensor without blocking LEDs/Bluetooth. Verify library APIs, interrupt configuration and compile before claiming firmware tested. Existing firmware and specification/design notes were NOT updated this session.
PCB proposal awaiting user approval
Reported component area ~854 mm² before addition, estimated ~879 mm² with sensor block. Routing allowance 2.5× => 2198 mm², equivalent circular diameter 52.9 mm. Propose provisional 55 mm circle (2376 mm², ~37% fill), retaining existing Standard 4 Layer stackup. No outline/placement/routing change made. Enclosure/mounting constraints not established. Original chat has reference-photo URL; image was not independently inspected this session. Confirm 55 mm or obtain physical fit limits before outline mutation; decide/apply high-current net constraints before placement.
Resume
Inspect current circuit and firmware/docs, verify sensor wiring and reported ERC classifications, update existing firmware/spec/notes, confirm board setup with user, then size board. Retrieve result for existing integration work before duplicating changes. Execution stopped due to depleted ACUs.
  • Circuit added

  • Checks

  • Firmware still pending

  • PCB proposal awaiting user approval

  • Resume