STEP 1 / 6ELECTRONICS

Simple Pulse Generator

This pulse generator circuit is very useful for testing and running things like counters, stepping relays, and so on. It gets rid of the need to set a switch to make the right number of p…

Simple pulse generator circuit with CD4017 decade counter, CMOS NAND gates, nine push buttons, indicator LED and logic probe
PROJECT#158
TRACKElectronics
PARTS01
STAGES06
STEP 1 / 6 · Overview

Know the mission before touching a wire.

Understand what you are making, prepare the right tools, and make the workbench safe.

01

Project details

Simple Pulse Generator is a electronics project. This pulse generator circuit is very useful for testing and running things like counters, stepping relays, and so on. It gets rid of the need to set a switch to make the right number of p…

Source pages
304-305
Named parts
1
Build goal
Working, tested prototype
02

Tools you need

  • Digital multimeter
  • Wire stripper and side cutters
  • Soldering iron with a fine tip
  • Current-limited bench supply

Use eye protection, good lighting, and a clean insulated surface throughout the build.

03

Safety precautions

  • Disconnect every power source before changing a connection.
  • Check component polarity, pinout, and supply voltage twice.
  • Use a current limit for the first power-up.
  • Keep liquids, loose metal, and uninsulated wires away from the bench.
Ready to continue?
STEP 2 / 6 · Parts library

Gather, identify, and understand every part.

Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.

NAMED PROJECT INVENTORY1 PART LINES
PARTTYPEQTYREADY
SCD4017SEMICONDUCTOR1
What's this?Image, role, pros, cons, handling & specifications
CD4017 decade counterSEMICONDUCTOR LEARNING VIEW

CD4017

A semiconductor stage performs switching, amplification, regulation, rectification, or logic.

What it does here

It controls current or signal flow at a defined point in the circuit.

Buy / compare this part

Advantages

  • Fast and efficient
  • Compact
  • Can control larger loads from smaller signals

Limitations

  • Pin order varies
  • Sensitive to overvoltage and reverse polarity
  • May need cooling or bias components

Handling

  • Verify the datasheet pinout
  • Avoid static and soldering heat
  • Check notch, stripe, or flat-face orientation

Specifications to verify

  • Use the exact model, value, package, and rating listed for CD4017; similar-looking parts are not always interchangeable.
  • Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
Ready to continue?
STEP 4 / 6 · Source code

Confirm the hardware-only control path.

This project does not include firmware in the source. The circuit itself provides the required behaviour.

01

How to connect

  1. Match every controller label to the circuit view and source pin map.
  2. Join grounds before signal wires when separate low-voltage supplies are used.
  3. Keep motors, relays, pumps, and other loads on a suitable driver and external supply.

Common mistakes

Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.

Troubleshoot

Disconnect loads, continuity-test one path at a time, then test with a current limit.

02

Software preparation

No IDE, board package, library, or firmware upload is required for this project.

If you add a programmable controller as an extension, document its pin map separately.

03

How to upload code

The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.

Ready to continue?
STEP 5 / 6 · Build

Assemble, deploy, test, and troubleshoot.

Use the complete source notes in build order, then pass the final checks before calling the project finished.

ASSEMBLY

Build in functional stages

  • Power and regulation
  • Controller or processing stage
  • Inputs and sensors
  • Outputs and loads
  • Enclosure and strain relief
TEST

Power up safely

  • Inspect unpowered continuity first
  • Apply the lowest safe current limit
  • Measure supply rails before signals
  • Add one load at a time
  • Record expected and actual results
TROUBLESHOOT

Work from simple to complex

  • Confirm power, ground, polarity, and orientation
  • Compare each pin with the source
  • Test inputs separately from outputs
  • Replace only one variable at a time
  • Power off before every correction
PROJECT-SPECIFIC BUILD NOTES

Follow the documented instructions.

These notes come from this project's source and remain in their original order.

01

Project overview

Project build note

This pulse generator circuit is very useful for testing and running things like counters, stepping relays, and so on. It gets rid of the need to set a switch to make the right number of pulses. By pressing the right switches S1 through S9, one can get from 1 to 9 clock pulses that go in the wrong direction. Pulse Generator Circuit Schmitt trigger NAND gate N1 of IC2, resistor R1, and capacitor C1 are wired together to make clock pulses. These pulses are sent out through NAND gate N3, which is controlled by decade counter CD4017 (IC1). At first, none of the switches from S1 to S9 are pressed, so the LED is on. As resistor R3 pulls up pins 5 and 6 of NAND gate N2, its output pin 4 goes low. This stops the NAND gate N3 from setting its output pin 10 to high, so there is no pulse.

The Q outputs of IC1 are usually low because it is a decade counter. When clock pulses are sent to it, each of its Q outputs goes high in turn, from Q0 to Q1 to Q2 to Q3 to Q4 and so on. If any of the switches S1 through S9, say S5 (for five pulses), is briefly pressed, pins 5 and 6 of the NAND gate N2 go low. This makes its output pin 4 high, which fully charges capacitor C2 through diode D. At the same time, the high output of N2 turns on NAND gate N3, and clock pulses come out of pin 10. This is the number of pulses our device needs to check itself. Circuit operation When the clock pulses are sent to IC1's clock-enable pin 13, counting begins. As soon as the output pin 1 (Q5) of IC1 goes high, the input pins 5 and 6 of NAND gate N2 will also go high through switch S5. This is because the high-frequency clock allowed five pulses per momentary press. This high input to N2 gives a low output at pin 4, which turns off NAND gate N3 and leaves no pulse for counter IC1 to move forward. Before the next use, the counter IC1 must be in the "standby" state, which means that the output of Q0 must be "high." To do this, a time-delay pulse generator with a NAND gate N4, a resistor R4, a diode D, a capacitor C2, and a differentiator circuit with C3 and R5 is used. When NAND gate N2's output pin 4 is low, it slowly empties capacitor C2 through resistor R4. When the voltage across capacitor C2 drops below the lower trip point, the output pin 11 of NAND gate N4 goes high, and a high-going, sharp pulse is made at the junction of capacitor C3 and resistor R5. This sharp pulse resets the counter IC1, and its Q0 output (pin 3) goes high. This is shown by the way LED lights up. Make sure the red LED is on before going on to the next step to get the next pulse. If you briefly press any of the switches, the LED will light up. If the switch is held down, the counter keeps counting and you can't tell how many pulses it has counted.

Ready to continue?
PROJECT ACHIEVED

You built Simple Pulse Generator.

You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.

Auto Reset Over/Under Voltage Cut-Out project thumbnail featuring Power supply, NEGATIVE, T1, T2 - transistor stages identified in the circuit
NEXT ELECTRONICS ADVENTURE

Auto Reset Over/Under Voltage Cut-Out

Ready to reuse what you learned in another project from the same track?

Start this project
Browse all 500 projects