<?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[BMP180 Grove how to get it working on core2?]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have been trying to get the BMP180 connected via Grove I2C to work and failed, Yes I'm new to the M5Stacks and struggling!</p>
<p dir="auto">My code is below, anyone tell me what's wrong or point me at an M5Core2 example?</p>
<pre><code>#define M5STACK_MPU6886 

#define SDA 25
#define SCL 13

#include &lt;M5Core2.h&gt;
#include &lt;Wire.h&gt;
//TwoWire Wire1 = TwoWire(1);

#include &lt;Adafruit_BMP085.h&gt;
Adafruit_BMP085 bmp;

float pitch = 0.0F;
float roll  = 0.0F;
float yaw   = 0.0F;

//averages 
float pitcha = 0.0F;
float rolla  = 0.0F;
float yawa   = 0.0F;



  int i = 0;
  

void setup(){

  // Initialize the M5Stack object
  M5.begin();
  Wire.begin(SDA, SCL);  //M5Stack SDA, SC  
  //Wire1.begin(SDA, SCL, 400000);
  M5.IMU.Init();
  delay(200);
  M5.Lcd.fillScreen(BLACK);
  M5.Lcd.setTextColor(GREEN , BLACK);
  M5.Lcd.setTextSize(2);

     if (!bmp.begin()) {
      M5.Lcd.println("BMP Error");
   
        }

}

// the loop routine runs over and over again forever
void loop() {
    // put your main code here, to run repeatedly:1    

  M5.IMU.getAhrsData(&amp;pitch,&amp;roll,&amp;yaw);
  
  pitcha += pitch;
  rolla += roll;
  yawa += yaw;
  
      if (i &gt; 60) //average every i loops
        {
  
          pitch = pitcha/i;
          roll = (rolla/i)-90;
          yaw = yawa/i;
          
          pitcha = 0;
          rolla = 0;
          yawa = 0;
        
          i=0;
          
          M5.Lcd.setCursor(10, 20);
          M5.Lcd.printf(" Bank %3.0f   Pitch %3.0f   ", pitch, roll);
          M5.Lcd.println(bmp.readTemperature());
          
         }
  i++;
  delay(10);
}
</code></pre>
]]></description><link>https://community.m5stack.com/topic/2529/bmp180-grove-how-to-get-it-working-on-core2</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Mar 2026 02:10:09 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2529.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 30 Nov 2020 00:00:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BMP180 Grove how to get it working on core2? on Tue, 01 Dec 2020 06:54:30 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4989">@wadoadi</a></p>
<p dir="auto">I am glad to hear you got it working. And thanks for reporting back.</p>
<p dir="auto">Happy Stacking!<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10956</link><guid isPermaLink="true">https://community.m5stack.com/post/10956</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 01 Dec 2020 06:54:30 GMT</pubDate></item><item><title><![CDATA[Reply to BMP180 Grove how to get it working on core2? on Mon, 30 Nov 2020 22:29:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a> I saw it in this thread commented out for the M5Stack<br />
<a href="https://community.m5stack.com/topic/255/m5cam-and-bmp180/3">https://community.m5stack.com/topic/255/m5cam-and-bmp180/3</a></p>
<p dir="auto">I now have my application working, I had stupidly loaded the BMP180 when in fact, I have BMP280! also it has the alternative slave address...</p>
]]></description><link>https://community.m5stack.com/post/10950</link><guid isPermaLink="true">https://community.m5stack.com/post/10950</guid><dc:creator><![CDATA[wadoadi]]></dc:creator><pubDate>Mon, 30 Nov 2020 22:29:45 GMT</pubDate></item><item><title><![CDATA[Reply to BMP180 Grove how to get it working on core2? on Mon, 30 Nov 2020 15:56:59 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4989">@wadoadi</a></p>
<p dir="auto">just curious, where did you get those pin numbers from?</p>
<blockquote>
<p dir="auto">#define SDA 25<br />
#define SCL 13</p>
</blockquote>
<p dir="auto">The Groove port (red) on M5Core2 uses GPIO32 / 33 for SDA and SCL.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10945</link><guid isPermaLink="true">https://community.m5stack.com/post/10945</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 30 Nov 2020 15:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to BMP180 Grove how to get it working on core2? on Mon, 30 Nov 2020 03:55:55 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
could you please properly comment your code so it will be easier to copy paste it?<br />
you can use ``` twice one on top of the code one on the bottom to comment it such as</p>
<pre><code>print("hello world")
</code></pre>
]]></description><link>https://community.m5stack.com/post/10941</link><guid isPermaLink="true">https://community.m5stack.com/post/10941</guid><dc:creator><![CDATA[Zontex]]></dc:creator><pubDate>Mon, 30 Nov 2020 03:55:55 GMT</pubDate></item></channel></rss>