Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| learn:courses:unit-6:start [2017/03/28 19:48] – [Listing 7.1. Configuring I/O pin RG9 for Input Capture] Martha | learn:courses:unit-6:start [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Unit 6: Analog I/O and Process Control ====== | + | ====== Unit 6: Analog I/O and Process Control ====== |
| + | [[{}/ | ||
| === Unit 6 Labs === | === Unit 6 Labs === | ||
| - | * [[https:// | + | * [[/ |
| - | * [[https:// | + | * [[/ |
| === Download This Document === | === Download This Document === | ||
| - | * {{ : | + | {{ : |
| Line 15: | Line 17: | ||
| ===== 2. Objectives ===== | ===== 2. Objectives ===== | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| ---- | ---- | ||
| ===== 3. Basic Knowledge ===== | ===== 3. Basic Knowledge ===== | ||
| - | | + | |
| * Basic circuit theory | * Basic circuit theory | ||
| * Fundamentals of programming with C | * Fundamentals of programming with C | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| ---- | ---- | ||
| Line 38: | Line 40: | ||
| ===== 4. Equipment List ===== | ===== 4. Equipment List ===== | ||
| ==== 4.1. Hardware ==== | ==== 4.1. Hardware ==== | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| + | - [[https:// | ||
| In addition, we suggest the following instruments: | In addition, we suggest the following instruments: | ||
| - | | + | |
| ==== 4.2. Software ==== | ==== 4.2. Software ==== | ||
| The following programs must be installed on your development workstation: | The following programs must be installed on your development workstation: | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| ---- | ---- | ||
| ===== 5. Project Takeaways ===== | ===== 5. Project Takeaways ===== | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| ---- | ---- | ||
| Line 109: | Line 112: | ||
| The //Analog Control Input// on the Basys MX3 processor board will be used as the variable input control. Figure 7.1 shows that the potentiometer is connected to PORT B pin 2 of the PIC32MX370. To use the PIC32 analog input connected to the potentiometer, | The //Analog Control Input// on the Basys MX3 processor board will be used as the variable input control. Figure 7.1 shows that the potentiometer is connected to PORT B pin 2 of the PIC32MX370. To use the PIC32 analog input connected to the potentiometer, | ||
| - | {{ : | + | {{ : |
| //Figure 7.1. Analog Input Control schematic diagram.// | //Figure 7.1. Analog Input Control schematic diagram.// | ||
| + | |||
| Considering that the PIC32 ADC is connected to a potentiometer under manual control, the speed at which the analog voltage can change is relatively low. In Lab 6a and 6b we will run the PIC32 ADC at a high rate of speed so that the most recent ADC conversion will accurately reflect the current potentiometer setting. As Fig. 7.2 illustrates, | Considering that the PIC32 ADC is connected to a potentiometer under manual control, the speed at which the analog voltage can change is relatively low. In Lab 6a and 6b we will run the PIC32 ADC at a high rate of speed so that the most recent ADC conversion will accurately reflect the current potentiometer setting. As Fig. 7.2 illustrates, | ||
| Line 200: | Line 204: | ||
| === 7.2.2. Analog Output: Pulse-width Modulation === | === 7.2.2. Analog Output: Pulse-width Modulation === | ||
| - | In [[https:// | + | In [[/ |
| | | ||
| Lab 5 discussed the details of how to set up a PWM output using the output compare special function of the PIC32 processor. However, Lab 6a and 6b will require that we set up two PWM outputs that all use a common timer if the motor is to be capable of reversing direction. After initializing the timer to be used with the output compare and initializing the two output-compare channels, the PWM duty cycle of each individual channel is easily changed using the instruction // | Lab 5 discussed the details of how to set up a PWM output using the output compare special function of the PIC32 processor. However, Lab 6a and 6b will require that we set up two PWM outputs that all use a common timer if the motor is to be capable of reversing direction. After initializing the timer to be used with the output compare and initializing the two output-compare channels, the PWM duty cycle of each individual channel is easily changed using the instruction // | ||
| Line 225: | Line 229: | ||
| The motor driver IC on the Basys MX3 processor platform is shown in Fig. 7.11. The motor wires used for power input and tachometer output are identified in Fig. 7.12. A 5.0 V external power supply is required to be connected to J11, marked as VBAR on the Basys MX3 processor board. A jumper must be used on JP1 to connect the 5V power, VBAR, to the motor supply, VM. | The motor driver IC on the Basys MX3 processor platform is shown in Fig. 7.11. The motor wires used for power input and tachometer output are identified in Fig. 7.12. A 5.0 V external power supply is required to be connected to J11, marked as VBAR on the Basys MX3 processor board. A jumper must be used on JP1 to connect the 5V power, VBAR, to the motor supply, VM. | ||
| - | {{ : | + | {{ : |
| //Figure 7.11. Basys MX3 Motor driver circuit.// | //Figure 7.11. Basys MX3 Motor driver circuit.// | ||
| + | |||
| {{ : | {{ : | ||
| Line 385: | Line 390: | ||
| + | ---- | ||
| + | |||
| + | [[{}/ | ||
| + | [[{}/ | ||
| + | [[{}/ | ||
| + | [[{}/ | ||
| {{tag> | {{tag> | ||

