• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Unipi I2C Relays Problem

    Scheduled Pinned Locked Moved Unipi 1 - HW Q&A
    5 Posts 2 Posters 2.0k Views
    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.
    • P
      pablofsmelo
      last edited by

      Hello

      I am trying to drive unipi relays through a ladder code developed under the openplc project, but nothing happens.

      I tried to make all the necessary settings to run i2c, but when I run the command "i2cdetect -y 1" I would expect to receive the address of CI MCP23008 (0x20) and other i2c devices. I tried to use all the power combinations for RPI and the expansion board, but nothing works.

      Can someone help me ?

      I'm using unipi1.1 from Raspbian Stretch 9.9

      1 Reply Last reply
      Reply Quote 0
      • T
        tomas_hora administrators
        last edited by

        Make sure the I2C bus is enabled or enable it using raspi-config tool. You should see all the I2C devices as listed in the documentation - eg. 0x18 for the 1Wire interface

        P 1 Reply Last reply
        Reply Quote 0
        • P
          pablofsmelo
          last edited by

          Hi Thomas,

          I believe this is set up correctly. After this configuration, I rebooted the system but nothing happens with i2c.

          1 Reply Last reply
          Reply Quote 0
          • P
            pablofsmelo @tomas_hora
            last edited by

            @tomas_hora
            I performed all the settings as per this link (https://www.raspberrypi-spy.co.uk/2014/11/enabling-the-i2c-interface-on-the-raspberry-pi/) and it didn't work out.

            I'm suspecting that the problem is with unipi1.1 hardware, but I would like more testing alternatives before concluding this.

            Can anybody help me ?

            1 Reply Last reply
            Reply Quote 0
            • T
              tomas_hora administrators
              last edited by

              @pablofsmelo did you figured it out?

              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
              • First post
                Last post