How can I control the current in an RL circuit using state space modeling?

AI Thread Summary
The discussion focuses on using state space modeling to control current in an RL circuit. Sundaram seeks assistance in framing the state space equations for monitoring the current through an inductor. The initial equations provided are refined to use standard variables, leading to the formulation of the state space representation. A MATLAB implementation is suggested, detailing the system matrices A, B, C, and D for simulating the circuit's response. This approach allows for effective control and analysis of the current in the RL circuit.
nbsundaram
Messages
1
Reaction score
0
Hi.. This is sundaram, I'm trying to learn state space modeling, I'm trying to model the simple RL series circuit, to control/read the current flowing through inductor.

I could find the way to monitor the voltage across inductor. as below

x'=(u - Rx)*(1/L)
y=(u - Rx)

where:
x => i (current), x' => di/dt
R=> resistance & L=> inductance
u is the applied voltage
y=> the voltage across inductor


can anyone help me in framing the state space equation to control I

Thanks in advance..!
Sundaram..
 
Engineering news on Phys.org
I'm too lazy to figure out and rewrite your variables.

Rewrite it with I, V, and R and subscripts.

I'm not sure what you mean by state space, but maybe it will be clear when you rewrite the equations.
 
hello sundaram...
you did right... let me call the current that is flowing through the inductor iL = x1
using kirchhoff voltage law you got

x1' = u/L - (R/L)*X1

to "control" your current you just need to use y = x1

in MATLAB you can use
A = [-R/L]
B = [u/L]
C = [1]
D = 0
sys = ss(A,B,C,D)
step(sys)
it will show you the step response of your system using the current as output. :D
 
Last edited:
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...

Similar threads

Back
Top