Skip to content

Servo support? #4

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

Open
waseltzer opened this issue Jul 12, 2018 · 2 comments
Open

Servo support? #4

waseltzer opened this issue Jul 12, 2018 · 2 comments

Comments

@waseltzer
Copy link

Is it possible to add support for servos to the SX1509 library?
Seems that the PWM functionality could do this.
Need 50 Hz pulses between 1.0 and 2.0 milliseconds.

As implemented by: https://www.arduino.cc/en/reference/servo

@viorels
Copy link

viorels commented Feb 24, 2020

This is kind of late, but while looking for the answer to the same question I bumped into this page. Looking at the datasheet I see that the internal clock is 2MHz and divider is 3 bits so you can't generate less then a couple of kHz with this device, far from the required 50Hz. As I understand, there is an option to use an external clock (maybe 50Hz from an arduino pin?) and make it work, but I haven't tried it, it's only theoretical and not very elegant either.

@raphael-bmec-co
Copy link

This is even later 😆 but there is the possibility of doing this using the blink functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants