SG90 servo and five axis board

More
02 Dec 2020 05:28 #190841 by vigisbig
Is there a way to drive SG90 servo with cheap Chinese cnc board that can output PMW signal. I am talking about:
www.aliexpress.com/i/32657713046.html

SG90 requires PMW pulse variation between 1ms- 2ms to make movement between 0 and 180 degree. It requires 5 volt input for driving. Is there a way to set the PMW singal that comes out of the board and how will this be configured in the G-code.

www.jameco.com/jameco/workshop/howitwork...180%C2%B0%20movement.

I am a complete newbie with no experience in machining, and don't wish to go arduino route. Does anyone have an idea, how it will work.

Please Log in or Create an account to join the conversation.

More
02 Dec 2020 10:40 #190866 by tommylight
RC servo and CNC servo are not the same thing.
RC uses 1-2ms timed PWM
CNC uses 0-100% duty cycle
Still might be possible, but not easy at all. I am sure someone here made an RC motor work as a spindle with LinuxCNC.

Please Log in or Create an account to join the conversation.

More
02 Dec 2020 17:10 - 02 Dec 2020 18:30 #190885 by PCW
Replied by PCW on topic SG90 servo and five axis board
LinuxCNCs PWM component can do this.

For example, setting the PWM frequency to 50 Hz
(standard for RC servos), the PWM offset for 0.075
(1.5 ms duty cycle at 50 Hz), and the PWM scale to
3600 would give 1 to 2 ms pulses with a PWM value
range scaled in degrees (+-90 degrees)

The only disadvantage is limited resolution.
With a fast 25 usec base thread period you would
get a resolution of only 40 position steps
This may be improved if the PWM dither mode
is enabled.
Last edit: 02 Dec 2020 18:30 by PCW.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum