Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    SX1509 on Maestro, does it work?

    Scheduled Pinned Locked Moved Solved
    Third-party add-ons
    2
    3
    245
    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.
    • DIY-O-Sphereundefined
      DIY-O-Sphere
      last edited by

      I have tried to set up SX1509 on a Maestro, but I don’t get it to work.
      Is it even possible?

      I have set the address
      0x71
      And as the SX1509 has 10k pull up resistors I tried to lower the value by switching 10k in parallel.
      They now are at around 5k

      Pin assignment in config.g (RRF3.01b)

      M950 P1 C"sx1509b.0"
      M950 P2 C"sx1509b.1"
      M950 P3 C"sx1509b.2"

      Tested

      332c9ce4-8b57-4f4b-a575-a45536e65c1e-grafik.png

      Seams like working, but there is no reaction

      M122
      I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0

      I am running out of ideas....

      (UTC+1)

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        The firmware build for the Maestro doesn't include the SX1509B driver. You can use M260 to access the SX1509.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        DIY-O-Sphereundefined 1 Reply Last reply Reply Quote 0
        • DIY-O-Sphereundefined
          DIY-O-Sphere @dc42
          last edited by

          I finally have managed to get it run with M260.

          As the parameters for writing to the data registers aren’t obvious I post my code her for one who is also struggling with that.
          As well it was necessary to calculate the decimal values for some register data.

          The code enables PWM for both banks and writes values for the pins 0-3.
          Sx150 9 and LEDs are wired in sink current mode.
          Test pins 0-3 sx1509.g

          (UTC+1)

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA