
Base promicro
google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards

A 900W 3-Stage Cubic Bidirectional DC-DC Converter (24V/300V, 50kHz) featuring quadratic/cubic voltage gains, mode-dependent PID control, PSCAD simulations, and custom KiCad PCB hardware implementation.
Bidirectional Project is an open-source printed circuit board by JessMamba, from the JessMamba/Bidirectional-DC-DC-Converter repository on GitHub. It is a 2-layer board of 116.5 × 118 mm with 30 parts on 23 nets, routed with 201 tracks and 15 vias.
Its parts include 6 transistors, 4 capacitors and 3 inductors. It belongs with the power boards of this library.
A high-gain, non-isolated, high-efficiency Three-Stage Cubic Bidirectional DC-DC Converter designed for renewable energy systems, battery energy storage systems (BESS), and electric vehicle (EV) microgrid interfaces (V2G/G2V).
This repository contains full theoretical derivations (CCM/DCM), circuit parameter calculations, 3D MATLAB optimization surface scripts, mode-dependent closed-loop PID controller designs, PSCAD simulation models, and KiCad PCB designs/Gerber files with hardware prototype implementation details.
Conventional boost and buck converters suffer from extreme duty cycle requirements, excessive semiconductor stress, and sharp efficiency degradation when operating at large voltage conversion ratios. To eliminate these constraints, this project proposes a Three-Stage Cubic Bidirectional DC-DC Converter.
By leveraging a cubic voltage transfer ratio ($M_{ ext{Boost}} = rac{1}{(1-D)^3}$ and $M_{ ext{Buck}} = D^3$), the converter achieves a wide voltage conversion range (24V DC $\leftrightarrow$ 300V DC) at moderate duty cycles ($D_{ ext{Boost}} = 0.57$, $D_{ ext{Buck}} = 0.43$) while maintaining lower voltage and current stresses on power MOSFETs. The topology utilizes 6 MOSFET switches, 4 capacitors, and 3 inductors, achieving a calculated peak efficiency of 94.16% due to reduced switching losses (only 1 or 2 switches actively triggered in each sub-interval).
| Parameter | Symbol | Nominal Value | Unit |
|---|---|---|---|
| Rated Power | $P_{o}$ | 900 | W |
| Low Voltage Side (LV) | $V_{LV}$ | 24 | V |
| High Voltage Side (HV) | $V_{HV}$ | 300 | V |
| Switching Frequency | $f_s$ | 50 | kHz |
| Peak Efficiency | $\eta_{ ext{peak}}$ | 94.16 | % |
| Boost Duty Cycle ($24 ext{V} o300 ext{V}$) | $D_{ ext{boost}}$ | 0.5703 | - |
| Buck Duty Cycle ($300 ext{V} o24 ext{V}$) | $D_{ ext{buck}}$ | 0.4305 | - |
| Maximum Duty Cycle Limit | $D_{ ext{max}}$ | 0.90 | - |
| Ground Topology | - | Common Ground | - |
The converter consists of three energy storage inductors ($L_1, L_2, L_3$), two intermediate energy transfer capacitors ($C_1, C_2$), input/output filtering capacitors ($C_L, C_H$), and 6 MOSFET switches ($S_1, S_2, S_3, S_4, S_5, S_6$) configured for bidirectional power flow.
+--------------------[ S1 ]-------------------+
| |
| S2 S3 |
[LV Input] -----+---(L1)---[--]---+---(L2)---[--]----+ |
(24V DC) | | | |
| --- C1 --- C2 |
--- CL --- --- |
--- | | |
| GND [S4]----+---(L3)-+---[S6]---+--- [HV Output]
| | | | (300V DC)
| GND [S5] --- CH
| | ---
+---------------------------------------------+----------+--- GNDEnergy flows from Low Voltage ($V_{LV} = 24 ext{V}$) to High Voltage ($V_{HV} = 300 ext{V}$).
Energy flows from High Voltage ($V_{HV} = 300 ext{V}$) to Low Voltage ($V_{LV} = 24 ext{V}$).
Inductances and capacitances are dimensioned analytically to ensure robust CCM operation with current and voltage ripple $<1%$:
$$L_1 \ge rac{D_{ ext{boost}} V_{LV}}{\Delta i_{L1} f_s}, \quad L_2 \ge rac{D_{ ext{boost}} V_{LV}}{(1-D_{ ext{boost}}) \Delta i_{L2} f_s}, \quad L_3 \ge rac{D_{ ext{boost}} V_{LV}}{(1-D_{ ext{boost}})^2 \Delta i_{L3} f_s}$$
| Component | Minimum Calculated (Boost) | Minimum Calculated (Buck) | Selected Hardware Value |
|---|---|---|---|
| Inductor $L_1$ | $0.3898 ext{ mH}$ | $0.2282 ext{ mH}$ | $330\ \mu ext{H}$ / High Current Toroid |
| Inductor $L_2$ | $0.7418 ext{ mH}$ | $0.5940 ext{ mH}$ | $330\ \mu ext{H}$ / High Current Toroid |
| Inductor $L_3$ | $1.1200 ext{ mH}$ | $1.1390 ext{ mH}$ | $330\ \mu ext{H}$ / High Current Toroid |
| Capacitor $C_1$ | $9.221\ \mu ext{F}$ | $9.018\ \mu ext{F}$ | $110\ \mu ext{F}$ / 100V Electrolytic |
| Capacitor $C_2$ | $9.518\ \mu ext{F}$ | $9.225\ \mu ext{F}$ | $110\ \mu ext{F}$ / 250V Electrolytic |
| Filtering $C_H$ | $4.276\ \mu ext{F}$ | $1.460\ \mu ext{F}$ | $470\ \mu ext{F}$ / 500V Electrolytic |
| Filtering $C_L$ | $25.10\ \mu ext{F}$ | $7.726\ \mu ext{F}$ | $470\ \mu ext{F}$ / 100V Electrolytic |
Total Voltage Stress (TVS) and Total Current Stress (TCS) are minimized due to intermediate stage capacitor sharing: $$ ext{TVS} = 3 V_{HV}, \quad ext{TCS} = 3 I_{LV}$$
| Feature / Topology | Ref [1] | Ref [2] | Ref [3] | Ref [4] | Proposed Converter |
|---|---|---|---|---|---|
| Element Count ($S-C-L$) | $4-1-2$ | $4-2-2$ | $5-3-2$ | $4-3-1$ | $6-4-3$ |
| Step-Down Gain | $D$ | $D/4$ | $D/2$ | $D^2$ | $D^3$ (Cubic) |
| Step-Up Gain | $rac{1}{1-D}$ | $rac{4}{1-D}$ | $rac{2}{1-D}$ | $rac{1}{(1-D)^2}$ | $rac{1}{(1-D)^3}$ (Cubic) |
| Common Ground | Yes | Yes | No | Yes | Yes |
| Rated Power [W] | $500$ | $500$ | $500$ | $1000$ | $900$ |
| Switching Freq. [kHz] | $50$ | $100$ | $50$ | $50$ | $50$ |
| Peak Efficiency [%] | $95.8%$ | $96.0%$ | $95.6%$ | $96.8%$ | $94.16%$ |
Since the open-loop transient response exhibits significant overshoot (>135% in Buck, ~48.6% in Boost) and steady-state error, a Mode-Dependent PID Control Strategy is implemented with distinct coefficients for Buck and Boost operations.
| Metric | Buck Open-Loop | Buck PID Closed-Loop | Boost Open-Loop | Boost PID Closed-Loop |
|---|---|---|---|---|
| Reference Voltage | $24.0 ext{V}$ | $24.000 ext{V}$ | $300.0 ext{V}$ | $300.000 ext{V}$ |
| Peak Voltage | $54.11 ext{V}$ | $24.61 ext{V}$ | $453.28 ext{V}$ | $307.44 ext{V}$ |
| Maximum Overshoot | $135.5%$ | $2.56%$ | $48.6%$ | $2.48%$ |
| Settling Time ($t_s, 2%$) | $6.9 ext{ ms}$ | $7.69 ext{ ms}$ | $138.6 ext{ ms}$ | $33.87 ext{ ms}$ |
| Steady-State Error | $1.236 ext{V}$ (5.15%) | $ pprox 0 ext{V}$ | $-2.832 ext{V}$ (0.94%) | $ pprox 0 ext{V}$ |
Full switching circuit topologies for both Boost ($24 ext{V} o 300 ext{V}$, $D=0.57$) and Buck ($300 ext{V} o 24 ext{V}$, $D=0.43$) were modeled in PSCAD.
Key simulation highlights:
| Designator | Component / Part | Specification / Value | Package | Manufacturer / Link |
|---|---|---|---|---|
| Q1, Q5, Q6 | SRC65R032FB | Super-Junction N-Ch MOSFET (650V, 88A, $32 ext{m}\Omega$) | TO-247 | Datasheet Link |
| Q2, Q3, Q4 | IRFP4227PBF | Power N-Ch MOSFET (200V, 65A, $21 ext{m}\Omega$) | TO-247 | Datasheet Link |
| L1, L2, L3 | Custom Toroidal Inductors | $330\ \mu ext{H}$, High Current Ferrite Core | Radial | Custom Wound |
| C1, C2 | Electrolytic Capacitors | $110\ \mu ext{F}$ / 100V & 250V | Radial | Standard Industrial |
| CL, CH | Filtering Capacitors | $470\ \mu ext{F}$ / 100V & 500V | Radial | Standard Industrial |
| J1-J16 | High Current Screw Terminals | 2-Pin Screw Terminal Connectors | 5.08mm Pitch | Standard |
The hardware prototype was designed using KiCad Electronic Design Suite, obeying high-frequency power electronics layout rules:
├── docs/
│ ├── Bidirectional_DC_DC_Converter_Project_Report.pdf # Full Turkish Graduation Project Report
│ └── PCB_Schematics_and_3D_Render.png # KiCad 3D layout views
├── hardware/
│ ├── KiCad_Project/ # KiCad Schematics & PCB layout files
│ ├── Gerbers/ # Production-ready Gerber manufacturing files
│ └── BOM.csv # Bill of Materials
├── matlab/
│ ├── passive_components_3d_surfaces.m # 3D parameter optimization scripts
│ ├── PID_Buck_ClosedLoop.m # Buck mode PID verification script
│ └── PID_Boost_ClosedLoop.m # Boost mode PID verification script
├── simulation/
│ ├── PSCAD_Boost_Circuit.pscx # PSCAD Boost mode simulation model
│ └── PSCAD_Buck_Circuit.pscx # PSCAD Buck mode simulation model
├── LICENSE # MIT License
└── README.md # Project README fileDeveloped as a Senior Capstone Project at Bursa Technical University, Department of Electrical & Electronics Engineering.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 6 | NMOS | Package_TO_SOT_THT:TO-3P-3_Vertical | Q1, Q2, Q3, Q4, Q5, Q6 |
| 2 | 330 | Inductor_THT:L_Toroid_Horizontal_D32.5mm_P28.90mm_Bourns_2300 | L2, L3 |
| 2 | Conn_01x02_Socket | TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mm | INPUT, OUTPUT |
| 1 | 110u | Capacitor_THT:CP_Radial_D16.0mm_P7.50mm | C3 |
| 1 | 110u | Capacitor_THT:CP_Radial_D13.0mm_P7.50mm | C2 |
| 1 | 470u | Capacitor_THT:CP_Radial_D16.0mm_P7.50mm | C1 |
| 1 | 470u | Capacitor_THT:CP_Radial_D35.0mm_P10.00mm_SnapIn | C4 |
| 1 | 750 | Inductor_THT:L_Toroid_Horizontal_D32.5mm_P28.90mm_Bourns_2300 | L1 |
| 1 | IDS1 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | IDS1 |
| 1 | IDS2 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | IDS2 |
| 1 | IDS3 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | IDS3 |
| 1 | IDS4 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | IDS4 |
| 1 | IDS5 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | IDS5 |
| 1 | IDS6 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | IDS6 |
| 1 | IL1 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | IL1 |
| 1 | IL2 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | IL2 |
| 1 | IL3 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | IL3 |
| 1 | PWM1 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | PWM1 |
| 1 | PWM2 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | PWM2 |
| 1 | PWM3 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | PWM4 |
| 1 | PWM5 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | PWM5 |
| 1 | PWM6 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | PWM6 |
| 1 | PWN4 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_Horizontal | PWM4 |

google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards


VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

tenderlove/initial-v
It's a BMW shifter converted to a Bluetooth Keyboard that you use with Vim

hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!


It measures 116.5 × 118 mm and has 2 copper layers, 1.6 mm thick.
30 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the JessMamba/Bidirectional-DC-DC-Converter repository on GitHub, at the commit this page was made from: the board is KiCad/Bidirectional_Project.kicad_pcb and its schematic KiCad/Bidirectional_Project.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask JessMamba before reusing the design.