etch servo configuration

More
23 Nov 2024 21:33 #315137 by pdmore
Hello, my name is Daniel and I am from Argentina, can someone help me modify the configuration for etch servo via parallel port? I want to do some tests of its operation. Currently I have the HAL configuration in 1.1 mode but my h-bridge works pwm up, pwm down, I think I have to change to 2.2 mode but I don't know what else I have to modify.
Configuration attached.
Excuse my English, I use a translator.
Thank you
Greetings
Attachments:

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

More
23 Nov 2024 22:58 - 23 Nov 2024 23:00 #315145 by PCW
Replied by PCW on topic etch servo configuration
In addition to setting the PWM mode to up/down, you would need to change some names:

ORIGINAL

net Xpwm pwmgen.0.pwm
net Ypwm pwmgen.1.pwm

net Xdir <= pwmgen.0.dir
net Ydir <= pwmgen.1.dir

net Xdir => parport.0.pin-02-out
net Xdir => parport.0.pin-04-out
setp parport.0.pin-04-out-invert TRUE
net Xpwm => parport.0.pin-03-out

net Ydir => parport.0.pin-05-out
net Ydir => parport.0.pin-07-out
setp parport.0.pin-07-out-invert TRUE
net Ypwm => parport.0.pin-06-out

To something like:

net Xup pwmgen.0.up
net Yup pwmgen.1.up

net Xdown <= pwmgen.0.down
net Ydown <= pwmgen.1.down

net Xdown => parport.0.pin-02-out
net Xup => parport.0.pin-03-out

net Ydown => parport.0.pin-05-out
net Yup => parport.0.pin-06-out

Note that you may need to change the sign of the PWM scale or swap the up,down
parallel port pins to get the correct feedback direction.
Last edit: 23 Nov 2024 23:00 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.068 seconds
Powered by Kunena Forum