Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 08:27:18 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  General Mach Discussion
| | |-+  PWM VS Pins 2-9
Pages: 1   Go Down
Print
Author Topic: PWM VS Pins 2-9  (Read 358 times)
0 Members and 2 Guests are viewing this topic.
Zero Cool
Active Member

Offline Offline

Posts: 86


View Profile
« on: April 20, 2011, 09:26:07 PM »

Why is it that i can only get Mach to output a PWM signal on pins 2 through 9???

Pins 1, 14,16 &17 are output pins as well but no matter what i do i cannot get a PWM signal on these pins. but pins 2-9 work just fine???

 I see that Mach has a setting to use port2 pins 2-9 as inputs instead of outputs. I was hoping to use that functionality but i can if i cant get a PWM signal to work on pins 1, 14,16 or 17
Logged
ger21
Global Moderator
*
Online Online

Posts: 2,619



View Profile WWW
« Reply #1 on: April 20, 2011, 09:36:58 PM »

I use PWM to control a Super PID speed control and use either pin 14 or 16, but don't know which right now.

What are you trying to do?
Logged

Zero Cool
Active Member

Offline Offline

Posts: 86


View Profile
« Reply #2 on: April 20, 2011, 09:41:25 PM »

I need to output the pwm signal to my custom built motor controller.

I looked at the SuperPID units and the units i saw are not PWM....Pulse Width Modulated. they are a traic based controller. how are you interfacing the PWM signal to the SuperPID??
Logged
ger21
Global Moderator
*
Online Online

Posts: 2,619



View Profile WWW
« Reply #3 on: April 20, 2011, 09:49:51 PM »

I built a simple circuit to convert the PWM to 0-5V. It's on page 22 of the manual, and only cost a few $.
http://www.vhipe.com/product-private/SuperPID-v1_Instructions.pdf
Logged

Zero Cool
Active Member

Offline Offline

Posts: 86


View Profile
« Reply #4 on: April 20, 2011, 09:54:40 PM »

I built a custom motor controller that takes the PWM signal, opto isolates it and feeds it to a IC Mosfet driver and then to a power Mosfet to control the spindle motor directly. works great! But i want to use Pins 1, 14,16 or 17 to output the PWM signal.

 I have a dual Parallel port card in my PC. and i tried both ports and same deal.
Logged
Zero Cool
Active Member

Offline Offline

Posts: 86


View Profile
« Reply #5 on: April 27, 2011, 05:54:09 AM »

I am having other problems now. I moved things around to get a PWM output from pin 6 and its not working. I have figured out that if i press the rest button the PWM will start. but only at the minimum speed. If i press the speed up/down buttons it just shuts off.

 I want to use 400hz as my PWM base frequency. I have a direct drive spindle. I have the pulley ratio set for 5000min and 30000max with a ratio of 1
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!