{"id":626,"date":"2020-06-30T08:32:44","date_gmt":"2020-06-30T08:32:44","guid":{"rendered":"http:\/\/www.jontrinder.com\/blog\/?p=626"},"modified":"2020-06-30T08:32:44","modified_gmt":"2020-06-30T08:32:44","slug":"bike-lidar-and-social-distancing-alarm","status":"publish","type":"post","link":"https:\/\/www.jontrinder.com\/blog\/?p=626","title":{"rendered":"Bike Lidar and Social Distancing Alarm."},"content":{"rendered":"\n<p class=\"has-text-align-left\">Time is strange at the moment, but weekends are  still a good time for project  building.  So over a few weekends this project evolved and turned into two projects.<\/p>\n\n\n\n<p class=\"has-text-align-left\">The main  project came about as I wanted to a) try a VL53l1X time of flight\/Lidar device b)write  some&nbsp; Bluetooth LE code.  <\/p>\n\n\n\n<p class=\"has-text-align-left\">The result was this board (breadboard prototype shown in pictures) and an  mobile application.  <\/p>\n\n\n\n<p class=\"has-text-align-left\">As a standalone board the &#8220;Ninelocks Bike Lidar&#8221; (all projects need a  name <span class=\"moz-smiley-s1\" title=\":-)\"><\/span> ) can sound an alarm when an object is within a certain distance.  But to make it more adjustable I gave it an Bluetooth LE GATT profile so  it can be configured from a phone or other Bluetooth LE device.  That meant writing an phone application as well.  <\/p>\n\n\n\n<p class=\"has-text-align-left\">The phone app  shown here the phone  gets updates from the Lidar board and logs the current distance  along with timestamp and GPS location data  and for eye candy shows the most recent reading on a graph.<\/p>\n\n\n\n<p class=\"has-text-align-left\">The phone can also sound an alarm if anything gets closer than the  distance set as the trigger threshold.   There is a &#8216;video&#8217; below  showing the device and application at  work with some  suggested uses.  <\/p>\n\n\n\n<p class=\"has-text-align-left\">In its bike guise it could  potentially warn you of vehicles behind you (ok only up to  4 meters away and its still being tested but&#8230;.)  as a social distance alarm it can live on your desk to warn of approaching  colleagues\/ potential infection vectors.  <\/p>\n\n\n\n<p class=\"has-text-align-left\">You could maybe  use it to check if you wheel have wobble or any other  lidar\/distance\/graph&nbsp; type things you can think of.    Code will eventually make it to github.   <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/www.jontrinder.com\/blog\/wp-content\/uploads\/2020\/06\/smallboardview-1.jpg\" alt=\"\" class=\"wp-image-634\" srcset=\"https:\/\/www.jontrinder.com\/blog\/wp-content\/uploads\/2020\/06\/smallboardview-1.jpg 1024w, https:\/\/www.jontrinder.com\/blog\/wp-content\/uploads\/2020\/06\/smallboardview-1-300x225.jpg 300w, https:\/\/www.jontrinder.com\/blog\/wp-content\/uploads\/2020\/06\/smallboardview-1-768x576.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The Application<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"1024\" src=\"https:\/\/www.jontrinder.com\/blog\/wp-content\/uploads\/2020\/06\/Screenshot_wiggle-1-512x1024.png\" alt=\"\" class=\"wp-image-637\" srcset=\"https:\/\/www.jontrinder.com\/blog\/wp-content\/uploads\/2020\/06\/Screenshot_wiggle-1-512x1024.png 512w, https:\/\/www.jontrinder.com\/blog\/wp-content\/uploads\/2020\/06\/Screenshot_wiggle-1-150x300.png 150w, https:\/\/www.jontrinder.com\/blog\/wp-content\/uploads\/2020\/06\/Screenshot_wiggle-1.png 720w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n\n\n\n<p>There is a video (aka vid-ay-oh as they say in<a href=\"https:\/\/www.youtube.com\/watch?v=cTsvLjAzozE\"> stoneybridge<\/a>)<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"http:\/\/www.ninelocks.com\/download\/lidars.mp4\"><\/video><figcaption>Video of Lidar Board<\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Time is strange at the moment, but weekends are still a good time for project building. So over a few weekends this project evolved and turned into two projects. The main project came about as I wanted to a) try &hellip; <a href=\"https:\/\/www.jontrinder.com\/blog\/?p=626\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":634,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[98,81,80,68,26],"tags":[87,103,18,102],"class_list":["post-626","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-coding","category-computing","category-cycling","category-music","tag-android","tag-blueooth","tag-code","tag-lidar"],"_links":{"self":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=626"}],"version-history":[{"count":11,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/626\/revisions"}],"predecessor-version":[{"id":643,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/626\/revisions\/643"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/634"}],"wp:attachment":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}