-
Notifications
You must be signed in to change notification settings - Fork 31
PCA frequency not configurable #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you provide more information about the specific control signal that those servos use. |
the steering servo (Traxxas 2075) works fine with frequency set at 50, but the XL-5 ESC does not, I could make it work with frequency at above 100 but then at max I get an error. You can read some similar cases here: https://forums.traxxas.com/showthread.php?8923102-PWM-in-XL-5 |
The error that we get when we increase the frequency:
|
you likely have a power problem, not an i2c problem. use split supplies, etc. |
@razvanphp Any luck figuring this out? |
not really, we are still trying to figure this out. it seems the adafruit board does not like to get the power from the PWM +5V pin itself? The Traxxas ESC does this to power the second steering servo. From the oscilloscope we could see the I2C bus gets affected by this, any idea how to cleanup that signal? |
ok, we figured it out, the But we still had to increase the frequency for the traxxas digital servos to work, so can we make this a parameter in the constructor please? I can push a PR also... |
@razvanphp If you could make a PR, that'd be great. |
Does it need to be a parameter in the constructor? Would it be OK to have it as a property? kit = ServoKit(channels=8)
kit.frequency = 100 |
You can always do I'm a little worried about adding features because it adds a bit of size and API surface to the library which is meant to be simple. |
I've pushed the PR, this is hardly increasing the complexity, let's be honest, it's just 3 lines of code...
|
Thanks for the PR! I agree it's not too bad. I just want to make sure it's ok. Some folks want complexity in the *Kit libraries when they should be simple and the underlying libraries are the better place for complexity. |
Hello,
We're trying to control Traxxas digital servos and it seems the hardcoded 50 Hz frequency doesn't cut it. Can we maybe parametrise it?
Source: https://github.com/adafruit/Adafruit_CircuitPython_ServoKit/blob/master/adafruit_servokit.py#L92
Thank you!
The text was updated successfully, but these errors were encountered: