diff --git a/libtest.png b/libtest.png index d60bcb7..78e37d5 100644 Binary files a/libtest.png and b/libtest.png differ diff --git a/readme.md b/readme.md index f60e5a1..cad61d4 100644 --- a/readme.md +++ b/readme.md @@ -2461,6 +2461,7 @@ PCBs and perfboard with optional components. The shape can be a rectangle with o | 1 | `pcb(EnviroPlus)` | Enviro+ | | 1 | `pcb(ExtruderPCB)` | Extruder connection PCB | | 1 | `pcb(Keyes5p1)` | Keyes5.1 Arduino Uno expansion board - not shown | +| 1 | `pcb(LIPO_fuel_gauge)` | LIPO fuel gauge | | 1 | `pcb(MP1584EN)` | MP1584EN 3A buck converter | | 1 | `pcb(MT3608)` | MT3608 boost converter module | | 1 | `pcb(Melzi)` | Melzi electronics - not shown | diff --git a/tests/png/pcbs.png b/tests/png/pcbs.png index b50c3a4..7a4b249 100644 Binary files a/tests/png/pcbs.png and b/tests/png/pcbs.png differ diff --git a/vitamins/pcbs.scad b/vitamins/pcbs.scad index 27eedad..abf03a3 100644 --- a/vitamins/pcbs.scad +++ b/vitamins/pcbs.scad @@ -765,9 +765,38 @@ XIAO = [ ], [] // accessories ]; -; -tiny_pcbs = [XIAO, MP1584EN, TP4056, ESP_01]; +LIPO_fuel_gauge = [ + "LIPO_fuel_gauge", "LIPO fuel gauge", + 24, 10, 1.6, // Size + 0, // corner radius + 1, // mounting hole diameter + 1.8, // pad around mounting hole + "red", // color + false, // true if parts should be separate BOM items + [for(x = [0:2], y = [-1,1]) [x * 2.54 + 5.27, y * 1.5 * 2.54 + 5], + for(x = 3, y = [-1,1]) [x * 2.54 + 5.27, y * 0.5 * 2.54 + 5]], + [ // components + [17, 5, 90, "jst_ph", 2, true], + [2.54 + 5.27, 1.5 * 2.54 + 5, 0, "-2p54joiner", 3, 1], + [2.54 + 5.27, -1.5 * 2.54 + 5, 0, "-2p54joiner", 3, 1], + [3 * 2.54 + 5.27, 5, 0, "-2p54joiner", 1, 2], + [6.4 + 1.5, 5, 0, "chip", 3, 2, 0.8], + [1.2, 2.5, 90, "smd_res", RES0603, "472"], + [2.4, 2.5, 90, "smd_res", RES0603, "472"], + [1.2, -2.5, 90, "smd_res", RES0603, "472"], + [2.4, -2.5, 90, "smd_res", RES0603, "472"], + + [10.35, -4, -90, "smd_res", RES0603, "181"], + [10.35, 4, -90, "smd_res", RES0603, "102"], + + [12.89, 1.5 * 2.54 + 5, 0, "smd_cap", CAP0603, 0.85], + [12.89,-1.5 * 2.54 + 5, 0, "smd_cap", CAP0603, 0.85], + ], + [] // accessories +]; + +tiny_pcbs = [XIAO, MP1584EN, TP4056, ESP_01, LIPO_fuel_gauge]; pcbs = [RAMPSEndstop, MT3608, PI_IO, ExtruderPCB, ZC_A0591, RPI0, EnviroPlus, ArduinoUno3, ArduinoLeonardo, WD2002SJ, RPI3, RPI4, BTT_SKR_MINI_E3_V2_0, BTT_SKR_E3_TURBO, BTT_SKR_V1_4_TURBO, DuetE, Duex5];