Maker.io main logo

Adjustable Frequency Timer: Learning Engineering Nuances

91

2026-09-17 | By Kaleb Kohlhase

Share

Breadboards LEDs / Discrete / Modules 555 Timer Wired

Introduction

The goal of the project is to make an adjustable frequency circuit that could turn an LED on and off with a 555 timer so that it blinks at different rates. This post will cover the solderless breadboard prototype version. The end goal is to also make a printed circuit board through DKRed! I am waiting for my board to be fabricated at the moment, so that will come later. Here are the parameters I set for this project:

  • Frequency should be 1Hz to 60Hz (adjustable)
    • From experience, an LED flickering at AC voltage is barely visible at 60Hz. You can sort of tell at times, but it can be seen better with a slow-motion camera. 1Hz is very easy to see flashing.
  • Utilize the NE556N dual timer
    • I just picked something I knew would work with a 5VDC supply. I sort of went off price at first. I didn't intend to use both sides, but my final project incorporates both (for a good reason!)
  • Connect an LED to the output so you can visually tell it is oscillating

Here are three resources you should look at before reading the rest of the post:

First Mistake

The values work on paper with the calculations mentioned in the 555 datasheet, but they didn't quite match what happened on the physical prototype. Since Texas Instruments doesn't give guidance on selecting parts, I just thought that 50µF would be a good starting point. I kind of just ran through random values until all my resistances were positive using the equations in the datasheet. Here is the circuit diagram for my first prototype:

Image of Adjustable Frequency Timer: Learning Engineering Nuances

Keep in mind that the NE556N is a 14-pin dual timer; I only use half of it in my prototypes!

If you need general guidance for finding part numbers, you can refer to the values in the diagram or just aim for 1/4 to 1W resistors that are close enough to the values seen above. The closest potentiometer that I could find for R2 is 10k. For the prototype, it's fine to choose electrolytic capacitors. All you need is around 50µF rated for 5V or more (you can go quite a bit higher, and it still works). The 0.01µF capacitor can just be a simple through-hole ceramic capacitor rated for at least 5V. You can be off a little in the values because frequencies don't change that much for small changes. The reason I have a 110-ohm resistor after the potentiometer is to make a "floor" value. The potentiometer can reach zero or near-zero ohm values; this can be precarious for most circuits and can drive current way up! Yes, it will affect the upper value of R2, but again, frequency won't change that much.

I expected 60Hz, but noticed my light was flickering more than expected.

My light flickers slower than I expected. From experience, running an LED on AC voltage will still cause the light to flicker at 60Hz. This is barely visible to the naked eye. Here is a picture of the first breadboard prototype:

Image of Adjustable Frequency Timer: Learning Engineering Nuances

Clearly, the results are off. What is going on?

Measuring the Error

I wanted to measure the output from my timer using an oscilloscope. I have a 2190E from B&K Precision on my desk. Here are some screenshots of the data I imported into Excel using the CSV data:

Image of Adjustable Frequency Timer: Learning Engineering Nuances

Let's zoom in on one time period.

Image of Adjustable Frequency Timer: Learning Engineering Nuances

The datasheet for the 555 IC also includes formulas for T_High(time high) and T_Low(time low). The calculated time for TH should be around 0.402s. The calculated time for TL should be around 0.392s. My TH is pretty close, but my TL is a bit off. The effect is far more prominent at the "60Hz" end. My scope was only reading about 30Hz.

Image of Adjustable Frequency Timer: Learning Engineering Nuances

Image of Adjustable Frequency Timer: Learning Engineering Nuances

In this instance, TH is calculated to be around 0.0139s. TL is calculated to be around 0.0043 seconds. Again, my TH is close, but my TL is way off...there is about a 318% error!

Finding the Cause

Initially, I thought maybe my timer wasn’t functioning correctly. It turns out there is a lot more to selecting parts than I thought. I couldn’t figure out what was happening because my circuit was hooked up right, and I double-checked the calculations. This is the case where AI can be helpful in troubleshooting. It found an application note made by Philips called AN170. For context, if you aren’t sure what an application note is, engineers will often do a deep dive on a component and find design details that aren’t specified in datasheets. They will also reference outside sources to back up the claims they make. One particular note that is necessary can be found on page 6 under Selecting External Components:

Image of Adjustable Frequency Timer: Learning Engineering Nuances

In short, I was driving far too much current through the discharge NPN transistor Q14 on the internal design. As you reach the upper end of the current limits, you are driving up the Vce(sat) voltage; if you have a higher voltage drop, you will have more “resistance” added, which causes a timing error. Eventually, it actually could wear out the transistor too. Note that when I made my second prototype with the 5k minimum for Ra that I did not change the types of resistors and capacitors. The new resistor value does change the electrolytic down to 2.2uF.

Re-Design and Evaluate

Here is a new circuit diagram:

Image of Adjustable Frequency Timer: Learning Engineering Nuances

Instead of providing a picture of the new circuit on the breadboard, I challenge you to replace the values based on the original picture!

Here are the results for this new version on the O-scope:

Image of Adjustable Frequency Timer: Learning Engineering Nuances

Image of Adjustable Frequency Timer: Learning Engineering Nuances

The calculated TH should be around .317s, the observed is 0.34s. The new TL should be around 0.309s, the observed value is 0.320s. This is a lot more consistent. Again, it’s even more apparent at the higher frequency:

Image of Adjustable Frequency Timer: Learning Engineering Nuances

Image of Adjustable Frequency Timer: Learning Engineering Nuances

The frequency I read on my oscilloscope was about 59.5+ Hz. The calculated TH should be 0.0117s, the recorded value is 0.0112s. The calculated TL should be around 0.0041s, the recorded value is 0.004s. This is only 2% off! I think the results speak for themselves; the device is not faulty (my assumptions were).

Takeaways

  1. Datasheets may not tell the whole story about an integrated circuit.
  2. a. They do give parameters to make sure you don’t burn the part out and often provide equations, but there was no guidance in selecting parts here.

  3. Measure your output signal; don’t assume you got it right the first time!
  4. Application notes often contain critical design guidance! These engineers know a lot more about the in-depth features!
  5. Design iterations are normal; you might have more than 2 prototypes.
  6. Don’t assume your device is faulty; you may have selected poor components like I did.
Mfr Part # NE556N
IC OSC TIMER DUAL 100KHZ 14-DIP
Texas Instruments
Mfr Part # WW3FT250R
RES 250 OHM 1% 3W AXIAL
Stackpole Electronics Inc
Mfr Part # FMP100JR-52-110R
RES 110 OHM 5% 1W AXIAL
YAGEO
Mfr Part # 860080372002
CAP ALUM 56UF 20% 16V RADIAL TH
Würth Elektronik
Mfr Part # CT-6EP103
TRIMMER 10K OHM 0.5W PC PIN TOP
Nidec Components
Mfr Part # C321C103K3G5TA
CAP CER RAD 10NF 25V C0G 10%
KEMET
Mfr Part # 151053GS03000
LED GREEN CLEAR 5MM ROUND T/H
Würth Elektronik
Mfr Part # CMF5550R000FKEK70
RES 50 OHM 1/2W 1% AXIAL
Vishay Dale
Mfr Part # TRE06S050-A-01E03 VI
AC/DC WALL MOUNT ADAPTER 5V 6W
Cincon Electronics Co. LTD
Mfr Part # LDC-131HS-J-054-AG-19
CONN PWR JACK 2.1X5.5MM SOLDER
Linkplex
Mfr Part # 2190E
100MHZ DIG STORAGE OSCILLOSCOPE
B&K Precision
$550.00
View More Details
Mfr Part # FT-63EV204
TRIMMER 200K OHM 0.5W PC PIN TOP
Nidec Components
Mfr Part # C566D-RFE-CV0X0BB1
LED RED DIFFUSED 5MM OVAL T/H
Cree LED
Mfr Part # CF12JT120R
RES 120 OHM 5% 1/2W AXIAL
Stackpole Electronics Inc
Mfr Part # 860020672006
CAP ALUM 2.2UF 20% 50V RADIAL TH
Würth Elektronik
Mfr Part # CMF555K0000BHEB
RES 5.00K OHM 1/2W .1% AXIAL
Vishay Dale
Mfr Part # MF0207FRE52-2K7
RES 2.7K OHM 1% 0.6W AXIAL
YAGEO
Add all DigiKey Parts to Cart
Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.