CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-19-2005, 07:10 PM
Gold Member
 
Join Date: Jun 2003
Location: United States
Age: 26
Posts: 1,387
JFettig is on a distinguished road
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
Reply With Quote

  #2   Ban this user!
Old 02-19-2005, 07:14 PM
 
Join Date: May 2004
Location: USA
Posts: 8
shadow is on a distinguished road

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!

Last edited by shadow; 02-19-2005 at 07:16 PM. Reason: gate <-> base (doh)
Reply With Quote

  #3   Ban this user!
Old 02-19-2005, 10:15 PM
 
Join Date: Aug 2004
Location: US
Posts: 2,786
ViperTX is on a distinguished road

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?
Reply With Quote

  #4   Ban this user!
Old 02-19-2005, 10:36 PM
 
Join Date: May 2004
Location: USA
Posts: 8
shadow is on a distinguished road

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.
Reply With Quote

  #5   Ban this user!
Old 02-20-2005, 09:48 AM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

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
Reply With Quote

Sponsored Links
  #6  
Old 02-20-2005, 11:14 AM
Gold Member
 
Join Date: Jun 2003
Location: United States
Age: 26
Posts: 1,387
JFettig is on a distinguished road

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
Reply With Quote

  #7   Ban this user!
Old 02-20-2005, 11:20 AM
 
Join Date: Aug 2004
Location: US
Posts: 2,786
ViperTX is on a distinguished road

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.....
Reply With Quote

  #8   Ban this user!
Old 02-20-2005, 01:14 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

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
Reply With Quote

  #9  
Old 02-20-2005, 01:27 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

[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 Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #10  
Old 02-20-2005, 01:39 PM
Gold Member
 
Join Date: Jun 2003
Location: United States
Age: 26
Posts: 1,387
JFettig is on a distinguished road

I do not have a varible power supply,
Nor do I have a scematic.

Ill do some voltage measurements at different spindle speeds.

Jon
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-20-2005, 02:11 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

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
Reply With Quote

  #12  
Old 02-20-2005, 02:34 PM
Gold Member
 
Join Date: Jun 2003
Location: United States
Age: 26
Posts: 1,387
JFettig is on a distinguished road

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
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CNC Controlled Spindle motor speed control gregmary General Electronics Discussion 13 02-27-2009 07:01 PM
Spindle for metal and wood. Motor size question bgolash DIY-CNC Router Table Machines 2 05-20-2005 11:15 AM
Surplus motor went POOF JFettig General Electronics Discussion 20 05-14-2005 12:00 AM
2.2KW Allen Brad. Spindle motor? GalaticDan Servo Motors and Drives 2 02-02-2005 11:46 AM
New spindle motor conversion JFettig Benchtop Machines 22 12-18-2004 08:53 AM




All times are GMT -5. The time now is 04:46 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361