REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Contributed Driver: PCA9685 16-channel Pulse-Width Modulation/Servo Control Chip

    General
    pca9685 i2c pwm driver
    2
    4
    720
    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.
    • E
      enovikoff
      last edited by jaroslav_sobota

      I'm using PWM signals to control LED lighting brightness in my automated greenhouse. As the number of lights went up, I needed more and more channels of PWM signals. The solution is one of the inexpensive breakout boards with the PCA9685 chip on them, connected to the Raspberry Pi with I2C. Here I've included a REXLANG driver for this chip that can be used to control servo motors, LED light strings, and more.!

      This is the PCA9685 card I used: https://www.waveshare.com/servo-driver-hat.htmQuantAsylum Scope 1.802 2020-04-23 17.40.21.png myproject_exec.mdl - REXYGEN Studio - [io_task _] .png Block properties 2020-04-23 17.44.16.png

      Source files for download: PCA9865 Example.zip

      1 Reply Last reply Reply Quote 0
      • jaroslav_sobotaJ
        jaroslav_sobota
        last edited by

        Awesome, thanks!

        Do you think e.g. a GitHub repo for contributed content would be beneficial? Let me know your thoughts on this.

        Jaroslav

        E 1 Reply Last reply Reply Quote 0
        • E
          enovikoff @jaroslav_sobota
          last edited by

          @jaroslav_sobota It does seem to be the way most companies are sharing software these days. It also offers the benefit of being very searchable, so it can attract interest to Rexygen by those wishing to interface to a particular device. For example, I found the actual devices I'm using by searching for drivers on Github for the chips that are inside them. Github with a little management would also allow Rexygen users to provide updates or enhancements to the software contributed by others. The downside is that it isn't as readily accessible for examples as the library you include with the product but there is probably some way to integrate those options...

          jaroslav_sobotaJ 1 Reply Last reply Reply Quote 0
          • jaroslav_sobotaJ
            jaroslav_sobota @enovikoff
            last edited by

            @enovikoff Thank you, I'll see what can be done in this direction.

            Jaroslav

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

            This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

            There is also an outdated REXYGEN community forum.

            Powered by NodeBB.