Skip to content

ananya2022/Function-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Function-Generator

Table of contents

Abstract

Function generators have versatile applications in electronics. In this work, a function generator has been constructed by cascading three well known circuits – The Wien Bridge Oscillator, Schmitt trigger, Integrator. The Wien Bridge Oscillator has been constructed using JFET and Op Amp; Schmitt trigger using CMOS transistors; Integrator using the RC circuitry. The Wien Bridge Oscillator produces a sine wave that acts as an input to the Schmitt trigger circuit which in turn converts it to a square wave. The square wave is further converted to a triangle wave by the integrator. The inital design had descrepancies while simulating and did not give expected results. Modified circuits gave good results. The circuit has applications in signal testing and biomedical instrumentation.

Reference Circuits and details

This waveform generator is a combination of the three standard circuits - Wien Bridge Oscillator, Schmitt Trigger and Integrator. The most commonly found, standard electronic circuits were designed differently keeping in mind the efficiency of functioning and advantages to produce a new circuit with versatile applications. The Wien Bridge Oscillator was initially conructed using two JFETs. The Schmitt trigger circuit was constructed using CMOS transistors and an Op Amp RC integrator was used. A lot of descrepancies in the parameters and subsequent waveforms were seen. Owing to this, a new design was adapted using Op Amp and FET (Wien Bridge) and RC Integrator. NMOS and PMOS transistors of 0.180um length, widths of (0.36um and 0.9um respectively) were used. The JFET in the JFET stabilized Wien Bridge circuit is expected to maintain constant, stabilized oscillations. Also, the CMOS Schmitt trigger has advantages like low power consumption, noise immunity, etc. The RC integrator

Initial design

WhatsApp Image 2022-02-28 at 11 49 29 PM

Implemented design

The modified circuit consists of a Wien Bridge Oscillator (JFET and Op Amp), CMOS Schmitt Trigger and RC integrator.

Wien Bridge Oscillator

image

Schmitt trigger

image

Integrator

image

Methodology

  • Design the circuit using eSim
  • Convert KiCad to Ngspice
  • Simulate
  • Perform analysis and trace waveforms

Software used in implementing the circuit

  • eSim - It is an Open Source EDA developed by FOSSEE, IIT Bombay. It is used for electronic circuit simulation. It is made by the combination of two software namely NgSpice and KiCAD. For more details refer: https://esim.fossee.in/home
  • NgSpice - It is an Open Source Software for Spice Simulations. For more details refer: http://ngspice.sourceforge.net/docs.html

Implemented Circuit

image

Implemented Waveforms (Observed Outputs)

The following are the output waveforms of the implemented circuits.

Combined Output - Ngspice

image

Combined Output - Python

lastone

Wien Bridge Oscillator Output - Ngspice

image

Schmitt trigger Output - Ngspice

image

Integrator Output - Ngspice

image

Netlist

image

Inference

Function generators are standard circuits in the electronics discipline used to produce different kinds of waveforms (usually sine, square, triangle waves). In an attempt to design a waveform generator, three standard circuits have been employed. Unlike these circuits that function based only on Op Amps, two of them have been designed separately using different components. Wien bridge oscillator has been constructed using an additional JFET and the Schmitt trigger circuit has been constructed using CMOS (PMOS and NMOS) transistors. RC integrator was used to convert square wave into a triangle wave. Each circuit involves separate circuit analysis and formulae to analyze the working. The circuitry and design have been referred from various sources and were cascaded to get a desired output for suitable applications. However, the circuit design proposed in the literature review did not give the expected results and suitable modifications have been carried out. This could be attributed to the internal parameters and time scale variation in subsequent circuits while simulating. Changes in the wave parameters were seen after cascading. However, the modified design produced better results.

Applications

It is used to test the working efficieny and outputs of circuits and instruments, to generate waveforms, to drive clock and diode circuits, to study frequency response, etc. Apart from these, waveform/function generators find wide varities of applications in biomedical instrumentation (sensors, pacemaker, ultrasound, etc.)

Author

Ananya N, I M.Sc. Physics (Materials Science), ICT Mumbai

Acknowledgement

  • FOSSEE, IIT Bombay
  • Kunal Ghosh, Co-founder, VSD Corp. Pvt. Ltd. - kunalpghosh@gmail.com
  • Sumanto Kar, eSim Team, FOSSEE

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published