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

servo 0-5V #305

Closed
alexc57 opened this issue Nov 14, 2022 · 3 comments
Closed

servo 0-5V #305

alexc57 opened this issue Nov 14, 2022 · 3 comments

Comments

@alexc57
Copy link

alexc57 commented Nov 14, 2022

Hi, I am trying to use your firmware. OK for X et Y ( I don't have any Z).
My mother board is a mks base 1.6.
I have try to change value for spindle and attribute special pin for servo or pin for Z endstop as PWM. but I don't be able to found a solution.
I have found on github the pin out : MKS Base v1.6_004 SCH.
for X and Y I m agree but when attributed the pin for the servo (0-5V), nothing works. can you help me please. thks in advanced and best regards

@fra589
Copy link
Owner

fra589 commented Nov 21, 2022

Hi @alexc57,

I introduced since version 1.2g.20220917 the possibility of using an additional PWM output (GCode M67/M68 commands). Feature can be enabled with the #define USE_OUTPUT_PWM directive in config.h.

The activation and the choice of the output pin is done in config.h, the PWM parameters are in cpu_map.h and the code is in analog_control.c.

By adjusting the PWM parameters in cpu_map.h to set (among other things) the frequency compatible with the servo, it should be possible to drive it.
https://www.google.com/search?q=atmega2560+pwm+frequency
https://www.google.com/search?q=atmega2560+pwm+servo

@++;
Gautier.

@alexc57
Copy link
Author

alexc57 commented Nov 25, 2022

thanks for the answer and details, trying many thing but nothing works.

@fra589
Copy link
Owner

fra589 commented Nov 27, 2022

Duplicate entry with #209, continuation in the other issue...

@fra589 fra589 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants