{"id":10843,"date":"2025-04-03T13:30:04","date_gmt":"2025-04-03T20:30:04","guid":{"rendered":"https:\/\/www.vernier.com\/til\/?p=10843&#038;preview=true&#038;preview_id=10843"},"modified":"2025-04-03T13:30:04","modified_gmt":"2025-04-03T20:30:04","slug":"how-do-i-import-the-vernier-arduino-vernierlib-or-gdxlib-libraries","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/10843","title":{"rendered":"How do I install Arduino libraries for Go Direct sensors or LabQuest sensors?"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Vernier has created Arduino libraries that support both Go Direct sensors and LabQuest sensors. These libraries have been officially added to the Arduino Library Manager. This means you can use the Library Manager tool in the Arduino IDE to install the libraries into your Arduino IDE.<\/p>\n<h3 class=\"wp-block-heading\">Installing Libraries<\/h3>\n<p class=\"wp-block-paragraph\">Steps to install a library may differ for the web version of the IDE from the installed version. In addition, as the IDE is updated, the steps may change. In general, here is how to install a Vernier library:<\/p>\n<div class=\"wp-block-columns are-vertically-aligned-center is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<ol class=\"wp-block-list\">\n<li>Launch the Arduino IDE<\/li>\n<li>Click the &#8220;library book&#8221; icon in the left column to open the Library Manager<\/li>\n<li>Type &#8220;vernier&#8221; into the search field<\/li>\n<li>Click the <strong>INSTALL<\/strong> button to install either the GDXLib library for Go Directs sensors, or the VernierLib library for LabQuest sensors (or both).<\/li>\n<\/ol>\n<\/div>\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"897\" src=\"https:\/\/www.vernier.com\/til\/wp-content\/uploads\/sites\/2\/2021\/01\/library-manager-1024x897.jpg\" alt=\"\" class=\"wp-image-24139\" style=\"width:390px;height:auto\" srcset=\"https:\/\/www.vernier.com\/til\/wp-content\/uploads\/sites\/2\/2021\/01\/library-manager-1024x897.jpg 1024w, https:\/\/www.vernier.com\/til\/wp-content\/uploads\/sites\/2\/2021\/01\/library-manager-600x526.jpg 600w, https:\/\/www.vernier.com\/til\/wp-content\/uploads\/sites\/2\/2021\/01\/library-manager-768x673.jpg 768w, https:\/\/www.vernier.com\/til\/wp-content\/uploads\/sites\/2\/2021\/01\/library-manager-1536x1346.jpg 1536w, https:\/\/www.vernier.com\/til\/wp-content\/uploads\/sites\/2\/2021\/01\/library-manager.jpg 1872w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n<\/div>\n<\/div>\n<p class=\"wp-block-paragraph\">Note that the libraries can also be manually installed into the Arduino IDE by simply moving the <a href=\"https:\/\/github.com\/VernierST\/GDXLib\">GDXLib folder<\/a>, or the <a href=\"https:\/\/github.com\/VernierST\/VernierLib\">VernierLib folder<\/a> into the Arduino &gt; libraries directory. The Arduino directory can usually be found in your Documents folder.<\/p>\n<h3 class=\"wp-block-heading\">Examples<\/h3>\n<p class=\"wp-block-paragraph\">The GDXLib and VernierLib libraries include examples that can be accessed once the library has been installed. Find the examples in the Arduino IDE File menu at: <br \/>File &gt; Examples &gt; {Library} &gt; {Example}.<\/p>\n<h3 class=\"wp-block-heading\">Including a Library<\/h3>\n<p class=\"wp-block-paragraph\">To use a library in an Arduino sketch, you must &#8220;include&#8221; the library at the top of the sketch. When using the GDXLib library, you must also include the ArduinoBLE library (refer to the examples to see this code in action)<br \/><code>#include \"ArduinoBLE.h\"<br \/>#include \"GDXLib.h\"<\/code><\/p>\n<h3 class=\"wp-block-heading\">Additional Links<\/h3>\n<ul class=\"wp-block-list\">\n<li><a href=\"\/til\/10983\/\">Can I use Go Direct sensors with Arduino?<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/VernierST\/GDXLib#getting-started-with-vernier-go-direct-sensors-and-arduino\">Getting Started with Vernier Go Direct\u00ae Sensors and Arduino\u00ae User Manual<\/a><\/li>\n<li><a href=\"https:\/\/www.vernier.com\/engineering\/arduino\/arduino-online-guide\/\">Vernier LabQuest Sensors with Arduino Online Guide<\/a><\/li>\n<li>Arduino shield for connecting LabQuest sensors: <a href=\"\/product\/vernier-arduino-interface-shield\/\">Vernier Arduino<sup>\u00ae<\/sup> Interface Shield<\/a> (<nobr>BT-ARD<\/nobr>)<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">\n<p class=\"wp-block-paragraph\">\n<p class=\"wp-block-paragraph\">\n<p class=\"wp-block-paragraph\">","protected":false},"excerpt":{"rendered":"<p>Vernier has created Arduino libraries that support both Go Direct sensors and LabQuest sensors. These libraries have been officially added to the Arduino Library Manager&#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":[3084,7572,3111,5899,2575,7571],"class_list":["post-10843","post","type-post","status-publish","format-standard","hentry","tag-arduino","tag-gdxlib","tag-library","tag-redboard","tag-shield","tag-vernierlib"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/10843","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=10843"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/10843\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=10843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=10843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=10843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}