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   Ban this user!
Old 11-21-2007, 11:13 PM
 
Join Date: Oct 2006
Location: Australia
Posts: 451
Eclipze is on a distinguished road
Cool CNC PC Interface and Power Supply Design...

Hi All... I'm working on building my own opto-isolated PC interface and power supply design for my CNC.

I want the CNC for machining various aluminum, plastic and PCBs. So I've been looking at a good balance between high speed, torque and accuracy. I will be getting a WigitMaster Midi-CNC for the job. I have HobbyCNC 305oz-in steppers and Gecko G203V controllers, which I plan to run at 50V. I hope this will give me the desired speed and high torque without causing too much stepper cooking.

I'm very big on safety and having defaults to auto off, while having something very robust and reliable. I DO NOT FOLLOW THE KISS PRINCIPLE... and proud of it hahaa... But I don't design things and leave the possibility for failure either.

Schematics are below… I’m interested in any help you can provide to refine these before I design the PCBs. I’ve written some of my design notes on my schematics, but will write a bit more here for my thoughts on why I’ve done it this way.

MAIN POWER SUPPLY – 50V
Using a 18+18V, 300VA toroid to get ~50V. I found using smaller filter caps was a much better solution for higher ripple current capability and were not as hard to get. I’m also going to distribute there positions a bit to improve decoupling to each of the 4 stepper controllers.

EMERGENCY STOP
The Estop switch will break the connection between the transformer and the bridge with a solid state relay. I’d rather it there, because I want the filter caps still connected to the drivers. I know it could power them for another second or so, but cutting the current there could produce some large inductive spikes, which I’d rather avoid. The disable on the controllers will stop them quicker than cutting the power, so this part is the secondary. Being able to control the power may also help avoiding the steppers getting hot while idle, even though the Geckos reduce the current at idle.

POWER – 12V/5V
12V will come from a wall adaptor… I’d be lucky to match the price of building my own anyway, and it give the flexibility to use a larger one if needed. A 5V regulator is powered from this, so supply all the interface logic etc…. The Estop does not effect either of these power sources… I’d rather the logic stay powered all the time to do their job.

BLEED CIRCUIT
I’ve designed my own bleed circuit. I wanted something to both discharge the filter caps quickly and also bleed regenerated power from decelerating the motors (planning to run the motors fast remember). I won’t be a constant drain though, as it only enables if the output is higher than the input but a couple of diode drops. I simulated the circuit and it worked perfectly… though it won’t be until I try it that I’II see if it solves the problem. The circuit is quite fast. It uses the input AC voltage as the reference, whereby it has a peak filter to compare with the output voltage. If the output is too high, the T2 transistor turns on and enable the bleed resistor to soak up some of the energy. I want to use a higher voltage transistor at T2 than shown (just for reliability)… haven’t changed it yet.

MISC POWER
Steppers all have 5A slow blow fuses. Because I’m worried about heat, I’m putting some extra connectors on there in case I want to mount small heatsinks + fans to the steppers. Also plan to have focused LED lighting for user control :-P

OPTO ISOLATORS
I decided to opto-isolate all inputs and output from the PC. They only cost around a buck each, and I’d much rather have my PC protected than skimp on them. Using a USB input to provide +5V power for them. I started with the 4N35’s, but soon realised they are seriously slow! What was worse, they are a real design challenge to run fast and reliable. Once you take into consider the Vce drop, required input/output currents and temperature… quite flaky to use in the design.

The 6N137 / HCPL2601 devices in contrast are absolutely beautiful devices! Much easier to use, very very fast and take half the current to operate reliably (lower temperature). I think they are perfect for the G203V’s stepping at 1/10th resolution at high speed. I still need to re-visit the resistor values I’ve used. They only need a minium of 3mA, but have take into consideration margins etc… Not 100% sure of the connection for pin 7 of them yet.

Before anyone says… I do know the G203V’s have opto-isolated inputs. But I’d still rather have the complete isolation from one section of board to external wires… otherwise the isolation is compromised by induced currents.

LIMIT/HOME SWITCHES
All limit switches are normal closed type, wired in series. Same for the home switches (which also serve as limit switches). I want to run at least 4mA through them for a good signal. I've also designed it so the switches pass 12V through and only trigger when the voltage drops less than ~5V... so they have a lot of noise immunity.

ESTOP / CHARGE PUMP
Charge pump is really the wrong term… it should be watchdog… </end gripe>. I’ve put together a circuit that requires both the charge pump and the emergency stop switch to be engage for all the outputs to function. If either fail, the stepper controllers disables turn on, the outputs turn off and the Estop signal feed back to the PC. I started designing an active bandpass filter for the 12.5KHz charge pump signal… but when it came to getting the tolerances/margins reliable I gave up and just put a small micro there hahaa… so much easier and more accurate. I’ve designed all the circuitry so that it defaults to off. So on power up, silly things don’t happen. I’II probably have the habit of hitting the Estop switch whenever I turn the main power off too.



Otherwise… I still have a spare input and output I’m not sure what to do with yet.

I’d really appreciate any advise on particulars… where I might have problems with this design or things I should re-consider. Or where it can be done better :-)
Attached Files
File Type: pdf CNC_Interface_V1.0.pdf‎ (68.8 KB, 820 views)
File Type: pdf CNC_PowerSupply_V1.0.pdf‎ (39.9 KB, 652 views)
Reply With Quote

  #2   Ban this user!
Old 11-24-2007, 11:54 PM
 
Join Date: Oct 2006
Location: Australia
Posts: 451
Eclipze is on a distinguished road

Is anyone able to provide me some advise please?

I haven't made a breakout board before for a CNC, and a second pair of eyes would be appreciated
Reply With Quote

  #3   Ban this user!
Old 11-27-2007, 10:51 PM
 
Join Date: Nov 2007
Location: bahrain
Posts: 11
yousif_1985 is on a distinguished road
can u help me

hi

im new in cnc , so can u help me sedning me schematics and designs of a 3 axis cnc controller please, or give me a site that can help me, thaks
Reply With Quote

  #4   Ban this user!
Old 11-27-2007, 11:56 PM
 
Join Date: Oct 2006
Location: Australia
Posts: 451
Eclipze is on a distinguished road

Originally Posted by yousif_1985 View Post
hi

im new in cnc , so can u help me sedning me schematics and designs of a 3 axis cnc controller please, or give me a site that can help me, thaks
Understand your new... but your at the best resource for such information. Spend a few hours searching/reading through various threads here. Your question is far to broad to give a useful answer without writing a book.
Reply With Quote

  #5   Ban this user!
Old 11-28-2007, 08:18 AM
 
Join Date: Aug 2006
Location: USA
Posts: 2,624
kreutz is on a distinguished road

Hello;

I will be very busy till December 10th, but I'll check your schematics as soon as possible.

Thanks for sharing.

Kreutz.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 11-28-2007, 06:07 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Originally Posted by Eclipze View Post
Is anyone able to provide me some advise please?

I haven't made a breakout board before for a CNC, and a second pair of eyes would be appreciated
Eclipse,

I would suggest using some pin other that OUT1 for your XDir signal. I have heard that sometimes pin one is set or reset by computer software in ways that could be detrimental to the well being of a cnc project.

I would suggest taking a look at the pin-in and pin-out assignments that are commonly used by other controllers and software (i.e., Mach3, EMC2, Xylotex). For example, if you chose to use EMC2, by using a common pin-out configuration you would be able to start with existing software initialization files rather than having to do everything from scratch.

For example, Xylotex uses: (and emc2, Mach3 and Turbocnc have configurations for this format)
pin 2 -XStep
pin 3 -XDir
pin 4 -YStep
pin 5 -YDir
pin 6 -ZStep
pin 7 -ZDir
pin 8 -AStep
pin 9 -ADir.
Mach3 commonly uses pin 17 as a charge pump signal.
A number of systems use pin 10 as E-stop.
Pins 11, 12, & 13 are often used for limits and/or home switches.

It is possible to configure things in many different ways, but, when it comes to testing it all out, it is easier to limit the number of areas that you have to troubleshoot.

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

  #7   Ban this user!
Old 11-28-2007, 08:20 PM
 
Join Date: Oct 2006
Location: Australia
Posts: 451
Eclipze is on a distinguished road

Fantastic, thanks acondit! I agree, much easier to stick with the normal and avoid making such things additional overhead on setup (less problems). I'II make those changes, appreciated

I have been debating what to do about controlling vacuum and coolant. I previously thought of just having solid state relays to drive them, but I'm leaning towards having manual switches as I see no real reason to automate them. Spindle control is probably a good thing, as it safe guards against forgetting to turn it on and breaking a tool.
Reply With Quote

  #8   Ban this user!
Old 11-28-2007, 09:27 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Originally Posted by Eclipze View Post
Fantastic, thanks acondit! I agree, much easier to stick with the normal and avoid making such things additional overhead on setup (less problems). I'II make those changes, appreciated

I have been debating what to do about controlling vacuum and coolant. I previously thought of just having solid state relays to drive them, but I'm leaning towards having manual switches as I see no real reason to automate them. Spindle control is probably a good thing, as it safe guards against forgetting to turn it on and breaking a tool.
I don't have spindle control on my router or my lathe and have yet to break a bit because I forgot to turn on the spindle, but there have been close calls. I have a couple of relays and I am hoping to get spindle control on the router set up soon. Earlier today I dug out the schematics for the DC controller on my lathe today to see about hooking it up to the controller also.

My dust collector switch is across the room from the router and a pain to turn on and off. I am thinking about one of those remote control switches for it. I haven't been using coolant yet but I believe that coolant being switched on either by itself or with the spindle makes sense too.

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

  #9   Ban this user!
Old 11-28-2007, 09:37 PM
 
Join Date: Oct 2006
Location: Australia
Posts: 451
Eclipze is on a distinguished road

I haven't used Mach3 to drive a CNC before, so not sure when it comes to the particulars. But I was thinking about having the system such that I could program/test without all the noise... hence the idea of manual control seems appealing. I'm actually installing two power sockets in the side of my all in one box (transformer, solid state relays, DC power, interface board, drivers, fans, heatsinks)

For coolant, I was wondering if it is practical to use a 12VDC washer bottle water pump. I know they aren't rated for continuous operation, but I can reduce the power to it to avoid the motor overheating. My main concern is having less like-able fluids running through it than water.
Reply With Quote

  #10   Ban this user!
Old 11-29-2007, 11:22 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,338
neilw20 is on a distinguished road
Cool The eyes have it!

Originally Posted by Eclipze View Post
Is anyone able to provide me some advise please?

I haven't made a breakout board before for a CNC, and a second pair of eyes would be appreciated
I am in Melbourne. Where are you.
X3 user running from Mach3.
Email me if you wish: neilw20@optusnet.com.au
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 12-29-2007, 05:32 AM
 
Join Date: Oct 2006
Location: Australia
Posts: 451
Eclipze is on a distinguished road

Well... the project is going quite well. After revisions to the schematic I finished designing the printed circuit board, got them back from the manufacturer and almost finished building them. Just missing a couple of the connectors.

I put a little micro on the PC interface board to handle reading the charge pump. I always thought it was 12.5kHz from the PC (using Mach3), but later found I was getting 10.2kHz grrr.... Minor code change fixed that! Otherwise, it's all looking quite good.

The box holding everything is getting put together. Held up on finishing the high voltage wiring by a couple of missing switches. Quite a painful exercise to make all the cutouts and holes. Even if I had the CNC running to do that, the case is just a little too big to fit within the gantry.

Getting closer to finishing and giving it a test run!
Attached Thumbnails
Click image for larger version

Name:	pic001.jpg‎
Views:	224
Size:	148.5 KB
ID:	49465   Click image for larger version

Name:	pic002.jpg‎
Views:	282
Size:	178.4 KB
ID:	49466  
Reply With Quote

  #12   Ban this user!
Old 01-01-2008, 04:12 AM
 
Join Date: Oct 2006
Location: Australia
Posts: 451
Eclipze is on a distinguished road

Not sure if anyone is interested... but the attached picture shows the progress. All I can say is I love this time of year where a bit of extra time goes a long way to finishing projects
Attached Thumbnails
Click image for larger version

Name:	cnc003.jpg‎
Views:	268
Size:	229.5 KB
ID:	49649  
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
How'd you supply your power supply? cnczane DIY-CNC Router Table Machines 12 08-28-2011 05:13 AM
Power Supply from a computer power supply jmytyk General Electronics Discussion 21 01-11-2006 02:56 PM
Power supply design Minesgeek General Electronics Discussion 5 12-29-2005 04:31 PM
Power supply design vertcnc General Electronics Discussion 7 11-24-2004 09:25 PM
Power supply design thomasholley General Electronics Discussion 7 04-29-2004 08:18 AM




All times are GMT -5. The time now is 09:05 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