Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    LoPy4 - BMP180 - 'I2C' object has no attribute 'start'

    Scheduled Pinned Locked Moved LoPy
    4 Posts 3 Posters 245 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      Christian_M
      last edited by Christian_M

      Hello,

      I'm new to coding with the pycom modules and tried to set up a BMP180 sensor with the I2C pins.
      For that I used the bmp180.py library from github (https://github.com/micropython-IMU/micropython-bmp180) and a code example that i changed for a simple output of the values.
      I'm using the LoPy4 and an Expansion Board 3.0 with the newest firmware on it.

      When i try to run the code first i get the outpout from the i2c scan and then I get an error:

      I2C setup scan [119] #the output from i2c.scan()

      Traceback (most recent call last):
      File "<stdin>", line 14, in <module>
      File "bmp180.py", line 46, in __ init __
      AttributeError: 'I2C' object has no attribute 'start'

      Here the two files I'm using
      bmp180.py
      BMP180-testfile.py

      I couldn't find any soulution what's wrong so I hope to find some help here.
      Thank you!

      robert-hhR 1 Reply Last reply Reply Quote 0
      • S Offline
        svonbentzel
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @Christian_M
          last edited by

          @Christian_M You may try the driver which I have adapted for Pycom modules: https://github.com/robert-hh/BMP085_BMP180

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            Christian_M @robert-hh
            last edited by

            @robert-hh It's working now with your driver.
            Thank you very much!!!

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom