
3Phase
eauel/openzmeter
openzmeter (oZm) is an Open Source system designed for power quality analysis and smart energy metering in power networks. It has been designed to comply with international standards IEC 61000-4-30 and EN 50160.

Flyback AC-DC Converter (230V AC to 12V DC) — Full SMPS design using VIPer22A PWM Controller. Schematic, PCB layout & 3D render in KiCad.
AC DC Wandler is an open-source printed circuit board by MoElashmawi, from the MoElashmawi/Flyback-AC-DC-Converter repository on GitHub, published under the MIT licence. It is a 2-layer board of 99.7 × 48.8 mm with 34 parts on 24 nets, routed with 358 tracks and 0 vias.
It is built around the EL817, VIPER22ADIP-E and 3MM LED发光二极管90度弯脚, with the FR107, KBP206 and SB360 among its other parts. Its parts include 11 capacitors, 7 resistors, 4 diodes, 3 ICs and 2 connectors.
KiCad 10.0.1 | Mohamed Elashmawi | TU Dortmund
A complete Switch-Mode Power Supply (SMPS) designed from scratch using the flyback topology, converting 230 VAC mains input to a regulated 12 VDC output. The project covers full schematic design, PCB layout and 3D validation.
⚠️ Safety notice — This circuit operates directly on mains voltage (230 VAC). Schematic and layout are published for educational and design-reference purposes only. Do not build or test it without proper knowledge, equipment and safety precautions.



| Parameter | Value |
|---|---|
| Input voltage | 230 VAC, 50 Hz |
| Output voltage | 12 VDC |
| Topology | Flyback (isolated SMPS) |
| PWM controller | VIPer22A (DIP-8) |
| Transformer | EE25-13-7 |
| Bridge rectifier | KBP206 |
| Output diode | SB360 (Schottky) |
| Feedback / isolation | EL817 optocoupler + TL431 |
| Input protection | Varistor + NTC thermistor + 500 mA fuse |
| EMI filter | Schaffner RN102-0.3-02-12M |
The design is split into four functional blocks.
| Ref | Component | Function |
|---|---|---|
| RV1 | Varistor 275 VAC | Overvoltage / surge protection |
| TH1 | NTC thermistor | Inrush current limiting at start-up |
| FL1 | Schaffner RN102 | Common-mode noise suppression |
| F1 | Fuse 500 mA | Short-circuit protection |
| C1 | X-capacitor 100 nF / 275 VAC | Differential-mode noise filtering |
| Ref | Component | Function |
|---|---|---|
| D15 | KBP206 | Full-wave rectification |
| C2 | 22 µF / 400 V | DC bus smoothing |
| U1 | VIPer22A | Integrated MOSFET + PWM control |
| T1 | EE25-13-7 | Galvanic isolation & energy transfer |
| R3, C3, D1 | RCD snubber | Drain spike clamping |
| Ref | Component | Function |
|---|---|---|
| D5 | SB360 Schottky | Low forward-drop rectification |
| L1 | 10 µH | Output ripple reduction |
| C5–C8 | 470 µF / 16 V | Output voltage smoothing |
| D3 | Status LED | Power-on indication |
| Ref | Component | Function |
|---|---|---|
| U2 | TL431 | Programmable precision shunt regulator |
| U3 | EL817 optocoupler | Galvanic isolation of the feedback signal |
| RV3 | 500 Ω trimmer | Output voltage fine adjustment |
| R4–R7 | Divider network | Output voltage sensing |
The flyback topology generates high-voltage spikes on the MOSFET drain at turn-off, caused by the leakage inductance of the transformer. An RCD clamp (R3 = 100 kΩ, C3 = 2.2 nF / 1 kV, D1 = FR107) absorbs this energy and protects the MOSFET integrated in the VIPer22A.
The EL817 combined with the TL431 shunt regulator forms a stable, isolated feedback loop, keeping the 12 V output regulated across input voltage and load variations while maintaining the isolation barrier.
A Schaffner common-mode choke (FL1) together with the X-capacitor (C1) and the NTC thermistor (TH1) forms the input filter, limiting conducted emissions back into the mains.
| Reference | Component | Value / Part number |
|---|---|---|
| U1 | PWM controller | VIPer22ADIP-E |
| U2 | Shunt regulator | TL431DBZ |
| U3 | Optocoupler | EL817 |
| T1 | Transformer | EE25-13-7 |
| D1 | Fast recovery diode | FR107 |
| D5 | Schottky diode | SB360 |
| D15 | Bridge rectifier | KBP206 |
| FL1 | EMI filter | Schaffner RN102-0.3-02-12M |
| RV1 | Varistor | 275 VAC |
| TH1 | NTC thermistor | — |
| C2 | Bulk capacitor | 22 µF / 400 V |
| C5–C8 | Output capacitors | 470 µF / 16 V |
| RV3 | Trimmer | 500 Ω |
├── AC-DC Wandler.kicad_pro KiCad project
├── AC-DC Wandler.kicad_sch Schematic
├── AC-DC Wandler.kicad_pcb PCB layout
├── fabrication/ Gerber & drill files
└── images/ Schematic, layout and 3D renderMohamed Elashmawi — B.Sc. Elektrotechnik und Informationstechnik, TU Dortmund 📫 mohamednehmedo716@gmail.com
MIT — free to use, adapt and learn from. Credits appreciated.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 470μF-16V | Capacitor_THT:CP_Radial_D8.0mm_P3.50mm | C5, C6, C7, C8 |
| 1 | 100K-1W | Inductor_THT:L_Axial_L7.0mm_D3.3mm_P10.16mm_Horizontal_Fastron_MICC | R3 |
| 1 | 100nF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mm | C9 |
| 1 | 100nF-275VAC | Capacitor_THT:C_Rect_L13.0mm_W5.0mm_P10.00mm_FKS3_FKP3_MKS4 | C1 |
| 1 | 100uF-16V | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C10 |
| 1 | 10nF-1KV | Capacitor_THT:C_Disc_D7.5mm_W5.0mm_P5.00mm | C4 |
| 1 | 10nF-50v | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P2.50mm | C11 |
| 1 | 10µH | Inductor_THT:L_Axial_L7.0mm_D3.3mm_P10.16mm_Horizontal_Fastron_MICC | L1 |
| 1 | 18K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R6 |
| 1 | 1K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R5 |
| 1 | 2.2K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R4 |
| 1 | 2.2nF-1KV | Capacitor_THT:C_Disc_D9.0mm_W5.0mm_P7.50mm | C3 |
| 1 | 22uF-400V | Capacitor_THT:CP_Radial_D12.5mm_P5.00mm | C2 |
| 1 | 3.9K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R8 |
| 1 | 330 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1 |
| 1 | 3mm-LED | LED_THT:LED_D3.0mm | D3 |
| 1 | 4.7K | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R7 |
| 1 | 500R_Trim | Potentiometer_THT:Potentiometer_Bourns_3296W_Vertical | RV3 |
| 1 | 500mA | Fuse:Fuse_2010_5025Metric | F1 |
| 1 | AC Eingang | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1-2-3.81_1x02_P3.81mm_Horizontal | J1 |
| 1 | Choke_Schaffner_RN102-0.3-02-12M | Inductor_THT:Choke_Schaffner_RN102-04-14.0x14.0mm | FL1 |
| 1 | DC Ausgang | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1-2-3.81_1x02_P3.81mm_Horizontal | J2 |
| 1 | EE25-13-7 | Transformer_THT:Transformer_Myrra_EF20_7408x | T1 |
| 1 | EL817 | Package_DIP:DIP-4_W7.62mm | U3 |
| 1 | FR107 | Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal | D1 |
| 1 | KBP206 | Diode_THT:Diode_Bridge_DIP-4_W7.62mm_P5.08mm | D15 |
| 1 | SB360 | Diode_THT:D_DO-201AD_P15.24mm_Horizontal | D5 |
| 1 | TL431DBZ | Package_TO_SOT_SMD:SOT-23 | U2 |
| 1 | Thermistor_NTC | Varistor:RV_Disc_D9mm_W4mm_P5mm | TH1 |
| 1 | VIPer22ADIP-E | Package_DIP:DIP-8_W7.62mm | U1 |
| 1 | Varistor | Varistor:RV_Disc_D12mm_W5mm_P7.5mm | RV1 |

eauel/openzmeter
openzmeter (oZm) is an Open Source system designed for power quality analysis and smart energy metering in power networks. It has been designed to comply with international standards IEC 61000-4-30 and EN 50160.

jkasari/bikeLightsPCB
The Schematic and PCB layout for the bikelights on my commuter bike.

ctrl-z3d/pcb-designs
A personal archive of PCB projects I've designed and built along the way. Schematics, board layouts, manufacturing files, and notes.

benjiaomodular/MiniVerb
A through-hole reverb module for Eurorack based around the Daisy Seed by Electrosmith

NeilsVintageComputers/1981_Aamber-Pegasus-2023-Revival
My first computer, this is a replica I produced from the original schematics using original old components.

benjiaomodular/EuroPowerBoard
This is a busboard for Eurorack synths with support for IDC and JST connectors

sabiinsearch/IoT
Projects related to Internet of Things (IoT)

automagicle/handheld-sstc
A handheld SSTC project on PCB, designed for a large magic wand form factor, entirely powered from 8s 18650. Uses direct secondary feedback with gate driver and MOSFETs, and 555 interrupter
It measures 99.7 × 48.8 mm and has 2 copper layers, 1.6 mm thick.
34 parts, built around the EL817, VIPER22ADIP-E, 3MM LED发光二极管90度弯脚 and FR107. 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 MoElashmawi/Flyback-AC-DC-Converter repository on GitHub, at the commit this page was made from: the board is AC-DC Wandler.kicad_pcb and its schematic AC-DC Wandler.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).