🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    AIN4-20ma Raspberry Pi Detection

    Units
    5
    17
    6.6k
    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.
    • A
      andrew.winton @robski
      last edited by

      @robski Yes, the single channel unit was behaving the exact same way.

      robskiR 1 Reply Last reply Reply Quote 0
      • robskiR
        robski @andrew.winton
        last edited by

        @andrew-winton do you have any other M5Stack unit on i2c to be checked possibly, not AIN unit I mean.

        M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab

        A 1 Reply Last reply Reply Quote 0
        • A
          andrew.winton @robski
          last edited by

          @robski I do not. I was considering getting a core and base to make sure it worked with those first to rule out the device.

          felmueF 1 Reply Last reply Reply Quote 0
          • felmueF
            felmue @andrew.winton
            last edited by

            Hello @andrew-winton

            I don't have a RP4 nor do I have the AIN4-20mA module so my tests might be irrelevant for your setup.

            Using an RP3 and about every M5Stack I2C unit I have (RFID, Relay4, PaHub, PbHub, EXTIO, etc.), all of them get detected just fine using i2cdetect -y 1.

            That said:

            • have you verified that there are proper pull-up resistors on SCL and SDA? (RP should have them by default.)
            • have you tried with different wires?
            • have you tried w/o supplying 12 v? I think it's redundant looking at the schematic. (External 12 V power also produces BUS_5V which might clash with the 5 V from RP.)
            • have you tried to reduce the I2C speed? (default seems to be 100k)

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

            robskiR A 2 Replies Last reply Reply Quote 0
            • robskiR
              robski @felmue
              last edited by

              I'm bk home tday for weekend and I have AIN single chnl unit so I'll try to check it out.

              M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab

              1 Reply Last reply Reply Quote 0
              • A
                andrew.winton @felmue
                last edited by

                @felmue RP has the pull-ups by default. Although these are brand new wires, I've tried different ones. I've also tried it with and without the power to the stack. I've also tried speeds of 50k, 100k, and 400k, which have all worked for other i2c devices on the Pi.

                robskiR 1 Reply Last reply Reply Quote 0
                • robskiR
                  robski @andrew.winton
                  last edited by robski

                  @andrew-winton I've checked my AIN module with RPi4 and i can confirm that it is not detecting it, plugged in ENV module, ACCEL module, ultrasound module and i2c scan detects it straight in, when AIN is plugged in scan goes fast to place where it should be detected ( 0x55 i think) and then without its ID detection scan continues but slowly like 1s for every next ID field till the scan end

                  M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab

                  robskiR A 2 Replies Last reply Reply Quote 0
                  • robskiR
                    robski @robski
                    last edited by

                    @andrew-winton tday I had a chance to test AIN with raspberry pico 2 W and it is detetcting ok

                    RaspberryPico2W with AIN

                    M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab

                    1 Reply Last reply Reply Quote 0
                    • A
                      andrew.winton @robski
                      last edited by

                      @robski Yeah I had seen that behavior with it jumping to the right address and then crawling after not finding it.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        Steve.Mack @andrew.winton
                        last edited by

                        @andrew-winton
                        Hi, did you ever solve this problem?
                        Thanks

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post