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 04-04-2010, 06:23 AM
 
Join Date: Dec 2004
Location: USA
Posts: 84
Dylwad is on a distinguished road
Question about Optical home switches

I gathered up a few Omron EE-SX673's from a friend http://docs-europe.origin.electrocom...6b800b4c3a.pdf And plan on using them as home switches for DeskCNC, which expects N/C mechanical switches.

My question regards the spec sheet, it says when using the switches for logic to put a resistor between + and Out, called Rl, but doesnt specify a value.

Am I to assume they want you to use a value to get 100Ma or less across + and Out to simulate a relay coil? or does 40Ma sound right for Logic?

Do I really need a resistor at all

Thanks for the help,

I used them on a friends machine years ago, but just drove small DPDT signal relays to pull the inputs to ground, worked great, but I know theres a way to do it without the relays.

Dylan
Reply With Quote

  #2   Ban this user!
Old 04-04-2010, 07:50 AM
 
Join Date: Dec 2008
Location: canada
Posts: 226
Pandinus is on a distinguished road

The output is an open collector...

If a relay is attached to the output and +V, the transistor will sink current to 0V which activates the relay...
If you are driving a logic input, you need a resistor to pull the voltage up when the transistor is not biased.

I think what it is saying is if your pull up allows 40mA the output will drop to 0.4V which pretty much satisfies TTL logic levels (3.3V=high 0.35V=low.) And driving it with more than 40 mA will raise the low level output.... so 5V in and a ~125 Ohm resistor for "TTL"

If you do that and add a resistor at the output to the base of another NPN transistor, maybe use a darlington, emitter to 0V and your CNC input to the collector I think it should pull the signal low until the switch is triggered which would drag the "TTL" level to .4V and stop biasing the darlington allowing the signal to float...
Reply With Quote

  #3  
Old 04-04-2010, 08:58 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

Also If inputing to sourcing type input such as an opto or other type of input that has a pull up resistor built in, you do not need to add the resistor.
See the NPN sinking example.
Al.
Attached Files
File Type: pdf sinksource.pdf‎ (257.6 KB, 110 views)
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #4   Ban this user!
Old 04-04-2010, 11:31 PM
 
Join Date: Dec 2004
Location: USA
Posts: 84
Dylwad is on a distinguished road

Thanks guys,

As far as I can tell, the Deskcnc controller board has no opto isolation or pull up resistors, the wire traces go directly from the I/O header pins to the MCU. http://www.cncitalia.net/shop/images...Controller.jpg I wont know for sure untill I get my hands on it though.

It would be nice if DeskCNC would provide more info about things like this, It is good to see they just updated the software a week or so ago and added alot of new features, now they just need to update the documentation!

Ill try the 125 ohm resistor to start.

Would something like this http://futurlec.com/DC_Opto_Input_4.shtml work for opto-isolation?

Dylan
Reply With Quote

  #5   Ban this user!
Old 04-05-2010, 04:22 AM
 
Join Date: Dec 2008
Location: canada
Posts: 226
Pandinus is on a distinguished road

You could just add an opto-isolator IC like this...
just change he resistor to give what tge opto needs at your Voltage to the opto-sensor...
Attached Thumbnails
Click image for larger version

Name:	opto.jpg‎
Views:	41
Size:	3.0 KB
ID:	104563  
Reply With Quote

Sponsored Links
  #6  
Old 04-05-2010, 09:54 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,539
Al_The_Man is on a distinguished road
Buy me a Beer?

Originally Posted by Dylwad View Post
As far as I can tell, the Deskcnc controller board has no opto isolation or pull up resistors, the wire traces go directly from the I/O header pins to the MCU. Dylan
This is a pet beef of mine, many DIY BOB manuf. do not include how the input is conditioned etc.
This would not be tolerated on most industrial equipment of the same type.
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

  #7   Ban this user!
Old 04-06-2010, 02:12 AM
 
Join Date: Dec 2004
Location: USA
Posts: 84
Dylwad is on a distinguished road

I think I'm going to chicken out and just run the opticals to relays, I have the relays, just need flyback diodes. Much easier to wire than any other means, and I know its safe for the controller and switches.

Thanks for your help.

Dylan
Reply With Quote

  #8   Ban this user!
Old 04-08-2010, 06:26 AM
vger's Avatar  
Join Date: Jan 2006
Location: usa
Posts: 664
vger is on a distinguished road

Hey Dylan,
The opto switches are essentially opto-isolators themselves. Also, it's pretty easy to grab power for the opto switches from inside the computer. You could even use a spare USB port to provide the needed 5V. And if you use the power and ground from the computer without connecting to other equipment, (just like your mouse and keyboard do) there is no need for isolation. I've pulled 5V (and GND) from a computer more than once using an old mouse cord with the mouse cut off.

TTL standards are pretty forgiving. For 74LSXXX (low power schotkey version of TTL) basicly, for inputs, anything over 2 volts is a logic high, anything under 0.8 volts is s low, and for outputs, a logic high will be at least 2.7 volts, and a low will be less than 0.5 volts. As for input current, it will be less than 1 mA. Early TTL circuits interfacing with open collector outputs used a 4.7K pullup resistor to satisfy that less than 1 mA input while keeping power use at a minimum. Seems when you have thousands of individual TTL circuits, all those little 1 mA current drains add up to Amps.

Enjoy
Steve
Reply With Quote

  #9   Ban this user!
Old 04-08-2010, 03:08 PM
 
Join Date: Dec 2004
Location: USA
Posts: 84
Dylwad is on a distinguished road

Thanks Steve,

The Deskcnc controller uses a serial cable to link to the computer, I tried sharing grounds with the controller and switches way back when, and it didnt work too good, once we gave the DeskCNC controller its own power supply all problems went away. Electronics can be touchy sometimes, even when properly shielded.

I have the relay board all wired up and tested, and the rest of the machine parts on the way. Hope to be cutting by the end of the month.

Thanks again,

Dylan
Reply With Quote

  #10   Ban this user!
Old 04-14-2010, 09:19 PM
 
Join Date: Nov 2009
Location: USA
Posts: 113
pfred2 is on a distinguished road

Hey Al does your pet beef have a name?

Here's an undocumented DIY controller for you:

http://www.imagechicken.com/uploads/...2086495500.jpg

Unless I link to this:
http://img11.imageshack.us/img11/1819/ppbb4sch.png

I always thought I had a fair grasp of sourcing and sinking currents until you confused me with that PDF you posted! I'm sure you meant well ...

heh j/k I just had to reply to someone who has a pet beef! MOOO!
Reply With Quote

Sponsored Links
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
Question about limit and home switches alecu7 Mach Software (ArtSoft software) 3 10-19-2009 06:20 AM
IH Optical Limit Switches HimyKabibble Industrial Hobbies (Support forum) 18 12-06-2008 11:09 PM
Build Thread- Optical limiting switches oxford Benchtop Machines 29 07-25-2008 05:37 PM
optical limit switches phantomcow2 DIY-CNC Router Table Machines 4 03-05-2006 06:48 AM
Optical Limit/Home/Reference Switches redbaron DIY-CNC Router Table Machines 5 02-06-2004 07:47 PM




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