
Lego gameboy main
greigs/OpenBrickGB
Functional / Playable Lego Game Boy Electronics - PCB Design Files
Texas InstrumentsExtended
0℃~+125℃ 1 1A 1mA 3.5V~28V 4.2V 800mV Charging IC Lithium Battery Support Support WSON-10-EP(2x2) Battery Management ROHS
The BQ24040DSQR is a battery Management made by Texas Instruments in a WSON-10-EP(2x2) package with 11 pins. 0℃~+125℃ 1 1A 1mA 3.5V~28V 4.2V 800mV Charging IC Lithium Battery Support Support WSON-10-EP(2x2) Battery Management ROHS.
PCBKit's library has its KiCad symbol (EasyEDA_Pro:BQ24040DSQR, from EasyEDA Pro) and its footprint (EasyEDA_Cloud:WSON-10_L2.0-W2.0-P0.40-BL-EP, from EasyEDA), ready for a KiCad board. 111,711 are in stock at JLCPCB (part C81080). 26 open-source boards in 22 repositories on GitHub use it.
| Parameter | Conditions | As printed | Page |
|---|---|---|---|
| Input voltage | IN (with respect to VSS) | min -0.3 · max 30 V | 6 |
| Input voltage | OUT (with respect to VSS) | min -0.3 · max 7 V | 6 |
| Input voltage | PRE-TERM, ISET, ISET2, TS, CHG, PG (with respect to VSS) | min -0.3 · max 7 V | 6 |
| Input current | IN | max 1.25 A | 6 |
| Output current (continuous) | OUT | max 1.25 A | 6 |
| Output sink current | CHG | max 15 mA | 6 |
| Junction temperature TJ | min -40 · max 150 °C | 6 | |
| Storage temperature Tstg | min -65 · max 150 °C | 6 | |
| Electrostatic discharge(3) V(ESD) | Human-body model (HBM), per ANSI/ESDA/JEDEC JS-001(1) | min -3000 · max 3000 V | 6 |
| Electrostatic discharge(3) V(ESD) | Charged-device model (CDM), per JEDEC specification JESD22-C101 or ANSI/ESDA/JEDEC JS-002(2) | min -1500 · max 1500 V | 6 |
| IN voltage range VIN | min 3.5 · typ 28 V | 6 | |
| IN operating voltage range, Restricted by VDPM and VOVP VIN | min 4.45 · typ 6.45 V | 6 | |
| Input current, IN terminal IIN | typ 1 A | 6 | |
| Current, OUT terminal IOUT | typ 1 A | 6 | |
| Junction temperature TJ | min 0 · typ 125 °C | 6 | |
| Programs precharge and termination current thresholds RPRE-TERM | min 1 · typ 10 kΩ | 6 | |
| Fast-charge current programming resistor RISET | min 0.54 · typ 10.8 kΩ | 6 | |
| 10k NTC thermistor range without entering BAT_EN or TTDM RTS | min 1.66 · typ 258 kΩ | 6 | |
| Junction-to-ambient thermal resistance RθJA | DSQ (WSON), 10 PINS | typ 63.5 °C/W | 7 |
| Junction-to-case (top) thermal resistance RθJC(top) | DSQ (WSON), 10 PINS | typ 79.5 °C/W | 7 |
| Junction-to-board thermal resistance RθJB | DSQ (WSON), 10 PINS | typ 33.9 °C/W | 7 |
| Junction-to-top characterization parameter ψJT | DSQ (WSON), 10 PINS | typ 7.8 °C/W | 7 |
| Junction-to-board characterization parameter ψJB | DSQ (WSON), 10 PINS | typ 34.3 °C/W | 7 |
| Junction-to-case (bottom) thermal resistance RθJC(bot) | DSQ (WSON), 10 PINS | typ 7.5 °C/W | 7 |
| Undervoltage lock-out Exit UVLO | VIN: 0V → 4V Update based on sim/char | min 3.15 · typ 3.3 · max 3.45 V | 7 |
| Hysteresis on VUVLO_RISE falling VHYS_UVLO | VIN: 4V→0V, VUVLO_FALL = VUVLO_RISE –VHYS-UVLO | min 175 · typ 227 · max 280 mV | 7 |
| Input power good detection threshold is VOUT + VIN-DT VIN-DT | Input power good if VIN > VOUT + VIN-DT; VOUT = 3.6V, VIN: 3.5V → 4V | min 30 · typ 80 · max 145 mV | 7 |
| Hysteresis on VIN-DT falling VHYS-INDT | VOUT = 3.6V, VIN: 4V → 3.5V | typ 31 mV | 7 |
| Input over-voltage protection threshold VOVP | VIN: 5V → 12V (BQ24040) | min 6.5 · typ 6.65 · max 6.8 V | 7 |
| Hysteresis on OVP VHYS-OVP | VIN: 11V → 5V | typ 95 mV | 7 |
| USB/Adaptor low input voltage protection. Restricts lout at VIN-DPM VIN-DPM | Feature active in USB mode; Limit Input Source Current to 50mA; VOUT= 3.5V; RISET = 825Ω | min 4.34 · typ 4.4 · max 4.46 V | 7 |
| USB/Adaptor low input voltage protection. Restricts lout at VIN-DPM VIN-DPM | Feature active in Adaptor mode; Limit Input Source Current to 50mA; VOUT = 3.5V; RISET = 825 | min 4.24 · typ 4.3 · max 4.46 V | 7 |
| USB input I-Limit 100mA IIN-USB-CL | ISET2 = Float; RISET = 825Ω | min 85 · typ 92 · max 100 mA | 7 |
| USB input I-Limit 500mA, BQ24040, BQ24045 IIN-USB-CL | BQ24040; ISET2 = High; RISET = 825Ω | min 430 · typ 462 · max 500 mA | 7 |
| Highest Resistor value considered a fault (short). Monitored for Iout>90mA RISET_SHORT | RISET: 540Ω → 250Ω, Iout latches off. Cycle power to Reset. | min 280 · max 500 Ω | 7 |
| Maximum OUT current limit Regulation (Clamp) IOUT_CL | VIN = 5V, VOUT = 3.6V, VISET2 = Low, RISET: 540Ω → 250Ω, IOUT latches off after tDGL-SHORT | min 1.05 · max 1.4 A | 7 |
| OUT terminal short-circuit detection threshold/ precharge threshold VOUT(SC) | VOUT: 3V → 0.5V, no deglitch | min 0.75 · typ 0.8 · max 0.85 V | 7 |
| OUT terminal Short hysteresis VOUT(SC-HYS) | Recovery ≥ VOUT(SC) + VOUT(SC-HYS); Rising, no Deglitch | typ 77 mV | 7 |
| Source current to OUT terminal during short-circuit detection IOUT(SC) | VOUT < 0.8 V | min 10 · typ 15 · max 20 mA | 7 |
| Battery current into OUT terminal IOUT(PDWN) | VIN = 0V | max 1 uA | 7 |
| OUT terminal current, charging terminated IOUT(DONE) | VIN = 6V, VOUT > VOUT(REG) | max 6 uA | 7 |
| Standby current into IN terminal IIN(STDBY) | TS = LO, VIN ≤ 6V | max 125 uA | 7 |
| Active supply current, IN terminal ICC | TS = open, VIN = 6V, TTDM – no load on OUT terminal, VOUT > VOUT(REG), IC enabled | typ 0.8 · max 1 mA | 7 |
| Battery regulation voltage VOUT(REG) | VIN = 5.5V, IOUT = 25mA, (VTS-45°C ≤ VTS ≤ VTS-0°C, BQ24040) | min 4.16 · typ 4.2 · max 4.23 V | 8 |
| Battery hot regulation voltage VO_HT(REG) | VIN = 5.5V, IOUT = 25mA, (VTS-45°C≤ VTS ≤ VTS-0°C, BQ24040) | min 4.02 · typ 4.06 · max 4.1 V | 8 |
| Programmed Output “fast charge” current range IOUT(RANGE) | VOUT(REG) > VOUT > VLOWV; VIN = 5V, ISET2 = LO, RISET = 540 to 10.8kΩ | min 10 · max 1000 mA | 8 |
| Drop-Out, VIN – VOUT VDO(IN-OUT) | Adjust VIN down until IOUT = 0.5A, VOUT = 4.15V, RISET = 540 , ISET2 = Lo (adaptor mode); TJ ≤ 100°C | typ 325 · max 500 mV | 8 |
| Fast charge current factor KISET | RISET = KISET /IOUT; 50 < IOUT < 1000 mA | min 510 · typ 540 · max 570 AΩ | 8 |
| Fast charge current factor KISET | RISET = KISET /IOUT; 25 < IOUT < 50 mA | min 480 · typ 527 · max 600 AΩ | 8 |
| Fast charge current factor KISET | RISET = KISET /IOUT; 10 < IOUT < 25 mA | min 350 · typ 520 · max 680 AΩ | 8 |
| Pre-charge to fast-charge transition threshold VLOWV | min 2.4 · typ 2.5 · max 2.6 V | 8 | |
| Pre-charge current, default setting %PRECHG | VOUT < VLOWV; RISET = 1080Ω; BQ24040: RPRE-TERM= High Z | min 18 · typ 20 · max 22 %IOUT-CC | 8 |
| % Pre-charge Factor KPRE-CHG | VOUT < VLOWV, VIN = 5V, RPRE-TERM = 2k to 10kΩ; RISET = 1080Ω , RPRE-TERM = KPRE-CHG × %IFAST-CHG, where %IFAST-CHG is 20 to 100% | min 90 · typ 100 · max 110 Ω/% | 8 |
| % Pre-charge Factor KPRE-CHG | VOUT < VLOWV, VIN = 5V, RPRE-TERM = 1k to 2kΩ; RISET = 1080Ω, RPRE-TERM = KPRE-CHG × %IFAST-CHG, where %IFAST-CHG is 10% to 20% | min 84 · typ 100 · max 117 Ω/% | 8 |
| Termination Threshold Current, default setting %TERM | VOUT > VRCH; RISET = 1k; BQ24040: RPRE-TERM= High Z | min 9 · typ 10 · max 11 %IOUT-CC | 8 |
| % Term Factor KTERM | VOUT > VRCH, VIN = 5V, RPRE-TERM = 2k to 10kΩ ; RISET = 750Ω KTERM × %IFAST-CHG, where %IFAST-CHG is 10 to 50% | min 182 · typ 200 · max 216 Ω/% | 8 |
| % Term Factor KTERM | VOUT > VRCH, VIN = 5V, RPRE-TERM = 1k to 2kΩ ; RISET = 750Ω KTERM × %Iset, where %Iset is 5 to 10% | min 174 · typ 199 · max 224 Ω/% | 8 |
| Current for programming the term. and pre-chg with resistor. ITerm-Start is the initial PRE-TERM curent. IPRE-TERM | RPRE-TERM = 2k, VOUT = 4.15V | min 71 · typ 75 · max 81 uA | 8 |
| Elevated PRE-TERM current for, tTerm-Start, during start of charge to prevent recharge of full battery, ITerm-Start | min 80 · typ 85 · max 92 uA | 8 | |
| NTC bias current INTC-10k | BQ24040; VTS = 0.3V | min 48 · typ 50 · max 52 uA | 9 |
| 10k NTC bias current when Charging is disabled. INTC-DIS-10k | BQ24040; VTS = 0V | min 27 · typ 30 · max 34 uA | 9 |
| INTC is reduced prior to entering TTDM to keep cold thermistor from entering TTDM INTC-FLDBK-10k | BQ24040; VTS: Set to 1.525V | min 4 · typ 5 · max 6.5 uA | 9 |
| Termination and timer disable mode Threshold – Enter VTTDM(TS) | BQ24040; VTS: 0.5V → 1.7V; Timer Held in Reset | min 1550 · typ 1600 · max 1650 mV | 9 |
| Hysteresis exiting TTDM VHYS-TTDM(TS) | BQ24040; VTS: 1.7V → 0.5V; Timer Enabled | typ 100 mV | 9 |
| TS maximum voltage clamp VCLAMP(TS) | BQ24040; VTS = Open (Float) | min 1800 · typ 1950 · max 2000 mV | 9 |
| TS voltage where INTC is reduce to keep thermistor from entering TTDM VTS_I-FLDBK | BQ24040; VTS: 1.425V → 1.525V; INTC adjustment near this threshold | typ 1475 mV | 9 |
| Optional Capacitance – ESD CTS | BQ24040; TS terminal | typ 0.22 uF | 9 |
| Low temperature CHG Pending VTS-0°C | BQ24040; Low Temp Charging to Pending; VTS: 1V → 1.5V | min 1205 · typ 1230 · max 1255 mV | 9 |
| Hysteresis at 0°C VHYS-0°C | BQ24040; Charge pending to low temp charging; VTS: 1.5V → 1V | typ 86 mV | 9 |
| Low temperature, half charge VTS-10°C | BQ24040; Normal charging to low temp charging; VTS: 0.5V → 1V | min 765 · typ 790 · max 815 mV | 9 |
| Hysteresis at 10°C VHYS-10°C | BQ24040; Low temp charging to normal CHG; VTS: 1V → 0.5V | typ 35 mV | 9 |
| High temperature at 4.1V VTS-45°C | BQ24040; Normal charging to high temp CHG; VTS: 0.5V → 0.2V | min 263 · typ 278 · max 293 mV | 9 |
| Hysteresis at 45°C VHYS-45°C | BQ24040; High temp charging to normal CHG; VTS: 0.2V → 0.5V | typ 10.7 mV | 9 |
| High temperature Disable VTS-60°C | BQ24040; High temp charge to pending; VTS: 0.2V → 0.1V | min 170 · typ 178 · max 186 mV | 9 |
| Hysteresis at 60°C VHYS-60°C | BQ24040; Charge pending to high temp CHG; VTS: 0.1V → 0.2V | typ 11.5 mV | 9 |
| Charge Enable Threshold, (10k NTC) VTS-EN-10k | BQ24040; VTS: 0V → 0.175V | min 80 · typ 88 · max 96 mV | 9 |
| HYS below VTS-EN-10k to Disable, (10k NTC) VTS-DIS_HYS-10k | BQ24040; VTS: 0.125V → 0V | typ 12 mV | 9 |
| Temperature regulation limit TJ(REG) | typ 125 °C | 9 | |
| Thermal shutdown temperature TJ(OFF) | typ 155 °C | 9 | |
| Thermal shutdown hysteresis TJ(OFF-HYS) | typ 20 °C | 9 | |
| Logic LOW input voltage VIL | ISET2; Sink 8 uA | max 0.4 V | 9 |
| Logic HIGH input voltage VIH | ISET2; Source 8 uA | min 1.4 V | 9 |
| Sink current required for LO IIL | ISET2; VISET2 = 0.4V | min 2 · max 9 uA | 9 |
| Source current required for HI IIH | ISET2; VISET2 = 1.4V | min 1.1 · max 9.5 uA | 9 |
| ISET2 Float Voltage VFLT | min 575 · typ 900 · max 1225 mV | 9 | |
| Output LOW voltage VOL | CHG and PG; ISINK = 5 mA | max 0.4 V | 9 |
| Leakage current into IC ILEAK | CHG and PG; V CHG = 5V, V PG = 5V | max 1 uA | 9 |

greigs/OpenBrickGB
Functional / Playable Lego Game Boy Electronics - PCB Design Files

omniframe-art/Omniframe-Hardware
Omniframe is an open source e-paper digital frame. This repository includes the source and fabrication files for the main and secondary boards for driving the 13.3" Monochrome e-ink display.





ALECIA13/EEE3088F-2025
This repository contains the Power Module for a Micro-Mouse robot project, developed as part of the EEE3088F (2025) course.

BirryGit/Battery-Powered-Meshtastic-Board
I want to learn how to make PCBs, and this seemed like a good idea. I originally was following the Stasis tutorial, but veered away from it significantly. I want to get into meshtastic, so this is awesome :)
Yes. The symbol is EasyEDA_Pro:BQ24040DSQR and the footprint EasyEDA_Cloud:WSON-10_L2.0-W2.0-P0.40-BL-EP, both drawn on this page. PCBKit places them on a board for you when you design with it.
WSON-10-EP(2x2), with 11 pins. Its footprint is drawn on this page.
Texas Instruments publishes it: the Datasheet link on this page opens it.
JLCPCB lists it as part C81080, with 111,711 in stock; the sellers' links on this page open their listings.
Parts like it in the library: the BQ24045DSQR by Texas Instruments, the SN2040DSQR by Texas Instruments and the BQ24041DSQT by Texas Instruments. Check their datasheets: a part that fits the footprint may still differ in its ratings.
26 boards in 22 repositories on GitHub; the most starred are listed on this page, with their KiCad files.