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

Click For Summary
SUMMARY

This discussion focuses on controlling current in an RL circuit using state space modeling. The state space equations derived include x' = (u - Rx) * (1/L) for current and y = (u - Rx) for the voltage across the inductor. The user Sundaram is guided to rewrite the variables for clarity, leading to the equation x1' = u/L - (R/L)*x1. The MATLAB implementation provided includes the state space representation with matrices A, B, C, and D, allowing for step response analysis of the system.

PREREQUISITES
  • Understanding of RL circuit fundamentals
  • Familiarity with state space modeling techniques
  • Knowledge of MATLAB for system simulation
  • Basic concepts of control theory
NEXT STEPS
  • Study the derivation of state space equations for different circuit configurations
  • Learn MATLAB's Control System Toolbox for advanced simulations
  • Explore the application of Kirchhoff's laws in circuit analysis
  • Investigate control strategies for managing current in electrical circuits
USEFUL FOR

Electrical engineers, control system designers, and students studying circuit analysis and state space modeling will benefit from this discussion.

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:

Similar threads

  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K