-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support for Hitec HSR-M9382TH? #2
Comments
Update: I realized that I had omitted a resistor, and now in the serial monitor when I try to set the pin the response is Error: Corrupt response from servo. |
I've never tried an HSR-series servo, but I'm not surprised that it doesn't work. (Hitec's marketing for the D-series advertises shiny new "32-bit chip technology", so I think the D-series might use a different processor+firmware than Hitec's other lines? IDK.) |
Thanks for getting back to me so quickly, I really appreciate it. Do you have any advice for developing a library for it, or adding compatibility for it in your library? Like did you use Ghidra when developing your library, or did you have a DPC-11 and captured the communication between the programmer and servo with an oscilloscope/logic analyzer? |
I used a DPC-11 and a logic analyzer. I put some notes in the repo here, which may or may not be helpful for reverse-engineering the HSR-series: |
FYI have tried the programmer sketch with a D645MW servo, but no joy. Comes back with |
That's a bummer. I wonder why the D645MW doesn't work; I would have expected the protocol to be pretty similar. I don't have a D645MW, so I can't debug this myself. If you're interested in debugging this, the next step would be to modify the |
Thanks. I'm not a very good programmer it's been a while so I'll be super verbose: HitecDServo.cpp from Example3_ReadSettings was modded:
Then power cycle the servo, and then run the arduino, result:
Something is off. Got 2K pullup from D2 to 5V. Servo powered from external 5V power source, and grounds are shared between Arduino and servo so that should be fine wiring wise. Have verified with multimeter, it does pull up with reference to arduino gnd. |
What does it print if you run it with this patch? main...debug |
Tim I'll throw up a logic analyzer dump in #3 later today. |
Hello,
I was wondering if this library would recognize a Hitec HSR-M9382TH servo motor if connected (since they both use the DPC-11 programmer figured it might be worth a shot)? So far I've been unable to verify the that the servo is connected in the serial monitor, but will continue troubleshooting in the meantime. I've replicated the breadboard layout in the README (using an Arduino Nano), and I've confirmed that the servo is receiving the correct voltage and is drawing amperage indicative of idling. Any insights or wisdom is greatly appreciated.
Thanks again for your time.
The text was updated successfully, but these errors were encountered: