{"id":10072,"date":"2021-07-13T07:56:17","date_gmt":"2021-07-13T14:56:17","guid":{"rendered":"https:\/\/www.vernier.com\/til\/?p=10072"},"modified":"2021-07-28T08:43:59","modified_gmt":"2021-07-28T15:43:59","slug":"advanced-help-with-raspberry-pi-and-python","status":"publish","type":"post","link":"https:\/\/www.vernier.com\/til\/10072","title":{"rendered":"Advanced Help connecting Go Direct sensors in Python on your Raspberry Pi"},"content":{"rendered":"<pre class=\"wp-block-preformatted\"><\/pre>\n<p class=\"wp-block-paragraph\">If you have not started with the Getting Started guide, please follow the steps here: <a href=\"https:\/\/vernierst.github.io\/godirect-examples\/python\/\">https:\/\/vernierst.github.io\/godirect-examples\/python\/<\/a>. The following troubleshooting tips should help resolve communication issues between Go Direct sensors and Python on Raspberry Pi.<\/p>\n<p class=\"wp-block-paragraph\">To get the Go Direct sensors connected via USB, you may need to upgrade pexpect with the following command: <br \/><strong>pip3 install -U pexpect<\/strong><\/p>\n<p class=\"wp-block-paragraph\">godirect-py has been updated (as of 1.0.6) to work with native BLE on Windows and Linux (including RPi). To get it running run the normal pypi install command:<br \/><strong>pip3 install godirect<\/strong><\/p>\n<p class=\"wp-block-paragraph\">If it isn&#8217;t working after this, upgrade all of the OS and several behind the scenes packages. This can be time-intensive, so we only recommend doing it if the other steps haven&#8217;t resolved the connection issues. The commands are:<br \/><strong>sudo apt update<\/strong><br \/>followed by:<br \/><strong>sudo apt full-upgrade<\/strong><\/p>\n<p class=\"wp-block-paragraph\">The process is detailed here if you need additional assistance: <br \/><a href=\"https:\/\/www.raspberrypi.org\/documentation\/raspbian\/updating.md\">https:\/\/www.raspberrypi.org\/documentation\/raspbian\/updating.md<\/a> <\/p>\n<p class=\"wp-block-paragraph\">You may also find that upgrading to the latest version of bluez may resolve any issues with Bluetooth connectivity. Refer to this<em> <a href=\"https:\/\/scribles.net\/updating-bluez-on-raspberry-pi-from-5-43-to-5-50\/\">help article for upgrading bluez<\/a><\/em>. <\/p>\n<p class=\"wp-block-paragraph\"><a href=\"\/til\/9843\/\">Can I use Vernier Go Direct sensors with Raspberry Pi?<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>If you have not started with the Getting Started guide, please follow the steps here: https:\/\/vernierst.github.io\/godirect-examples\/python\/. The following troubleshooting tips should help resolve communication issues&#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":[6769,7179,6022],"class_list":["post-10072","post","type-post","status-publish","format-standard","hentry","tag-godirect","tag-python","tag-raspberry-pi"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/10072","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=10072"}],"version-history":[{"count":0,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/posts\/10072\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/media?parent=10072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/categories?post=10072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vernier.com\/til\/wp-json\/wp\/v2\/tags?post=10072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}