-
Notifications
You must be signed in to change notification settings - Fork 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
Feature Request: Support for SingleWireSerial #6
Comments
Hey @sebastiannielsen 👋🏼 This looks like a solid suggestion. Is this something you feel comfortable writing code for? |
I tried by replacing the HardwareSerial to SingleWireSerial in the code, and aswell removing the length parameter from the write() calls (as the write() in SingleWireSerial does not require a length parameter) but it didn't work. Tried aswell setting the baudrate to 125kbaud (both in servo by sending 0x06 + 0x03, and in .begin() command) as SWS doesn't support too fast communication, but didn't work either. So needs more delicate tools like serial analytic tools and oscilloscopes to properly write code for, which I don't have. (after changing to SingleWireSerial + removing length parameter, the code do compile, but the serial servo doesn't respond) |
That sounds involved! Can you share more about the setup you're using and what you're building? We don't currently have access to those tools either, but more information can help you and us! |
Im currently building a safe motor controller. I was not able to get SingleWireSerial working so I ended up buying a TTLinker board and then everything works. But would be good if you wouldn't need the TTLinker board. |
Feature Request:
Support for SingleWireSerial:
https://github.com/felias-fogg/SingleWireSerial
In this way, the servo can be directly connected to a Arduino without any components in-between.
Currently, if you try to:
it will complain:
(NOTE: The warning in SingleWireSerial about not being able to use servos, applies to regular PWM servos, since the Timer objects will be occupied by the SingleWireSerial library, and thus analog and PWM output is unavailable, so it should be fine using SingleWireSerial for serial servos)
The text was updated successfully, but these errors were encountered: