QNET-015 MECHKIT
Quanser Engineering Trainer for NI-ELVIS
QNET Mechatronic Sensor Trainer
Student Manual Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying, ph otocopying, recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent of Quanser Inc. Copyright ©200, by Quanser Inc. !ll rights reserved.
QNET-MECHKIT Laboratory – Student Manual
Table of Contents 1. INTRODUCTION ..........................................................................................................................................1 2. PREREQUISITES .........................................................................................................................................1 3. MECHKIT TRAINER V VIRTUAL INSTRUMENTS ...........................................................................................2
".#. $ummary...........................................................................................................................................2 ".2. %escription........................................................................................................................................" ".2.#. &le'gage... &le'gage..................... ..................................... ..................................... .................................... .................................... .................................... ..................................... ................................." .............." ".2.2. (ressure (ressure $ensor................. $ensor................................... .................................... ..................................... ..................................... .................................... .......................................... ........................ ..) ".2.". (ie*o &ilm $ensor............. $ensor............................... .................................... .................................... ..................................... ............................................................... ............................................ ".2.+. (otentiom (otentiometer........... eter............................. ..................................... ..................................... .................................... .................................... ...................................................#2 .................................#2 ".2.. Infrared Infrared $ensor............... $ensor.................................. ..................................... .................................... .................................... ..................................... .............................................# ..........................# ".2.). $onar $ensor.............. $ensor................................ .................................... ..................................... ..................................... .................................... ........................................ ...................... .........#".2.. /ptical /ptical (osition....... (osition......................... .................................... .................................... .................................... ..................................... ..................................... ..................................2 ................2# # ".2.-. agnetic agnetic &ield.................. &ield.................................... ..................................... ..................................... .................................... .................................... ............................... ............. ...........2+ ".2.. 1ncoder............... 1ncoder................................. ..................................... ..................................... .................................... .................................... .................................... ............................... ............. .......2 ".2.#0. ".2.#0. emperature.. emperature.................... ..................................... ..................................... .................................... .................................... .................................... ...................................... .................... ....2 ".2.##. ".2.##. $witches $witches and 31%s................... 31%s..................................... .................................... .................................... ..................................... ..................................................."# ................................"# ".2.#2. ".2.#2. $witch $witch %ebounce..... %ebounce....................... .................................... ..................................... ..................................... .................................... ....................................... ..................... ..........")
4. IN-LAB EXPERIMENTS .............................................................................................................................39
+.#. $train 4age with &le'ible 3in5......................................................................................................." +.#.#. Collect Collect %ata.................... %ata...................................... .................................... .................................... ..................................... .............................................................. ........................................... ." ." +.#.2. Calibrate Calibrate $ensor............. $ensor................................ ..................................... .................................... .................................... ..................................... .............................................+0 ..........................+0 +.#.". 6atural 6atural &re7uency..... &re7uency........................ ..................................... .................................... .................................... .................................... ..................................... ................................+# .............+# +.#.+. 1'ercises....... 1'ercises......................... .................................... .................................... ..................................... ..................................... .................................... .......................................... ........................ ..+2 ..+2
+.2. (ressure $ensor...............................................................................................................................++ +.2.#. Collect Collect %ata.................... %ata...................................... .................................... .................................... ..................................... .............................................................. ........................................... .++ .++
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e "
QNET-MECHKIT Laboratory – Student Manual
+.2.2. Calibrate Calibrate $ensor............. $ensor................................ ..................................... .................................... .................................... ..................................... .............................................+ ..........................+ +.2.". 1'ercises....... 1'ercises......................... .................................... .................................... ..................................... ..................................... .................................... .......................................... ........................ ..+) ..+)
+.". (ie*o $ensor....................................................................................................................................+ +.".#. %ata !nalysis.......... !nalysis............................ .................................... .................................... .................................... ..................................... .....................................................+..................................++.".2. 6atural 6atural &re7uency..... &re7uency........................ ..................................... .................................... .................................... .................................... ..................................... ................................+.............++.".". 1'ercises....... 1'ercises......................... .................................... .................................... ..................................... ..................................... .................................... .......................................... ........................ ..+..+-
+.+. (otentiometer..................................................................................................................................+ +.+.#. Collect Collect %ata.................... %ata...................................... .................................... .................................... ..................................... .............................................................. ........................................... .+ .+ +.+.2. Calibrate Calibrate $ensor............. $ensor................................ ..................................... .................................... .................................... ..................................... .............................................0 ..........................0 +.+.". 1'ercises....... 1'ercises......................... .................................... .................................... ..................................... ..................................... .................................... .......................................... ........................ ..2 ..2
+.. Infrared............................................................................................................................................" +..#. Collect Collect %ata.................... %ata...................................... .................................... .................................... ..................................... .............................................................. ........................................... ." ." +..2. Calibrate Calibrate $ensor............. $ensor................................ ..................................... .................................... .................................... ..................................... .............................................+ ..........................+ +..". 1'ercises....... 1'ercises......................... .................................... .................................... ..................................... ..................................... .................................... .......................................... ........................ ..) ..)
+.). $onar...............................................................................................................................................+.).#. Collect Collect %ata.................... %ata...................................... .................................... .................................... ..................................... .............................................................. ........................................... ..+.).2. Calibrate Calibrate $ensor............. $ensor................................ ..................................... .................................... .................................... ..................................... ............................................. .......................... +.).". 1'ercises....... 1'ercises......................... .................................... .................................... ..................................... ..................................... .................................... .......................................... ........................ ..)0 ..)0
+.. /ptical (osition..............................................................................................................................)2 +..#. Collect Collect %ata.................... %ata...................................... .................................... .................................... ..................................... .............................................................. ........................................... .)2 .)2 +..2. Calibrate Calibrate $ensor............. $ensor................................ ..................................... .................................... .................................... ..................................... .............................................)" ..........................)" +..". 1'ercises....... 1'ercises......................... .................................... .................................... ..................................... ..................................... .................................... .......................................... ........................ ..) ..)
+.-. agnetic &ield................................................................................................................................)) +.-.#. Collect Collect %ata.................... %ata...................................... .................................... .................................... ..................................... .............................................................. ........................................... .)) .)) +.-.2. Calibrate Calibrate $ensor............. $ensor................................ ..................................... .................................... .................................... ..................................... .............................................) ..........................) +.-.". 8esults............ 8esults.............................. ..................................... ..................................... .................................... .................................... ..................................... ..................................... ........................) ......)
+.. 1ncoder...........................................................................................................................................0 +..#. !nalysis !nalysis of !, 9, and I $ignals...... $ignals......................... ..................................... .................................... .................................... ...................................... .................... .........0 +..2. 1ncoder 1ncoder Calibration Calibration................. ................................... .................................... ..................................... ..................................... ................................................ .............................. .....# +..". 1'ercises....... 1'ercises......................... .................................... .................................... ..................................... ..................................... .................................... .......................................... ........................ ..2 ..2
+.#0. emperature $ensor......................................................................................................................" +.#0.#. +.#0.#. Collect Collect %ata..................... %ata........................................ ..................................... .................................... .................................... ..................................................... ................................... ......" Document Number 863 ♦ e!"#"on $%&
♦ 'a(e
""
QNET-MECHKIT Laboratory – Student Manual
+.#0.2. Calibrate $ensor................................................................................................................................ .+ +.#0.". 1'ercises........................................................................................................................................ ....)
+.##. $witches and 31%s.......................................................................................................................+.##.#. /ptical $witch....................................................................................................................................+.##.2. icro $witch...................................................................................................................................... +.##.". (ush 9utton........................................................................................................................................-0 +.##.+. 31%s..................................................................................................................................................-# +.##.. 1'ercises........................................................................................................................................ ....-"
+.#2. $witch %ebounce !nalysis...........................................................................................................-) +.#2.#. 8unning the /scilloscope...................................................................................................................-) +.#2.2. icro $witch......................................................................................................................................- +.#2.". (ush 9utton........................................................................................................................................-+.#2.+. 1'ercises........................................................................................................................................ ....-
5. R EFERENCES...........................................................................................................................................93
Document Number 863 ♦ e!"#"on $%&
♦ 'a(e
"""
QNET-MECHKIT Laboratory – Student Manual
1. Introduction his manual contains laboratory procedures and e'ercises for the Q61 echatronic $ensors :1C;2? for details about the hardware of this device.
Figure 1: QNET-MECHKIT on ELVIS II.
he prere7uisites to run the 3ab@I1A @irtual Instruments :@Is= for the mechatronic sensors trainer are listed in $ection 2 and described in $ection ". he inBlab procedures for each of the onBboard sensors and switches are given in $ection +. he e'ercises are given within the lab procedures and labeled Ex!"#$% . In that case, enter your answer in the Exercises section found at the end of that particular laboratory.
2. Prereuisites he following system is re7uired to run the Q61 1C;
♦ 'a(e
$
QNET-MECHKIT Laboratory – Student Manual ✔ ✔
Quanser 1ngineering rainer :Q61= module. 3ab@I1A -.).# with the following addBonsD %!Qm' ✔ Control %esign and $imulation odule ✔ When using ELVIS II D 13@I$m' installed for re7uired drivers. ✔ When using ELVIS I D 13@I$ C% ".0.# or later installed. ✔
I& '($ )! *+' ),, #*$'),, '( VI #,, *+' / )/, '+ !0* (lease ma5e sure all the software and hardware components are installed. If an issue arises, see the troubleshooting section in 8eference >2?.
!. MEC"#IT Trainer Virtual Instru$ents 3.1. Summary able # below lists and describes the 1C;
Description
Q61E1C;
Calibrate strain gage attached to the fle'ible lin5 and find natural fre7uency of lin5.
Q61E1C;
Calibrate pressure sensor attached to plunger device.
Q61E1C;
&ind natural fre7uency of plastic filament through power spectrum.
Q61E1C;
Calibrate potentiometer to get correct angle.
Q61E1C;
Calibrate infrared sensor to measure target distance.
Q61E1C;
Instrument sonar sensor to measure target range..
Q61E1C;
Calibrate optical sensor to measure the position of the flat screw head, which can be adFusted using the 5 nob.
Q61E1C;
Instrument magnetic field sensor to measure position of the screw head, which can be adFusted using its 5nob.
Q61E1C;
Used to teach the fundamentals of a rotary optical encoder.
Q61E1C;
Calibrate thermistor to measure correct temperature.
Q61E1C;
Change the onGoff behaviour of the micro switch, push button, and optical switch and drive onBboard 31%s.
Q61E1C;
;ighBfre7uency analysis of micro switch and push button.
Ta!e 1: MECHKIT VIs su""!ie# $i%h %he QNET C&.
Document Number 863 ♦ e!"#"on $%&
♦ 'a(e
)
QNET-MECHKIT Laboratory – Student Manual
3.2. escri!tion !.2.1. %le&gage his @I can be used to view the strain gage measurements when moving the fle'ible lin5 on the Q61 mechatronic sensors trainer. !s a 7uic5 description, able 2 lists and describes the main elements of the Q61 &le'gage @I and every element is uni7uely identified by an I% number in &igure 2, &igure ", and &igure +.
Figure ': QNET-MECHKIT F!exgage VI: (Co!!ec% &a%a) %a se!ec%e#.
Document Number 863 ♦ e!"#"on $%&
♦ 'a(e
3
QNET-MECHKIT Laboratory – Student Manual
Figure *: QNET-MECHKIT F!exgage VI: (Ca!ira%e) %a.
Document Number 863 ♦ e!"#"on $%&
♦ 'a(e
*
QNET-MECHKIT Laboratory – Student Manual
Figure +: QNET MECHKIT F!exgage VI: ,Na%ura! Freuenc,.
Document Number 863 ♦ e!"#"on $%&
♦ 'a(e
+
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
Unit
#
&le'gage :@=
$cope showing raw voltage measured by strain @ gage.
2
3in5 (osition :cm=
(osition of fle'ible lin5 along printed graduated cm ruler on Q61 board.
"
$ensor easurement :@=
8ecorded strain gage measurement for each lin5 @ position.
+
$ensor 8eadings
4raph showing measured and curve fitted data.
slope
$lope computed by curve fitting algorithm.
cmG@
)
intercept
Intercept computed by curve fitting algorithm.
cm
4ain :cmG@=
$ensor calibration gain, i.e. slope.
cmG@
-
/ffset :cm=
$ensor calibration offset, i.e. intercept.
cm
&le'gage :cm=, slider
%isplays position of fle'ible lin5 using /ain and cm 0se% parameter.
#0
&le'gage :cm=, scope
%isplays position of fle'ible lin5 using /ain and cm 0se% parameter.
##
(ower $pectrum
4raph showing power spectrum of fle'ible lin5 :after being perturbed=.
#2
Cursor
%isplays numerically the location of the cursor on the 2o$er S"ec%ru3 graph.
#"
%evice
$elects the 6I %!Q device.
#+
$ampling 8ate
$ets the sampling rate of the @I.
#
$top
$tops the 3ab@I1A @I from running.
;*
Ta!e ': No3enc!a%ure o QNET-MECHKIT F!exgage VI.
!.2.2. Pressure Sensor his @I can be used to view the pressure sensor measurements as the plunger is moved at different locations within the syringe on the Q61 mechatronic sensors trainer. able " lists and describes the main components of the Q61 (ressure $ensor @I and they are uni7uely identified by an I% number in &igure and &igure ).
Document Number 863 ♦ e!"#"on $%&
♦ 'a(e
6
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
raw
voltage
Unit
#
(ressure $ensor :@=
$cope showing pressure sensor.
measured
by @
2
(lunger (osition :cm=
(osition of syringe along printed graduated ruler cm on Q61 board.
"
$ensor easurement :@=
8ecorded pressure sensor measurement for each @ plunger position.
+
$ensor 8eadings
4raph showing measured and curve fitted data.
c :on Co!!ec% &a%a tab=
Intercept computed by curve fitting algorithm.
cm
)
b :Co!!ec% &a%a tab=
$lope computed by curve fitting algorithm.
cmG@
a :Co!!ec% &a%a tab=
8ate of slope computed by curve fitting cmG@2 algorithm.
-
a :Ca!ira%e Sensor tab=
8ate of slope computed by curve fitting cmG@2 algorithm.
b :Ca!ira%e Sensor tab=
$lope computed by curve fitting algorithm.
cmG@
#0
c :Ca!ira%e Sensor tab=
Intercept computed by curve fitting algorithm.
cm
##
(ressure $ensor :cm=, scope
Chart displays position of fle'ible lin5 using a, cm , and c parameters.
#2
(ressure :cm=
$lide indicator displays position of fle'ible lin5 cm using a, , and c parameters.
#"
%evice
$elects the 6I %!Q device.
#+
$ampling 8ate
$ets the sampling rate of the @I.
#
$top
$tops the 3ab@I1A @I from running.
;*
Ta!e *: No3enc!a%ure o QNET-MECHKIT 2ressure Sensor VI.
Document Number 863 ♦ e!"#"on $%&
♦ 'a(e
,
QNET-MECHKIT Laboratory – Student Manual
Figure 4: QNET MECHKIT 2ressure Sensor: ,Co!!ec% &a%a, %a se!ec%e#.
Document Number 863 ♦ e!"#"on $%&
♦ 'a(e
8
QNET-MECHKIT Laboratory – Student Manual
Figure 5: QNET MECHKIT 2ressure Sensor VI: ,Ca!i, Ta.
!.2.!. Pie'o %il$ Sensor Use the Q61 (ie*o @I to view the pie*o sensor readings as the plastic strip on the Q61 1C;
Document Number 863 ♦ e!"#"on $%&
♦ 'a(e
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
Unit
#
(ie*o :@=
$cope showing raw voltage measured by pie*o @ film sensor.
2
(ower $pectrum
4raph showing power spectrum of film :after being perturbed=.
"
Cursor
%isplays numerically the location of the cursor on the (ower $pectrum graph.
+
%evice
$elects the 6I %!Q device.
$ampling 8ate
$ets the sampling rate of the @I.
)
$top
$tops the 3ab@I1A @I from running.
;*
Ta!e +: No3enc!a%ure o QNET-MECHKIT 2ie6o VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $&
QNET-MECHKIT Laboratory – Student Manual
Figure 7: QNET MECHKIT 2ie6o Sensor VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $$
QNET-MECHKIT Laboratory – Student Manual
Figure 8: QNET MECHKIT 2ie6o Sensor VI: ,Na%ura! Freuenc, %a.
!.2.(. Potentio$eter his @I can be used to view the potentiometer measurements when moving the potentiometer 5nob on the Q61 mechatronic sensors trainer. !s a 7uic5 description, able lists and describes the main elements of the Q61 (otentiometer @I and every element is uni7uely identified by an I% number in &igure and &igure #0.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $)
QNET-MECHKIT Laboratory – Student Manual
Figure 9: QNET-MECHKIT 2o%en%io3e%er VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $3
QNET-MECHKIT Laboratory – Student Manual
Figure 1: QNET-MECHKIT 2o%en%io3e%er VI: ,Ca!ira%e Sensor, %a se!ec%e#.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $*
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
$cope showing potentiometer.
raw
voltage
Unit
#
(otentiometer :@=
measured
by @
2
(ot !ngle :deg=
!ngle of top arrow on the potentiometer 5nob.
"
$ensor easurement :@=
8ecorded p otentiometer measurement f or e ach @ angle.
+
$ensor 8eadings
4raph showing measured and curve fitted data.
slope
$lope computed by curve fitting algorithm.
degG@
)
intercept
Intercept computed by curve fitting algorithm.
deg
4ain :degG@=
$ensor calibration gain, i.e. slope.
degG@
-
/ffset :deg=
$ensor calibration offset, i.e. intercept.
deg
(otentiometer :deg=, scope
%isplays angular position of potentiometer deg according to the /ain and 0se% parameters.
#0
(otentiometer :deg=, 5nob
%isplays position of potentiometer according to deg the /ain and 0se% parameters.
##
%evice
$elects the 6I %!Q device.
#2
$ampling 8ate
$ets the sampling rate of the @I.
#"
$top
$tops the 3ab@I1A @I from running.
deg
;*
Ta!e 4: No3enc!a%ure o QNET-MECHKIT 2o%en%io3e%er VI.
!.2.). Infrared Sensor Use the Q61 Infrared @I to view the readings of the infrared sensor on the 1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $+
QNET-MECHKIT Laboratory – Student Manual
Figure 11: QNET-MECHKIT Inrare# VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $6
QNET-MECHKIT Laboratory – Student Manual
Figure 1': QNET-MECHKIT Inrare#: ,Ca!ira%e Sensor, %a.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $,
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
raw
voltage
Unit
#
Infrared $ensor :@=
$cope showing infrared sensor.
measured
by @
2
arget 8ange :cm=
%istance between target and I8 sensor.
"
$ensor easurement :@=
+
$ensor 8eadings
4raph showing measured and curve fitted data.
c :on Co!!ec% &a%a tab=
Intercept computed by curve fitting algorithm.
cm
)
b :Co!!ec% &a%a tab=
$lope computed by curve fitting algorithm.
cmG@
a :Co!!ec% &a%a tab=
8ate of slope computed by curve fitting cmG@2 algorithm.
-
a :Ca!ira%e Sensor tab=
8ate of slope computed by curve fitting cmG@2 algorithm.
b :Ca!ira%e Sensor tab=
$lope computed by curve fitting algorithm.
cmG@
#0
c :Ca!ira%e Sensor tab=
Intercept computed by curve fitting algorithm.
cm
##
I8 $ensor :cm=
%isplays target distance using entered a, , and c cm parameters.
#2
I8 :cm=
#"
%evice
$elect the 6I %!Q device.
#+
$ampling 8ate
$ets the sampling rate of the @I.
#
$top
$tops the 3ab@I1A @I from running.
cm
8ecorded I8 measurement for each target @ position.
;*
Ta!e 5: No3enc!a%ure o QNET-MECHKIT Inrare# VI
!.2.*. Sonar Sensor Use this @I to view the sonar measurements as a target is moved at different distances away from the sensor. able lists and describes the main components of the Q61 $onar @I and they are uni7uely identified by an I% number in &igure #" and &igure #+.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $8
QNET-MECHKIT Laboratory – Student Manual
Figure 1*: QNET-MECHKIT Sonar VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $
QNET-MECHKIT Laboratory – Student Manual
Figure 1+: QNET-MECHKIT Sonar VI: ,Ca!ira%e Sensor, %a.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e )&
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
Unit
#
$onar :@=
$cope showing raw voltage measured by sonar.
@
2
arget 8ange :in=
%istance between target and sonar sensor.
in
"
$ensor easurement :@=
+
$ensor 8eadings
4raph showing measured and curve fitted data.
slope
$lope computed by curve fitting algorithm.
inG@
)
intercept
Intercept computed by curve fitting algorithm.
in
4ain :inG@=
$ensor calibration gain, i.e. slope.
inG@
-
/ffset :in=
$ensor calibration offset, i.e. intercept.
in
$onar :inch=, scope
%isplays angular position of potentiometer in according to the /ain and 0se% parameters.
#0
$onar :inch=, 5nob
%isplays position of potentiometer using /ain in and 0se% parameters.
##
%evice
$elects the 6I %!Q device.
#2
$ampling 8ate
$ets the sampling rate of the @I.
#"
$top
$tops the 3ab@I1A @I from running.
8ecorded sonar measurement for each target @ position.
;*
Ta!e 7: No3enc!a%ure o QNET-MECHKIT Sonar VI.
!.2.+. ,tical Position he Q61B1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e )$
QNET-MECHKIT Laboratory – Student Manual
Figure 14: QNET-MECHKIT 0"%ica! VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ))
QNET-MECHKIT Laboratory – Student Manual
Figure 15: QNET-MECHKIT 0"%ica! VI: ,Ca!ira%e Sensor, %a.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e )3
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
Unit
#
/ptical (osition $ensor :@=
$cope showing raw voltage measured by optical @ position sensor.
2
arget 8ange :in=
%istance between target and sensor.
in
"
$ensor easurement :@=
8ecorded measurement for each target position.
@
+
$ensor 8eadings
4raph showing measured and curve fitted data.
a
1'ponential function amplitude computed by curve fitting algorithm.
)
b
1'ponential function decayGgrowth parameter computed by curve fitting algorithm.
!mplitude
4ain of e'ponential function.
-
%amping
1'ponential decayGgrowth factor of e'ponential function.
/ptical (osition :inch=
$cope that shows position of target based on in entered ;3"!i%u#e and &a3"ing parameters.
#0
%isplayD /ptical (osition :in= $lider indicator displays position of target based in on entered ;3"!i%u#e and &a3"ing parameters.
##
%evice
$elects the 6I %!Q device.
#2
$ampling 8ate
$ets the sampling rate of the @I.
#"
$top
$tops the 3ab@I1A @I from running.
parameter
;*
Ta!e 8: No3enc!a%ure o QNET-MECHKIT 0"%ica! VI.
!.2.. Magnetic %ield Using this @I, the magnetic field measurements can be read as the target is moved at different locations using the 5nob on the Q61 mechatronic sensors trainer. he components of the Q61 agnetic &ield @I are summari*ed in able and identified in &igure # and &igure #-.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e )*
QNET-MECHKIT Laboratory – Student Manual
Figure 17: QNET-MECHKIT Magne%ic Fie!# VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e )+
QNET-MECHKIT Laboratory – Student Manual
Figure 18: QNET-MECHKIT Magne%ic Fie!# VI: ,Ca!ira%e Sensor, %a.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e )6
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
voltage
Unit
#
agnetic &ield $ensor :@=
$cope showing raw magnetic field sensor.
measured
by @
2
arget 8ange :inch=
%istance between target and sensor.
in
"
$ensor easurement :@=
8ecorded measurement for each target position.
@
+
$ensor 8eadings
4raph showing measured and curve fitted data.
a
1'ponential function amplitude computed by curve fitting algorithm.
)
b
1'ponential function decayGgrowth parameter computed by curve fitting algorithm.
!mplitude
4ain of e'ponential function.
-
%amping
1'ponential decayGgrowth factor of e'ponential function.
agnetic &ield :inch=
$cope that shows position of target based on in entered ;3"!i%u#e and &a3"ing parameters.
#0
%isplayD agnetic &ield :in=
$lider indicator displays position of target based in on entered ;3"!i%u#e and &a3"ing parameters.
##
%evice
$elects the 6I %!Q device.
#2
$ampling 8ate
$ets the sampling rate of the @I.
#"
$top
$tops the 3ab@I1A @I from running.
parameter
;*
Ta!e 9: No3enc!a%ure o QNET-MECHKIT Magne%ic Fie!# VI.
!.2./. Encoder his @I shows the !, 9, and Inde' signals generated by the rotary optical encoder on the Q61 mechatronic sensors trainer as the 5nob is rotated. he components of the Q61 1ncoder @I are described in able #0 and identified in &igure #.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ),
QNET-MECHKIT Laboratory – Student Manual
Figure 19: QNET-MECHKIT Enco#er VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e )8
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
Unit
#
1ncoder ! and 9 :@=
$cope showing encoder ! :blue= and 9 :red= @ voltage signals. 6ote the signals are offset by 2. @ for viewing purposes.
2
1ncoder Inde' :@=
$cope displays the inde' trigger.
"
8eset
8esets the encoder count.
+
1nable Inde'
Ahen enabled, the encoder count is reset on an inde' pulse.
#)Bbit (osition :counts=
Count generated by decoder.
counts
)
Counts per rev
6umber of counts for every full rotation.
countGrev
8eload @alue :counts=
8esets the count to this value.
counts
-
!ngle :deg=
!ngle measured by encoder according to Coun%er "er re< parameter.
%evice
$elects the 6I %!Q device.
#0
$ampling 8ate
$ets the sampling rate of the @I.
##
$top
$tops the 3ab@I1A @I from running.
@
the deg
;*
Ta!e 1: No3enc!a%ure o QNET-MECHKIT Enco#er VI.
!.2.10. Te$erature he measured voltage output from the thermistor circuit is displayed on this @I as well as the calibrated temperature reading. he Q61 1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e )
QNET-MECHKIT Laboratory – Student Manual
Figure ': QNET-MECHKIT Te3"era%ure VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 3&
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
Unit
#
80
8esistance of thermistor at temperature specified in 0.
2
0
8oom temperature in
"
9
hermistor e7uation e'ponential parameter.
+
emperature $ensor :@=
$cope shows the output voltage of the thermistor @ circuit.
emperature $ensor :deg C=
$cope displays the measured temperature based deg C on the T and = parameters entered.
)
emperature :deg C=
hermometer displays the measured temperature deg C based on the T and = parameters entered.
%evice
$elects the 6I %!Q device.
-
$ampling 8ate
$ets the sampling rate of the @I.
$top
$tops the 3ab@I1A @I from running.
;*
Ta!e 11: No3enc!a%ure o QNET-MECHKIT Te3"era%ure VI.
!.2.11. Sitces and LE3s he Q61 1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 3$
QNET-MECHKIT Laboratory – Student Manual
Figure '1: QNET-MECHKIT S$i%ches an# LE&s VI: ,0"%o S$i%ch, %a se!ec%e#.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 3)
QNET-MECHKIT Laboratory – Student Manual
Figure '': QNET-MECHKIT S$i%ches an# LE&s VI: ,Micro S$i%ch, %a se!ec%e#.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 33
QNET-MECHKIT Laboratory – Student Manual
Figure '*: QNET-MECHKIT S$i%ches an# LE&s VI: ,2ush =u%%on, %a se!ec%e#.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 3*
QNET-MECHKIT Laboratory – Student Manual
Figure '+: QNET-MECHK QNET-MECHKIT IT S$i%ches S$i%ches an# LE&s VI: VI: ,&igi%a! 0u%"u%s, 0u%"u%s, %a se!ec%e#.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 3+
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description Descripti on
$cope shows the optical switch output voltage.
Unit
#
/ptical $witch
@
2
/ptical $witch %igital
$cope d is isplays re r eadout o f op optical switch when passed through Thresho!# switch.
"
hreshold
!dFusts the threshold of the optical switch that @ determines when it is /6 or /&&.
+
icro $witch
$cope shows the micro switch output voltage.
icro $witch %igital
$cope displays calibrated micro switch output based on /ain and 0se% parameters. 0se% parameters.
)
4ain
icro switch calibration gain.
/ffset
icro switch calibration offset.
-
(ush 9utton
$cope shows the push button output voltage.
(ush $witch %igital
$cope displays calibrated push button output based on /ain and 0se% parameters. 0se% parameters.
#0
4ain
(ush button calibration gain.
##
/ffset
(ush button calibration offset.
#2
%/ #
%igital output to channel H# connected to 31% on Q61 1C;
#"
%/ 0
%igital output to channel H0 connected to 31%- on Q61 1C;
#+
%evice
$elects the 6I %!Q device.
#
$ampling 8ate
$ets the sampling rate of the @I.
#)
$top
$tops the 3ab@I1A @I from running.
@
@
;*
Ta!e 1': No3enc!a%ure o QNET-MECHKIT S$i%ches an# LE&s VI.
!.2.12. Sitc 3ebounce In this @I, the triggered output of the icro $witch and the (ush 9utton can be viewed. he 13@I$m' /scilloscope @I is setup to monitor either the icro $witch or (ush 9utton analog input lines at a sample rate #00 5;*. /nce the signal is triggered, the @I automatically stops stops and outputs a #5 sample of the voltage output. In effect, this gives a a #0 ms sample of the signal. $ee able $ee able #" for #" for a listing of the @I components that are shown in &igure 2. 2.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 36
QNET-MECHKIT Laboratory – Student Manual
Figure '4: QNET-MECHK QNET-MECHKIT IT &eounce VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 3,
QNET-MECHKIT Laboratory – Student Manual
ID #
Label
Description
#
ype
ype of signal trigger.
2
$ource
$elect which ELVIS channe! , i.e. 0 or #, that is to trigger.
"
$lope
$elect whether the trigger is to occur when the edge is rising :positive= or decreasing :negative=.
+
3evel :@=
hreshold of trigger.
icro $witch G 13@I$ Ch0
4raph displays the triggered micro switch output.
)
(ush 9utton G 13@I$ Ch#
4raph displays the triggered push button output.
%evice
$elects the 6I %!Q device.
Unit
@
Ta!e 1*: No3enc!a%ure o QNET-MECHKIT &eounce VI.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 38
QNET-MECHKIT Laboratory – Student Manual
(. In-Lab E&eri$ents ".1. Strain #a$e %ith &'e(i)'e *in+ #. 1nsure is set to S'!)#* ). 2. /pen the Q61E1C;
Figure '5: Se!ec%ing correc% #e
(.1.1. Collect 3ata #. 8un the Q61E1C;V? array :indicated in &igure 2=. +. 8epeat for B0. cm, 0 cm, 0. cm, and #.0 cm. ! linear curve is automatically fitted to the data being entered and its slope and intercept are generated. . Ex!"#$ 1D 1nter the measured voltages in able #+ and capture the Sensor @ea#ings scope. ). Clic5 on S%o" button to stop the @I.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 3
QNET-MECHKIT Laboratory – Student Manual
Figure '7: Co!!ec%ing !exgage #a%a.
(.1.2. Calibrate Sensor #. 8un the Q61E1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e *&
QNET-MECHKIT Laboratory – Student Manual
Figure '8: Ca!ira%ing %he s%rain gage sensor.
(.1.!. Natural %reuenc4 #. 8un the Q61E1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e *$
QNET-MECHKIT Laboratory – Student Manual
Figure '9: Fin#ing na%ura! reuenc o !exi!e !inA.
(.1.(. E&ercises Exercise 1: Collected Data Parameter
Value
Units
$ensor easurementD at B#.0 cm
@
$ensor easurementD at B0. cm
@
$ensor easurementD at 0 cm
@
$ensor easurementD at 0. cm
@
$ensor easurementD at #.0 cm
@
Notes
Ta!e 1+: Co!!ec%e# s%rain gage #a%a.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e *)
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: Sensor Calibration Parameter
Value
Units
4ain
cmG@
/ffset
cm
Notes
Ta!e 14: S%ain gage ca!ira%ion #a%a.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e *3
QNET-MECHKIT Laboratory – Student Manual
Exercise : Natural !re"uenc
".2. ,ressure Sensor #. 1nsure 9 is set to P!$$0!. 2. 8un the QNET6MECHKIT6P!$$0!6S*$+!.7# . ". I8+!')*': Completely remove the plunger from the tube and reBinsert it. his will ensure the chamber is pressuri*ed enough.
(.2.1. Collect 3ata #. (ush the plunger up to the ) cm mar5ed on the 1C;V? scope :or the digital display=. 2. 1nter the result in the Sensor Measure3en% >V? array, as indicated in &igure "0. ". 8epeat for when the plunger is at .0 cm, +.0 cm, ".0 cm, 2.0 cm, #.0 cm, and 0 cm. he pressure sensor is 7uadratic. he coefficients for the secondBorder polynomial are generated and the fitted curve is automatically plotted. Document Number 863 ♦ e!"#"on $%& ♦ 'a(e **
QNET-MECHKIT Laboratory – Student Manual
+. Ex!"#$ 1D 1nter collected results in able #) and capture the Sensor @ea#ings scope.
Figure *: 2ressure sensor VI $hen co!!ec%ing #a%a.
(.2.2. Calibrate Sensor #. 8un the the Q61E1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e *+
QNET-MECHKIT Laboratory – Student Manual
Figure *1: Ca!ira%ing %he "ressure sensor.
(.2.!. E&ercises Exercise 1: Collect Data Parameter
Value
Units
$ensor easurementD ).0 cm
@
$ensor easurementD .0 cm
@
$ensor easurementD +.0 cm
@
$ensor easurementD ".0 cm
@
$ensor easurementD 2.0 cm
@
$ensor easurementD #.0 cm
@
$ensor easurementD 0.0 cm
@
Notes
Ta!e 15: &a%a co!!ec%e# ro3 %he "ressure sensor.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e *6
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: Sensor Calibration Parameter
Value
Units
Notes
a
cmG@2
b
cmG@
c
cm
Ta!e 17: 2ressure sensor "ara3e%ers.
".3. ,ieo Sensor #. 1nsure ; is set to P#<+. 2. 8un the QNET6MECHKIT6P#<+.7# .
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e *,
QNET-MECHKIT Laboratory – Student Manual
(.!.1. 3ata 5nal4sis #. anually perturb the plastic band that is attached to the pie*o sensor by flic5ing it and e'amine the response in the 2ie6o >V? scope. 2. 4rab the end of the plastic band and move it slowly up and down. 1'amine the response. ". Ex!"#$ 1D &rom these two tests, what does the (ie*o sensor measureK ;ow is this different then a strain gage measurementK Capture a sample 2ie6o >V? scope response after it has been perturbed :by flic5ing it=.
(.!.2. Natural %reuenc4 #. anually perturb the pie*o sensor. 2. /nce it stopped resonating, stop running the @I :after about " seconds=. he spectrum should be displayed in the 2o$er S"ec%ru3 graph. ". Ex!"#$ 2D Capture the resulting power spectrum response and give the measured natural fre7uency. Hin% D Jou can use the cursor to ta5e measurements off the graph.
(.!.!. E&ercises Exercise 1: Strain $a%e &ersus Pie'o
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e *8
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: (easured Natural !re"uenc
".". ,otentiometer #. 1nsure 1= is set to POT. 2. 8un the QNET6MECHKIT6P+'*'#+8'! @I.
(.(.1. Collect 3ata #. 8otate the arrowhead of the potentiometer to a certain position, e.g. + degrees. 2. 1nter the position in the 2o% ;ng!e >#eg? array, as indicated in &igure "2. ". 1nter corresponding measured sensor voltage in Sensor Measure3en% >V? array :shown in &igure "2=. +. &ill out table with appropriate amount of data points. 6otice that as the measured potentiometer readings are entered, a curve is automatically generated to fit the data. he slope and intercept of this line is generated as well. . Ex!"#$ 1D 1nter the collected data in able #- and capture the Sensor @ea#ing chart.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e *
QNET-MECHKIT Laboratory – Student Manual
Figure *': Co!!ec%ing "o%en%io3e%er #a%a.
(.(.2. Calibrate Sensor #. 8un the the Q61E1C;#eg? 5nob indicator should read +.0 deg.. ". Ex!"#$ 2D 1nter /ain and 0se% values used in able #.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e +&
QNET-MECHKIT Laboratory – Student Manual
Figure **: Ca!ira%ing %he "o%en%io3e%er.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e +$
QNET-MECHKIT Laboratory – Student Manual
(.(.!. E&ercises Exercise 1: Collected Data Pot )n%le *de%+
Sensor (easurement *V+
Ta!e 18: Co!!ec%e# "o%en%io3e%er #a%a.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e +)
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: Calibration Data Parameter
Value
Units
Notes
4ain
degG@
/ffset
deg
Ta!e 19: /ain an# ose% "ara3e%er o ca!ira%e# "o%en%io3e%er.
".5. Inrare/ #. 1nsure L#0 is set to Inrare# . 2. 8un the QNET6MECHKIT6I*&!)! @I. ". urn /6 the I8 switch to enable the Infrared sensor. he I8 0N LE& should be lit bright red. +. I8+!')*' D a5e sure you turn /&& the I8 switch when the e'periment is over. Ahen active, the infrared sensor tends to generate noise in other sensor measurements.
(.).1. Collect 3ata #. 4et a target, such as a sturdy piece of cardboard, that is at least #0 by #0 cm2 with a reflective colour li5e white or yellow. 2. 9egin with the target close to the I8 sensor and slowly move it away. ". /nce its range of operation is found, enter the distance between the target and the I8 sensor in the Targe% @ange >c3? array, as shown in &igure "+. +. 1nter the corresponding measured voltage from the I8 sensor in theSensor Measure3en% >V? array, as shown in &igure "+. . 8epeat for different target positions. he I8 sensor is 7uadratic. !s the measurements are entered, the coefficients for the secondBorder polynomial are generated and the fitted curve is automatically plotted. ). Ex!"#$ 1D 8ecord your distance and voltage observations in able 20 and capture the corresponding Sensor @ea#ings scope. . Ex!"#$ 2D Ahat did you notice when the target is close to the I8 sensorK hat is, did the behaviour of the sensor change when the target was in close pro'imity as opposed to being further wayK
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e +3
QNET-MECHKIT Laboratory – Student Manual
Figure *+: Co!!ec%ing I@ #a%a.
(.).2. Calibrate Sensor #. 8un the Q61E1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e +*
QNET-MECHKIT Laboratory – Student Manual
Figure *4: Ca!ira%ing %he I@ sensor %o ge% range 3easure3en%.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ++
QNET-MECHKIT Laboratory – Student Manual
(.).!. E&ercises Exercise 1: Collect Data ,ar%et -an%e *cm+
Sensor (easurement *V+
Ta!e ': Co!!ec%e# I@ #a%a.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e +6
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: In.rared Sensor -an%e
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e +,
QNET-MECHKIT Laboratory – Student Manual
Exercise : Calibration Parameters Parameter
Value
Units
Notes
a
cmG@2
b
cmG@
c
cm
Ta!e '1: I@ sensor ca!ira%ion "ara3e%ers.
".. Sonar #. 1nsure 9 is set to S+*)!. 2. 8un the QNET6MECHKIT6S+*)! @I.
(.*.1. Collect 3ata #. 4et a target, such as a sturdy piece of cardboard, that is at least #0 by #0 cm2 with a reflective colour li5e white or yellow. 2. 9egin with the target close to the sonar sensor and slowly move it upwards. ". /nce its range of operation is found, enter the distance between the target and the sonar sensor in the Targe% @ange >c3? array, as shown in &igure "). +. 1nter the corresponding measured voltage from the sonar sensor in the Sensor Measure3en% >V? array, as shown in &igure "). . 8epeat for different target positions. he sonar sensor is linear. he slope and intercept are generated and the fitted curve is automatically plotted. ). Ex!"#$ 1D 1nter your collected target distances and voltages in the able 22. Capture the Sensor @ea#ings scope as well. . Ex!"#$ 2D Ahat is the resolution and operating range of the son ar sensorK 1nter them in in able 2", below. ;ow does the resolution and range compare with the I8 sensorK
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e +8
QNET-MECHKIT Laboratory – Student Manual
Figure *5: Co!!ec%ing sonar #a%a.
(.*.2. Calibrate Sensor #. 8un the QNET6MECHKIT6S+*)! @I. 2. $elect the Ca!ira%e Sensor tab and enter /ain and 0se% coefficients to correctly measure the distance of the target. a5e sure the coefficients are correct, e.g. when the target is #0.0 inches away then the Sonar >inch? display should read #0.0 inches. ". Ex!"#$ 3D 1nter /ain and 0se% values used in able 2".
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e +
QNET-MECHKIT Laboratory – Student Manual
(.*.!. E&ercises Exercise 1: Collected Data ,ar%et -an%e *cm+ Sensor (easurement *V+
Ta!e '': Co!!ec%e# sonar sensor 3easure3en%s.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 6&
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: -an%e and -esolution
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 6$
QNET-MECHKIT Laboratory – Student Manual
Parameter
Value
Units
8ange
in
8esolution
in
Notes
Ta!e '*: @ange an# reso!u%ion o sonar sensor.
Exercise : Calibration Parameters Parameter
Value
Units
4ain
inG@
/ffset
in
Notes
Ta!e '+: Ca!ira%ion "ara3e%ers o sonar sensor.
".. !tica' ,osition #. 1nsure is set to O'#"), P+$#'#+* . 2. 8un the QNET6MECHKIT6O'#"), @I.
(.+.1. Collect 3ata #. 4ently turn the 5nob of the optical position sensor cloc5wise until the flat metal surface gently rests on top of the tube. hen, rotate the 5nob slightly counterBcloc5wise so the 0 mar5 on the 5nob faces up. !t this point, the reflective target is very close to the optical sensor and will be the reference 0 cm position. 1nter the 0 position in the first element of the Targe% @ange >c3? array, shown in &igure ". 2. 1nter the voltage measured by the optical position sensor, when the target is 0 cm away, in the Sensor Measure3en% >V? array, as indicated in &igure ". ". urn the 5nob counterBcloc5wise one rotation to move the target further from the sensor. he target moves #Binch for every 20 turns. 1nter the position the target has moved from the reference in the Targe% @ange >c3? array, which is shown in &igure ". +. 8ecord the measured sensor voltage in the Sensor Measure3en% >V? array. . a5e samples for the entire range of the target :i.e. until the 5nob cannot be rotated CCA anymore=.8emar5 that the optical position sensor is e'ponential. !s data is being entered, the e'ponential parameters are generated and the fitted curve is automatically plotted. ). Ex!"#$ 1D 1nter the measured sensor data in able 2 and capture the Sensor @ea#ings response.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 6)
QNET-MECHKIT Laboratory – Student Manual
Figure *7: Co!!ec%ing #a%a or o"%ica! "osi%ion sensor.
(.+.2. Calibrate Sensor #. 8un the Q61E1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 63
QNET-MECHKIT Laboratory – Student Manual
Figure *8: Ca!ira%ing %he o"%ica! "osi%ion sensor.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 6*
QNET-MECHKIT Laboratory – Student Manual
(.+.!. E&ercises Exercise 1: Collected Data ,ar%et -an%e *in+ Sensor (easurement *V+
Ta!e '4: Co!!ec%e# 3easure3en%s ro3 o"%ica! sensor.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 6+
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: Calibration Data Parameter
Value
4ain
Units
Notes
in
%amping Ta!e '5: Ex"onen%ia! %er3s o o"%ica! "osi%ion sensor.
".. Ma$netic &ie'/ #. 1nsure ; is set to M)*'#" F#, . 2. 8un the QNET6MECHKIT6M)*'#"6F#, @I.
(..1. Collect 3ata #. 4ently turn the 5nob of the magnetic field sensor cloc5wise until it is at its limit. hen, rotate the 5nob slightly counterBcloc5wise so the 0 mar5 on the 5n ob faces up. his will be reference 0 cm target position. 1nter this in the Targe% @ange >c3? array, shown in &igure ". 2. 1nter the voltage measured from the magnetic field position sensor for the reference 0 cm position in the Sensor Measure3en% >V? array. he array is indicated in &igure ". ". urn the 5nob counterBcloc5wise one rotation to move the target further from the sensor. he target moves #Binch for every 20 turns. 1nter the position the target has moved from the Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 66
QNET-MECHKIT Laboratory – Student Manual
reference in the Targe% @ange >c3? array. +. 8ecord the measured sensor voltage in the Sensor Measure3en% >V? array. . a5e samples for the entire range of the target :i.e. until the 5nob cannot be rotated CCA anymore=. he magnetic field sensor is e'ponential. he parameters of the e'ponential function are outputted and the fitted curve is automatically plotted as data is e ntered. ). Ex!"#$ 1D 1nter the range and measured sensor voltage in able 2, below, and capture the Sensor @ea#ings scope.
Figure *9: Co!!ec%ing #a%a or 3agne%ic ie!# sensor.
(..2. Calibrate Sensor #. 8un the Q61E1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 6,
QNET-MECHKIT Laboratory – Student Manual
Figure +: Magne%ic ie!# sensor ca!ira%ion.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 68
QNET-MECHKIT Laboratory – Student Manual
(..!. 6esults Exercise 1: Collected Data ,ar%et -an%e *in+ Sensor (easurement *V+
Ta!e '7: Magne%ic ie!# sensor 3easure3en%s.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 6
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: Calibration Data Parameter
Value
4ain
Units
Notes
inG@
%amping Ta!e '8: Magne%ic ie!# ca!ira%ion "ara3e%ers.
".4. Enco/er #. 1nsure Fumpers is set to E*" A, ; to E*" B, and 1= to E*" I. 2. 8un the QNET6MECHKIT6E*"+! @I.
(./.1. 5nal4sis of 57 87 and I Signals #. Ex!"#$ 1D urn the encoder 5nob cloc5wise and e'amine the response of the ! and 9 signals. 6ote that the signals are offset by 2. @ for display purposes. 1nter your observation in able 2. $imilarly, turn the encoder 5nob counterBcloc5wise and enter your observation. 2. Ex!"#$ 2D Ahen is the inde' pulse triggeredK Ahat can this be used forK Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ,&
QNET-MECHKIT Laboratory – Student Manual
(./.2. Encoder Calibration #. Using the 15-i% 2osi%ion >coun%s? indicator on the @I, as shown in &igure +#, rotate the 5nob and determine how how many counts there are per revolution. 1nter your result in the Coun%s "er re< bo' in the @I. 8otate the 5nob and confirm that the ;ng!e >#eg? indicator is displaying an accurate angle. 2. urn the 5nob such that the 0 is in the upward position and reset the counter by clic5ing on the @ese% button. ". 1nable the inde' by clic5ing on the Ena!e In#ex button. +. 8otate the 5nob a full CA turn until the inde' is triggered. coun%s? and the ;ng!e >#eg? indicator valuesK . !dFust the @e!oa# Va!ue such that ;ng!e >#eg? measures 0 degrees when the 0 mar5 of the 5no b is pointing up. Confirm this by moving the 5nob CA. ). Ex!"#$ 3D 1nter the Coun% "er re< and the @e!oa# Va!ue values used for a calibrated measurement in able "0. . Ex!"#$ 4D (osition the 5nob such that its 0 label is pointing upwards again. he Coun%s "er re< and ;ng!e >#eg? should both be reading 0. 8otate the 5nob in the CCA fashion one full rotation. Is ;ng!e >#eg? reading 0 degreesK %iscuss why or why not.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ,$
QNET-MECHKIT Laboratory – Student Manual
Figure +1: @unning %he enco#er VI.
(./.!. E&ercises Exercise 1: Snc/roni'ation o. Encoder ) and 0 Si%nals Encoder nob -otation
) or 0 Si%nal Leads
Cloc5wise CounterBcloc5wise Ta!e '9: ; an# = signa!s an# enco#er ro%a%ion.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ,)
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: Index Pulse
Exercise : Encoder Speci.ications Parameter
Value
Units
Notes
Counts per rev
countsGrev
8eload @alue
counts
Ta!e *: Enco#er ca!ira%ion.
Exercise 3: Encoder -eset
".10. Tem!erature Sensor #. 1nsure 9 is set to T8!)'0! . 2. 8un the QNET6MECHKIT6T8!)'0! @I.
(.10.1. Collect 3ata #. !s discussed in 8eference >#?, the thermistor is part of a circuit and the output voltage can be varied using the /ain and 0se% potentiometers on the Q61 mechatronic sensors board. 8otate the /ain 5nob on the counterBcloc5wise until it hits its limit. 2. !dFust the 0se% 5nob such that the Te3"era%ure Sensor >V? scope reads 0 @. his is the Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ,3
QNET-MECHKIT Laboratory – Student Manual
voltage measured at room temperature, 0 M 2- <. NoteD &or this step, assume your room is at 2.0 degrees Celsius :deg C= even though itNs probably warmer or cooler. ". Ex!"#$ 1D 4ently place your fingertip on the temperature sensor and e'amine the response in the Te3"era%ure Sensor >V? scope. he surface temperature of the fingertip is appro'imately "2.0 deg C. 1nter the voltage read at room temperature and with the fingertip in able "#. Hin% 1D he thermistor is very sensitive. %o not press down too hard on the sensor with your finger when ta5ing measurements. /therwise, the measurement will not be consistent. Hin% 'D !fter releasing the sensor it ta5es a a while for the temperature reading to settle bac5 to 0 @. Jou can bring the temperature down faster by gently blowing on the sensor.
Figure +': Co!!ec%ing #a%a or %e3"era%ure sensor.
(.10.2. Calibrate Sensor #. Ex!"#$ 2D he voltage being measured on the Q61 1C;#?. Using the circuit and its corresponding e7uations, derive the formula that can be used to find the thermistor resistance from the output voltage of the circuit, @. Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ,*
QNET-MECHKIT Laboratory – Student Manual
2. Ex!"#$ 3D &ind the thermistor resistance at room temperature, @, and at the fingertip, @. 1nter your results in able "2. ". Ex!"#$ 4D %erive the e7uation to find the e'ponential parameter, =, and compute it based on the obtained results. +. 8un the Q61E1C;#eg C? scope.
Figure +*: Te3"era%ure sensor ca!ira%ion.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ,+
QNET-MECHKIT Laboratory – Student Manual
(.10.!. E&ercises Exercise 1: (easured Volta%e ,emperature *de% C+
,emperature *+
(easured Volta%e Units *V+
Notes
2
2-
@
@oltage at room temp, 0
"2
"0
@
@oltage with finger,
Ta!e *1: Measure# %her3is%or rea#ings.
Exercise 2: ,/ermistor -esistance E"uation
Exercise : (easured ,/ermistor -esistance ,emperature ,emperature (easured -esistance Units *de% C+ *+ * +
Notes
2
2-
Ω
8esistance at room temp, 8 0
"2
"0
Ω
8esistance with finger, 8
Ta!e *': Measure# %her3is%or resis%ances.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ,6
QNET-MECHKIT Laboratory – Student Manual
Exercise 3: !ind Exponential Parameter
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ,,
QNET-MECHKIT Laboratory – Student Manual
Exercise 4: Calibrated ,emperature Sensor -eadin%
".11. S%itches an/ *Es #. 1nsure Fumper is set to O'+ S#'"( , ; to M#"!+ S#'"(, and 9 to P0$( B0''+*. 2. 8un the QNET6MECHKIT6S#'"($6)*6LED$ @I.
(.11.1. ,tical Sitc #. $elect the 0"%o S$i%ch tab. 2. a5e piece of paper and slide it up and down into the optical switch. 1'amine the raw responses in the 0"%ica! S$i%ch scope. ". !dFust threshold, indicated in &igure ++, to obtain an onGoff or 0G# digital measurement in the 0"%ica! S$i%ch - &igi%a! scope. +. Ex!"#$ 1D 8ecord threshold used to get onGoff measurement and paste the response of the 0"%ica! S$i%ch and 0"%ica! S$i%ch B &igi%a! scopes.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ,8
QNET-MECHKIT Laboratory – Student Manual
Figure ++: 0"%ica! s$i%ch VI.
(.11.2. Micro Sitc #. $elect the Micro S$i%ch tab. 2. (ress on the icro $witch and e'amine its raw response in Micro S$i%ch scope. ". !dFust the /ain and 0se% , shown in &igure +, such that this the signal goes from 0 to # in the Micro S$i%ch B &igi%a! scope when the icro $witch is pressed. +. Ex!"#$ 2D 8ecord the /ain and 0se% used in able "" and capture representative Micro S$i%ch and Micro S$i%ch B &igi%a! responses.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e ,
QNET-MECHKIT Laboratory – Student Manual
Figure +4: Ca!ira%ing 3icro s$i%ch.
(.11.!. Pus 8utton #. $elect the 2ush =u%%on tab. 2. (ress on the (ush 9utton and e'amine its raw response in the 2ush =u%%on scope. ". !dFust the /ain and 0se% , indicated in &igure +), such that this signal goes from 0 to # in the 2ush =u%%on B &igi%a! scope when the (ush 9utton is pressed. +. Ex!"#$ 3D 8ecord the /ain and 0se% parameters used in able "+ and capture representative 2ush =u%%on and 2ush =u%%on B &igi%a! responses. . Ex!"#$ 4D 1'plain how the icro $witch and (ush 9utton behave differently.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 8&
QNET-MECHKIT Laboratory – Student Manual
Figure +5: Ca!ira%ing %he "ush u%%on.
(.11.(. LE3s #. $elect the &igi%a! 0u%"u%s tab. 2. !s shown in &igure +, switch %/ # and %/ 0 between the upGdown positions and e'amine its effect on the onBboard 31%s. ". Ex!"#$ 5D In able ", record what position, i.e. up or down, the %/ # and %/ 0 switches have to be in such that the %/ # and %/ 0 31%s are lit.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 8$
QNET-MECHKIT Laboratory – Student Manual
Figure +7: Se%%ing %he #igi%a! ou%"u%s.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 8)
QNET-MECHKIT Laboratory – Student Manual
(.11.). E&ercises Exercise 1: 5ptical S6itc/
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 83
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: (icro S6itc/ Parameter
Value
Units
Notes
4ain /ffset Ta!e **: Micro s$i%ch #igi%i6a%ion "ara3e%ers.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 8*
QNET-MECHKIT Laboratory – Student Manual
Exercise : Pus/ 0utton Parameter
Value
Units
Notes
4ain /ffset Ta!e *+: 2ush u%%on #igi%i6a%ion "ara3e%ers.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 8+
QNET-MECHKIT Laboratory – Student Manual
Exercise 3: (icro S6itc/ and Pus/ 0utton Comparison
Exercise 4: Di%ital 5utput S6itc/es Parameter
Value
Units
Notes
%/ # $witch position for %/ # 31% to be on %/ 0 $witch position for %/ 0 31% to be on Ta!e *4: &igi%a! ou%"u% s$i%ches.
".12. S%itch e)ounce na'ysis 6ote that this section is for the 13@I$ II only. he 13@I$ I does not have the functionality to perform this e'periment. #. 1nsure Fumper ; is set to M#"!+ S#'"( and 9 to P0$( B0''+*. 2. 8un the 0sci!!osco"e 6I 13@I$m' instrument. 9y default, this is located under S%ar% O ;!! 2rogra3s O Na%iona! Ins%ru3en%s O NI ELVIS3x Ins%ru3en%s.
(.12.1. 6unning te ,scilloscoe #. Clic5 on the green start arrow to run the /scilloscope. 2. o read the micro switch, set the Source control in Channe! Se%%ings to ;I 1 :i.e. analog input channel H#=. he response obtained should be similar as shown in &igure +-. ". (ress on the micro switch and ensure you are getting the e'pected signal. $ince the ;cuisi%ion Mo#e is set to continuous, the instrument 5eeps on running and the signal can be observed in realBtime. +. o e'amine the behaviour of the micro switch when it is engaged, configure theTrigger section to stop.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 86
QNET-MECHKIT Laboratory – Student Manual
Hin% D If preferred, you can change the ;cuisi%ion Mo#e to @un 0nce so the oscilloscope stops when the trigger is engaged. . If the trigger has been setup correctly, then the oscilloscope screen should capture a closeup view of the micro switch signal as it goes from @ to 0 @. ). ry to setup the oscilloscope for the (ush 9utton. his is on analog input channel H2 and you can choose to configure it on the Channel # of the oscilloscope :if you do, ma5e sure you enable the channel=. Hin% D o increase the sampling rate and obtain a more closeup view of the signal, decrease the Ti3eD&i< 5nob control. . Ahen you are done, stop and close down the /scilloscope instrument. CAUTION: a5e sure any 13@I$m' instrument, e.g. the oscilloscope, is closed before running any 13@I$ II based @I. /therwise the @I will not be able to run.
Figure +8: NI ELVIS3x 0sci!!osco"e ins%ru3en% $hen "ressing 3icro s$i%ch.
(.12.2. Micro Sitc #. he Q61E1C;
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 8,
QNET-MECHKIT Laboratory – Student Manual
2. ". +. .
as the 0sci!!osco"e tool used in $ection +.#2.#. It is already setup with a trigger and does not run continuously as the oscilloscope instrument does. 8un the Q61E1C;
Figure +9: VI use# %o ana!6e #eounce o 3icro s$i%ch an# "ush u%%on.
(.12.!. Pus 8utton #. 8un the Q61E1C;
QNET-MECHKIT Laboratory – Student Manual
1'plain. ). Ex!"#$ >D Ahen triggering on one channel, notice that there is a signal on the other channel :e.g. when pressing the micro switch observe the Ch# scope=. Capture representative plots and e'plain why this occurs.
(.12.(. E&ercises Exercise 1: ,ri%%er Parameters .or (icro S6itc/ ,ri%%er Parameters
Value
Units
Notes
ype $lope $ource 3evel
@
Ta!e *5: Trigger "ara3e%er or 3icro s$i%ch.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e 8
QNET-MECHKIT Laboratory – Student Manual
Exercise 2: (icro S6itc/ S6itc/ 0e/a&iour
Exercise : ,ri%%er Parameters Parameters .or Pus/ Pus/ 0utton ,ri%%er Parameters
Value
Units
Notes
ype $lope $ource 3evel
@
Ta!e *7: Trigger "ara3e%ers or "ush u%%on.
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e &
QNET-MECHKIT Laboratory – Student Manual
Exercise 3: Pus/ 0utton 0e/a&iour 0e/a&iour
Exercise 4: Pus/ 0utton and (icro S6itc/ Comparison Comparison
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e $
QNET-MECHKIT Laboratory – Student Manual
Exercise 7: S6itc/ )nalo% Input Input Si%nal )nalsis )nalsis
Document Number 863 ♦ e!"#"on $%& ♦ 'a(e )