{"id":3334,"date":"2014-11-11T21:04:49","date_gmt":"2014-11-12T05:04:49","guid":{"rendered":""},"modified":"2021-01-12T10:25:17","modified_gmt":"2021-01-12T18:25:17","slug":"3334","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/3334","title":{"rendered":"How do I use my homemade sensor with Logger Pro?"},"content":{"rendered":"<div class=\"wp-block-group\">\n<div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>The Vernier Breadboard Cables (<a href=\"\/product\/breadboard-cable-analog\/\">Breadboard Cable (Analog)<\/a> (<nobr>BB-BTA<\/nobr>) and <a href=\"\/product\/breadboard-cable-digital\/\">Breadboard Cable (Digital)<\/a> (<nobr>BB-BTD<\/nobr>)) provide an easy way to connect your sensor to a Vernier interface. Once your sensor is connected to an interface, you can use Logger <i>Pro<\/i> to calibrate the sensor and collect and analyze data. (Note: Graphical Analysis and Graphical Analysis Pro doe not allow for manual setup of sensors and thus cannot collect data from a homemade sensor.)<\/p>\n<p><b>Use the Vernier Breadboard Cable to connect to a Vernier Interface<\/b><br \/>The Vernier Breadboard Cable connects to a standard electronics prototyping board and provides the following lines:<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"\/files\/til\/images\/3334-bb-bta_pin_diagram.jpg\" alt=\"3334-bb-bta_pin_diagram.jpg\"\/><figcaption>Analog Breadboard Cable<\/figcaption><\/figure>\n<\/div>\n<p class=\"has-text-align-center\"><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"\/files\/til\/images\/3334-bb-btd_pin_diagram.jpg\" alt=\"3334-bb-btd_pin_diagram.jpg\"\/><figcaption>Digital Breadboard Cable<\/figcaption><\/figure>\n<\/div>\n<p>A Vernier interface, such as a LabQuest 2 or LabQuest Mini, can read sensor output signals on two different ranges: 0-5 V or +\/- 10 V. The output of your sensor dictates the lines to which you should connect your sensor. The following are a few of the common cases for homemade sensors:<\/p>\n<figure class=\"wp-block-table is-style-stripes\">\n<table>\n<tbody>\n<tr>\n<td><b>Sensor Output Signal<\/b><\/td>\n<td><b>How to Connect to Breadboard Cable<\/b><\/td>\n<\/tr>\n<tr>\n<td>Analog Voltage: 0-5 V<\/td>\n<td>Connect the sensor output to SIG1 and your sensor&#8217;s ground terminal to GND of an Analog Breadboard Cable.<\/td>\n<\/tr>\n<tr>\n<td>Analog Voltage: +\/-10 V<\/td>\n<td>Connect the sensor output to SIG2 and your sensor&#8217;s ground terminal to GND of an Analog Breadboard Cable.<\/td>\n<\/tr>\n<tr>\n<td>Analog Voltage: milli-volt range<\/td>\n<td>Very small voltages, such as those from a Wheatstone bridge, are most easily read into a Vernier interface via the <a href=\"\/product\/instrumentation-amplifier\/\">Instrumentation Amplifier<\/a> (<nobr>INA-BTA<\/nobr>), rather than a Breadboard Cable. The Instrumentation Amplifier monitors voltages from 20 mV to 1 V (DC or AC). It has several switch settings to allow you to select the best gain and includes auto-ID functionality for each of the six ranges. The <a href=\"https:\/\/www.vernier.com\/experiment\/epv-e-10_strain-gage-measurements\/\">Strain Gage Measurement Project<\/a> from <i>Engineering Projects with NI LabVIEW and Vernier<\/i> (EPV, <em>discontinued<\/em>) is an excellent example of using the Instrumentation Amplifier to input a very small voltage signal into Logger <i>Pro<\/i>.<\/td>\n<\/tr>\n<tr>\n<td>Variable resistance<\/td>\n<td>If your sensor uses a variable resistor, such as a thermistor or photoresistor, a voltage divider is a convenient way to convert the change in resistance into a change in voltage.<br \/><img decoding=\"async\" class=\"border\" src=\"\/files\/til\/images\/3334-voltage _divider_schematic.jpg\" alt=\"3334-voltage _divider_schematic.jpg\"><br \/>A voltage divider places a known resistance (R<sub>1<\/sub>) and a variable resistor (R<sub>T<\/sub>) in series across a known voltage (V<sub>in<\/sub>). The signal output voltage (V<sub>out<\/sub>) can be measured across the variable resistor. The value of the upper resistor, R<sub>1<\/sub>, will determine the range (or swing) of the sensor&#8217;s output voltage, V<sub>out<\/sub>. R<sub>1<\/sub> should be larger than the variable resistor&#8217;s minimum resistance, but smaller than the variable resistor&#8217;s maximum resistance.Any power source can be used for V<sub>in<\/sub>, but the 5V line from the breadboard cable is convenient and will produce V<sub>out<\/sub> measurements between 0 and 5 V. For example, in the Building a Temperature Sensor project in <i>Engineering Projects with NI LabVIEW and Vernier<\/i> (EPV, <em>discontinued<\/em>), the thermistor is wired to the Breadboard Cable in this manner: <img decoding=\"async\" class=\"border\" src=\"\/files\/til\/images\/3334-thermistor _bb-bta_connection.jpg\" alt=\"3334-thermistor _bb-bta_connection.jpg\"><\/td>\n<\/tr>\n<tr>\n<td>Digital Voltage<\/td>\n<td>If your sensor produces a simple &#8220;high&#8221; voltage or &#8220;low&#8221; voltage in response to changes in the measurement, you will use the Digital Breadboard Cable. How Logger <i>Pro<\/i> interprets the input values it reads depends on what you identify the sensor as, e.g. a motion detector, photogate, radiation monitor, or rotary motion sensor. See a detailed pin out diagram for each mode <a href=\"https:\/\/www.vernier.com\/til\/5457\">here<\/a>. This <a href=\"https:\/\/www.vernier.com\/engineering\/stem\/sensors\/photogate\/\">photogate project<\/a> is a good example of homemade digital sensor.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p><b>Calibrate Your Sensor in Logger <i>Pro<\/i><\/b><br \/>After connecting the sensor and interface, calibrate your sensor.<br \/>1. Connect the Breadboard Cable to CH1 or DIG\/SONIC1 of your interface and connect your interface to the computer.<br \/>2. Start Logger <i>Pro<\/i>.<br \/>3. Choose Set Up Sensors from the Experiment menu. To continue, follow the directions below for the type of sensor your are using.<\/p>\n<p><i>Analog sensors<\/i><br \/>4. In the CH1 list, select Choose Sensor. From the Voltage list, select Raw Voltage (0-5 V) or Raw Voltage (-\/+10 V), depending on which voltage range is most appropriate for your sensor. Note: At this point, sensor output values will be displayed in the digital meter.<\/p>\n<p>5. Create a calculated column to perform the calibration. The calibration equation you enter into the Expression field depends on the nature of your sensor.<\/p>\n<p>A simple linear calibration can be found by measuring the maximum and minimum voltage, V<sub>max<\/sub> and V<sub>min<\/sub> respectively, produced by the sensor under the conditions in which it will be typically used. In the Expression field, enter: (&#8220;Potential&#8221;-V<sub>min<\/sub>)\/(V<sub>max<\/sub>-V<sub>min<\/sub>)<\/p>\n<p><i>Digital sensors<\/i><br \/>4. In the DIG\/SONIC1 list, select Choose Sensor. Select the digital device that is most appropriate for your sensor. If you select &#8220;Photogate&#8221;, you will need to specify which timing mode to use.<\/p>\n<p><b>Collect and Analyze Data<\/b><br \/>Now that your homemade sensor is connected to Logger <i>Pro<\/i> and its output signal is calibrated, you can begin data collection just as you would with any Vernier sensor.<\/p>\n<p><strong>RELATED ARTICLES<\/strong><\/p>\n<p><a href=\"\/til\/1952\/\">Can I use Vernier LabQuest sensors with non-Vernier software or interfaces?<\/a><\/p>\n<p><a href=\"\/til\/2928\/\">Do you have an SDK or API for your sensors?<\/a><\/p>\n<p><\/p>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>The Vernier Breadboard Cables ( and ) provide an easy way to connect your sensor to a Vernier interface. Once your sensor is connected to&#8230;<\/p>\n","protected":false},"author":100811,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[784,5655,5656,798,671,108],"class_list":["post-3334","post","type-post","status-publish","format-standard","hentry","tag-bb-bta","tag-bb-btd","tag-build-your-own-sensor","tag-diy","tag-homemade","tag-ina-bta"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/3334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/users\/100811"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=3334"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/3334\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=3334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=3334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=3334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}