Fork me on GitHub

Project Notes

#022 Square Wave - Schmitt Oscillator

Using an 74LS14 Hex Inverter with Schmitt Trigger Inputs to generate a square wave.

Here’s a quick video of the circuit in action:

Schmitt Oscillator

Notes

One inverter unit of the 74LS14 Hex Inverter with Schmitt Trigger Inputs is used as an oscillator. The input and output levels are read with analog input pins, and the values is echoed to the Arduino serial port for plotting.

All unused outputs on the 74LS14 are left open circuit. Unused inputs are grounded, as is recommended to avoid unstable operation.

The frequency of the oscillation is calculated as:

f = 1 / (1.2 * R * C)
f = 1 / (1.2 * 1kΩ * 470µF)
f = 1.77 Hz

The oscillating output from the inverter is used to drive the base of a general-purpose NPN transistor, switching a LED on and off in turn. The transistor is used to isolate the 74LS14 from the load, as it is not designed to directly handle any significant current.

Here’s a sample trace recorded using LEAP#090 PlotNValues (a simple Processing sketch) to read the data collected by the SchmittOscillator.ino program. The lower trace is the input, and the upper trace is the output of the inverter:

processing trace

Schmitt inverters produce a non-symmetrical waveform. The duty cycle is about 33%, and levels not very stable. This is particular to the LS (low-power Schottky) version of the 7414. To oscillate at all, R values must be kept between 100Ω and 1kΩ, and C between 1nF and 1000µF.

Apparently 74HC14 has a duty cycle more like 50% and can handle higher values of R (but I don’t have one handy to test).

See Schmitt Waveform Generators for more, and Circuit Properties of LS and HC Digital Logic for comparison of LS and HC characteristics.

See the RingOscillator project for a related application of inverters in waveform generation.

Construction

The Breadboard

The Schematic

The Build

Credits and References

About LEAP#22 CMOS/TTLOscillators

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

Project Source on GitHub Return to the LEAP Catalog
About LEAP

LEAP is my personal collection of electronics projects - usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader