Implemetation of a linear differential equation and filters and various equations in Pspice Orcad
Linear Differential Equation
Given that on day 1 there was only one bacterium in the jar. The bacteria multiply by binary fission (one bacteria splits into 2 per second) .
Find the plot of bacteria population vs time using analog circuits .
In the above differential equation k=ln(2).
Simulation results on transient analysis :
Design a frequency-dependent analog system that squares, integrates, and differentiates signals at different frequencies that lie max 5 Hz apart.
- Say your system produces a squared output of the input voltage when the input ac source frequency is “x Hz”. Similarly, when the input frequency is “y Hz” then, say, it produces the differentiation of the input voltage, and say at “z Hz” it integrates the input signal to produce the output. And say x < y < z; then |x-y| <=5 Hz and |y-z| <=5 Hz and |x-z|<=10 Hz, and x ≠ y ≠ z
- You can choose any 3 frequencies such that they lie in a range of 10 Hz, say for example (50,55,60) or (120,124,128) or (900,903,908),....... and so on.
- Also, you can produce the outputs in any order, i.e., say the frequencies are x,y,z Hz then any of the three frequencies could be allotted to any of the three operations, but it should follow the constraint x ≠ y ≠ z.
- Design should have only one input terminal and one output terminal.
#include<iostream>
using namespace std;
int main(){
float q=50;
float fc=110;
float af=10;
float c=1e-6;
float r1=(q)/(2*3.141*fc*c*af);
float r3=(q)/(3.141*fc*c);
float r2=(q)/(2*3.141*fc*c*(2*q*q-af));
cout<<"r1="<<r1<<" r2="<<r2<<" r3="<<r3;
}
Simulation results on AC sweep :
Procedure : Double rectifier + log + (antilog and adder )
Simulation results on transient analysis :
Actual Waveform : blue
Square wave : red
differentiated wave(-ve) : pink
integrated waveform(-ve) : yellow
Final output : green
Software Used : Orcad