Skip to content
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

Start with predefined servo position - for example stored in eeprom #19

Closed
gryzli133 opened this issue May 18, 2021 · 2 comments
Closed

Comments

@gryzli133
Copy link

first of all thank you for your library, it helped me a lot in my smart home projects ;-) Now I'm doing servo controlled ventilation flaps for my house ventilation system. It would be nice to store last value, and then start with last stored value, to avoid unnecessary movement on system restart (f.e. nights in bedroom you can really hear the movements). Is this possible with your library to avoid any movements before first set of setChannelPWM()? Eventually initialize with predefined position?

@gryzli133
Copy link
Author

Sorry, I think it was just fault in my sketch...

@NachtRaveVL
Copy link
Owner

Oh no worries whatsoever! Thanks for participating in the discussion. =)

I think that it's probably not something that is supported, however, just in that during a power reset the registers on the PCA9685 are cleared. You would at least have to write to the registers, but whatever the PCA9685 does under the hood would be the shortcoming there.

Glad you figured it out tho! ^_^

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

2 participants