

Analog PWM
Analog PWM generator with 20–100 kHz complementary outputs, adjustable dead time, LTspice simulation and a stackable KiCad PCB linked to a 58 W buck converter.
- Size
- 75 × 53 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 42
- Nets
- 60
- Pads
- 169
- Tracks, vias
- 537, 11
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 8.0 (file 20240108)
- Created
- 13 Oct 2026
- Updated
- 5 Nov 2026
Overview
Analog PWM is an open-source printed circuit board by MouaadO, from the MouaadO/analog-pwm-generator repository on GitHub. It is a 2-layer board of 75 × 53 mm with 42 parts on 60 nets, routed with 537 tracks and 11 vias.
It is built around the SN74ACT240N, TLC072CP and LF50ABV, with the PTV09A-2020F-B102, BAT85S-TR and PPTC031LFBN-RC among its other parts. Its parts include 16 resistors, 7 capacitors, 7 connectors, 5 ICs and 1 diode. It belongs with the power boards of this library.
Main components
6SN74ACT240N
PDIP-20-40℃~+85℃ 2 24mA 24mA 4 4.5V~5.5V 40uA 6ns@5V,50pF 74ACT Tri-State PDIP-20 Buffers, Drivers, Receivers, Transceivers ROHSTexas InstrumentsBuffers, Drivers, Receivers, TransceiversTLC072CP
PDIP-8-8V~-2.25V、2.25V~8V 0℃~+70℃ 1.2uV/℃ 1.5pA 1.9mA 10MHz 19V/us 2 390uV 4.5V~16V 50pA 57mA 7nV/√Hz@1kHz 95dB Enable/shutdown function PDIP-8 Operational Amplifier ROHSTexas InstrumentsOperational AmplifierLF50ABV
TO-220-3-40℃~+125℃@(Ta) 1 1.3V@(200mA) 16V 500mA 500uA 50uV 5V 76dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal Shutdown Positive TO-220-3 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSSTMicroelectronicsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsPTV09A-2020F-B102
插件1 50mW ±20% 插件 Potentiometers, Variable Resistors ROHSBournsPotentiometers & Variable ResistorsBAT85S-TR
DO-35Schottky DiodesVishay IntertechnologyPPTC031LFBN-RC
插件,P=2.54mm-40℃~+105℃ 1 2.54mm 250V 3A 3P 8.51mm Through Hole Tin 插件,P=2.54mm Female Headers ROHSSullins Connector SolutionsFemale Headers
README
README.mdAnalog PWM Generator with Adjustable Dead Time
20–100 kHz · Complementary 5 V outputs · Stackable control PCB
An analog PWM generator with adjustable frequency, duty cycle and dead time. The circuit uses a shared triangular carrier, comparison thresholds and output buffers. Its stackable PCB supplies the switching commands for the 58 W synchronous buck converter, the second project in the electric-scooter auxiliary-power system.
Project team: Amani Mouaad and Cheiffou Melissa.
IFP SCHOOL · Powertrain · 2026/2027
The control half of a two-board system

The PWM board handles the low-level timing commands. The buck power board receives those commands through the Uno Rev3-compatible headers and drives its two power MOSFETs. Keeping the boards separate makes the timing circuit easy to adjust and the power stage easy to inspect.
| Function | Design target |
|---|---|
| Outputs | Two complementary PWM signals |
| Switching frequency | 20–100 kHz |
| Duty command | 0–100%, selected from a potentiometer or external SMA input |
| Dead-time adjustment | Up to 10% of the switching period |
| Logic levels | Nominal 0 V / 5 V |
| Drive current | More than 20 mA source and sink per output |
| Supply | 7–10 V DC, centre-positive barrel jack |
How the signal becomes PWM
- Carrier generation: An integrator produces a rising/falling triangular voltage. A comparator with hysteresis reverses the clock at the carrier limits.
- Command selection: The selector chooses the duty potentiometer or the external SMA command.
- Threshold generation: A resistor network combines the command with the dead-time setting to establish two comparison levels.
- Comparison: The triangle crosses those levels at different instants, creating the two complementary pulse allocations and their non-overlap intervals.
- Output drive: The buffer stages drive OUT1 and OUT2. Endpoint detectors establish constant states for external commands outside the operating interval.
Oscillator and timing equations
For timing resistance $R_t$ and integrator capacitor $C_{INT}$:
$$I=\frac{CLOCK-V_m}{R_t},\qquad \frac{dV_{TRI}}{dt}=-\frac{I}{C_{INT}}$$
The comparator limits and the integrator slope determine the period. For the chosen resistor ratio, the nominal frequency relation is:
$$f\simeq\frac{3}{R_tC_{INT}}$$
The shared carrier keeps the frequency, command and dead-time comparison tied to one switching period. Detailed threshold and frequency calculations are in the design notes.
Current stackable PCB
The current board is 75 × 53 mm, with a 7 mm extension on the potentiometer side. The extension places the outward-facing controls, regulator and input connectors in the exposed area of the two-board assembly. The 32 mating contacts retain the official Uno Rev3 pattern.
Top 3D view

Header connections to the buck board
| Signal | PWM-board pad | Uno contact |
|---|---|---|
| OUT1 / PWM1 | J4 pin 9 | D9 |
| OUT2 / PWM2 | J4 pin 8 | D10 |
| Common ground | J4 pin 4; J6 pins 6–7 | GND |

The upper board is the synchronous buck converter. Its battery input and 12 V gate-driver supply use separate power terminals.
Front and back layers
| Front copper | Back copper |
|---|---|
![]() | ![]() |
Signal tracks use 0.25 mm widths, PWM output routes 0.40 mm, and supply/ground routes 0.50 mm. The front copper fill distributes 5 V; the back fill provides ground. Local footprints and bundled models define the potentiometers, connectors and IC packages.
Complete schematic

Recorded LTspice results
The existing simulation uses the 7805 supply model. The PCB assembly uses the selected LF50ABV regulator. The following values are the recorded LTspice results for the supplied simulation settings:
| Quantity | Result |
|---|---|
| Frequency endpoints | 19.99 kHz / 99.69 kHz |
| Output LOW / HIGH | 0.082 V / 4.916 V |
| Source/sink current | Approximately 26.86 mA per output |
| Fast-setting non-overlap gaps | 0.980 µs / 0.984 µs |

Open and run
For the hardware, open pcb/Analog_PWM.kicad_pro in KiCad 8 or newer. In PCB Editor, press Alt+3 for the 3D viewer. Keep the local symbol library, footprint library, tables and 3dmodels folder beside the project.
For simulation, open simulation/analog_pwm_dead_time.asc in LTspice and run its transient analysis. Probe TRI, CMD, LOW, HIGH, OUT1 and OUT2. Parameters FP, DP, DTP, SOURCE and VD select the operating settings.
Files and tools
| Location | Contents |
|---|---|
pcb/ | KiCad schematic, board, local libraries, assembly BOM and purchasing workbook |
pcb/Manufacturing/ | Gerbers and plated/non-plated drill outputs |
simulation/ | LTspice schematic, symbols and component libraries |
| Design notes | Oscillator, duty and threshold calculations |
docs/images/ | PCB, schematic and stacked-system renders |
docs/datasheets/ | Component datasheets |
Tools: LTspice, KiCad, manufacturer package drawings and local 3D models.
Related projects
58 W Synchronous Buck Converter · Inverter Modulation and PWM
Parts
42| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 100n | PWM_Footprints:Vishay_K15_P2.5mm | C4, C5, C6, C7 |
| 4 | 1k | PWM_Footprints:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R6, R10, R11, R13 |
| 3 | 1.8k | PWM_Footprints:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R8, R15, R16 |
| 3 | M3.2 | PWM_Footprints:MountingHole_3.2mm | H1, H2, H3 |
| 2 | 105 | PWM_Footprints:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R4 |
| 2 | 60.4k | PWM_Footprints:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R12, R14 |
| 2 | 9.76 | PWM_Footprints:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal | R2, R3 |
| 2 | LM319N/NOPB | PWM_Footprints:DIP-14_W7.62mm | U2, U3 |
| 1 | 12.3k | PWM_Footprints:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R5 |
| 1 | 12k | PWM_Footprints:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R7 |
| 1 | 1k DUTY | PWM_Footprints:Bourns_PTV09A2_20mm | RV1 |
| 1 | 2.4n C0G 1% | PWM_Footprints:C317_5.08mm | C3 |
| 1 | 22u/16V | PWM_Footprints:CP_Radial_D5.0mm_P2.00mm | C1 |
| 1 | 4.7u/50V | PWM_Footprints:CP_Radial_D5.0mm_P2.50mm | C2 |
| 1 | 50k FREQ | PWM_Footprints:Bourns_PTV09A2 | RV2 |
| 1 | 7-10V DC, CENTRE + | PWM_Footprints:BarrelJack_CUI_PJ-102AH_Horizontal | J1 |
| 1 | 9.76k | PWM_Footprints:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R9 |
| 1 | ANALOG 6 | PWM_Footprints:PinSocket_1x06_P2.54mm_Vertical | J7 |
| 1 | BAT85S-TR | PWM_Footprints:D_DO-35_SOD27_P7.62mm_Horizontal | D1 |
| 1 | DIGITAL 10 / OUT | PWM_Footprints:PinSocket_1x10_P2.54mm_Vertical | J4 |
| 1 | DIGITAL 8 | PWM_Footprints:PinSocket_1x08_P2.54mm_Vertical | J5 |
| 1 | Dual 1k DEAD TIME | PWM_Footprints:SameSky_PTN16_A_Dual | RV3 |
| 1 | EXTERNAL DUTY | PWM_Footprints:Mueller_BU1420701236 | J2 |
| 1 | LF50ABV | PWM_Footprints:TO-220-3_Vertical | U4 |
| 1 | MANUAL / EXTERNAL | PWM_Footprints:PinSocket_1x03_P2.54mm_Vertical | J3 |
| 1 | POWER | PWM_Footprints:PinSocket_1x08_P2.54mm_Vertical | J6 |
| 1 | SN74ACT240N | PWM_Footprints:DIP-20_W7.62mm | U5 |
| 1 | TLC072CP | PWM_Footprints:DIP-8_W7.62mm | U1 |
Similar boards
- 2 layers52 × 65 mm

- 2 layers

JACart
JACart2/Hardware-Electronics
This repository is copied from a deprecated repository, located at https://github.com/JACart/jacartelectronics.
56 parts - 2 layers72 × 50 mm

Placement
balazsbencs/ardor
This is a DIY multieffects project with a Raspberry Pi and and Codec Zero and a Raspberry Pi Display 2. With Full NAM A2 support.
31 parts18MIT - 2 layers174 × 58 mm

Breakout 112pin Connector
rusefi/rusefi
rusefi - GPL internal combustion engine control unit
42 parts1.2k - 2 layers30 × 50 mm

- 2 layers139.7 × 64.8 mm

Sprig console
hackclub/sprig
🍃 Learn to code by making games in a JavaScript web-based game editor.
42 parts1.1kMIT - 2 layers90.5 × 50 mm

Main control board
jamro/tiny-engineer
A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.
42 parts1.1k - 2 layers67.6 × 30.5 mm

Rgb to hdmi
hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI
42 parts1kGPL-3.0
Questions
How big is the Analog PWM PCB?
It measures 75 × 53 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Analog PWM use?
42 parts, built around the SN74ACT240N, TLC072CP, LF50ABV and PTV09A-2020F-B102. 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.
Where can I download the Analog PWM KiCad files?
From the MouaadO/analog-pwm-generator repository on GitHub, at the commit this page was made from: the board is pcb/Analog_PWM.kicad_pcb and its schematic pcb/Analog_PWM.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Analog PWM design in my own project?
Its repository states no licence, so its author keeps all rights: ask MouaadO before reusing the design.

