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

A minimalist, discrete AC-CDI circuit for small single-cylinder 2-stroke and 4-stroke engines powered by a stator exciter coil and an inductive pulse generator (pickup coil).
Capacitor discharge ignition is an open-source printed circuit board by Harshavar8jdm, from the Harshavar8jdm/capacitor-discharge-ignition repository on GitHub. It is a 2-layer board of 50 × 40 mm with 11 parts on 7 nets, routed with 29 tracks and 0 vias.
Its parts include 4 diodes, 2 capacitors, 2 resistors and 2 connectors.

A minimalist, discrete AC-CDI circuit for small single-cylinder 2-stroke and 4-stroke engines powered by a stator exciter coil and an inductive pulse generator (pickup coil).
Designed in KiCad for simple single-sided or double-sided DIY PCB fabrication with standard off-the-shelf discrete components.
This design implements a classic AC capacitive discharge ignition topology. Rather than relying on a 12V battery and a DC-DC boost converter, it runs directly off the high-voltage AC output generated by the stator's ignition source coil.
[ Stator Exciter (HV AC) ] ──> D1 (Rectifier) ──> C1 (400V Charge)
│
▼
[ Pickup Coil Signal ] ──> [ Gate Filter C2/R1/R2 ] ──> D4 (SCR Trigger) ──> [ High Voltage Ignition Coil ]AC_INPUT). Diode D1 (1N4007) half-wave rectifies this voltage, charging energy storage capacitor C1 (1 µF, 400V) up to ~250–350V DC across successive flywheel rotations.PICKUP). D3 clips negative flyback spikes, while C2 (3.3 µF), R1 (22kΩ), and R2 (1kΩ) filter noise to prevent premature firing from electrical EMI.D4 (2P4M SCR). Once latching occurs, D4 rapidly shorts the positive side of C1 to ground, dumping the stored energy (~40–60 mJ) through terminal J2 into the primary winding of the external ignition coil.IG) through an external handle switch diverts incoming AC charging pulses directly through D2 to ground, disabling capacitor charging and stopping the spark.
C1): 1 µF / 400V — Must be a Metallized Polypropylene (MKP) or Polyester (MKT) film capacitor. Standard electrolytics will fail under continuous high $dV/dt$ pulse current discharge.D4): 2P4M (400V–600V, 2A sensitive gate SCR in TO-92 or TO-220 package).D1, D2, D3): 1N4007 (1000V, 1A reverse rating).C2, R1, R2):
R1 = 22 kΩ & R2 = 1 kΩ form a voltage divider to limit gate current.C2 = 3.3 µF / 50V (Non-polarized film or X7R ceramic) smooths high-frequency noise.D3 = 1N4007 protects the gate by sinking negative pickup voltage swings.J1 - 4-Pin Screw Terminal / 5.08mm pitch)| Pin # | Label | Description | Connected Device |
|---|---|---|---|
| 1 | IG | Ignition Kill Switch Wire | Engine stop switch / Key switch (shorts to GND to kill spark) |
| 2 | AC_INPUT | High Voltage AC Source | Magneto / Stator High Voltage Exciter Coil (~100V–300V AC) |
| 3 | PICKUP | Timing Trigger Input | Reluctance / Pulser Coil Signal Wire |
| 4 | GND | Chassis / Engine Ground | Engine block / Frame Ground connection |
J2 - 2-Pin Screw Terminal / 5.08mm pitch)| Pin # | Label | Description | Connected Device |
|---|---|---|---|
| 1 | GND | Primary Coil Ground Return | Ignition coil frame / Primary (-) lead |
| 2 | COIL | Discharge Output | Ignition coil primary (+) terminal |

When laying out the PCB, pay close attention to trace widths and high-voltage spacing:
C1 (+) ──> SCR Anode (Pin 2) / Cathode (Pin 1) ──> J2 (COIL) carries instant discharge currents upward of 30A to 80A. Keep these traces short and set the trace width to at least 2.5 mm to 3.5 mm (100–140 mil).D1 anode / C1 positive leg) and all low-voltage gate/trigger components (C2, R1, R2, PICKUP).J2 Pin 1, D4 Cathode, D3 Anode, R2, and J1 Pin 4 connect directly to this plane with wide thermal reliefs.D1 & D2 cathodes face right towards C1; D3 cathode faces up towards PICKUP).C1 is rated for at least 400V DC (630V recommended for long-term safety factor).J1 Pin 4 (GND) and J2 Pin 1 (GND).J1 Pin 4 directly to a clean, unpainted engine ground point.AC_INPUT and GND while kicking/cranking the engine without the CDI connected. Expect ~50V to 150V AC free-cranking output.C2 slightly (e.g. 1 µF to 2.2 µF) to reduce signal delay, or verify pickup coil gap distance.| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 1N4007 | Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal | D1, D2, D3 |
| 1 | 1K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R2 |
| 1 | 1uF/400V | CAP-TH_L22_0-W7_8-P20_00-D0_8_MPP105J2G20AJ22810_C506841:CAP-TH_L22_0-W7_8-P20_00-D0_8_MPP105J2G20AJ22810_C506841 | C1 |
| 1 | 22K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_Vertical | R1 |
| 1 | 3.3uF/50V | CAP-TH_L5_5-W4_0-P5_0-D0_5_RCER71H335K3M1H03A_C1620511:CAP-TH_L5_5-W4_0-P5_0-D0_5_RCER71H335K3M1H03A_C1620511 | C2 |
| 1 | SCR_2P4M | 2P4M:TO255P470X1000X2380-3P | D4 |
| 1 | Screw_Terminal_01x02 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J2 |
| 1 | Screw_Terminal_01x04 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-4-5.08_1x04_P5.08mm_Horizontal | J1 |
The 10 most common of 11 parts.

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


FrameworkComputer/ExpansionCards
Reference designs and documentation to create Expansion Cards for the Framework Laptop

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

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


tardate/LittleArduinoProjects
a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

basilfx/TRADFRI-Hacking
Hacking IKEA TRÅDFRI products, such as light bulbs, window blinds and other accessories.
It measures 50 × 40 mm and has 2 copper layers, 1.6 mm thick.
11 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 Harshavar8jdm/capacitor-discharge-ignition repository on GitHub, at the commit this page was made from: the board is capacitor-discharge-ignition.kicad_pcb and its schematic capacitor-discharge-ignition.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 Harshavar8jdm before reusing the design.