You are on page 1of 26

Prepared with the contribution of

Zero crossing detector


3DEXPERIENCE R2021x
Pune Vidyarthi Griha’s
College of Engineering
and Technology , Pune.
PVG’s College of Engineering and Technology

Students Bio

Sidhoji Uday Sawant


Electrical Engineering
Third Year
PVG’s COET
PVG College of Engineering and
Technology (PVG COET) is an
engineering college in Pune,
Maharashtra, India. Established in
1985, Pune Vidyarthi Griha’s College
of Engineering and Technology, an Teachers Bio
affiliate to the Savitribai Phule Pune
University and accredited ‘A’ by NAAC Dr. Mrs. V. A. Joshi
Electrical Engineering
is one of the reputed engineering Professor
colleges in India. College provides PVG’s COET
courses on Engineering disciplines
and offers some of the most
advanced platform and infrastructure
to its students.
Teachers Bio Teachers Bio

Dr. Mrs. G. A. Vaidya Dr. M. P. Bhawalkar


Electrical Engineering Electrical Engineering
Professor Assistant Professor
PVG’s COET PVG’s COET

Prof. Mrs. Preeti R. Khatri


Electrical Engineering
Assistant Professor
PVG’s COET
Zero Crossing Detector (Circuit Diagram)
Overview

• ZCD library is created to group all the classes as one.

• Zcd_model class is used to build the zcd model for further use so that user can utilize the block
created and not modify any internal connections.

• ZCD_exp class is used to create an experiment to study the ZCD characteristics.

• In ZCD_exp class the user can connect sine voltage and voltage sensor to see the input and output
waveforms.
Theory :

Zero Crossing Detector.


A zero crossing detector is the simplest circuit configurations of op-amp switching circuits. In this configuration, the input
signal is applied to one of the input terminals while the other input is connected to ground. This circuit needs no feedback
connection.

Non-Inverting Zero Crossing Detector.


• If the input signal source is connected to the non-inverting input terminal of the op-amp and the inverting input terminal
is grounded, the circuit is called a Non-inverting zero crossing detector. 
• When the input signal is above ground level, the output of the circuit is saturated at its positive extreme. When the
input goes below ground level, the output voltage of the circuit immediately switches to its negative saturation level.
• Every time when the input signal crosses the zero voltage level, the output switches between one saturation level and
the other.
• Since the output of the circuit goes into positive saturation when the applied input voltage is positive, the circuit is
categorized as a non-inverting zero crossing detector.
• Regardless of the shape of the input wave, the output is always a rectangular wave (ideally).
Open Catia Behavior Modelling Application
Import Modelica Standard Library
Create a New library and two new classes
From the tabs below select the Behaviour authoring tab and 
Select the New Modelica Library to create a library and New Modelica Class to create a class 

1) Name the library as ZCD and click on OK


2) Name the first class as Zcd_model and insert the class in the created library
3) Name the second as ZCD_exp and similarly insert in the library

2.

1.

3.
Dragging components.

In Zcd_model drag and drop the following components:

• OPAMP - Modelica > Electrical > Analog > Ideal > IdealizedOpAmpLimted
• RESISTOR - Modelica > Electrical > Analog > Basic > Resistor (3 times)
• GROUND - Modelica > Electrical > Analog > Basic > Ground

In ZCD_exp drag and drop the following components :

• SineVoltage - Modelica > Electrical > Analog > Sources > SineVoltage
• VoltageSensor - Modelica > Electrical > Analog > Sensors > VoltageSensor
After dragging the components connect them as follows :
Connections and parameters.
• After connecting the components edit the parameters in the Edit Modelica Parameters window.
• Also propagate the values of resistor and Vps and Vns of opamp.
Create icon.
• After editing the parameters create an icon for the Zcd_model
One can edit the graphic properties from Modelica Graphics Properties menu
• After creating an icon insert a picture

• One can upload image from desktop


• After inserting picture the model will look like this :
Completing the circuit.
• In the ZCD_exp class drag and drop the Zcd_model and complete the
circuit by connecting the sine voltage and voltage sensor.
• Rename sine voltage as Vin and voltage sensor as Vout and enter the
parameters.
Simulation.
• In the Simulation Setup window set the parameters as follows and then click the paly icon.
Results.
• In the variable window you can see the variables. • By clicking on the variables you can plot the required graphs.

Output waveform:

Input waveform:
• To compare the input and output voltage graphs add the output plot to the input plot.
Input and output waveforms:
References

• Image source - https://www.electronicshub.org/wp-content/uploads/2015/01/Non-Inverting-Zero-Crossing-Detector.jpg

• Theory source - https://www.electronicshub.org/non-linear-op-amp-circuits/#NonInverting_Zero_Crossing_Detector


Thank you 

You might also like