Minecraft Lantern PCB
Table
| Function | Selected direction | Rationale |
|---|---|---|
| Charger IC | TP4056-42 ESOP-8 | Common 1S Li-ion/LiPo charger, 4.2 V termination, PROG resistor charge-current setting, usable Flux library part. |
| USB input | USB-C receptacle, charge-only | Provides 5 V input; CC1/CC2 require 5.1 kΩ pull-downs for USB-C source detection. Data pins unused. |
| Battery connector | JST PH 2-pin, B2B-PH-K-S(LF)(SN) | Beginner-friendly through-hole, common with 1S LiPo packs, 2 A rating gives large margin over LED load. |
| ON/OFF switch | SS-12D10L5 SPDT slide switch used as SPST | Library did not return a small true SPST with suitable current rating; SPDT center/common plus one throw provides on/off behavior. |
| LEDs | 6× warm-white 2835 LEDs | Compact and bright enough for diffuser lighting. Use one resistor per LED. |
| Passives | Generic 0805 resistors/capacitors where possible | Larger SMD passives are easier to hand solder than very small packages and fit comfortably on a 60 mm board. |
RPROG = 1100 / IBAT where current is in mA if R is in kΩ per datasheet table.Table
| Rail | Load | Typical | Peak/design case |
|---|---|---|---|
| Switched battery LED rail | 6 LEDs, target ~3 mA each | ~18 mA | ~30 mA at 5 mA each |
| Battery connector | LED rail load | ~18 mA | ≥30 mA |
| USB-C 5 V | TP4056 charger | ~130 mA configured | within default USB capability |
(4.2 - 3.0) / 330 ≈ 3.6 mA per LED if Vf is 3.0 V.Component Direction
TP4056 Datasheet Notes
Power Budget
LED Resistor Estimate
Runtime Estimate
Known Risks / Assumptions