# Tag Info

13

You have created an ideal (infinite bandwidth OPAMP, infinite output voltage etc...) model which is conditionally stable & executed it. look at your y-axis, it has reach 1.5x$10^{59}$ HUGE!. This is what is causing an exception... its run out of resolution to represent this unstable "oscilator" IF a closer to reality OPAMP is used (+-15V, gain ...

10

It does oscillate, you can see that it does on the right side of the plot. If you zoom in on the left side you should also see the oscillation but at a much smaller amplitude. Your misconception comes from the fact that you first have to understand the theory of operation of oscillators. I suggest reading about the Barkhausen stability criterion. This ...

5

Your model is not built in simpowersystem environment so you can not use the voltage measurement block. The correct way to measure the voltage, is by using "voltage sensor" from Simscape>foundation library> Electrical> Electrical sensors. And then use "PS-Simulink Converter" to convert the physical signal to a simulink signal. And most importantly, use "...

5

It has started to oscillate. The amplitude grows exponentially. Simulation is stopped when some current, voltage or internal variable reaches the limit of the available number range. Take a couple of zener diodes connected in series having the anodes against each other. Insert that limiting circuit in parallel with one of the capacitors. The amplitude does ...

5

Just to add yet another post on this. Here's a circuit that should actually work, using a quad LT1631 and a single power supply rail: simulate this circuit – Schematic created using CircuitLab The output frequency should be close to about $\frac{1}{2\pi R C}$ or near $15.9\:\textrm{kHz}$ for the given values of $R=1\:\textrm{k}\Omega$ and $C=... 4 The DAC is simply the feedback portion of the ADC. The basic concept is illustrated here: simulate this circuit – Schematic created using CircuitLab The contents of the dashed boxes is identical at both ends. On the ADC side, the feedback insures that the stream of one-bit samples creates a replica of the analog input signal. If this is successful, ... 3 Well as usual, I'm answering my own question, The block i was looking for is a LPF : Low Pass Filter. The idea is that we have both the Harmonics and the fundamental together and we need to separate the two, so we push P (total power) through LPF tuned at the frequency of the grid (fundamental 50/60 Hz), it will let pass only the fundamental component Pf, ... 3 The pulse width refers to the duration of the gate firing pulse. The firing angle is determined by the delay time between the zero crossing point and initiation of the gate pulse. The thyristor does not turn on instantaneously, it requires some time, perhaps 1 to 50 microseconds. The minimum required pulse width would be determined from the thyristor ... 3 YELLOW =$B$. RED =$\bar A$. GREEN =$\overline {RED + YELLOW}\\$ Purple is the implied logic for the red light, orange is the implied logic for the yellow light and green is for the green light. One OR gate and two inverters would do the trick.

2

(Answering this despite broad scope because this is clearly a student capstone project... I'm treating this as a question about how a university student should approach capstone project management.) As with any design, first identify the project requirements, and try to break down the whole project into smaller design units. This is still a pretty big ...

2

Well, if you can stabilize the PLL a bit more this is going to provide better pay-back when it comes to recovering the data but, in the absense of any improvement, you could try passing the signal through a high pass filter that has a cut-off close to the data rate frequency. It should remove the lower frequency up-and-down wobble (to a large extent) but ...

2

The Quartus synthesizer has some serious issues. It's extremely particular about inferring RAMs as well as performing certain constant elaboration (i.e. initializing a RAM with a trig function such as sine). It's infuriating. The most annoying thing is most of this stuff will be properly recognized by the Xilinx tools. I recommend just rewriting it using ...

2

What you can do in MATLAB is the following: Make a Bode plot like this: L = 0.047; R = 220; C = 0.000001; Num = 1 ; Denum = [L*C R*C 1 ]; G = tf(Num , Denum); bode(G); grid on Or get a time-domain response like that: omega = 4e3; t = linspace(0, 3*2*pi/omega) u = sin(omega * t); lsim(G,u,t); grid on For everything else (voltages and currents for each ...

2

A rotary encoder produces a discrete output, not a continuous one so would perhaps the Z-transform be more appropriate. This book chapter gives a more thorough analysis (section 4.2.4 of Digital Control of Electrical Drives by Vukosavik).

2

You are using SimScape, the physical simulation engine within Simulink. This is apparent from the use of "Domain Styles" for the interconnections Electrical = Blue Gas = Purple Hydraulic = Mustard Magnetic = Purple Mechanical = Green Thermal = Orange Liquid (thermal) = Yellow Fluids = L.Blue. The 1st issue on your diagram is you are using the ...

2

Begin with a window comparator: - The one above works with a positive supply rail but is easily reconfigured for a split rail supply that allows the full negative and positive input range desired. So, you have a positive logic output signal from the window comparator that tells you your input signal is not too positive and not too negative. If the input ...

2

Is there any reason you are mixing SimPowerSystems & SimScape? With the introduction of SimScape "SimPowerSystems", the legacy method of dealing with electrical simulations has become redundant EXCEPT for some legacy blocks and specialised technologies. The legacy SimPowerSystems does have a more specialised battery model so I can understand why you ...

2

Seems a homework. So no full solutions will be given. This is a simple two state variable problem. The general solution is calculated followingly: Calc diffs is a block diagram which takes X1, X2 , possible external signals and constants as inputs, the outputs are the derivatives of the state variables. You need seemingly two summing junctions, 3 polarity ...

2

Runt pulse suppressor Depends on spec for min. ratio of latency/glitch time . ideal=1, 1st order filter with 10% loss in noise margin is ~10:1 ratio. simulate this circuit – Schematic created using CircuitLab Ideal method needs a self clocked register that only changes state after any edge if it is still same after x ns

2

I was going about tackling this problem completely wrong. In order to replace the summing block, one must NOT remove the Transfer Function blocks which feed into the summing block and add them inside the script. A MATLAB Function does not support code generation (and rightly so) such that a transfer function may be implemented inside it. That is why the ...

2

This is a numeric issue caused by the simulation step size. The system poles have real parts in -0.4e6, and as can be seen in the matlab 'step()' result, the settling time is lower than 2e-5. Using simulink default simulation parameters, the system response will be evaluated in time-steps that are larger than what is necessary to describe what is really ...

2

This answer pertains to the question title "How to design an observer to estimate all states from a single sensor". I'm pretty sure that you have the input vector to the compensator reversed. You either need to reverse the order that signals go into the multiplexer, or you need to reverse the order of the B matrix in the compensator (by changing it to [L B]...

2

I would say you are doing something wrong in using matlab num_plant = [0.0001 10]; den_plant = [0.005 5 0.6616 61.01 2.11 20]; G1 = tf(num_plant, den_plant) num_controller = [46615 6526 5.722e05 2.389e04 2.001e05] den_controller = [1 404 41605 162000 200000] C2 = tf(num_controller, den_controller) G2=G1*C2; %G1 is same 5th order TF as Simulink new2 = ...

2

You can write the equations easily from the truth table $$Red = \bar A$$ $$Yellow = B$$ $$Green = A \land \bar B$$ They can be built the following circuit:

2

I do have a tip for you! Work column by column, not row by row. First, create a circuit for the red light, ignoring the other two lights. Next, do the same for the yellow light. Finally, do the same for the green light. After you've created these three circuits, you can simply combine them into one.

2

The equations are slightly different and its a difference between time constants and gains. Source: https://www.mathworks.com/help/control/ug/proportional-integral-derivative-pid-controllers.html

1

Each configurable block in simulink can be configured with a unique or common variable. Below is a simple workspace with 5 constant block. The constant block was chosen because the block mask updates with the configured variable. Constant is set to 1 Constant1 is set to 10 Constant2 is set to variable foo Constant3 is set to variable foo Constant4 is set ...

1

The battery's internal resistance is IN SERIES with the battery. With no load connected, the battery will not deliver any current, and there will be no voltage dropped across the internal resistance. With a load connected, the battery will deliver current, which will flow through the internal resistance. This current causes some voltage drop in the ...

1

The simplest method is always a good place to start. From sources place a repeating sequence and configure it as a triangle wave... Peak of 1, freq 10k. Also as a sinus source. Peak of 1, freq of 50Hz Add a compare block (under discrete) and send the sine wave to input 1 and the triangle to input 2. Consider the numbering of the MOSFETS 1 3 4 2 Send ...

1

In logic we call this Not Exclusive OR or XNOR and a simple RC delay will produce this when biased to Vdd/2 on one side of an XNOR = XOR & INV. simulate this circuit – Schematic created using CircuitLab In analog a 4 diode bridge does this when limited to logic levels. simulate this circuit For analog comparators, it can just be a comparator ...

Only top voted, non community-wiki answers of a minimum length are eligible