<?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[GPy with BNO055 - I2C bus error]]></title><description><![CDATA[<p dir="auto">I'm trying to interface the bno055 breakout board (by adafruit) with my GPy module. I'm using following micro python library for bno055 <a href="https://bitbucket.org/thesheep/micropython-bno055/src" target="_blank" rel="noopener noreferrer nofollow">https://bitbucket.org/thesheep/micropython-bno055/src</a></p>
<p dir="auto">Upon running the code shown below, following error is got 'OSError: I2C bus error' with a mention of some line numbers in <a href="http://bno055.py" target="_blank" rel="noopener noreferrer nofollow">bno055.py</a> and <a href="http://functools.py" target="_blank" rel="noopener noreferrer nofollow">functools.py</a>. However, i2c scan returns the correct device address as 40 (0x28). How can I proceed?</p>
<pre><code>from machine import Pin, I2C
import time
import bno055

i2c = 
I2C(0, I2C.MASTER, baudrate=1000, pins=(Pin.exp_board.G15, Pin.exp_board.G16))  
print(i2c.scan()) #Prints &quot;[40]&quot;

s = bno055.BNO055(i2c)
print(s.temperature())
print(s.euler())
i2c.deinit()
</code></pre>
]]></description><link>https://forum.pycom.io/topic/3022/gpy-with-bno055-i2c-bus-error</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 22:14:39 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/3022.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Apr 2018 17:01:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GPy with BNO055 - I2C bus error on Wed, 11 Apr 2018 17:01:28 GMT]]></title><description><![CDATA[<p dir="auto">I'm trying to interface the bno055 breakout board (by adafruit) with my GPy module. I'm using following micro python library for bno055 <a href="https://bitbucket.org/thesheep/micropython-bno055/src" target="_blank" rel="noopener noreferrer nofollow">https://bitbucket.org/thesheep/micropython-bno055/src</a></p>
<p dir="auto">Upon running the code shown below, following error is got 'OSError: I2C bus error' with a mention of some line numbers in <a href="http://bno055.py" target="_blank" rel="noopener noreferrer nofollow">bno055.py</a> and <a href="http://functools.py" target="_blank" rel="noopener noreferrer nofollow">functools.py</a>. However, i2c scan returns the correct device address as 40 (0x28). How can I proceed?</p>
<pre><code>from machine import Pin, I2C
import time
import bno055

i2c = 
I2C(0, I2C.MASTER, baudrate=1000, pins=(Pin.exp_board.G15, Pin.exp_board.G16))  
print(i2c.scan()) #Prints &quot;[40]&quot;

s = bno055.BNO055(i2c)
print(s.temperature())
print(s.euler())
i2c.deinit()
</code></pre>
]]></description><link>https://forum.pycom.io/post/18340</link><guid isPermaLink="true">https://forum.pycom.io/post/18340</guid><dc:creator><![CDATA[sprasad]]></dc:creator><pubDate>Wed, 11 Apr 2018 17:01:28 GMT</pubDate></item><item><title><![CDATA[Reply to GPy with BNO055 - I2C bus error on Wed, 11 Apr 2018 17:32:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2511">@sprasad</a> said in <a href="/post/18340">GPy with BNO055 - I2C bus error</a>:</p>
<blockquote>
<p dir="auto">'OSError: I2C bus error' with a mention of some line numbers in <a href="http://bno055.py" target="_blank" rel="noopener noreferrer nofollow">bno055.py</a></p>
</blockquote>
<p dir="auto">which line?</p>
<p dir="auto">and do you use SD card? I ask because you set in i2c <code>init</code> non standard pins - one is from SD card <code>data0</code>.<br />
Also do you use some externall pullups on i2c line?</p>
]]></description><link>https://forum.pycom.io/post/18343</link><guid isPermaLink="true">https://forum.pycom.io/post/18343</guid><dc:creator><![CDATA[livius]]></dc:creator><pubDate>Wed, 11 Apr 2018 17:32:16 GMT</pubDate></item><item><title><![CDATA[Reply to GPy with BNO055 - I2C bus error on Wed, 11 Apr 2018 21:06:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/199">@livius</a> here is the complete error</p>
<pre><code>Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 10, in &lt;module&gt;
  File &quot;bno055.py&quot;, line 46, in __init__
  File &quot;bno055.py&quot;, line 91, in init
  File &quot;bno055.py&quot;, line 108, in reset
  File &quot;bno055.py&quot;, line 107, in reset
  File &quot;bno055.py&quot;, line 104, in reset
  File &quot;functools.py&quot;, line 5, in _partial
  File &quot;bno055.py&quot;, line 63, in _register
  File &quot;bno055.py&quot;, line 51, in _registers
OSError: I2C bus error
</code></pre>
<p dir="auto">I'm not using SD Card. I'm just using some random pins, no relation as such with anything else.<br />
I'm not using any external pullups as well.</p>
]]></description><link>https://forum.pycom.io/post/18355</link><guid isPermaLink="true">https://forum.pycom.io/post/18355</guid><dc:creator><![CDATA[sprasad]]></dc:creator><pubDate>Wed, 11 Apr 2018 21:06:57 GMT</pubDate></item><item><title><![CDATA[Reply to GPy with BNO055 - I2C bus error on Thu, 12 Apr 2018 08:09:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2511">@sprasad</a> said in <a href="/post/18340">GPy with BNO055 - I2C bus error</a>:</p>
<blockquote>
<p dir="auto">bno055</p>
</blockquote>
<p dir="auto">do you have external pull up resistors?</p>
<p dir="auto">Edit: your last post says you dont, try adding some</p>
]]></description><link>https://forum.pycom.io/post/18387</link><guid isPermaLink="true">https://forum.pycom.io/post/18387</guid><dc:creator><![CDATA[seb]]></dc:creator><pubDate>Thu, 12 Apr 2018 08:09:32 GMT</pubDate></item><item><title><![CDATA[Reply to GPy with BNO055 - I2C bus error on Thu, 12 Apr 2018 08:23:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2511">@sprasad</a><br />
try on default baudrate<br />
<code>baudrate=100000</code></p>
]]></description><link>https://forum.pycom.io/post/18391</link><guid isPermaLink="true">https://forum.pycom.io/post/18391</guid><dc:creator><![CDATA[livius]]></dc:creator><pubDate>Thu, 12 Apr 2018 08:23:36 GMT</pubDate></item><item><title><![CDATA[Reply to GPy with BNO055 - I2C bus error on Wed, 18 Apr 2018 14:47:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/199">@livius</a> I2C device isn't detected at this baud rate. i2c.scan() returns an empty list.</p>
]]></description><link>https://forum.pycom.io/post/18741</link><guid isPermaLink="true">https://forum.pycom.io/post/18741</guid><dc:creator><![CDATA[sprasad]]></dc:creator><pubDate>Wed, 18 Apr 2018 14:47:05 GMT</pubDate></item><item><title><![CDATA[Reply to GPy with BNO055 - I2C bus error on Wed, 18 Apr 2018 15:03:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1881">@seb</a> Adafruit documentation says pullups are already present on SDA and SCL pins.<br />
<code>SCL - I2C clock pin, connect to your microcontrollers I2C clock line. This pin can be used with 3V or 5V logic, and there's a 10K pullup on this pin.</code><br />
<code>SDA - I2C data pin, connect to your microcontrollers I2C data line. This pin can be used with 3V or 5V logic, and there's a 10K pullup on this pin.</code></p>
]]></description><link>https://forum.pycom.io/post/18743</link><guid isPermaLink="true">https://forum.pycom.io/post/18743</guid><dc:creator><![CDATA[sprasad]]></dc:creator><pubDate>Wed, 18 Apr 2018 15:03:14 GMT</pubDate></item><item><title><![CDATA[Reply to GPy with BNO055 - I2C bus error on Wed, 18 Apr 2018 17:31:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2511">@sprasad</a><br />
can you show some picture of your setup? It is soldered or simple wires?<br />
Did you checked some basic steps like properly connected wires especially GND from sensor to GND to the board?</p>
]]></description><link>https://forum.pycom.io/post/18756</link><guid isPermaLink="true">https://forum.pycom.io/post/18756</guid><dc:creator><![CDATA[livius]]></dc:creator><pubDate>Wed, 18 Apr 2018 17:31:05 GMT</pubDate></item><item><title><![CDATA[Reply to GPy with BNO055 - I2C bus error on Thu, 19 Apr 2018 18:40:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2511">@sprasad</a> said in <a href="/post/18340">GPy with BNO055 - I2C bus error</a>:</p>
<blockquote>
<p dir="auto">I2C(0, I2C.MASTER, baudrate=1000, pins=(Pin.exp_board.G15, Pin.exp_board.G16))  &gt; ```</p>
</blockquote>
<p dir="auto">Expansion board G15 and G16 are P8 and P9.<br />
P8 is the SD_Data, but You don't use the SD card, the P9 on expansion board is the &quot;led&quot; pin.<br />
Try removing the led jumper &quot;enable led signal&quot; on expansion board to disable it.</p>
]]></description><link>https://forum.pycom.io/post/18818</link><guid isPermaLink="true">https://forum.pycom.io/post/18818</guid><dc:creator><![CDATA[MarcoBenini]]></dc:creator><pubDate>Thu, 19 Apr 2018 18:40:01 GMT</pubDate></item></channel></rss>