<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[lidar lite v3]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
can I connect <a href="http://static.garmin.com/pumac/LIDAR_Lite_v3_Operation_Manual_and_Technical_Specifications.pdf" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> Lidar to M5Stick grove connector?<br />
if yes, I need a voltage divider for SDA and SCL?</p>
<p dir="auto">tanks a lot</p>
]]></description><link>https://community.m5stack.com/topic/453/lidar-lite-v3</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 14:55:32 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/453.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Dec 2018 11:50:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to lidar lite v3 on Mon, 07 Jan 2019 06:35:07 GMT]]></title><description><![CDATA[<p dir="auto">m5stick grove is different, pin is gnd, vcc, 25, 13,  those can be viewed from the back of the stick</p>
]]></description><link>https://community.m5stack.com/post/2368</link><guid isPermaLink="true">https://community.m5stack.com/post/2368</guid><dc:creator><![CDATA[heybin]]></dc:creator><pubDate>Mon, 07 Jan 2019 06:35:07 GMT</pubDate></item><item><title><![CDATA[Reply to lidar lite v3 on Fri, 04 Jan 2019 15:19:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi, all<br />
connecting the lidar lite to M5Stick on grove connector makes m5Stick burn!!!</p>
<p dir="auto">this is the sketch:</p>
<pre><code>

#include &lt;Arduino.h&gt;
#include &lt;U8g2lib.h&gt;

U8X8_HAVE_HW_SPI
#include &lt;SPI.h&gt;
#include &lt;Wire.h&gt;
#define LedPin 19
#define IrPin 17
#define BuzzerPin 26

#define BtnPin 35

int x = 870; 
int cm;
int feet;
int inches;
int INCHES;
bool unit = 0;

#include "MPU9250.h"

U8G2_SH1107_64X128_1_4W_HW_SPI u8g2(U8G2_R1, /* cs=*/ 14, /* dc=*/ 27, /* reset=*/ 33);

// an MPU9250 object with the MPU-9250 sensor on I2C bus 0 with address 0x68
MPU9250 IMU(Wire, 0x68);
//MPU9250 IMU(Wire,0x71);
int status;
int orienta;

unsigned long pulseWidth;

void setup() {
  Serial.begin(115200);
  u8g2.begin();
  status = IMU.begin();

  
  pinMode(25, OUTPUT); // Set pin 2 as trigger pin
  digitalWrite(25, LOW); // Set trigger LOW for continuous read

  pinMode(13, INPUT); // Set pin 3 as monitor pin

  pinMode(BtnPin, INPUT_PULLUP);
  pinMode(BuzzerPin, OUTPUT);
  digitalWrite(BuzzerPin, LOW);

  if (digitalRead(BtnPin) == 0) {
    unit = !unit;

    //bounce sound
    for (int f = 0; f &lt; 500; f++) {
      digitalWrite(BuzzerPin, HIGH);
      delay(1);
      digitalWrite(BuzzerPin, LOW);
      delay(1);
    }
  }


}

void loop() {
    pulseWidth = pulseIn(13, HIGH); // Count how long the pulse is high in microseconds

  // If we get a reading that isn't zero, let's print it
  if(pulseWidth != 0)
  {
    pulseWidth = pulseWidth / 10; // 10usec = 1 cm of distance
    Serial.println(pulseWidth); // Print the distance
  }
  

  cm = (pulseWidth) / 10;
//  inches = (myData.time + x) / 74 / 2;
  feet = inches / 12;
  INCHES = inches % 12; //es x = 7% 5; // X ora contiene 2

  if (unit) {
    stampaCM();
  } else {
    //stampaFT();
    stampaCM();
  }

  if (digitalRead(BtnPin) == 0) {
   // x = 5800 - myData.time ;
  }

  IMU.readSensor();
  orienta = IMU.getAccelY_mss();
  Serial.println("orienta = ");
  Serial.println(orienta);
  if (orienta &lt; 0) {
    u8g2.setFlipMode(1);
  } else {
    u8g2.setFlipMode(0);
  }
  delay(50);
}

void stampaCM() {
  u8g2.firstPage();
  do {
    u8g2.setFont(u8g2_font_7Segments_26x42_mn);

    if (cm &lt; 10) {
      u8g2.setCursor(70, 52);
      u8g2.print(cm);
    }
    if (cm &lt; 100 &amp;&amp; cm &gt;= 10) {
      u8g2.setCursor(40, 52);
      u8g2.print(cm);
    }

    if (cm &gt;= 100) {
      u8g2.setCursor(20, 52);
      u8g2.print(cm);
    }
  } while (u8g2.nextPage());
}

void stampaFT() {
  u8g2.firstPage();
  do {
    u8g2.setFont(u8g2_font_7Segments_26x42_mn);
    u8g2.drawDisc(63, 52, 2, U8G2_DRAW_ALL);

    if (feet &lt; 10) {
      u8g2.setCursor(30, 52);
      u8g2.print(feet);
    } else {
      u8g2.setCursor(1, 52);
      u8g2.print(feet);
    }

    if (INCHES &lt; 10) {
      u8g2.setCursor(75, 52);
      u8g2.print(INCHES);
    } else {
      u8g2.setCursor(60, 52);
      u8g2.print(INCHES);
    }
  } while (u8g2.nextPage());
}
</code></pre>
<p dir="auto"><img src="https://attachment.outlook.live.net/owa/cepics@hotmail.com/service.svc/s/GetAttachmentThumbnail?id=AQMkADAwATY3ZmYAZS04NzM3LTQxMQBiLTAwAi0wMAoARgAAAz8bKhVT68pKo%2FS3EjZ5DrEHACAocbpd2HtGoaxhLJMjWaUAAAIBDAAAACAocbpd2HtGoaxhLJMjWaUAAj32MUEAAAABEgAQAM4c7fI%2FdolIu%2FLTNJuFews%3D&amp;thumbnailType=2&amp;owa=outlook.live.com&amp;scriptVer=2018121703.02&amp;isc=1&amp;X-OWA-CANARY=m6FzlClPZkCoHWTsHdRvGnCqKRdXctYY0nZx0BlZk4CbINzMZvj7Tpigd2Fsq_hg_6SH4dZAaKU.&amp;token=eyJhbGciOiJSUzI1NiIsImtpZCI6IjA2MDBGOUY2NzQ2MjA3MzdFNzM0MDRFMjg3QzQ1QTgxOENCN0NFQjgiLCJ4NXQiOiJCZ0Q1OW5SaUJ6Zm5OQVRpaDhSYWdZeTN6cmciLCJ0eXAiOiJKV1QifQ.eyJ2ZXIiOiJFeGNoYW5nZS5DYWxsYmFjay5WMSIsImFwcGN0eHNlbmRlciI6Ik93YURvd25sb2FkQDg0ZGY5ZTdmLWU5ZjYtNDBhZi1iNDM1LWFhYWFhYWFhYWFhYSIsImFwcGN0eCI6IntcIm1zZXhjaHByb3RcIjpcIm93YVwiLFwicHJpbWFyeXNpZFwiOlwiUy0xLTI4MjctNDI1OTgyLTIyNjg1NDUzMDdcIixcInB1aWRcIjpcIjE4Mjk1ODEwMjcyMjk5NzlcIixcIm9pZFwiOlwiMDAwNjdmZmUtODczNy00MTFiLTAwMDAtMDAwMDAwMDAwMDAwXCIsXCJzY29wZVwiOlwiT3dhRG93bmxvYWRcIn0iLCJuYmYiOjE1NDY2MTQ3NTcsImV4cCI6MTU0NjYxNTM1NywiaXNzIjoiMDAwMDAwMDItMDAwMC0wZmYxLWNlMDAtMDAwMDAwMDAwMDAwQDg0ZGY5ZTdmLWU5ZjYtNDBhZi1iNDM1LWFhYWFhYWFhYWFhYSIsImF1ZCI6IjAwMDAwMDAyLTAwMDAtMGZmMS1jZTAwLTAwMDAwMDAwMDAwMC9hdHRhY2htZW50Lm91dGxvb2subGl2ZS5uZXRAODRkZjllN2YtZTlmNi00MGFmLWI0MzUtYWFhYWFhYWFhYWFhIn0.b7L0ogVs0ZXldtS-iUG2pMa4tgg6C3SYdIeOdh8Nd0iKWQtzLagjPVJreHx5_xPBUvw7qBPS3wHkngm9-b9ry8rup2iiEXCp20ZxKy4aNzmMrx3IRe2Kd8L_DLRyLu2EYuuJE1viOkpAh4Y-E-F_9ozgyOR2rEHSWOin8cY4PCmUw2jz-GPVQBxNHfD8OSsbxbh-zm4Nrmf6gi2iMJFhz66Gv-Wrkq8vmG12lIW3fbpgHYojbFd-Tu33sHcrsbTtz1TwLJWfXDgLaWnh7POkcmn0ffd8m_ZMZyTO9kUxV5hMxX9PcZW8c1FppEAEDkZ7VThrJgS2DBadqm-_6XAnrg&amp;animation=true" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">what is this??<br />
can I repare it??</p>
]]></description><link>https://community.m5stack.com/post/2319</link><guid isPermaLink="true">https://community.m5stack.com/post/2319</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Fri, 04 Jan 2019 15:19:13 GMT</pubDate></item><item><title><![CDATA[Reply to lidar lite v3 on Fri, 04 Jan 2019 10:20:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/480">@heybin</a> which is the difference between the red I2C (M5Stack) and the white one (M5Stick)  ??</p>
<p dir="auto">I'm trying on M5Stick....</p>
]]></description><link>https://community.m5stack.com/post/2316</link><guid isPermaLink="true">https://community.m5stack.com/post/2316</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Fri, 04 Jan 2019 10:20:22 GMT</pubDate></item><item><title><![CDATA[Reply to lidar lite v3 on Fri, 04 Jan 2019 09:25:53 GMT]]></title><description><![CDATA[<p dir="auto">hello, gpio sda:21 scl:22,  in m5stack red grove</p>
]]></description><link>https://community.m5stack.com/post/2315</link><guid isPermaLink="true">https://community.m5stack.com/post/2315</guid><dc:creator><![CDATA[heybin]]></dc:creator><pubDate>Fri, 04 Jan 2019 09:25:53 GMT</pubDate></item><item><title><![CDATA[Reply to lidar lite v3 on Fri, 04 Jan 2019 09:03:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> Hi, trying the sketch above, the serial monitor say:</p>
<pre><code>&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
&gt;nack
</code></pre>
<p dir="auto">the same sketch on esp8266 works!!</p>
<p dir="auto">ideas??</p>
<p dir="auto">tnks a lot</p>
]]></description><link>https://community.m5stack.com/post/2314</link><guid isPermaLink="true">https://community.m5stack.com/post/2314</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Fri, 04 Jan 2019 09:03:21 GMT</pubDate></item><item><title><![CDATA[Reply to lidar lite v3 on Thu, 27 Dec 2018 21:01:28 GMT]]></title><description><![CDATA[<p dir="auto">Can I try this one?</p>
<pre><code>
#include &lt;Wire.h&gt;
#include &lt;LIDARLite.h&gt;

LIDARLite myLidarLite;

void setup() {

 myLidarLite.begin(0, true); // Set configuration to default and I2C to 400 kHz

  /*
    configure(int configuration, char lidarliteAddress)
    Selects one of several preset configurations.
    Parameters
    ----------------------------------------------------------------------------
    configuration:  Default 0.
      0: Default mode, balanced performance.
      1: Short range, high speed. Uses 0x1d maximum acquisition count.
      2: Default range, higher speed short range. Turns on quick termination
          detection for faster measurements at short range (with decreased
          accuracy)
      3: Maximum range. Uses 0xff maximum acquisition count.
      4: High sensitivity detection. Overrides default valid measurement detection
          algorithm, and uses a threshold value for high sensitivity and noise.
      5: Low sensitivity detection. Overrides default valid measurement detection
          algorithm, and uses a threshold value for low sensitivity and noise.
    lidarliteAddress: Default 0x62. Fill in new address here if changed. See
      operating manual for instructions.
  */
  myLidarLite.configure(1); // Change this number to try out alternate configurations
}

void loop() {

  // Take a measurement with receiver bias correction and print to serial terminal
  Serial.println(myLidarLite.distance());

delay(50);
}
</code></pre>
<p dir="auto">best regards</p>
]]></description><link>https://community.m5stack.com/post/2245</link><guid isPermaLink="true">https://community.m5stack.com/post/2245</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Thu, 27 Dec 2018 21:01:28 GMT</pubDate></item><item><title><![CDATA[Reply to lidar lite v3 on Thu, 27 Dec 2018 20:17:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/935">@cepics</a> said in <a href="/post/2242">lidar lite v3</a>:</p>
<blockquote>
<p dir="auto">Hi all,<br />
can I connect <a href="http://static.garmin.com/pumac/LIDAR_Lite_v3_Operation_Manual_and_Technical_Specifications.pdf" target="_blank" rel="noopener noreferrer nofollow ugc">this</a> Lidar to M5Stick grove connector?<br />
if yes, I need a voltage divider for SDA and SCL?</p>
<p dir="auto">tanks a lot</p>
</blockquote>
<p dir="auto">Technically yes as its i2c but no code will exist.</p>
]]></description><link>https://community.m5stack.com/post/2244</link><guid isPermaLink="true">https://community.m5stack.com/post/2244</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 27 Dec 2018 20:17:43 GMT</pubDate></item></channel></rss>