]> rtime.felk.cvut.cz Git - ert_linux_web.git/blob - rpi-pmsm-control/index.html
ebd0b79af09a40ad13ccd592fc06a1299918f768
[ert_linux_web.git] / rpi-pmsm-control / index.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2    "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5   <title>[[!meta title="Raspberry Pi Permanent Magnet Synchronous Motor (PMSM) Control"]]</title>
6   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7   <link><style type="text/css">
8     #main_content {max-width: 70em}
9   </style>
10 </head>
11 <body>
12
13 <div id="main_content" style="max-width: 60em;">
14
15 <p>
16 [[!img rpi_pmsm_motor_control-graphs1.png size="300x" align=right alt="Simulink connected to RPi running PMSM control model"]]
17 <a href="http://en.wikipedia.org/wiki/Raspberry_Pi">Raspberry Pi</a> is often
18 used for education and many hobbyists tasks but it is not equipped with hardware
19 peripherals required for a quite complex vector electric motor control task.
20 This project sumplements bare Raspberry Pi board by two other boards to implement
21 complete educational BLDC/PMSM motor control system. One board uses small
22 Microsemi IGL00 FPGA to implement missing peripherals and the second board
23 implements 3-phase power stage with current sensing, ADC and galvanic
24 isolation which can be used in this project or even connected
25 to Altera DE2 education kits.
26 </p>
27
28 <h2 id="psmscontrol">Three-pases PMSM Control Basics</h2>
29 <p>
30 The differences between Voltages connected to the three stator windings
31 terminals cause current flow which forms rotating magnetic field.
32 The direction and magnitude of this field drive permanent magnet
33 rotor which is to align with the direction of the magnetic field vector.
34 North pole is attracted to the south and vice versa. For constant speed
35 and torque, the waveforms of the phase Voltages (the same for currents)
36 are sinusoidal with an equidistant phase shift of 120 deg. The three phases
37 system is in some respect redundant, in the case of Voltages (u<sub>A</sub>,
38 u<sub>B</sub>, u<sub>C</sub>) only differences count, i.e. one can be
39 fixed to zero. A sum of the three currents (i<sub>A</sub>, i<sub>B</sub>,
40 i<sub>C</sub>) has to be zero by the Kirchhoff's current law. As a consequence,
41 only two independent quantities/scalars are needed to describe the currents
42 or Voltages which are in the fact vector in the 2D space. The polar coordinates
43 system can be used but a rectangular system of alpha, beta components is equivalent
44 and easier for transformations computation. This transformation of the three phase
45 system to the two orthogonal components vector is named according to its
46 inventor Clark transformation. The waveforms in this 2D system are sine
47 and cosine for steady speed state. Because realization of a controller
48 in this altering components system is not feasible, another transformation
49 was invented which convert the quantities to the coordinates fixed to
50 the revolving rotor. A base formed by direct (D) component aligned to North,
51 South pole direction of the rotor and orthogonal quadrature (Q) has been
52 introduced by Robert H. Park and the transformation is named according to him.
53 The control in the D-Q coordinates is (almost) independent of actual rotor
54 position and (in simplified outlook) separates reactive current (i<sub>D</sub>)
55 from the active current (i<sub>Q</sub>) resulting in torque affecting rotor
56 movement.
57 </p>
58 [[!img pxmc-pmsm-block.png size="300x" align=right alt="Basic PMSM control setup diagram from PXMC library documentation"]]
59
60 </div>
61
62 </body>
63
64 </html>