
The photo above (Figure 1) showcases a platform used at Drexel University's Mechanical Engineering Department. It's 5 parts quickly assemble into a damped compound pendulum with a motorized propeller at one end. The photos below (Figure 2) illustrate the speed and ease of moving from storage to setup in 10-minutes.


A spring desk clamp secures the pendulum to a table. Turning the power supply on starts the motor. The propeller generates lift and induces a torque about the pivot. This torque makes the pendulum rotate counter-clockwise (right). In lab, one designs controllers to achieve desired transient and steady-state responses. This platform's simple construction is robust, assembles and stores away easily, and has been used successfully to demonstrate PID (MEM 351 Undergraduate Dynamic Systems Lab) and fuzzy, sliding mode and adaptive controllers (MEM 800 Graduate Advanced Control Techniques).
This article breakdowns as follows:
Figure 3 is a photo sequence. From left to right: the motor is first turned on, the pendulum rotates counter-clockwise, falls clockwise, then rotates counter-clockwise again. The oscillations decay exponentially to a steady-state angle as seen in this video. The step response graph shown in Figure 4 plots the pendulum angle after 2 Volts is applied to the motorized propeller. The angle was captured using an optical encoder mounted on pendulum pivot.


The dynamic equations of motion, block diagram and constants are described the following two PowerPoint slides (Figure 5 below). Essentially, a small angle approximation is used to linearized the dynamic equations of motion. Also assumed is the torque is proportional to motor voltage.



Every effort was made to find a single source supplier for all parts. One will note that many of the parts, like resistors, capacitors and screws are common items in engineering supply rooms. PVC bar stock and L-brackets are often found in engineering machine shops. US-based vendors include Jameco, National Instruments, McMaster-Carr, US Digital, Small Parts, C&S Sales, Radio Shack and Hobby Lobby
| PART DESCRIPTION | VENDOR | PART | PRICE (2005) | QTY | |
| PVC RECTANGULAR BAR 0.5" THICK, 2" WIDE | MCMASTER-CARR | 8740K35 | 3.74/FOOT | 5 FEET | |
| SET SCREW COUPLING 5/8" OD, 1" LENGTH, 5/16" BORE | MCMASTER-CARR | 242K12 | 5.77 EA | 1 | |
| ALUMINUM ANGLE 1/8" THICK, 1/2" X 1/2" LEGS | SMALL PARTS | ARA2-08/08 | 1.85 FOR 12" | 1 | |
| 1/4"-20 HEX BOLT 1.5" LONG | SMALL PARTS | HBX-1420-24 | 1.95 FOR 10 | 1 | |
| 1/4"-20 HEX NUT | SMALL PARTS | HNX-1420 | 1.80 FOR 25 | 2 | |
| 1/4" WASHER | SMALL PARTS | WXA-1/4R | 1.25 FOR 10 | 1 | |
| 6-32 MACHINE SCREW 1/2" LONG | SMALL PARTS | MPX-0632-08F | 1.15 FOR 25 | 2 | |
| 6-32 NUT | SMALL PARTS | HNX-0632 | 1.00 FOR 25 | 2 | |
| SPRING CLAMP | HOME DEPOT | 30699020287 | 0.99 | 1 | |
| VELCRO 1/2" WIDE STRIP | WALMART | 30699020287 | 2.44 | 1 | |
| NYLON ROPE | HOME DEPOT | 5.00 | 1 | ||
| ADJUSTABLE CRESENT WRENCH | DOLLAR STORE | 1.00 | 1 | ||
| OPTICAL ENCODER | US DIGITAL | H5S-360-I | 65.55 | 1 | |
| ENCODER CABLE | US DIGITAL | CA-3132-6FT | 13.00 | 1 | |
| MOTOR 0.5-3.0 V | JAMECO | 215263CH | 2.25 | 1 | |
| GRAUPNER PROPELLER 5x2 (5" DIAMETER, 2" PITCH) | HOBBY LOBBY | GP05020 | 3.20 | 1 | |
| 2.3 MM COLLET PROP ADAPTER | HOBBY LOBBY | MJ4701 | 4.90 | 1 | |
| SUB-TOTAL | $110.24 | ||||
Table 2 lists parts to construct a 3 Amp power op-amp. The section on construction provides the schematic and PCB artwork. The listed power supply has both fixed and adjustable outputs and hence pricey. Any DC power supply that provides 5 Volts at 3 Amps should work fine.
| PART DESCRIPTION | VENDOR | PART | PRICE (2005) | QTY | |
| 100 OHM RESISTOR | JAMECO | 29946CH | 0.99 FOR 100 | 1 | |
| 1 KOHM RESISTOR | JAMECO | 29663CH | 0.99 FOR 100 | 1 | |
| 2" TERMINAL CONNECTOR 2 BLOCKS | JAMECO | 152346 | 0.55 | 1 | |
| 2" TERMINAL CONNECTOR 3 BLOCKS | JAMECO | 152364 | 0.44 | 1 | |
| HEAT SINK | JAMECO | 158051 | 0.35 | 1 | |
| 1/4" SPACERS | JAMECO | 175628 | 0.19 | 4 | |
| 4-40 SCREWS 3/8" | JAMECO | 40969 | 0.17 | 5 | |
| 4-40 NUT | JAMECO | 40942CH | 2.50 PER 100 | 1 | |
| TIP31A POWER TRANSISTOR | JAMECO | 33048 | 0.49 | 1 | |
| 0.01 UF CAP | JAMECO | 97376CH | 2.00 FOR 10 | 1 | |
| 0.1 UF CAP | JAMECO | 15271CH | 1.67 FOR 10 | 1 | |
| 8-PIN SOCKET | JAMECO | 112205CH | 0.09 | 1 | |
| LS7804 ENCODER-TO-COUNTER CHIP | US DIGITAL | LS7084-DIP | 3.05 | 1 | |
| 30-PIN 0.1" HEADER | JAMECO | 103341CH | 0.35 | 1 | |
| DIODE 1N4004 | RADIO SHACK | 276-1103 | 0.79 | 1 | |
| 5V 3A POWER SUPPLY | C&S SALES | ELENCO XP581 | 75.00 | 1 | |
| SUB-TOTAL | $83.14 | ||||
| PART DESCRIPTION | VENDOR | PART | PRICE (2005) | QTY | |
| PCI-6025 ACADEMIC STARTER KIT | NATIONAL INSTRUMENTS | 777448-33 | 1295.00 | 1 | |
| Alternatively: | |||||
| USB-6008 STUDENT KIT | NATIONAL INSTRUMENTS | 779320-22 | 145.00 | 1 | |

Figure 7 illustrates the main part of pendulum; a 19.5 inch long piece of PVC. The 0.25-inch diameter holes provide a wide range of points to mount the pendulum onto the encoder shaft. The motor straps onto the area that has been milled out (see below). Dimensioned machine drawings for the above part and the encoder base are given below:

The prop adaptor press fits onto the motor shaft as shown in Figure 8. The propeller is held between collet, washer and nut. For this particular propeller, the front side is the one with text on it; as the propeller rotates clockwise (looking from motor shaft side), the pendulum will try to rise. The velcro is screwed onto the pendulum and wraps around the motor to keep it secure.



One could wirewrap or breadboard this schematic. Alternatively a printed circuit board (PCB) can be homebrewed or professionally fabricated. Figure 11: depicts two views of a PCB that was fabricated at AP Circuits. The PCB artwork is depicted Figures 12 and 13 (shown at 2X scale) and can be etched at home. For convenience the zip file mem351-022305.zip can be emailed of FTP'ed to AP Circuits and fabricated for about $10 USD per board.


The PCB also includes pads to include parts for an encoder filter (as given in Table 2). The LS7804 (data sheet) is an encoder-to-counter chip that performs debounce and filters for jitter. Without this chip, miscounts are very likely. The LS7804 also can increase one's encoder resolution four times. As such, a 3-pin header and jumper was used (see Figure 11 above) so that one can use the encoder or is (X1) or at 4-times resolution (X4). The schematic in Figure 14 provides details and pin connections to a PCI-6025E NI-DAQ card.


The three major components (pendulum, motor-prop and encoder base) assemble together as illustrated in the photo sequence (Figure 15 above). Two more compoents (power supply and driver PCB) require the following connections. The motor leads connect to the +MTR and -MTR headers on the driver PCB. The encoder is attached to the PCB via a 5-wire ribbon cable. Lastly, the power supply connects to the PCB on the headers labeled PWR and GND. The net effect is 5 components that can quickly assemble for a lab or dis-assemble for storage.


One notes that right after the PID calculation, there is a gain of 2/55 Volts/deg. This gain is a simple model for the motor; this assumption is that motor reaches speed instantaneously. A first-order model that includes the motor's time constant would be more accurate and would be an excellent lab exercise.
One advantage of PID control is that a complete system model is not needed before actual implementation. With that in mind, a LabVIEW program can be quickly created. Figure 18 depicts the graphical front end. One notes PID tuning knobs and text boxes to define the setpoint angle and monitor the pendulum's actual angle. Figure 19 is the LabVIEW block diagram. Here, DAQ Assist was used to aquire the encoder angle and write the values to a measurement file.
A case structure is applied to the encoder angle input. This is transform the angle into a desired coordinate frame; pendulum at rest is called 0-degrees, and the angle increases when rotation counter-clockwise (i.e. positive theta) as drawn in Figure 5. Also within the case structure, the raw angle is divided by four because the jumper on the encoder-to-counter filter (Figure 11) is set to X4 resolution.
A general rule of thumb in control design is to sample at least 4 to 20 times the rise time. The open-loop step response (like Figure 4) yields a 2.5 second rise time. As such, the sampling time should be at least 0.125 to 0.625 seconds. In LabVIEW, the Wait Until Next ms Multiple was set to cycle the while loop every 25 milliseconds, which is more than fast enough for closed-loop control.
Figure 19 also shows the PID gains, which use a shift register to differentiate and integrate the error. Figure 16 shows excellent results. This video shows the effects of changing the PID knobs in the front end. This pendulum is a Type 0 system) and hence sensitive to integral gain. The video shows the pendulum going unstable as integral gain is increased. Derivative gain will help kill oscillations and steady-state error but at the cost of longer settling times.


Many interesting experiments, for reinforcing classroom concepts, can be developed. The platform can also be easily modified to investigate complex and higher order systems. At Drexel University, topics like sliding mode, adaptive, fuzzy and lead-lag control were conducted with this platform and listed in the Appendix
National Instrument's USB-6008 data acquisition unit can yield new paradigms in teaching control system design. Costing less than some engineering textbooks, each student can buy a USB-6008 for class. Alternatively, units can be lent to students each term through the department's lab supply room. Students can then use their laptops to perform system identification, design controllers and validate performance. Critical to such hands-on experiential learning are rugged yet simple and easy-to-use platforms, like the one featured in this article.
Click here to email me