Unit 1 Praktikum QNET MECHKIT
Unit 1 Praktikum QNET MECHKIT
The QNET mechatronics sensors (MECHKIT) trainer is shown in Figure 1.1. It has ten types of sensors,
two types of switches, a push button, and two LEDS. This QNET module can be used to teach the
physical properties of most sensors used today, and the techniques and limitations of their application.
There are 12 experiments: strain gage with flexible link, pressure sensor, piezo sensor, potentiometer,
infrared, sonar, optical position, magnetic field, encoder, temperature sensor, switches and LEDs, and
switch debounce analysis. The experiments can be performed independently.
Topics Covered
Prerequisites
In order to successfully carry out this laboratory, the user should be familiar with the following:
2.1 Resolution
The resolution of a sensor is the minimum change that can be detected in the quantity that is being
measured. For instance a sensor that measures angular position of a motor shaft may only be able to
detect a 1 degree change. Thus if the motor moves 0.5 degrees, it will not be detected by the sensor.
Depending on the precision needed for the application, this may be adequate.
2.2 Range
Range sensors can only take measurements of a target within a certain operating range. The operating
range specifies a maximum, and sometimes also a minimum, distance where the target can be from
the sensor in order to obtain an accurate measurement. Sensors with a small range are the magnetic
field and optical position sensors. Sensor with a relatively larger range are infrared and sonar.
Absolute sensors detect a unique position. Incremental sensors measure a relative position that
depends on a prior position or last power on/off. For example, if an incremental rotary encoder is used
to measure the position of wheel, the encoder will measure zero every time its power is reset. If an
absolute sensor such as a rotary potentiometer is used, then it will detect the same angle regardless if
it has just been powered.
Analog sensors output a signal that correlates to the quantity it is measuring. The relationship between
the output signal of the sensor and the actual measurement varies depending on the type of sensor.
For example, the voltage measured by a potentiometer is directly proportional to the angle it is
measuring. However, the resistance of a thermistor decreases exponentially as the temperature
increases.
Some of the different ways to characterize analog sensors is illustrated in Figure 2.1.
y = ax + b (2.1)
where a is the rate of change and b is the offset. Variable x is the sensor output signal and y is the
measurement, e.g. for the potentiometer x would be the voltage measured by the sensor and y would
be the angular measurement (in either degrees or radians). Other types of sensors need to be
characterized by more complex relationship such as polynomial
y = ax2 + bx + c (2.2)
or exponential
y = aebx (2.3)
A strain gage measures strain, or deflection, of an object. As shown in Figure 3.1, in the QNET
mechatronic sensors trainer a strain gage is used to measure the deflection of a flexible link. As the link
bends, the resistance of the strain gage changes.
Figure 3.1: Strain gage measuring deflection of flexible link on QNET mechatronic sensors trainer
The virtual instrument used to collect data using the strain gage is shown in Figure 3.2. The virtual
instrument used to calibrate strain data is shown in Figure 3.3. The virtual instrument used to determine
the natural frequency of the flexible link is shown in Figure 3.4.
3. Manually perturb the flexible link and stop the VI when it stops resonating (after about 5 seconds).
The spectrum should then load in the chart, as shown in Figure 3.4 (the value shown is incorrect).
4. Enter natural frequency found and capture the resulting power spectrum response. Hint: You can
use the cursor to take measurements off the graph.
5. Click on Stop button to stop the VI.
3.6 Results
A pressure sensor is attached to the plunger on the QNET mechatronic board shown in Figure 4.1. This
is a gage pressure sensor and its measurements are relative to the atmospheric pressure. The voltage
signal generated is proportional to the amount of pressure in the vessel of the plunger. So as the plunger
is pushed further, the air inside the vessel becomes more compressed and the reading increases.
Pressure sensors can also be used to indirectly measure other values. For example, in the QNET
mechatronics board the position of the plunger head is measured. It can also be used to measure the
amount of volume in a reservoir or the altitude of an aerial vehicle.
The virtual instrument used to collect data using the strain gage is shown in Figure 3.2. The virtual
instrument used to calibrate strain data is shown in Figure 3.3. The virtual instrument used to determine
the natural frequency of the flexible link is shown in Figure 3.4.
Piezo sensors measure vibration. The piezo sensor on the QNET-MECHKIT trainer, shown in Figure
5.1, is con-nected to a plastic band that has a brass disc weight at the end.
6.1 Background
Rotary potentiometers are absolute analog sensors used to measure angular position, such as a load
shaft of a motor. They are great to obtain a unique position measurement. However, caution must be
used as their signal is discontinuous. That is, after a few revolutions potentiometers will reset their signal
back to zero. The potentiometer on the QNET MECHKIT board is shown in Figure 6.1.
The virtual instrument used to collect data using the potentiometer is shown in Figure 6.2. The virtual
instrument used to calibrate potentiometer data is shown in Figure 6.3.
2. Open and configure the QNET MECHKIT Potentiometer VI as described in Section 15.5. Make
sure the cor-rect Device is chosen.
3. Run QNET_MECHKIT_Potentiometer.vi
4. Rotate the arrowhead of the potentiometer to a certain position, e.g. 45 degrees.
5. Enter the position in the Pot Angle (deg) array, as indicated in Figure 6.2.
6. Enter corresponding measured sensor voltage in Sensor Measurement (V) array (shown in Figure
6.2).
7. Fill out table with an appropriate amount of data points. Notice that as the measured potentiometer
readings are entered, a curve is automatically generated to fit the data. The slope and intercept of this
line is generated as well.
8. Enter the collected data and capture the Sensor Reading chart.
1. Run QNET_MECHKIT_Potentiometer.vi
2. In the Calibrate Sensor tab, set the Gain and Offset controls, as indicated in Figure 6.3, to values
such that the potentiometer measures the correct angle. Verify that the sensor is reading properly, e.g.
when pot arrow is turned to 45.0 deg, the Display: Potentiometer (deg) knob indicator should read 45.0
degrees.
3. Enter Gain and Offset values used.
6.5 Results