Title: Virtual Mechanisms
1Virtual Mechanisms
2DC Motor Model
3Motor Driver Circuit
Vpcout
Imtr
IRckt
Rckt
4Computer Output Controls Motor Current
- Computer Outputs a voltage Vpcout
- Op-amp gets voltage to appear across a known
resistor Rckt - Voltage V across R generates current
- IRckt Vpcout / Rckt
- All current I going through R also goes through
motor. - Thus, motor current Imtr Vpcout / Rckt
- How should we command desired torque?
- Vpcout Rckt tdesired / Kmtr
5Motor Driver Circuit
Vpcout
Imtr
IRckt
Rckt
6New Motor Drive Circuit
7Caveats for New Circuit
- You MUST rewire the terminal board, and connect
screw terminals 2, 4, 6, and 8 together, and
separately terminals 3, 5, 7, and 9 together. - Finally, you MUST turn OFF differential mode on
your Simulink analog inputs, and set up Simulink
blocks to average together A/D input channels 1,
3, 5, and 7, and separately, channels 2, 4, 6,
and 8.
8Motor Voltage is read into computerMotor Current
is read into computer
- Motor Voltage reading is straight
- Motor Current reading is multiplied by Rckt to
create a voltage for the A/D - How do we figure out w from motor voltage?
- Vemf Vmtr Imtr Rmtr
- w Vemf / Kmtr
9What we can now do
- Command Motor Torque
- by commanding desired motor current
- Check if we got torque we asked for
- by checking actual motor current
- Measure motor speed
- by measuring motor voltage and
- subtracting IR drop of motor resistance
10How do we measure motor angle?
- Integrate w dt !
- Is this reliable over long periods?
- No!
- What goes wrong?
- Drift!
- What can we do to get decent short-term readings?
- Leak!
- Insert a high-pass filter
- Dont let low frequencies through (especially DC)
- Let high frequencies through
11Huygens Eureka Notebook entry, January 20,
1675 Showing the invention of the hair spring
balance wheel clock mechanism
12Thuret Clock, 1675Built to demonstrate the
invention
13Lab 8
14Todays Lab 8 SystemA mixture of simulated lab
set-upActual Control System
15Simulated Motor
16Simulated Motor
W
17Simulated Physical World
18Simulated Physical World
19Simulated Electronics
20Simulated Electronics
21Inverse Model of Electronics(Part of Actual
Control System)
22Inverse Model of Electronics(Part of Actual
Control System)
23Inverse Model of Motor(Part of Actual Control
System)
24Inverse Model of Motor(Part of Actual Control
System)
25Inverse Model PhysicalMotor Electronics
26Inverse Model of Friction Added Virtual
Damping(Part of Actual Control System)
27Inverse Model of Friction Added Virtual
Damping(Part of Actual Control System)
28Added Spring(Part of Actual Control System)
29Added Spring(Part of Actual Control System)
30High-Pass Filterto Prevent Integrator Drift
31SIMULINKDEMOS
- Next Time
- Modeling the
- ESCAPEMENT