Inverting the PWM

More
23 Dec 2016 14:36 #84615 by LS
Inverting the PWM was created by LS
I have an trivial issue with my PWM signal. When I close the LinuxCNC application, the 5i25 will return the PWM line to HIGH (pulled-up by the jumper setting). This HIGH is interpreted by my CNC-BOB as 100% spindle, and therefore fires up the spindle.

My initial thought was to invert the signal, so I soldered a 74HC14 for a quick test. Now I'm trying to configure LinuxCNC to invert its PWM output -- Is this possible? I haven't found any examples online. I also tried the invert checkbox in PncConf, but can't see any change in the config file.

I'm open to any other solutions..

Cheers.

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

More
23 Dec 2016 15:32 #84617 by PCW
Replied by PCW on topic Inverting the PWM
Yes, you can invert any output signal by setting the invert_output parameter
of the corresponding GPIO pin, for example:

setp hm2_5i25.0.gpio.000.invert_output true
The following user(s) said Thank You: LS, Ralfh

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

More
25 Dec 2016 01:34 - 29 Dec 2016 11:09 #84674 by LS
Replied by LS on topic Inverting the PWM
This worked. Thank you.
Last edit: 29 Dec 2016 11:09 by LS.

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

Moderators: cmorley
Time to create page: 0.061 seconds
Powered by Kunena Forum