Skip to the content
2 layers50.5 × 53.7 mmDC MOTO speed control PWM, the printed circuit board in 3D

PWM DC motor speed controller using 555 timer and IRFZ44N MOSFET — designed in KiCad

Size
50.5 × 53.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
18
Nets
12
Pads
49
Tracks, vias
56, 5
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
22 Jun 2026
Updated
25 Jun 2026

Overview

DC MOTO speed control PWM is an open-source printed circuit board by marouane-daoudi, from the marouane-daoudi/dc-motor-pwm-controller repository on GitHub. It is a 2-layer board of 50.5 × 53.7 mm with 18 parts on 12 nets, routed with 56 tracks and 5 vias.

It is built around the NE555P. Its parts include 3 resistors, 3 diodes, 2 capacitors, 1 IC and 1 transistor. It belongs with the robots and motor control boards of this library.

Main components

1

README

README.md

DC Motor PWM Speed Controller

DC Motor PWM Speed Controller

A 2-layer PCB implementing a variable-speed DC motor controller using pulse-width modulation (PWM). The PWM signal is generated by a 555 timer in astable mode with an adjustable duty cycle controlled by a potentiometer. The design covers the full engineering workflow from circuit simulation in Proteus through PCB layout in KiCad to manufacturer-ready Gerber files.


Specifications

ParameterValue
Supply voltage12V DC
Motor no-load current1.4A
MOSFET (Q1)IRFZ44N — 49A continuous drain current
PWM frequency~1kHz–20kHz (adjustable via pot)
Duty cycle range~10% to ~90%
Timer ICNE555 / LM555CN
Timing capacitor10nF ceramic
Speed control100kΩ potentiometer
PCB layers2-layer FR4
Design toolKiCad
Simulation toolProteus

Schematic

KiCad Schematic


How it works

Why a MOSFET is needed

The LM555CN timer can source or sink a maximum of 200mA at its output pin. The DC motor used in this design draws 1.4A under no-load conditions — well beyond what the timer can drive directly. The IRFZ44N N-channel MOSFET (Q1) solves this by acting as a power switch controlled by the 555 output signal. With a rated continuous drain current of 49A and a low drain-to-source on-resistance, it handles the full motor current while being driven by the low-power 555 output.

555 timer PWM generation

The NE555 is configured in astable mode, continuously oscillating to produce a PWM square wave at pin 3 (output_PWM_node). The key connections are:

  • Pin 8 (VCC) → 12V power net
  • Pin 1 (GND) → ground
  • Pin 4 (RESET) → tied to VCC to keep the timer permanently enabled (active LOW pin — must not be grounded)
  • Pin 5 (CV) → bypassed to GND via 0.1µF ceramic capacitor C2 to filter noise on the internal voltage divider and prevent accidental frequency override
  • Pins 2 and 6 → connected together at the same node (pot_wiper_node), feeding the same voltage to both internal comparators of the 555 to sustain continuous oscillation

Timing network and duty cycle control

The timing capacitor C1 (10nF ceramic) connects from pot_wiper_node to GND. Its charge and discharge paths are separated by two 1N4148 diodes (D2 and D3) and the 100kΩ potentiometer RV1, which is the key to independent duty cycle control:

  • Charge path (Ton): current flows from VCC → R3 (1kΩ) → D2 → left side of pot → wiper → C1 → GND
  • Discharge path (Toff): C1 discharges through wiper → right side of pot → D3 → pin 7 (discharge) → internal transistor of 555 → GND

The 1N4148 diodes are rated for 300mA forward current, which is appropriate since the timing resistors are in the kΩ range and limit current well below this threshold. The timing equations are:

$$ T_{on} = 0.693 \times (R_3 + R_{pot,left}) \times C_1 $$

$$ T_{off} = 0.693 \times R_{pot,right} \times C_1 $$

$$ T = T_{on} + T_{off} $$

$$ f = \frac{1}{T} $$

$$ D = \frac{T_{on}}{T_{on} + T_{off}} $$

Rotating the potentiometer shifts resistance between the left and right sides, changing the Ton/Toff ratio and therefore the duty cycle — while the frequency stays approximately constant. The 10nF capacitor was chosen to produce a high PWM frequency (~1kHz and above), which ensures smooth motor rotation without audible buzzing or torque ripple.

Pin 7 (discharge) connects to the D3 node to complete the discharge route through the 555's internal transistor switch between pin 7 and pin 1.

MOSFET gate drive

The PWM signal at output_PWM_node drives the gate of Q1 (IRFZ44N) through two resistors:

  • R1 (1kΩ) in series between pin 3 and the gate — limits gate current and dampens switching ringing, also provides protection if the MOSFET malfunctions
  • R2 (1kΩ) from the gate node to GND — provides a discharge path for the gate capacitance when the 555 output goes LOW, ensuring the gate discharges cleanly to 0V and preventing the MOSFET from remaining partially ON due to residual gate charge

The MOSFET source connects directly to GND. Its drain connects to the negative terminal of the motor.

Motor switching principle

When the 555 output is HIGH, the gate receives sufficient voltage to turn Q1 fully ON. The drain-to-source channel closes, completing the current path:

12V → SW1 → Motor (+) → Motor (−) → MOSFET Drain → MOSFET Source → GND

The motor runs. When the 555 output goes LOW, the gate discharges through R2, Q1 turns OFF, the current path breaks, and the motor coasts. This switching repeats at the PWM frequency. The motor's mechanical inertia averages the delivered power, producing a speed proportional to duty cycle:

$$ V_average = Duty cycle × V_supply $$

At 50% duty cycle the motor receives an effective average of 6V. At 90% it receives approximately 10.8V — near full speed.

Flyback protection

The DC motor is an inductive load. When Q1 switches OFF abruptly, the collapsing magnetic field in the motor coil generates a back-EMF voltage spike that can significantly exceed the supply voltage. D1 (1N4001) is placed across the motor terminals in reverse bias. This diode was chosen for its high peak current rating, providing a safe recirculating path for the back-EMF current and clamping the spike before it can damage Q1.

ON/OFF control

SW1 (SPDT switch) is placed between the power supply input connector J1 and the power net. It provides a hard power cutoff independent of the potentiometer setting, allowing the motor to be stopped completely without adjusting speed control.


Simulation

Circuit simulated and verified in Proteus before PCB layout.

Proteus Simulation

Waveforms

Low duty cycle — low motor speed: Low duty cycle

Medium duty cycle — medium motor speed: Mid duty cycle

High duty cycle — full motor speed: High duty cycle

Simulation findings and fixes

During simulation two issues were identified and corrected:

Issue 1 — Wrong timing capacitor value: The initial capacitor value of 100µF produced a PWM frequency of approximately 5Hz, far too low for motor control and imperceptible on standard oscilloscope settings. Correcting to 10nF raised the frequency to the target range, producing smooth motor operation.

Issue 2 — Insufficient gate drive: With equal 1kΩ values for both R1 and R2, the voltage divider effect reduced gate voltage to approximately 5.25V — insufficient to fully enhance the IRFZ44N, which requires ~10V for minimum on-resistance. This prevented the motor from reaching full speed at 100% duty cycle. The fix was confirmed by ensuring the MOSFET source connects directly to GND with no intervening resistance in the return path.


PCB Layout

PCB Layout PCB Layout

Design decisions

  • Component placement follows left-to-right signal flow — power input (J1) on the left, 555 timing network in the center, MOSFET and motor output (J2) on the right, minimizing trace crossings and separating high-current motor paths from the sensitive timing network
  • Power trace width set to 1.5mm on motor current paths to handle continuous current without resistive heating
  • Ground plane on B.Cu layer provides a low-impedance return path for all components and reduces EMI from the switching MOSFET
  • Vias used to connect front-layer components to the back copper ground plane, resolving routing conflicts on a 2-layer board
  • D1 placement as close as possible to J2 motor connector to minimize the back-EMF inductive loop area
  • Screw terminals for J1 and J2 for reliable external wire connections without direct soldering to the board
  • Mixed assembly — 0805 SMD for passive components (compact placement), through-hole for 555 DIP-8, MOSFET TO-220, potentiometer, and connectors (mechanical robustness)

Manufacturing

Gerber files are in the /gerbers folder, verified using JLCPCB's online Gerber viewer. To order: zip the contents of the gerbers folder and upload to JLCPCB, PCBWay, or any standard FR4 PCB manufacturer. 2-layer board, no special requirements.


Repository contents

FolderContents
/kicadKiCad schematic, PCB, and project files
/gerbersFabrication-ready Gerber and drill files
/simulationProteus simulation project file
/images3D renders, PCB layout, waveform captures

Author

Marouane Daoudi
Electrical Engineering student
Designed in KiCad · Simulated in Proteus

Parts

18
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
31KResistor_SMD:R_0805_2012MetricR1, R2, R3
2DDiode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD2, D3
2Screw_Terminal_01x02TerminalBlock_Phoenix:TerminalBlock_Phoenix_MPT-0,5-2-2.54_1x02_P2.54mm_Horizontal-, J2
10.1uFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC2
1100uFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1
1DDiode_THT:D_DO-41_SOD81_P7.62mm_HorizontalD1
1NE555PPackage_DIP:DIP-8_W7.62mmU1
1Q_NMOS_GDSPackage_TO_SOT_THT:TO-220-3_VerticalQ1
1R_PotPotentiometer_THT:Potentiometer_Bourns_PTV09A-1_Single_VerticalRV1
1SW_SPDTmyFootprints:SW_1825255-1SW1

Similar boards

  • 2 layers327.9 × 139 mmCoco2, the printed circuit board in 3D

    Coco2

    baldengineer/bit-preserve

    Project for capturing vintage, classic, aka old computer schematics in KiCad.

    147 parts446
  • 2 layers370.8 × 298.5 mm8 Bit Computer, the printed circuit board in 3D

    8 Bit Computer

    The-Invent0r/8-bit-Computer-PCB

    These are the KiCAD files for my 8-Bit Computer.

    323 parts142
  • 2 layers200 × 96 mmTouchtone555, the printed circuit board in 3D

    Touchtone555

    DarcyJProjects/touchtone555

    An open-source DIY, NE555-based analogue synthesizer - play notes with a stylus

    73 parts33
  • 4 layers340 × 210 mmYddraig, the printed circuit board in 3D

    Yddraig

    ddraig68k/hardware

    Schematic and CAD files for my 68K based computer

    224 parts29MIT
  • 2 layers152.9 × 74.9 mmClock, the printed circuit board in 3D

    Clock

    erikvanzijst/clock

    24H digital quartz clock from scratch

    82 parts21
  • 2 layers88.9 × 50.8 mmSynthCard, the printed circuit board in 3D

    SynthCard

    benjiaomodular/SynthCard

    I designed this project with the help of PCBWay. You can get a copy of these cards through the PCBWay Shared Projects page.

    16 parts19MIT
  • 4 layers194.5 × 188.6 mmMyCpu, the printed circuit board in 3D

    MyCpu

    fortinsylvain/MyCpu

    Home brew CPU Hardware with 1-bit ALU implementation using 74LSxx, a micro-code and assembler coded in C#.

    162 parts18MIT
  • 2 layers145.3 × 129.9 mmC128Diag, the printed circuit board in 3D

    C128Diag

    hackup/C128Diag

    Replica of the Commodore C128 Diagnostic Test cartridge Assy No. 325093-01.

    61 parts16

Questions

How big is the DC MOTO speed control PWM PCB?

It measures 50.5 × 53.7 mm and has 2 copper layers, 1.6 mm thick.

What parts does the DC MOTO speed control PWM use?

18 parts, built around the NE555P. 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 DC MOTO speed control PWM KiCad files?

From the marouane-daoudi/dc-motor-pwm-controller repository on GitHub, at the commit this page was made from: the board is Kicad/DC_MOTO_speed_control_PWM.kicad_pcb and its schematic Kicad/DC_MOTO_speed_control_PWM.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the DC MOTO speed control PWM design in my own project?

Its repository states no licence, so its author keeps all rights: ask marouane-daoudi before reusing the design.