584,808 active members*
4,992 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > CNC Machine Related Electronics > PWM controlled surplus spindle motor
Page 1 of 4 123
Results 1 to 20 of 73
  1. #1
    Join Date
    Jun 2003
    Posts
    1365

    PWM controlled surplus spindle motor

    Hey guys, I have the surplus spindle motor 2.5hp using the 8amp 130v controller found here:
    http://www.surpluscenter.com/item.as...tname=electric

    It uses 3 hookups to hook up to the pots, I have some hi-rez pics here:
    http://jfettig.wc101.com/controll/

    I am hoping to use the PWM output in mach2, i have talked to shadow and pminimo(sp?) a very little bit.

    Im setting up winxp now and will have mach2 up shortly.

    Jon

  2. #2
    Join Date
    May 2004
    Posts
    11
    JFettig described the pot hookup to me. It is a 5K pot and is referenced to 12v and ground. My idea for converting the PWM into a usable signal to replace the pot was to simply use a bipolar transistor, where the PWM on the base would then vary the current passing from the 12V output on the controller to the sense input on the controller. I'm pretty sure I could draw up the circuit but perhaps someone with more experience or a better idea would like to chime in on this, thanks!

  3. #3
    Join Date
    Aug 2004
    Posts
    2849
    Well, don't quite know why you want to use the PWM....if the motor is not designed for PWM you will end up with "cogging"....basically the rotor/armature does not have the inertial required to keep turning when the voltage is removed as in a PWM setup. What I would look for is for some type of ladder or step output....I'm not familiar with Mach2...I suspect that Shadow's idea would work if the controller is looking for a current change....I suspect that you really need a variable voltage supply...just kinda depends on what that pot is attached to.....any clues?

  4. #4
    Join Date
    May 2004
    Posts
    11
    The reason for using the PWM out from Mach2 would be to let Mach2 control the speed of the motor. He has a encoder on the spindle to measure RPM, by allowing Mach2 to also set the spindle speed you can have it cut with a precise chipload, and not worry about setting your ipm. I beleive from what I saw of the motor controller board, is that the pot is hooked into the feedback circuit on a linear op amp circuit, andthe pot will give the sense anywhere from 0 to 12V depending on its relative positon of the knob. We want to mimick the potentiometer with the circuit, using the PWM out so that the computer can control it, rather than human control.

    Also, we could make our own controller using the PWM, I beleive it is at 20khz which is a very common PWM used in dc motor controllers anyways. We figure it should be fairly simple however to interface the PWM signal into the existing robust linear controller, so we do not need to go to the trouble of making an entirely new controller when a good one is on hand.

  5. #5
    Join Date
    Jun 2003
    Posts
    3312
    More questions. Does Mach2 have an input for a spindle encoder? Is this to be an open loop setup or closed?

    Phil
    Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
    Vist my websites - http://pminmo.com & http://millpcbs.com

  6. #6
    Join Date
    Jun 2003
    Posts
    1365
    yes it has an input, and by closed or open loop, not sure, The encoder I have is from cnc4pc.com and I have a disk ontop of the motor on the extra peice of shaft, Ill be running 1:1 from motor to spindle so itll be good, Basicly it sends pulses from the encoder board to an input on the parallel port, kinda like closed loop encoders on a servo system, only 1 line per rev, I maxed out my spindle at 7500rpm motor at 6k.

    I set up mach2 yesterday on my mill and I am extremely pleased, so pleased that I already bought the software

    Jon

  7. #7
    Join Date
    Aug 2004
    Posts
    2849
    Shadow, I'm quite aware of the interest in using the PWM...but from the software perspective it's just a frequency...it won't drive squat without some type of interface...and the controller is looking for a variable DC voltage to control it's gain....it is most likely some type of VCO.....the ladder logic people in this forum would most likely opt for selecting a set of resistors using a few bits of output to give you a step voltage output (so speeds would be in increments based on the number of resistors selected.) I believe there is the reverse of a VCO....now it you could probably drive off the PWM.....the other option of using things like a Variable DC supply (LM317) still requires you to change resistance. I wonder if you can bypass the OpAmp (if it really is a VCO setup) and feed the PWM via a driver to that other circuitry after the OpAmp. It would be nice to actually see a schematic of that circuitry.....other rambling thoughts changing to a unity gain opamp drive the pwm into an opto and feed the opamp.....rambling on.....

  8. #8
    Join Date
    Jun 2003
    Posts
    3312
    ViperTX,
    Just stating PWM is "just a frequency" is a little misleading. You can vary frequency and not vary duty cycle. PWM really is about varying duty cycle not frequency. There are several ways the pot could be used in the controller, but I suspect it simply is setting a dc voltage level for a comparator such as seen in this schematic:
    http://www.solorb.com/elect/solarcirc/pwm1/

    How ever the controller Jon is talking about, I believe controls a higher voltage DC motor and uses the 115VAC line switched and rectified to drive the motor. It's more complicated than a simple DC motor.

    Jon the real need to know is where the pot fits in. I didn't ask but did the controller come with a manual or schematic?

    If it is as I suspect what you will need to do is convert the pwm output to a dc voltage. Do you have a variable power supply?

    Phil
    Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
    Vist my websites - http://pminmo.com & http://millpcbs.com

  9. #9
    Join Date
    Dec 2003
    Posts
    24216
    [QUOTE=shadow We want to mimick the potentiometer with the circuit, using the PWM out so that the computer can control it, rather than human control.
    ..... I beleive it is at 20khz which is a very common PWM used in dc motor controllers anyways. [/QUOTE]
    A filtered bridge across the PWM would give a relative dc voltage output, a passive set up would load the PWM signal so it should not be hard to make a simple op-amp precision rectifier out of a couple of op-amps.
    Has anyone used these motor amplifiers for universal type motors?
    Al
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  10. #10
    Join Date
    Jun 2003
    Posts
    1365
    I do not have a varible power supply,
    Nor do I have a scematic.

    Ill do some voltage measurements at different spindle speeds.

    Jon

  11. #11
    Join Date
    Jun 2003
    Posts
    3312
    Jon,
    When you set a speed, do you find yourself adjusting (tweeking) the speed control while cutting? (i.e. motor slows down under load). The open loop verses closed loop question relates to that. A closed loop system uses feedback to compensate for variances. An open loop system just sets a output and doesn't automatically adjust.

    Phil
    Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
    Vist my websites - http://pminmo.com & http://millpcbs.com

  12. #12
    Join Date
    Jun 2003
    Posts
    1365
    It actually speeds up on its own, its kinda slow on doing so but it willl. It does not have a rpm readout or return, just the 2 wires and somehow knows when its really loaded and speeds up to correct it, its actually quite nice if it would go faster, thats what I am hoping to see out of the computer controlled speed controll, have it correct it faster.
    when I drill at 20ipm it doesnt even have enough time to correct the speed.

    Jon

  13. #13
    Join Date
    Aug 2004
    Posts
    2849
    PWM, AM, FM, PCM, etc. all techniques applied to a local frequency....anyway, do we have a schematic yet?

  14. #14
    Join Date
    Jun 2003
    Posts
    1365
    Is there any word on this? I havent done any research becuase I have been busy, does anyone got any ideas we can go on?

    Thanks,
    Jon

  15. #15
    Join Date
    Jun 2003
    Posts
    3312
    Jon,
    Based on the info we have, I don't know that there is a next step. Without the schematic it's just an educated guess as how to interface.

    Phil
    Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
    Vist my websites - http://pminmo.com & http://millpcbs.com

  16. #16
    Join Date
    Jun 2003
    Posts
    1365
    Phil, thanks for all the help, an educated guess might be something to go from, something I may be willing to try. I am quite interested in making this work but dont have the knowledge of my own to do so.

    Jon

  17. #17
    Join Date
    Jun 2004
    Posts
    487
    Hey Jon,

    Good to see you're doing this since I'll be going down this path shortly.

    I have a similar motor and controller. There's a few things I will keep in mind when I hook up mine to Mach2. The first and most important is that my (and most this type) controller is NOT isolated from AC input. That means that there will be a ~50v differential between the controller's ground and my PC's parallel port ground. I measured this with a VOM between the pot's ground pin and a common ground on my mill frame. I will correct the problem by using an opto-isolator which is basically an LED in front of a photocell - the brighter the LED, the lower (or higher) the photocell impedance. I will connect the LED to the Mach2 side and the photocell to the controller side.

    The other thing is that the PWM signal from Mach2 is seen by the LED as a varying voltage: higher the duty cycle, the higher the resulting voltage. If you really want to trim the PWM AC signal, just add a capacitor to the output. I'll feed the PWM output to the optoisolator which in turn will set the speed on the controller just as I do manually with the potentiometer. My controller uses regenerative feedback to know how much load is being applied to the motor and compensates by increasing its own PWM duty cycle (nothing to do with Mach2's output). I might add a revolution encoder later on.

    Regards,
    JR

  18. #18
    Join Date
    Jun 2003
    Posts
    1365
    JR, good to see we got another who is interested,
    I like the idea about isolating from the parallel port, that could cause problems. Would a regular breakoutboard do the same, one that is isolated like the axxus or cnc4pc breakout board?
    I have the cnc4pc spindle indexer which works great, becuase I plan on going 1:1 with the spindle I put the encoder in the easiest spot: ontop of the motor on the end of the shaft, soon enough I may get a pic or something.

    Jon

  19. #19
    Join Date
    Aug 2004
    Posts
    2849
    Jroque,

    If you can measure 50 volts between the case of your PC and your controller box...you need more then an opto-isolator....you have a lethal set-up...you need an isolation transformer.

    Tell me it ain't true.....

  20. #20
    Join Date
    Jun 2004
    Posts
    487
    Hey Jon,

    I'm not familiar with cnc4pc device but if it says it's isolated and you have a discreet "grounds" on each output , you should be ready to go. You can connect one of the isolated outputs to the controller input, where the pot goes. The three potentiometer pins are typically (1) a constant voltage reference output (2) a voltage input, and (3) ground. The pot then will decides how much (1) voltage or (3) ground the (2) input gets. Connect the "collector" side of the isolated output to pot pin 1, the "emitter" side to pin 2 and a 100 ohm resistor between pin 2 and pin 3. The resistor value is typical and you should check your controller and isolator documentation.

    I assume Mach2 will output a certain frequency on the PWM channel and count the pulses coming back from your motor's encoder. If the pulses (ie RPM) are less than what you set it, Mach2 increases the PWM output duty cycle which speeds up your motor.

    Hey Viper, an isolation transformer would also work and make the whole setup very safe (and costly). But since there's no shared ground across an optoisolator its a good choice to safely to interface to the PC.

    Later,
    JR

Page 1 of 4 123

Similar Threads

  1. CNC Controlled Spindle motor speed control
    By gregmary in forum CNC Machine Related Electronics
    Replies: 13
    Last Post: 02-28-2009, 02:01 AM
  2. Spindle for metal and wood. Motor size question
    By bgolash in forum DIY CNC Router Table Machines
    Replies: 2
    Last Post: 05-20-2005, 05:15 PM
  3. Surplus motor went POOF
    By JFettig in forum CNC Machine Related Electronics
    Replies: 20
    Last Post: 05-14-2005, 06:00 AM
  4. 2.2KW Allen Brad. Spindle motor?
    By GalaticDan in forum Servo Motors / Drives
    Replies: 2
    Last Post: 02-02-2005, 06:46 PM
  5. New spindle motor conversion
    By JFettig in forum Benchtop Machines
    Replies: 22
    Last Post: 12-18-2004, 03:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •