Git Product home page Git Product logo

Comments (9)

mrmcwethy avatar mrmcwethy commented on July 17, 2024

The adafruit_pca9685.motor.DCMotor class AND adafruit_pca9685stepper.Steppers() both show 0x60 as the default address. I think they both should be 0x40 since the Adafruit board has a default address of 0x40.

If you agree i can make this change.

from adafruit_circuitpython_bundle.

tannewt avatar tannewt commented on July 17, 2024

Thanks for finding this @notthatbrad and @mrmcwethy! Would either of you be willing to submit a pull request to fix it?

from adafruit_circuitpython_bundle.

notthatbrad avatar notthatbrad commented on July 17, 2024

I'm pretty new to github, so not sure if I would be the best to do that, but I'll be happy to do anything I can. I can say that updating the motor.py file locally to 0x40 on my pc has corrected the error.

@mrmcwethy it failed looking for one on 0x40? Did you have a PCA9685 connected?

from adafruit_circuitpython_bundle.

mrmcwethy avatar mrmcwethy commented on July 17, 2024

@notthatbrad I don't have that board, so I did expect to get that error. It just means i didn't make a big mistake and add syntax errors and i proved that the default address is now 0x40. I am going to release my changes.

from adafruit_circuitpython_bundle.

notthatbrad avatar notthatbrad commented on July 17, 2024

Groovy, that's why I was wondering. I had accidentally hooked mine up backwards earlier, and I got the error as well on code that I knew should be working.

Let me know when the changes are made, and I'll download the new version to test as soon as I can.

from adafruit_circuitpython_bundle.

tannewt avatar tannewt commented on July 17, 2024

Fixed in the driver commit: adafruit/Adafruit_CircuitPython_PCA9685@c227c10

I'll leave this open until we release a new version.

from adafruit_circuitpython_bundle.

tannewt avatar tannewt commented on July 17, 2024

FYI, 0x60 makes sense for motors and stepper motors because its the default address of the motor featherwing. The servowing is 0x40 by default. I'm fixing this up with my rework of the PCA9685 drivers.

from adafruit_circuitpython_bundle.

notthatbrad avatar notthatbrad commented on July 17, 2024

So it is (I just got the motor featherwing, and am testing it now)....but if I recall correctly, when using the PCA9685 breakout, the address is is 0x40, and the learn site has the featherwing documented as 0x40.
https://learn.adafruit.com/adafruit-8-channel-pwm-or-servo-featherwing/pinouts

This could be really confusing for people looking for the driver for the PCA9685 breakout

from adafruit_circuitpython_bundle.

tannewt avatar tannewt commented on July 17, 2024

from adafruit_circuitpython_bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.