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 08-07-2008, 04:00 PM
LZ1TWB's Avatar  
Join Date: May 2006
Location: Bulgaria
Posts: 158
LZ1TWB is on a distinguished road
Opto-isolated BOB design

Hello all,
Since I could not find a sub-forum about BOBs I posted here in general.

I am designing a opto-isolated BOB for my cnc and have some questions about the parallel port connections that I have to make.
I wonder which of the two circuits I have to use to power the optocouplers - the source or the sink one? My parallel port gives 5V at the pins when unloaded but drops to about 3.2V when loaded with about 5mA /I am using UHU servo drive with its optocouplers wired from parallel port pins to ground/.
I suspect I can wire my BOB so the optos are powered from the computer's 5V line and the data pins bring them low. I have read that the sink circuit could give much higher current - in the order of 15-20mA.

The other problem is I have another computer that is generating only 3.3V at its port. Can I wire an opto here to the +5V line or it is not going to be good?
I know some computers produce less voltage at the lpt port pins but wondered why this should be. Or I have to wire it to the 3.3V line then?
The same load which brought the firts lpt port from 5V to 3.2V here made less difference - it dropped from 3.3 to about 3.05V.

I am going to use CNY17-4 devices.

Thanks in advance for any clarification on the subject.

Todor
Reply With Quote

  #2   Ban this user!
Old 08-08-2008, 04:02 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,205
epineh is on a distinguished road
Buy me a Beer?

I always make my BOB switch active low, as you say the parallel port can sink much more than it can source, I am using Elm Chan drives (which the UHU was originally based on) and it works fine.

I haven't tried in the source configuration as it doesn't sound like it would work with opto's unless some buffering is done, just my 2c

Cheers.

Russell.
Reply With Quote

  #3   Ban this user!
Old 08-08-2008, 07:22 AM
 
Join Date: Jul 2008
Location: UK
Age: 54
Posts: 411
irving2008 is on a distinguished road

You should always use active low on parallel ports with LED returned to +5v rail as this is least susceptible to noise when several lines change at once.

Also, from a logic perspective, active low turns on the LED which then turns on the output transistor in the opto, giving an isolated active low output and preserving the logic polarity, which helps protect against 'stupidity' later (personal experience!)

Finally, active low has a better capacitive current drive and sharper fall times which is better for clock edges, which is why most clock signals act on the negative edge.

In answer to your question re voltages... it depends on the logic chip driving the port. An older TTL device would give 3.3v, a discrete CMOS device off 5v rail would give 4.5v but all in one support chip designs might give only 3.1-3.2v loaded (mosfet off 3.3v rail). Since they are really only intended to drive another TTL/CMOS device anything over 2v or so is a logic 1 and under .8v is a logic 0. ideally therefore you should buffer the signals before using them but the active low approach removes that additional cost.
Reply With Quote

  #4   Ban this user!
Old 08-08-2008, 04:45 PM
LZ1TWB's Avatar  
Join Date: May 2006
Location: Bulgaria
Posts: 158
LZ1TWB is on a distinguished road

So I guess the better way to do this is to put a couple of 74LS244N's in the beginning and drive the optocouplers after that

Todor

Last edited by Al_The_Man; 08-16-2008 at 11:18 PM. Reason: sorry about the edit I accidentally used it instead of quote
Reply With Quote

  #5  
Old 08-08-2008, 05:44 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

When interfacing to the 'Outside World' I usually use a ULN2803 or for just a couple of outputs, a 2N7000 on each works.
This way you only need the common reference, the final driving supply can be up to 50~60vdc.
My thoughts are, to never use logic voltage out on the machine, I much prefer the industry standard of 24vdc.
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

Sponsored Links
  #6   Ban this user!
Old 08-08-2008, 05:52 PM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,205
epineh is on a distinguished road
Buy me a Beer?

Originally Posted by Al_The_Man View Post
My thoughts are, to never use logic voltage out on the machine, I much prefer the industry standard of 24vdc.
Al.
I will second that, I setup my machine with 5V limits/homing etc being lazy and got a lot of random trips, changed it all to 24V and the random trips completely dissapeared (except when I crashed it and one time when I leant on the limit switch )

Russell.
Reply With Quote

  #7   Ban this user!
Old 08-08-2008, 06:41 PM
LZ1TWB's Avatar  
Join Date: May 2006
Location: Bulgaria
Posts: 158
LZ1TWB is on a distinguished road

I am going to use 24V for the limit switches as was decided long time ago. I'll also have a proximity switch on each axis that I am going to combine with the index pulse from the encoders to give real accurate homing. It will also be powered off the 24V line.

I am talking about getting +5V out of the computer just for the buffer logic I plan to use. It will not be used anywhere else on the machine, just the BOB.
I've seen many DIY BOB's that use power from the computer through the USB port.

Todor
Reply With Quote

  #8  
Old 08-08-2008, 07:34 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

If using the PC supply, I generally use a spare 4 pin HD connector etc.
This way you have the common ref as well as the 5v.
Anywhere else, and the power tracks through the MB back to the supply.
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

  #9   Ban this user!
Old 08-08-2008, 07:44 PM
edo edo is offline
 
Join Date: Oct 2006
Location: Northern VA
Posts: 104
edo is on a distinguished road

Have you considered taking the 5v off of one of your Driver boards?
Reply With Quote

  #10  
Old 08-08-2008, 07:55 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Most parallel ports use 3.3V logic. You cannot Use 5V for the pull-up voltage; when your parallel port output is at a logic '1' (3.3V), there will be 1.7V across the opto LED and limit resistor (5V - 3.3V = 1.7V). Opto LEDs begin to turn on at 1.3V. This means your LED will never be fully off.

Mariss
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-08-2008, 08:52 PM
LZ1TWB's Avatar  
Join Date: May 2006
Location: Bulgaria
Posts: 158
LZ1TWB is on a distinguished road

Originally Posted by edo View Post
Have you considered taking the 5v off of one of your Driver boards?
I don't want to mess the driver power supply with the computer PS, that why I want an optoisolation. And there will be a ground loop since my driver PS's minus lead is grounded anyway.

The BOB will handle signals from 2 parallel ports because I want more I/O. The second port's data pins being selected for inputs gives me a total of 18 inputs. This is for now, later I consider buying some gamepad and use it in MACH3 through the Keygrabber.

Todor
Reply With Quote

  #12   Ban this user!
Old 08-10-2008, 05:11 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,205
epineh is on a distinguished road
Buy me a Beer?

Originally Posted by Mariss Freimanis View Post
Most parallel ports use 3.3V logic. You cannot Use 5V for the pull-up voltage; when your parallel port output is at a logic '1' (3.3V), there will be 1.7V across the opto LED and limit resistor (5V - 3.3V = 1.7V). Opto LEDs begin to turn on at 1.3V. This means your LED will never be fully off.

Mariss
But if the P Port is switching to ground wouldn't the pin just float to 5V with the pullup and then once the pin switches go logic low ?

I thought if the port is switching active low then it only sinks current and does not source any voltage at all...

My BOB has three voltage levels, 5V from PC with the P Port switching low, 30V for estop/limit/estop and 5V for logic supply for the opto's to driver cards. It all seems to work fine, not trying to argue, just trying to better understand

Russell.
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
New Product DigiSpeed-GX Opto-Isolated 0-10V Voltage Interface phomann Product Announcements & Manufacturer News 0 12-12-2006 05:38 AM
New Product, Opto-isolated PWM interface to 0-10v imserv Product Announcements & Manufacturer News 4 10-30-2006 10:51 AM
buffered vs Opto Isolated miljnor General Electronics Discussion 26 02-17-2006 05:14 PM
3 Axis Opto Isolated Interface board now up pminmo Open Source Controller Boards 2 10-06-2005 05:12 PM
Simple unipolar schematic, opto isolated Konstantin General Electronics Discussion 1 03-31-2004 05:02 AM




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