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 02-09-2007, 04:59 AM
 
Join Date: May 2006
Location: Australia
Posts: 1,348
Greolt is on a distinguished road
Darlinton array for interfacing limits?

I am building my electronics enclosure and wiring up homing and limits.

If I drive the switches direct with the logic signal, 5v, that is suseptable to noise and resistance on the contacts etc.

Have a spare 15v winding on the toroid which will rectify out to about 20v

My idea is to feed my switches 20v and use a high voltage darlington array chip (ULN2002A 14 to 25v) to interface to the inputs on a ncPod.

Thought this would be better than a board full of relays.

Now anyone with electronic smarts can tell already that I don't have them.

Is there any issue with the 20v side sharing a common ground with the ncPOd?

How about pullups on the pod side?

What do you think? Any gotchas? Is it just a stupid idea?

Last edited by Greolt; 02-09-2007 at 06:07 AM.
Reply With Quote

  #2   Ban this user!
Old 02-09-2007, 09:12 AM
 
Join Date: Jul 2005
Location: USA
Age: 42
Posts: 442
pastera is on a distinguished road

HCPL2601, 6n137 - Adds isolation for around $1 per channel

Your ncPOD does not seem to have any protection on the inputs (going from the pictures) so you really want to isolate it from the machine. Use your spare winding to supply power to the switch circuit.

Aaron

Aaron
Reply With Quote

  #3   Ban this user!
Old 02-09-2007, 03:44 PM
 
Join Date: May 2006
Location: Australia
Posts: 1,348
Greolt is on a distinguished road

Optocoupler, Of course ..... You can tell I'm a carpenter can't you

Can you get them with multiple couplers in a dip package?

Never mind, here are diagrams of two that I can get easily local

The first one is half the price.

Can I connect both the Base and Collector to the input pin and the emiter to the ground on the pod?

Or do I need to provide a separate feed to the Base?

Maybe connect to base and emiter leaving collector unused?????

Sorry for dumb questions.

.
Attached Thumbnails
Click image for larger version

Name:	ScreenHunter_02 Feb. 10 08.34.jpg‎
Views:	39
Size:	8.2 KB
ID:	31309   Click image for larger version

Name:	ScreenHunter_03 Feb. 10 08.35.jpg‎
Views:	38
Size:	11.2 KB
ID:	31310  

Last edited by Greolt; 02-09-2007 at 08:59 PM.
Reply With Quote

  #4   Ban this user!
Old 02-09-2007, 09:00 PM
 
Join Date: May 2006
Location: Australia
Posts: 1,348
Greolt is on a distinguished road

I have done some reading and it seems I connect the base and collector to the pin and connect the emiter to ground.

Sounds good ????????

Also I will use a 12v regulated souce to power the input via the limits etc.
So that should mean a 620 ohm resistor will give just under 20 ma to the opto coupler diode.

Is that a bit much, or OK ???????

PS, I bought the type in the first pic.

.
Reply With Quote

  #5   Ban this user!
Old 02-10-2007, 10:08 PM
 
Join Date: May 2006
Location: Australia
Posts: 1,348
Greolt is on a distinguished road

Well you learn by doing. At least I do. Never learnt much at school anyway.

Made up my little board with the opto couplers. Hooked it all up and the optos were turned on all the time.

Discovered that if I disconected the Base and left just Collector and Emiter it all worked just as it should.

Wont be long now and this machine will be a goer.
Attached Thumbnails
Click image for larger version

Name:	opto.jpg‎
Views:	59
Size:	108.6 KB
ID:	31398  

Last edited by Greolt; 02-10-2007 at 10:10 PM. Reason: Picture did not load
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-12-2007, 09:54 AM
 
Join Date: Jul 2005
Location: USA
Age: 42
Posts: 442
pastera is on a distinguished road

Sorry for the late reply - busy lately

20mA is a lot for the LED - 10mA should be more than enough.

You should add some pull up resistors at the collector as the phototransistor can only pull the pin low, not drive it high.

Aaron
BTW: great looking board
Reply With Quote

  #7   Ban this user!
Old 02-12-2007, 09:47 PM
 
Join Date: May 2006
Location: Australia
Posts: 1,348
Greolt is on a distinguished road

Hey thanks for that Aaron.

10mA it is. I'll change out the resistors to the appropriate size.

What value resistor should I use on the input pins as pullups?

I had thought 1k which would mean 5mA.

I asked Arturo (his board) and he said he uses 4.7k on his latest board. But I think that is as "pull downs". Does it make any difference?

Thanks, Greg
Reply With Quote

  #8   Ban this user!
Old 02-13-2007, 10:15 AM
 
Join Date: Jul 2005
Location: USA
Age: 42
Posts: 442
pastera is on a distinguished road

Do you know what part number you actually have? I can assume a 4n25

You don't want to go too low with the resistor, as the transistor will not be able to drop the voltage to a "zero" for a TTL input - with a If of 10mA the transistor will come out of saturation at ~3mA but does not hit a Vce of 0.7 until ~9mA

If you go too high, there will not be enough drive to raise the voltage very fast, so you would get slow edges that are sensitive to noise.

Somewhere between 1K and 3.3k should give you a balance between power and noise sensitivity (if connecting to a single input). Going higher might just be asking for trouble in a noisy environment (CNC).

Aaron
Reply With Quote

  #9   Ban this user!
Old 02-13-2007, 01:07 PM
 
Join Date: May 2006
Location: Australia
Posts: 1,348
Greolt is on a distinguished road

Yes 4n25 it is. OK I'll go somewhere in the middle and keep it in mind if I have noise issues.

Thanks Aaron
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
Interfacing a 24 volt signal to parallel port macona General Electronics Discussion 14 01-06-2007 02:55 PM
LED array sequencer MrWild General Electronics Discussion 11 11-21-2006 11:31 AM
Mitutoyo digital indicator interfacing daedalus Mechanical Calculations/Engineering Design 4 11-04-2006 07:33 PM
Makino Interfacing Professorwiz General CNC (Mill and Lathe) Control Software (NC) 3 07-22-2005 10:54 AM
Linear Array hay171717 G-Code Programing 6 05-28-2004 01:18 AM




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