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 03-29-2005, 07:22 PM
 
Join Date: Aug 2004
Location: USA
Posts: 18
snoman70 is on a distinguished road
geckos and parallel port

Ok...I'm editing post, as I got them to turn.

However, they wont reverse.

I thought for a minute, maybe it's because I've got low state enabled when it should be high state, so I swapped. Now it turns the other way, but not the original way. So....

I'm confused...

BTW, this is a compaq computer putting out 3.4 volts at the parallel port. Gecko 201's. I am using turbocnc right now.

-Jacob

Last edited by snoman70; 03-29-2005 at 09:25 PM.
Reply With Quote

  #2   Ban this user!
Old 03-29-2005, 08:29 PM
 
Join Date: Aug 2004
Location: USA
Posts: 18
snoman70 is on a distinguished road

OK, got qbasic working.

Output pins swing from 3.4 volts to zero, so I need to step these up somehow, please help.

-Jacob
Reply With Quote

  #3   Ban this user!
Old 03-29-2005, 11:00 PM
 
Join Date: Jan 2005
Location: Toronto, Canada
Posts: 1,102
H500 is on a distinguished road

There's no way to make the port go higher without a circuit. Take a look at the 74vhct240 chip or similar.
Reply With Quote

  #4  
Old 03-30-2005, 07:13 PM
sol sol is offline
Gold Member
 
Join Date: Sep 2003
Location: USA
Posts: 226
sol is on a distinguished road

I put a SIIG Cyber Parallel Port card in my Compac to push Gecko 320s.
Industrial Hobbies said the card was good for 5 volts and it works here. When I bought it last fall it was going for $5 to $20 on Ebay, $65 at Staples. The one I Ebayed was an older one with drivers on a floppy, but Windows XP found it and played nicely sans need for loading the older driver.
Reply With Quote

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

Snoman,
The 3.4V isn't a problem, wire the gecko to use the sink side of the parallel port. i.e. +5V to gecko +5V, dir and step to the appropriate pins on the parallel port. The real question is can your parallel port when told to go to 0, sink the current supplied by the Gecko opto isolator. If it can't instead of reading .7V or lower, you'll read 1.X volts or higher. You see when the parallel port is putting out 3.4V (fairly typical in the high state) the optoisolator led is not conducting (dark, no light), when the parallel port goes low it's acting as a switch to common and attempting to illuminate the led (no it's not visable).

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 03-31-2005, 08:39 AM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

The 3.4V IS the problem. New PCs use 3.3V logic instead of 5V which prevents the drive from operating properly. You will either have to:

1) Use a buffered breakout board like what Campbell Designs sells.

2) Buffer the outputs yourself. If you do, use the 74ACT series logic ICs. They have a 1.5V input threshold and output a 5V swing at +/-24mA sink and source current. Do not use any other series (74LS, 74HC, etc.) logic ICs.

Mariss
Reply With Quote

  #7   Ban this user!
Old 03-31-2005, 04:04 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Mariss,
I'm confused, your 201 manual indicates it needs to sink 16ma. Standard ttl has a guaranteed min output of 2.4V with a typical of 3.4. From your manual:




????

Phil
Attached Thumbnails
Click image for larger version

Name:	g201.png‎
Views:	63
Size:	12.8 KB
ID:	6759  
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #8  
Old 03-31-2005, 04:42 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Right spec, wrong application. The 2.4V min, 3.4V typ output is the voltage a TTL output will rise to when it is not sinking current (logic "1" state). It can be pulled up to 5VDC without sinking any current at all.

3.3V logic will have a 3.3V output when not sinking current. Any attempt to pull the output above 3.3V will cause current to flow into the output because it is clamped to an internal 3.3V power supply in the PC. This is exactly what happens when a pull-up load tied to 5V is connected.

The LED anodes (COMMON terminal)connect to +5V and the cathodes have 200 Ohm current limit resistors. Allow 1.2V for the LED Vfwd at low currents; that leaves 0.5V (5V -1.2V -3.3V) across the 200 Ohm limit resistor. That makes the LED current 2.5mA (2.5mA = 0.5V / 200 Ohms) when it should be zero.

The opto LED never fully turns off and leaves the input non-functioning or exposed to noise if it does happen to cross the logic threshold for that particular opto-isolator.

The LED current would be zero if the COMMON is driven with 3.3V instead of 5V. However the LED current will be only 7.75mA (7.75mA = (3.3V -1.5V Vfwd -0.25V Vol) / 200 Ohms). This is less than 1/2 the design current. The other problem is 3.3VDC is not available on any common PC connector.

The only practical solution is to level-shift the output from 3.3V to 5V. This will all become moot anyway once parallel ports disappear altogether in a year or so on new PCs.

Mariss
Reply With Quote

  #9   Ban this user!
Old 03-31-2005, 05: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
Smile

I can't disagree with anything you have said. I assumed you would have allowed for that in the design, but then again transconductance spces do vary measurably.

My mistake, sorry. Isn't my first, won't be my last (and I'm just talking about today)

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

  #10  
Old 03-31-2005, 06:21 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Jeez, you should see the mistakes I can rack up in a day. :-)

We spec the interface at 16mA but our in-house must-operate limit is 8mA. This allows for ageing degradation all infrared LEDs have. The controlling spec is the HCPL2531 opto min gain of 0.19 mA/mA. It is a fast and cheap dual opto but its gain is miserable. The collector load is 1.5mA, so 7.9mA of LED current is necessary to just take it into saturation.

Mariss
Reply With Quote

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

Mariss,
Maybe you can answer a question for me. The prop delay on most of the cheap opto spec can vary so much, my concern has always been relationship between step and direction signals. Do the duals hold true to each channel? i.e. you don't wind up with a part that has .5us one channel the next 3us?

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 03-31-2005, 09:27 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

I measure less than 100nS of skew on saturating edge of the dual optos if the collector loads are identical. Keep in mind there is no base to emitter path (resistor) to sweep out the minority charge carriers which makes the storage delay times rather long (2 to 3 uS) for a transistor with an Ft of over 1GHz. The "on" delay is about 300nS though. Things get much better if you operate it in a cascode circuit because that eliminates the Miller effect. The "off" delay can then be under 500nS.

Mariss
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
If you were to just get started. rustranch DIY-CNC Router Table Machines 6 09-24-2003 09:11 AM




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