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

    i2c device Wiring on Expansion Board & WiPy 3.0

    Scheduled Pinned Locked Moved Expansion Board
    wipy3.0expansionboardi2c
    7 Posts 3 Posters 1.2k 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.
    • S Offline
      svonbentzel
      last edited by

      New need help with Pycom Expansion Board and WiPy 3.0

      Hello together, I am new in this topic. ;-)

      i want to connect a i2c device on my PyCom Expansion Board with a WiPy 3.0

      i have search in documentation, but I can't find the correct wiring.
      Can me anyone tell the correct Pinout for SDA/SCL please?

      result of i2c Scan is noting actually

      0_1539605806885_IMG_9801.jpg

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        alidaf @svonbentzel
        last edited by

        @svonbentzel The documentation is hard to find but try here:

        https://docs.pycom.io/firmwareapi/pycom/machine/i2c

        The default pins are P9 for SDA and P10 for SCL. Most pins can be configured though.

        1 Reply Last reply Reply Quote 1
        • S Offline
          svonbentzel
          last edited by

          oh many many thanks ! ;-)
          I try and will report!

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

            i have a new question:

            can I connect several i2c devices to a BUS / pin? So in a row?

            PIN VCC --> Device 1 --> Device 2 --> Device 3
            PIN GND --> Device 1 --> Device 2 --> Device 3
            PIN 9 SDA --> Device 1 --> Device 2 --> Device 3
            PIN 10 SCL --> Device 1 --> Device 2 --> Device 3

            Sorry i got a typo in device 4 instead 3

            1 Reply Last reply Reply Quote 0
            • A Offline
              alidaf
              last edited by

              As long as each device has a unique address. I2C relies on the device address to deliver or retrieve data. Some devices have a jumper that allows multiple addresses but most are fixed. Otherwise you will need separate SDA and SCL lines.

              1 Reply Last reply Reply Quote 0
              • E Offline
                Eric Waai
                last edited by

                @svonbentzel said in i2c device Wiring on Expansion Board & WiPy 3.0:

                PIN 9 SDA --> Device 1 --> Device 2 --> Device 4
                PIN 10 SCL --> Device 1 --> Device 2 --> Device 3

                this makes no sense. but i think you meant
                PIN 10 SCL --> Device 1 --> Device 2 --> Device 4

                note that I2C is not designed for data transfer on long cable lengths
                . it can give you weird transmission problems if the distances between devices add up

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  svonbentzel @Eric Waai
                  last edited by

                  @eric-waai

                  Yes it was a typo

                  I have 3 i2c devices

                  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