<?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[M5stickC and VL53L1X sensor GROVE port]]></title><description><![CDATA[<p dir="auto">Hi, is it possible to connect VL53L1X sensor to M5StickC on GROVE port?<br />
I dont know how to set sda and scl pins of the GROVE... maybe with Wire1 ??<br />
I'm using arduino IDE<br />
this code doesn't work..</p>
<pre><code>#include &lt;M5StickC.h&gt;
#include &lt;Wire.h&gt;
#include &lt;VL53L1X.h&gt;
VL53L1X sensor;


float accX = 0;
float accY = 0;
float accZ = 0;

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

#define TFT_GREY 0x5AEB // New colour

void setup() {

  M5.begin();

  Wire.begin();
  Wire.begin(32, 33); // (SDA, SCL) grove stickC
  Wire.setClock(400000); // use 400 kHz I2C

  M5.Lcd.setRotation(3);
  M5.MPU6886.Init();

  sensor.setDistanceMode(VL53L1X::Long);
  sensor.setMeasurementTimingBudget(50000);
  sensor.startContinuous(50);

}

void loop() {
  M5.MPU6886.getAccelData(&amp;accX, &amp;accY, &amp;accZ);

  if (accX &lt; 0) {
    M5.Lcd.setRotation(3);
  } else {
    M5.Lcd.setRotation(1);
  }

    cm = (sensor.read() / 10); //CM
    inches = cm / 2, 54;
    feet = inches / 12;
    INCHES = inches % 12; //es x = 7% 5; // X ora contiene 2


  M5.Lcd.fillScreen(TFT_GREY);
  M5.Lcd.setCursor(10, 16);
  M5.Lcd.setTextColor(TFT_YELLOW);
  M5.Lcd.setTextFont(7);
  //M5.Lcd.println(12.10);
  M5.Lcd.println(cm);
  delay(100);
}
</code></pre>
<p dir="auto">tnks a lot</p>
]]></description><link>https://community.m5stack.com/topic/1297/m5stickc-and-vl53l1x-sensor-grove-port</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 14:12:36 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/1297.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Sep 2019 09:45:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5stickC and VL53L1X sensor GROVE port on Tue, 10 Sep 2019 12:58:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cepics" aria-label="Profile: cepics">@<bdi>cepics</bdi></a> said in <a href="/post/5499">M5stickC and VL53L1X sensor GROVE port</a>:</p>
<blockquote>
<p dir="auto">VL53L1X</p>
</blockquote>
<p dir="auto">I tried the VL53L0X unit on the grove port of the stick several times and could not get it to work. I know that really doesn't really help you but at least your are not alone in this quest :)</p>
]]></description><link>https://community.m5stack.com/post/5549</link><guid isPermaLink="true">https://community.m5stack.com/post/5549</guid><dc:creator><![CDATA[wikistik]]></dc:creator><pubDate>Tue, 10 Sep 2019 12:58:04 GMT</pubDate></item><item><title><![CDATA[Reply to M5stickC and VL53L1X sensor GROVE port on Tue, 10 Sep 2019 06:46:13 GMT]]></title><description><![CDATA[<p dir="auto">Have you tried this code sample yet?<br />
<a href="https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Unit/TOF/Arduino/TOF_VL53L0X/TOF_VL53L0X.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Unit/TOF/Arduino/TOF_VL53L0X/TOF_VL53L0X.ino</a></p>
<p dir="auto">BTW there is a new TOF Hat for the stick C</p>
<p dir="auto"><a href="https://m5stack.com/collections/all/products/m5stickc-tof-hatvl53l0x" target="_blank" rel="noopener noreferrer nofollow ugc">https://m5stack.com/collections/all/products/m5stickc-tof-hatvl53l0x</a></p>
]]></description><link>https://community.m5stack.com/post/5548</link><guid isPermaLink="true">https://community.m5stack.com/post/5548</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 10 Sep 2019 06:46:13 GMT</pubDate></item><item><title><![CDATA[Reply to M5stickC and VL53L1X sensor GROVE port on Tue, 10 Sep 2019 02:15:24 GMT]]></title><description><![CDATA[<p dir="auto">nobody?</p>
]]></description><link>https://community.m5stack.com/post/5547</link><guid isPermaLink="true">https://community.m5stack.com/post/5547</guid><dc:creator><![CDATA[cepics]]></dc:creator><pubDate>Tue, 10 Sep 2019 02:15:24 GMT</pubDate></item></channel></rss>