{"id":2236,"date":"2019-04-19T21:36:39","date_gmt":"2019-04-20T04:36:39","guid":{"rendered":""},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T07:00:00","slug":"2236","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/2236","title":{"rendered":"Is there a way to connect my CO2 sensor to an NXT Mindstorm?"},"content":{"rendered":"<p>(This information refers to the LEGO NXT robotics system. The information should be similar for LEGO EV3. However, this has not been tested.)<\/p>\n<p>There is a way to connect a CO2 sensor to an NXT mindstorm, but it will require that you are comfortable with a breadboard. You also need to be aware that the output will not be calibrated or reported in ppm. However, you will see a value rise and fall (counts) that is related to the CO2 level.<\/p>\n<p>You will need to make an external power supply for the CO2 sensor. You can purchase a plastic battery case that holds 4 AA batteries from many different electronic vendors. This will serve as your power supply. You will also need a BTA-ELV adapter, a BB-BTA, a breadboard, and some jumper wires. The BTA-ELV is an adapter that will accept the BTA connector from the CO2 sensor. Connect the BTA-ELV to a breadboard. You can get a standard breadboard from many different electronic vendors. Next, place the BB-BTA on the breadboard next to the BTA-ELV. The BB-BTA is an adapter that will take the inputs from the breadboard back to a BTA cable. Using a jumper wire, feed the 0-5V signal input from the BTA-ELV (SIG1) over to the same pin (SIG1) on the BB-BTA using the breadboard. Next, tie the Grounds from the BB-BTA and the BTA-ELV together using a jumper wire and the breadboard. Now connect the 5V and GND outputs from the battery case to the breadboard. Using a jumper wire, feed these signals to the appropriate lines of the BB-BTA.<\/p>\n<p>To run Vernier sensors with LEGO MINDSTORMS you must install our Vernier Sensor Block. The Vernier Sensor Block download, and all of the installation instructions can be found at: <a href=\"https:\/\/www.vernier.com\/nxt\/downloads.html\">https:\/\/www.vernier.com\/nxt\/downloads.html<\/a><\/p>\n<p>Connect the BB-BTA to the NXT adapter. Connect the CO2 sensor to the BTA-ELV. Launch the NXT software. <\/p>\n<p>After installing the Vernier Sensor Block, start a new project in the NXT Programming software. Drag and drop the Vernier Sensor Block into the programming environment. In the configuration window there is a control to select the Vernier Sensor. The CO2 sensor is not part of this list. Therefore, choose Raw Counts. <\/p>\n<p>Below are links to the adapters that you will need<\/p>\n<p><a href=\"https:\/\/www.vernier.com\/accessories\/access.html?bta-elv&#038;btd-elv&#038;template=basic.html\">https:\/\/www.vernier.com\/accessories\/access.html?bta-elv&#038;btd-elv&#038;template=basic.html<\/a><br \/>\n<a href=\"https:\/\/www.vernier.com\/diy\/bb-bta.html\">https:\/\/www.vernier.com\/diy\/bb-bta.html<\/a><\/p>\n<p><a href=\"\/product\/lego-mindstorms-education-ev3-core-set-with-charger\/\">LEGO<sup>&reg;<\/sup> MINDSTORMS<sup>&reg;<\/sup> Education EV3 Core Set with Charger<\/a> (<nobr>LEGO-EV3-CORE<\/nobr>)<br \/>\n<a href=\"\/product\/nxt-sensor-adapter\/\">NXT Sensor Adapter<\/a> (<nobr>BTA-NXT<\/nobr>)<br \/>\n<a href=\"\/product\/vernier-engineering-projects-with-lego-mindstorms-education-ev3-electronic-version\/\"><i>Vernier Engineering Projects with LEGO&reg; MINDSTORMS&reg; Education EV3<\/i><\/a> (<nobr>EP-EV3-E<\/nobr>)<br \/>\n<a href=\"\/til\/3339\/\">LEGO\u00ae Mindstorms\u00ae EV3 Troubleshooting and FAQs<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>(This information refers to the LEGO NXT robotics system. The information should be similar for LEGO EV3. However, this has not been tested.) There is&#8230;<\/p>\n","protected":false},"author":8983,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[2613,860,3672,2614,3671,2612],"class_list":["post-2236","post","type-post","status-publish","format-standard","hentry","tag-bta-nxt","tag-co2","tag-ev3","tag-lego","tag-mindstorm","tag-nxt"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/2236","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\/8983"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/comments?post=2236"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/2236\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=2236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=2236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=2236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}