Analog Bicycle Light Schematic
Bottom for standalone artwork on this stackup, so I’m applying that exact layer now.J_USB, R_CC1, R_CC2, C_USB_IN+5V_USB, GND, CC1_RD, CC2_RDJ_USB provides the USB-C 5 V input for charging only.R_CC1 and R_CC2 are 5.1 kΩ pull-down resistors on CC1 and CC2.C_USB_IN provides input capacitance on +5V_USB.U_CHG (MCP73831T-2DCI/OT), R_PROG, D_CHG, R_CHG_LED, C_CHG_IN, C_BAT+5V_USB, BAT_SYS, CHG_PROG, CHG_STATUS_N, CHG_LED_A, GNDU_CHG charges a single-cell Li-ion/Li-Po battery from +5V_USB.R_PROG sets the charge current.D_CHG and R_CHG_LED provide charge-status indication.J_BATBAT_SYS, GNDJ_BAT is the external 2-pin JST-PH battery connector.BAT_SYS / BAT+.GND.BAT_SYS is approximately 3.0 V to 4.2 V.U_DARK (LM393DRG4), R_LDR, R_LDR_BIAS, RV_DARK_3P, R_DARK_PUBAT_SYS, LDR_SENSE, DARK_REF, DARK_OK, GNDR_LDR and R_LDR_BIAS form the light-dependent sensing divider.RV_DARK_3P is the adjustable threshold trimmer.U_DARK compares LDR_SENSE against DARK_REF.DARK_OK is the comparator output and is pulled up to BAT_SYS by R_DARK_PU.S_MOTION, R_MOTION_PUBAT_SYS, MOTION_TRIGGER, GNDS_MOTION is the vibration/motion switch.R_MOTION_PU pulls MOTION_TRIGGER up to BAT_SYS.MOTION_TRIGGER.U_TIMER (TLC555CDR), R_TIME, C_TIME, C_CTRLBAT_SYS, MOTION_TRIGGER, MOTION_ON, TIMER_RC, TIMER_CTRL, GNDU_TIMER is a CMOS 555 timer configured as a monostable.R_TIME = 1 MΩ and C_TIME = 47 µF set the on-time, approximately 50 seconds.C_CTRL is a 10 nF control-pin capacitor.MOTION_ON.D_OR1, D_OR2, R_LED_EN_PDDARK_OK, MOTION_ON, LED_ENABLE, GNDD_OR1 and D_OR2 diode-OR the darkness and motion signals.LED_ENABLE goes active if DARK_OK or MOTION_ON is active.R_LED_EN_PD is a 100 kΩ pulldown on LED_ENABLE.U_LED (TPS61165DBVT), L_BOOST, D_BOOST, C_LED_IN, C_LED_OUT, R_SENSEBAT_SYS, LED_ENABLE, BOOST_SW, LED_OUT, FB, GNDU_LED is the constant-current boost LED driver.LED_ENABLE drives the TPS61165 CTRL input.L_BOOST and D_BOOST form the boost converter power path.R_SENSE sets LED current through the feedback path.LED_OUT is the boosted LED-string voltage only, not a general power rail.D_LED1, D_LED2LED_OUT, LED_SERIES_MID, FB, GNDD_LED1 and D_LED2 are high-power white LEDs connected in series.LED_OUT through D_LED1, then D_LED2, then to the FB current-sense path.TP, TP1, TP2, TP3, TP4, TP5, TP6+5V_USB, BAT_SYS, GND, DARK_OK, MOTION_TRIGGER, MOTION_ON, LED_OUT+5V_USB: USB-C 5 V charging input.BAT_SYS: protected/external 1S battery system rail, approximately 3.0 V to 4.2 V.LED_OUT: boosted LED-string voltage from the TPS61165 driver.GND: common ground net for the whole schematic.+5V_USB to the charger.J_BAT.BAT_SYS.DARK_OK.MOTION_ON.DARK_OK and MOTION_ON are diode-ORed into LED_ENABLE.LED_ENABLE turns on the TPS61165 LED driver.BAT_SYS to LED_OUT and regulates current through the two series white LEDs.GND is the common ground net for the schematic.Overview
Main Functional Blocks
1. USB-C input / +5V_USB
2. Li-ion charger
3. Battery connector / BAT_SYS
4. Darkness detector
5. Motion detector
6. TLC555 timer
7. OR logic
8. TPS61165 LED driver
9. LED output
10. Test points
Main Power Nets
Basic Signal Flow
Notes