Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

  1

Square wave generator using Logic gates

Square wave generator using Logic gates

Square waves are extensively used in many digital circuits. Many combinational logic circuits require this wave to operate. Here are few methods you can generate simple square wave using NAND, Inverter and Schmitt Trigger gates. These kind of square wave generator fit perfectly for simple oscillator applications with minimum effort required to build.

SQUARE WAVE GENERATOR USING NAND GATE:

square-wave-generator-nand-gate

You can generate square waves using two nand gates connecting together. I have used 7400 IC which is a quad two input NAND gate IC. We all know that NAND gates output will be high for input states 00, 10 and 01 and low for input 11. Here both the input pins are connected together following the same logic. The RC circuit R1C1 forms the important timing element in this circuit.

The R1C1 network is controlled by the first NAND gate U1:A and this is fed back to the input of U1:A which operates in loop to generate square waves. When the low input is fed into U1:A high output is exhibited from it. This starts charging the capacitor through R1 when the Capacitor Voltage V reaches the input threshold U1:A the output of U1:A switches to low 0. The capacitor starts discharging and thus repeats the same procedure over and over again forming square waves.

The frequency of the square wave is given by f = 1 / 2.2 R1C1

SQUARE WAVE GENERATOR USING SCHMITT TRIGGER INVERTER:

square-wave-generator-schmitt-inverter

This square wave generator is made out of 7414 a Hex Schmitt trigger inverter IC. We knew that Schmitt trigger operates with the threshold level of the input unlike digital inverter gates. The timing of the circuit is governed by the R1C1 RC circuit. The output of the inverter to fed into the input providing positive feedback to it.

When the input of the inverter gate is  less than the minimum threshold of the trigger the output state will be high. This makes the capacitor to charge through the resistor R1. When the capacitor voltage reaches the maximum threshold of the trigger output changes to low state. This discharges the capacitor and the drop in voltage forces the cycle to repeat again.

The frequency of the generated square wave is given by the formula f = 1/1.2 R1C1

SQUARE WAVE GENERATOR USING NOT GATE:

square-wave-generator-not-gate

This follows the similar principle of the other two circuits and built around 7404 a hex inverter IC chip. The timing element is again controlled by the RC network R1C1 and R2 is meant to provide feedback input to the U1:A inverter.

When the input at U1:A is low the output of the U1:C will be in high state and this makes the capacitor to charge through R1. When the capacitor voltage C1 is high to trigger the U1:A its output state changes. This causes the capacitor to discharge and again when the voltage drops the U1:A output changes its state and the whole procedure will repeat in loop to generate square waves.

The frequency of the above circuit can be given by the formula f = 1/ 1.1 R1C1

NOTE:

  • The power and ground pins are omitted in all the circuit diagrams to make it simple.
  • These kind of square wave generators was easy to build and have some limitations such as maintaining the duty cycle for a long period of time, so fit goof for simple applications.

Read more Here

Pinned onto

Likes

avatar

Related Pins

Tutorial: DHT22 sensor with a PICmicro
Tutorial: DHT22 sensor with a PICmicro
BQ24650 Based MPPT li-ion Battery Chage Controller With Software MPPT adjust and 3 Channel LED P ...
BQ24650 Based MPPT li-ion Battery Chage Controller With Software MPPT adjust and 3 Channel LED PWM dimming.
Play beautiful music on an Arduino thumb piano
Play beautiful music on an Arduino thumb piano
40 dB attenuator
40 dB attenuator
A multimeter heads-up display with Arduino glasses
A multimeter heads-up display with Arduino glasses
Robotic fish swims under Arduino control
Robotic fish swims under Arduino control
Arduino Xylophone
Arduino Xylophone
MPPT Solar Charger Testing
MPPT Solar Charger Testing
Design and Application Guide of Bootstrap Circuit for High-Voltage Gate-Drive IC
Design and Application Guide of Bootstrap Circuit for High-Voltage Gate-Drive IC
ESLOV is the amazing new IoT invention kit from Arduino
ESLOV is the amazing new IoT invention kit from Arduino
μPC1237 based 2 channel speaker protector
μPC1237 based 2 channel speaker protector
ESP8266 WeatherStation Color
ESP8266 WeatherStation Color
Keyless piano project using Arduino uno
Keyless piano project using Arduino uno
IoT Wardrobe
IoT Wardrobe
Automotive CAN Transceivers
Automotive CAN Transceivers
Restoring a vintage Xerox Alto day 8: it boots!
Restoring a vintage Xerox Alto day 8: it boots!
Sonicare toothbrush teardown: microcontroller, H bridge, and inductive charging
Sonicare toothbrush teardown: microcontroller, H bridge, and inductive charging
Reverse engineering a server CPU voltage regulator module
Reverse engineering a server CPU voltage regulator module
Building a sweet plastic MIDI controller
Building a sweet plastic MIDI controller
A DIY interactive book that uses digital gestures
A DIY interactive book that uses digital gestures

Top


Shares