Analog Bicycle Light Schematic
Bottom for standalone artwork on this stackup, so I’m applying that exact layer now.+5V_USB as the 5 V charging input.BAT_SYS, the protected/external 1S Li-ion/Li-Po system rail, approximately 3.0 V to 4.2 V.DARK_OK.MOTION_ON.DARK_OK and MOTION_ON feed Schottky diode OR logic into LED_ENABLE.LED_ENABLE drives TPS61165 CTRL directly.LED_OUT.Q_LED, R_GATE, and R_GATE_PD were removed.R_LED_EN_PD, a 100 kΩ pulldown from LED_ENABLE to GND.RV_DARK placeholder with RV_DARK_3P, a real 3-pin 100 kΩ trimmer potentiometer.RV_DARK_3P as BAT_SYS-to-GND divider with wiper on DARK_REF.LED_CONTROL to MOTION_ON.DARK_THRESH to DARK_REF.LDR_SENSE into LM393 IN+ and DARK_REF into LM393 IN-, with DARK_OK pulled up to BAT_SYS.J_BAT.LED_OUT is the boosted LED-string voltage only, approximately 6 V to 9 V depending on LED string; it is not a general power rail.Updated block structure
Corrections applied
Notes