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! > OpenSource CNC Design Center > Open Source Controller Boards


Open Source Controller Boards Discussion for Open Source CNC type Controller Boards and other related items. (for personal use only)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-11-2008, 03:39 PM
 
Join Date: Jan 2006
Location: BRAZIL
Posts: 38
Cristal is on a distinguished road
Optical interface for 3,3V and 5V

Hello all,

I want to build an simple interface for my CNC, only step and direction, but must be opto isolated and able to work with 3.3 V and 5V.

For the opto part I'm using the 6N137, but I do not know how to do the interface for the 3,3V (for use with the laptop) and the 5V (for use with the desktop.)

Do you have any suggestions?

thanks in advance for your help
Reply With Quote

  #2   Ban this user!
Old 05-12-2008, 03:33 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

The 6n137 can be driven directly by 3.3V logic with a 220 ohm resistor in series with the emitter diode on a parallel port pins 2 through 9 of the db25, the control output pins are the issue (1,14,16,17) as in many computers the don't have much power to source current. In that instance you probably will have to provide an isolated supply voltage for a resistive pullup to 3.3V or 5V depending on the computer. Now, you say 3.3V, there is a lot of confusion about laptops. Actually many laptops aren't 3.3V logic on their parallel port when they are powered by AC power. And you will find many older destops, that only put out 3.3V in the HI state. The 1284 spec for parallel ports wether laptop or desktop, specifies output highs as 2.4V or higher into certain loads. If the laptop says its 1284, then it will work the same as most desktops. Laptop issues many times are incorrectly diagnosed as being a port problem, when in fact it's automatic CPU power saving changing timing.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #3   Ban this user!
Old 05-14-2008, 02:55 PM
 
Join Date: Jan 2006
Location: BRAZIL
Posts: 38
Cristal is on a distinguished road

Thank you Phil,

I'm looking for some kind of CI which may be a driver for such problems and I do not know any CI with this characteristics.

What would be the best way to try solve this problem?
Reply With Quote

  #4   Ban this user!
Old 05-14-2008, 03:08 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

maybe this will help: http://pminmo.com/4axisopto/4axisDIYopto.htm
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #5  
Old 05-14-2008, 04:22 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

My suggestion would be the attached thumbnail. This circuit works with any standard logic level (2.5V, 3.3V and 5V logic) and easily passes 0 to 500 kHz signals. Only 2.2mA of LED drive current is needed.

Mariss
Attached Images
File Type: gif OPTO INTERFACE.GIF‎ (8.0 KB, 175 views)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-19-2008, 03:15 PM
 
Join Date: Jan 2006
Location: BRAZIL
Posts: 38
Cristal is on a distinguished road

Thank you very much Phill,

this is more that I need, but in the schematics there is nothing saying if the circuit can work with laptops and Desktops.
Reply With Quote

  #7   Ban this user!
Old 05-19-2008, 03:22 PM
 
Join Date: Jan 2006
Location: BRAZIL
Posts: 38
Cristal is on a distinguished road

Mariss,

This is exactly what I need, simple circuit, If the circuit works, my problems are solved.

I will test with the 6N137 beacuse here is very dificult to have the HCPL).

Thank you very much for your attention.
Reply With Quote

  #8  
Old 05-19-2008, 03:34 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Cristal

You cannot use the 6N137 in my circuit because it's not a photodiode/transistor device. The 6N137 uses an IC amplifier in its internal circuitry. You can use a 6N136 instead of the HCPL-2531.

Mariss
Reply With Quote

  #9   Ban this user!
Old 05-24-2008, 09:14 AM
 
Join Date: Jan 2006
Location: BRAZIL
Posts: 38
Cristal is on a distinguished road

Ok Mariss, thank you again for your tip.

The 6N136 is easy to find here.
Reply With Quote

  #10   Ban this user!
Old 03-26-2010, 05:40 PM
 
Join Date: Mar 2010
Location: Canada
Posts: 8
cmoher3 is on a distinguished road
Related 3,3V to 5V Optoisolator 6n137

Greetings. In my quest to find a circuit to isolate a PIC 3.3v output to the 5V input of an H-bridge driver (LMD18200) I stumbled upon this post. The circuit in the thumbnail looks close to what I need but I'm a bit confused by it. Can I not just use a couple of resistors and two suplly voltages to do this with a 6N137 ? Thanks.
Reply With Quote

Sponsored Links
  #11  
Old 03-26-2010, 07:45 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

The 6N137 is waaaaay too slooooow.:-)

You are sending fast signals to the motor drive. You cannot afford the 10 to 50 microseconds it takes the 6N137 to figure out what it should do.

Mariss
Reply With Quote

  #12   Ban this user!
Old 03-26-2010, 08:49 PM
 
Join Date: Mar 2010
Location: Canada
Posts: 8
cmoher3 is on a distinguished road
Specs & More Info

Sorry, I forgot to add that I'm running a PWM at a frequency of 40 khz. According to a book I'm using, Building Robot Drive Trains, the 6N137 has a rise time of 50ns and a fall time of 12 nS. I couldn't decipher the Fairchild data sheet
for these specs. My PWM period is 25 uS, so I thought I'd be safe. Can you elaborate on where/how it would be too slow ? Thanks for your time and effort in responding.
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help!- Optical tracer kirkln CNC Plasma and Waterjet Machines 8 04-25-2008 07:31 AM
My New Optical Toy Micro Rotors Benchtop Machines 58 03-01-2008 09:45 AM
Anyone have a Sprint 200 CNC optical? dmcool Calibration & Measurement 0 02-11-2008 11:58 AM
Help with optical scales edbanks General Electronics Discussion 3 04-12-2007 02:25 PM
Optical Limits JOE65 Industrial Hobbies (Support forum) 1 03-21-2006 10:06 PM




All times are GMT -5. The time now is 12:54 AM.





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