- Posts: 34
- Thank you received: 0
Inverting the PWM
9 years 10 months ago #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.
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 to join the conversation.
9 years 10 months ago #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
of the corresponding GPIO pin, for example:
setp hm2_5i25.0.gpio.000.invert_output true
Please Log in to join the conversation.
Time to create page: 0.186 seconds
