Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| learn:courses:unit-6-lab6b:start [2017/03/29 01:21] – [8. Lab 8b] Talesa Bleything | learn:courses:unit-6-lab6b:start [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Lab 6b: Closed-loop Process Control ====== | ====== Lab 6b: Closed-loop Process Control ====== | ||
| + | [[{}/ | ||
| + | [[{}/ | ||
| === Download This Document === | === Download This Document === | ||
| - | * {{ : | + | {{ : |
| ===== 1. Objectives ===== | ===== 1. Objectives ===== | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| Line 17: | Line 19: | ||
| ===== 2. Basic Knowledge ===== | ===== 2. Basic Knowledge ===== | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| ---- | ---- | ||
| Line 28: | Line 30: | ||
| ===== 3. Equipment List ===== | ===== 3. Equipment List ===== | ||
| ==== 3.1. Hardware ==== | ==== 3.1. Hardware ==== | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| In addition, we suggest the following instruments: | In addition, we suggest the following instruments: | ||
| - | | + | |
| ==== 3.2. Software: ==== | ==== 3.2. Software: ==== | ||
| The following programs must be installed on your development workstation: | The following programs must be installed on your development workstation: | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| Line 52: | Line 54: | ||
| ===== 4. Project Takeaways ===== | ===== 4. Project Takeaways ===== | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| Line 134: | Line 136: | ||
| Figure 7.1 was generated by monitoring the motor tachometer using the SPI_CK DIO 4 pin on the Analog Discovery 2 connector that is toggled in the input capture ISR, as shown in Listing B.4 of Lab 6a. Examining the plot for the tachometer in Fig. 7.1, we see than the PI algorithm requires about 150 ms to achieve steady state. | Figure 7.1 was generated by monitoring the motor tachometer using the SPI_CK DIO 4 pin on the Analog Discovery 2 connector that is toggled in the input capture ISR, as shown in Listing B.4 of Lab 6a. Examining the plot for the tachometer in Fig. 7.1, we see than the PI algorithm requires about 150 ms to achieve steady state. | ||
| - | {{ : | + | {{ : |
| //Figure 7.1. Motor speed response for a step input from CW to CCW at 30% PWM for PI closed-loop control.// | //Figure 7.1. Motor speed response for a step input from CW to CCW at 30% PWM for PI closed-loop control.// | ||
| + | |||
| Line 187: | Line 190: | ||
| - Write to the output compare secondary registers (OCxRS) that generate the PWM output. | - Write to the output compare secondary registers (OCxRS) that generate the PWM output. | ||
| - | {{ : | + | {{ : |
| //Figure 8.1. LCD display for closed loop operation.// | //Figure 8.1. LCD display for closed loop operation.// | ||
| - | {{ : | + | {{ : |
| //Figure 8.2. Terminal screen for closed loop motor control.// | //Figure 8.2. Terminal screen for closed loop motor control.// | ||
| Line 198: | Line 201: | ||
| | SW6 | Run the motor according to the direction set by SW7 | Brake (STOP) | | SW6 | Run the motor according to the direction set by SW7 | Brake (STOP) | ||
| | SW7 | Rotate CCW at speed set by analog input control | | SW7 | Rotate CCW at speed set by analog input control | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | [[{}/ | ||
| + | [[{}/ | ||
| + | [[{}/ | ||

