• on Test & Measurement
  • Published in issue 1/2012 on page 70
About the article

Time / Interval Meter

with ATtiny

Time / Interval Meter
This project goes to show what little hardware is sufficient to build a versatile Time and Interval Meter with a user-friendly LCD readout. An AVR microcontroller type ATtiny2313 measures the time interval between two consecutive logic level transitions of pulses applied to input pins PD2 and PD3. In the microseconds range, time intervals from 10 microseconds to 30 minutes (!) can be measured with a resolution of 1 microseconds. In the ms range, the available range is 1 ms to four hours at 1 ms resolution.
Downloading of this magazine article is reserved for Elektor Members only.
Already a member? click here to log in.
Products
Gerber file

CAM/CAD data for the PCB referred to in this article is available as a Gerber file. Elektor Members can exclusively download these files for free as part of their Membership. Gerber files allow a PCB to be produced on an appropriate device available locally, or through an online PCB manufacturing service. Elektor recommends its business partner Eurocircuits as the company of choice for its own prototypes and volume production in selected cases.

Resistors
R1,R3 = 10k
R2 = 1k
R4 = 39
R5 = 1kOhm8
P1 = 10kOhm preset
Capacitors
C1 = 22µF 35V radial
C2,C3,C6 = 100nF
C4 = 47pF trimmer
C6 = 22pF
Semiconductors
D1 = 1N4001
D2,D3 = BAT41
D4 = low current LED
IC1 = 78L05
IC2 = ATtiny2313, programmed, Elektor Shop # 080876-41
Miscellaneous
S1 = tactile switch, 6mm footprint
S2 = 4-way DIP switch
K1,K2 = PCB mount terminal block, lead pitch 5mm (0.2")
K3 = 10-way boxheader
X1 = 8MHz quartz crystal
LCD1 = LCD module, 2 lines, 16 characters, e.g. DEM16217
PCB, ref. 080876-I

Loading comments...