The Biggest Little Chip: An Intro to the Versatile 555 Timer

Computers & Mobile Technology
The Biggest Little Chip: An Intro to the Versatile 555 Timer

Back in 1970, when barely half a dozen corporate seedlings had taken root in the fertile ground of Silicon Valley, a company named Signetics bought an idea from an engineer named Hans Camenzind. It wasn’t a breakthrough concept, just 23 transistors and a bunch of resistors that would function as a programmable timer. The timer would be versatile, stable, and simple, but these virtues paled in comparison with its primary selling point. Using the emerging technology of integrated circuits, Signetics could reproduce the whole thing on a silicon chip.

This entailed some handiwork. Camenzind spent weeks using a drafting table and a specially mounted X-Acto knife to scribe his circuit into a large plastic sheet. Signetics then reduced this image photographically, etched it into tiny wafers, and embedded each wafer in a half-inch rectangle of black plastic with the product number printed on top. Thus, the 555 timer was born.

It turned out to be the most successful chip in history, in both the number of units sold (tens of billions, and counting) and the longevity of its design (unchanged in almost 40 years). The 555 has been used everywhere from toys to spacecraft. It can make lights flash, activate alarm systems, put spaces between beeps, and create the beeps themselves. Today, you can buy a single chip online for about 25 cents.

For the introductory project described below, you can use the 555CN, Fairchild LM555CN or KA555, Texas Instruments NE555P, or STMicroelectronics NE555N. The brand makes no difference. Each manufacturer offers a Complimentary Metal-Oxide Semiconductor (CMOS) version, a dual version, and a surface-mount version in addition to the old-style chip that stands on eight metal legs spaced 1/10″ apart. For various reasons, you should use the old-style version.

First I’ll show how the 555 can make an LED flash on and off. Then I’ll adapt it to generate a musical tone, and finally I’ll chain three 555s together to create a gadget you can use to impose a time limit in non-video games such as checkers or Scrabble. At the end of a preset interval, the timer will make a groaning sound to tell a tardy competitor that his time’s up and his turn is over.

The ruler in the background is calibrated in sixteenths of an inch.

Turn a 555 Chip into a Noisemaker

Figure 1 shows a 555 chip seen from above, with its pins identified. The circular mark stamped in its body is adjacent to Pin 1. Figure 2 shows a basic light-flashing circuit using the astable mode of the 555, meaning that the output on Pin 3 flips to and fro between positive and negative for as long as the power is switched on. The cycle time is determined by a capacitor and two resistors. A capacitor has electrical storage capacity (hence its name), while resistors reduce the flow of electricity. If you put a resistor in sequence with a capacitor, the resistor slows the charge and discharge times of the capacitor, thus offering a simple way to use electricity to measure time.

When you close switch S1 in the circuit, current flows through R1 and R2 and gradually starts charging capacitor C1. IC1 (the 555 timer) monitors this process. When C1 acquires 2/3 of the positive voltage powering the circuit, the 555 reverses its output on Pin 3 from positive to negative and forces C1 to discharge itself through R2. When the charge on C1 diminishes from 2/3 to 1/3, the chip flips back to its original state, resets its output from negative to positive, and repeats the cycle.

Using a 0.1 microfarad (μF) capacitor for C1, a 120 kilohm (kΩ) resistor for R1, and a 1 megohm (MΩ) resistor for R2, the LED flashes about 5 times each second. (The other components in the circuit have no effect on timing: R3 protects the LED from excessive current, while C2 protects the 555 timer from random electronic noise.)

This is how the LED-flasher circuit in Figure 2 should look,
using components plugged into a breadboard.

Suppose you use a 1μF capacitor instead of the 0.1μF capacitor as C1. Now each cycle lasts 10 times as long. Conversely, if you use a 0.01μF capacitor for C1, the cycles are 1/10 as long. You can also change the timing by adjusting the resistor values. The value of R1+R2 affects the “on” cycle, while R2 alone determines the “off” cycle.

With high resistance and a small capacitor, the 555 will cycle very fast indeed — easily fast enough for its pulses to make musical noises through a loudspeaker. Figure 3 shows a modified version of the circuit. The LED and its series resistor have been replaced with a different resistor, capacitor C3, and L1, a 1″ RadioShack miniature loudspeaker. (Note: You cannot drive a full-size loudspeaker with a 555 timer unless you add an amplifier.) Make sure you update the values of R1, R2, and C1, which have been changed to make the 555 run faster. Now when you connect power, you should hear a low-pitched drone.

Add a Second 555 to Trigger the Noisemaker for a Fixed Interval

We have a noisemaker; now we need to trigger it for a fixed interval. This can be done with a second 555 wired in monostable mode, meaning that it emits only one pulse. Figure 4 shows it added to the circuit. S2 is a pushbutton, although you can improvise just by touching 2 wires together. When this happens, IC2 emits a single pulse lasting about 1 second. This illuminates D2, an LED, to provide visual confirmation. The pulse also goes through D1, a signal diode, and activates IC1, which makes a sound as before, except that C4 prolongs it and causes it to diminish in frequency, creating a groaning effect.

Make sure this version of the circuit works before you continue.

Add a Third 555 to Time the Wait Period

We have a noisemaker that can be triggered for a fixed interval; now we need to measure an interval of time before the sound occurs. A third 555 timer can impose this wait period, if we adjust it with higher-value resistors and a larger capacitor.

In Figure 5, C7 is charged through P1, a potentiometer (variable resistor). You can “tune” P1 to adjust the wait interval, and increase the value of C7 to make the interval even longer. At the end of the interval, the output on Pin 3 goes negative. This connects with the trigger pin of IC2 and tells it to emit its brief pulse, which tells IC1 to make its sound.

The real-life version of the
circuit in Figure 5. The top chip measures a time interval (using a fixed resistor that has been substituted for potentiometer P1). The red LED flashes at the same time that a sound is generated through a 1″ loudspeaker (to the left of the chip).

Note that S2 has been moved so that it controls IC3. When you use the circuit to impose a time limit during a game, hit S2 at the beginning of each person’s turn.

So the circuit won’t make its rude noise if a player does move within the allowed time, a cancel-reset button, S3, has been added. You hit this button when a player makes a move. The “NC” beside it tells you that it is a normally closed pushbutton. You still need the power switch, S1, to disconnect your power supply when the gadget is not in use.

What’s Next?

You can substitute other components instead of the timing resistors to make the 555 behave in interesting ways. In Figure 3, if you use a thermistor or a photoresistor instead of R2, you can control the audio frequency with heat or light. A photoresistor and the 555 in monostable mode can function as a motion detector. Search makezine.com for “555″ or check out Doctronics for even more project ideas.

Hans Camenzind never imagined that his timer would become such a universal utility. He now thinks the internal design of the 555 isn’t particularly elegant and should have been given a makeover decades ago. Elegance in design can be a big deal for engineers, but for end users, utility is usually more important. The 555 is simple, accurate, and robust, tolerating a wide range of power supplies and able to drive not only LEDs and loudspeakers but also relays and even small motors.

For 25 cents, that’s more than enough.

Discuss this article with the rest of the community on our Discord server!
Tagged
Charles Platt

Charles Platt is a contributing editor to Make magazine, which has published more than 50 of his articles. Six of his books are available from Make: Books

Make: Electronics, an introductory guide, now available in its second edition.

Make: More Electronics, a sequel that greatly extends the scope of the first book.

Encyclopedia of Electronic Components, volumes 1, 2, and 3 (the third written in collaboration with Fredrik Jansson).

Make: Tools, which uses the same teaching techniques as Make: Electronics to explore and explain the use of workshop tools.

View more articles by Charles Platt

ADVERTISEMENT

Maker Faire Bay Area 2023 - Mare Island, CA

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 15th iteration!

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).

FEEDBACK