-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
RC Servo Basic Sample #444
Comments
i tried. it seems servo working 0-90 degree. is it code or bug? |
oh great that you could test it :-) |
Hi @johndoe8967, great! I have a soft timer version non pushed for several months due to motion "flickering" and not clear/working HW timer. I just started the initial port of ESP arduino Servo lib (https://github.com/esp8266/Arduino/blob/master/libraries/Servo/src/Servo.h) in case that you want to have a look (it allows to manage up to 24 servos, 12 per timer) . I will try and let you know :) Comments:
Do this lib usage conflicts with ESP HW PWM? Thank you for this contribution :) |
@alonewolfx2 @johndoe8967 There is another test to do, that is to hold a position (where Soft timer fails), by sending the same position several times and see that motor doesn't move. |
@robotiko i tried to max 3000 but same result. seems library not working correctly |
About the functionality I agree, my sample is very lean.
Yes this lib uses the HW timer, so it will conflict with the PWM. |
@johndoe8967 And about the second timer.. I guess the only reference we have is the ESP arduino implementation :) |
Tested in a MG90S servo. I will try with the arduino code on same config to see if it is a timing thing. |
Tested in esp arduino. |
Thanks for the tests. Best regards
|
I tried both. |
As this is using HW timer. Can it be the same issue as there is with using that ? #375 This library uses "local implementation" of hwtimer. |
Sorry, I was indeed wrongly referring to HW_PWM (which is already included) instead of HW_Timer. |
@robotiko: Ok today I tested at my lab and found some bugs in my code
I fixed it and measured the puls with my scope So I'm quite confident that the HW timer is working without side effects |
@hreintke: Yes you are right, the HW_timer should be within the sming framework, maybe also the servo function? |
@johndoe8967
|
Are you both on windows/espressif sdk or also on linux/mac using esp-open-sdk ? |
@robotiko what is change ? you said not working correctly and said again its working good. |
@alonewolfx2
|
@johndoe8967 |
@robotiko
=> not tested until now |
@johndoe8967, I won't be able to test until Sunday ( away from computer) .. But I will Thanks @robotiko https://github.com/robotiko
=> not tested until now — |
Great :-) |
Solved by #546 |
I've coded a basic servo sample today and committed it to my sming fork.
https://github.com/johndoe8967/Sming/tree/master/Basic_Servo
At the moment I didn't test with dedicated HW (will be done this week)
Is someone interested in this sample?
I could provide it as a pull request after testing
The text was updated successfully, but these errors were encountered: