parport pwmgen pulse too weak
- iforce2d
- Offline
- Senior Member
Less
More
- Posts: 43
- Thank you received: 15
26 Aug 2021 05:26 #218760
by iforce2d
parport pwmgen pulse too weak was created by iforce2d
I'm trying to use the onboard parallel port of my computer to command spindle speed with PWM pulse. In halscope things look ok, I think:
But this is the signal on an actual oscilloscope (directly connected to parport plug pins on rear of computer):
The timing is right, and it matches what I'm doing in the GUI when I change the spindle speed, eg. at a lower speed duty cycle we get:
But obviously this ain't gonna work with the VFD. It's almost like there's a large capacitor in the circuit... has anybody come across this problem?
HAL file: www.iforce2d.net/tmp/my-mill2.hal.txt
But this is the signal on an actual oscilloscope (directly connected to parport plug pins on rear of computer):
The timing is right, and it matches what I'm doing in the GUI when I change the spindle speed, eg. at a lower speed duty cycle we get:
But obviously this ain't gonna work with the VFD. It's almost like there's a large capacitor in the circuit... has anybody come across this problem?
HAL file: www.iforce2d.net/tmp/my-mill2.hal.txt
Please Log in or Create an account to join the conversation.
- iforce2d
- Offline
- Senior Member
Less
More
- Posts: 43
- Thank you received: 15
26 Aug 2021 05:28 #218761
by iforce2d
Replied by iforce2d on topic parport pwmgen pulse too weak
btw what's up with the embedded images here, am I doing something wrong? They never show up correctly.
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
Less
More
- Posts: 19482
- Thank you received: 6533
26 Aug 2021 10:53 #218782
by tommylight
Replied by tommylight on topic parport pwmgen pulse too weak
Use pins 18-25 as ground, shield might not be connected to anything.
Try a different pin, 2-9 are best for pwm.
Try a different pin, 2-9 are best for pwm.
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
Less
More
- Posts: 19482
- Thank you received: 6533
26 Aug 2021 10:55 #218783
by tommylight
Replied by tommylight on topic parport pwmgen pulse too weak
The editor is going through a midlife crisis!btw what's up with the embedded images here, am I doing something wrong? They never show up correctly.
Please Log in or Create an account to join the conversation.
- iforce2d
- Offline
- Senior Member
Less
More
- Posts: 43
- Thank you received: 15
26 Aug 2021 17:41 #218819
by iforce2d
Replied by iforce2d on topic parport pwmgen pulse too weak
Thanks Tommy, it works nicely on pin 1,2,3,4.... and now also works on the original pin (16) that wasn't working earlier for many hours. Such fun.
My next problem is that I realize the cable I just bought is a null-modem one, useless for this purpose as far as I can tell. Such fun. No, I was not using the cable earlier, that must have been a bad connection.
My next problem is that I realize the cable I just bought is a null-modem one, useless for this purpose as far as I can tell. Such fun. No, I was not using the cable earlier, that must have been a bad connection.
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
Less
More
- Posts: 19482
- Thank you received: 6533
26 Aug 2021 21:29 #218826
by tommylight
Replied by tommylight on topic parport pwmgen pulse too weak
Null modem cable is for serial and uses 3 to 6 wires, some crossed over, so that is not usable at all.
Parallel port cable has 26 wires, straight wiring.
Parallel port cable has 26 wires, straight wiring.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
01 Sep 2021 22:13 #219368
by andypugh
Replied by andypugh on topic parport pwmgen pulse too weak
Is it possible that your oscilloscope was AC coupled in the first measurements?
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17973
- Thank you received: 4831
01 Sep 2021 22:29 #219370
by PCW
Replied by PCW on topic parport pwmgen pulse too weak
The AC coupling may have been wire to wire capacitance from the
PWM driven wire in the null modem cable to an undriven wire.
PWM driven wire in the null modem cable to an undriven wire.
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds