Counting a 555
A 555 astable with a frequency counter and a multimeter on its Hz range: frequency, period, duty and a running pulse total, against the arithmetic. There is no microcontroller in it: the simulator solves the 6 parts as a circuit, so it runs the moment you press Run, and nothing needs compiling.
IntermediateRuns in your browser. Free, and no account needed.
How it works
There is no microcontroller in this one, so nothing is compiled: the simulator solves the circuit itself. The file in the editor is the notes that come with it.
// Counting a 555, three ways.
//
// The astable is the textbook one: R1 = 10 k from the supply to DIS, R2 = 10 k
// from DIS to THR, and 100 nF from there to ground.
//
// high = 0.693 x (R1 + R2) x C = 1.386 ms
// low = 0.693 x R2 x C = 0.693 ms
// period = 2.079 ms -> 481 Hz, high for 2/3 of it
//
// The counter says 481 Hz, and under it the period, the duty and how long
// each cycle spends high. The multimeter, on its Hz position, says the same
// number, because underneath they are the same comparator and the same
// counter. What differs is the gate: the counter's is a whole second by
// default and the meter's is a quarter of one, which is why the meter follows
// a changing frequency sooner and the counter is steadier.
//
// Neither of them samples. Both are told the instant the net crosses the
// trigger level, so the reading does not step in units of anything and a
// frequency a thousand times higher would be counted just as exactly.
//
// Things to try:
//
// Make C1 1 uF and the frequency drops by ten, to 48.1 Hz. The arithmetic
// above is linear in C, so check it.
// Make R2 100 k and the duty goes from 67% towards 52%, because the charge
// path (R1 + R2) and the discharge path (R2) become nearly equal.
// Press RST on the counter and the pulse total starts again from zero. At
// 481 Hz it is up in the thousands within seconds, which is what a counter's
// TOTAL function is for: counting things that happen, not measuring a rate.
//
// What neither instrument can tell you: there is no noise in here, so there is
// no trigger sensitivity and no false counting on a slow edge, and no input
// bandwidth; a real counter's front end would have opinions about both.
Parts list
8 parts, plus the jumper wires. Every one is in the editor's parts bin.
- 1 × Full-size breadboard
- 1 × Power, 5 V
- 2 × Resistor, 10k Ω
- 1 × NE555 timer
- 1 × Capacitor, 100 nF
- 1 × Frequency counter
- 1 × Multimeter
How it is wired
5 connections, pin by pin, read from the circuit itself. Each line is one set of pins joined together, by a jumper wire or a breadboard strip.
- 5 V: Resistor, 10k Ω (1) pin 1; NE555 timer pin RESET; NE555 timer pin VCC
- Ground: NE555 timer pin GND; Capacitor, 100 nF pin 2; Frequency counter pin GND; Multimeter pin COM
- Resistor, 10k Ω (1) pin 2; NE555 timer pin DIS; Resistor, 10k Ω (2) pin 1
- NE555 timer pin TRIG; NE555 timer pin THR; Resistor, 10k Ω (2) pin 2; Capacitor, 100 nF pin 1
- NE555 timer pin OUT; Frequency counter pin IN; Multimeter pin V
Change it and keep it
Open it in the editor, change the circuit or the code, and keep your version in a free account.