![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
We all need limits... This is a continuation of a thread that was started here. As I am sure many of you know, limit switches detect the position of moving parts when they are near the extreme ends of their linear positions. This prevents collisions of things like ballnuts at the ends of the ball screws, and are also used as points of reference for when the software resets the table to go to the "home" position. Some systems use mechanical switches but in my case I chose to use optical interupter switches made by Fairchild. The advantages of optointerupters like the H21LOB are that they create TTL logic and are fairly accurate. After some testing I came up with this circuit diagram ( jpg pdf ) for the interupters. In this circuit you'll note that in order to daisy chain the optointerupters together it was useful to solder a resistor directly to the interupter. The H21LOB wiring was bundled up with lots of heat shrink tubing (also shown here). The circuit diagram also shows the pinouts for each of DIN connectors which eventually will plug into the back of the electronics enclosure. Although its very difficult to see in the picture, my cnc table came with a nice mounting bracket (note red arrow) which had some old school interupt switches. I pulled off the bracket, removed the switches, and strung in my interupter circuit into the mount (view here and here). Hot glue was used to make all the wiring that was crammed into the rail stay in place. The pictures look kind of crappy but once the rails were bolted into place everything looked really good. There are two rails, one for each axis, and each rail has three switches: limit+, limit- and home. The table comes equiped with small pieces of sheet metal that project down onto the rails. When the table slides towards the ends of its total possible travel (around 18 inches) the sheet metal tabs travel between the opto-interupters. The state of the opto-interupters changes, the universal stepper controller picks up the change, and my software throws a complaint. owen |
|
#2
| |||
| |||
| These interrupters are very accurate and dependable. But it may be worth mentioning that this is for a laser cutter. I don't think Lasers don't generate swarf or dust, so it will be fine. But for others reading this and thinking of using it for metal or wood cutters, please consider this: A small piece of debris landing in the reading fork, and it will signal "limit! end operation.". |
|
#3
| ||||
| ||||
| owhite - Say Owen, thanks for that great summary! I've salvaged a bunch of similar opto-limit switches from printers and 5.25 floppy drives (thanks to Big AL for his connection notes too), so I may have a purpose for them now! And Einar, sure understand your point regarding swarf and dust. I'll mount "high and dry" overhead - SYSTEM2 sorta sits "above" some of the mess. Thanks guys! - Jim
__________________ Experience is the BEST Teacher. Is that why it usually arrives in a shower of sparks, flash of light, loud bang, a cloud of smoke, AND -- a BILL to pay? You usually get it -- just after you need it. |
|
#5
| |||
| |||
| I'm not sure I understand what the OP means when he says "The advantages of optointerupters like the H21LOB are that they create TTL logic and are fairly accurate. " I'm not familiar with the use of that type of opto interrupter. It looks like the phototransistor side is set up like a darlington pair. Is that for current gain? How do the H21LOBs compare to a 4 wire slotted optical switch, like an H21A1 (commonly found inside old computer mice). I would really like to implement this type of limit switch in my design, but I'm having trouble wrapping my tiny brain around the wiring of the switches. Can anyone help out on this? I only ask about the H21A1's because that is what I have, but I'd really like to understand the differences between the two types, before I make a final decision. What is the benefit of using one type over another? |
| Sponsored Links |
|
#6
| |||
| |||
| Also, my circuit will require the limit switches on all axises to be chained together in series, so that if one switch is closed, the whole machine stops. This is what I had so far. Does this look like it would work? Last edited by AlmostHandy; 04-08-2009 at 08:54 PM. |
|
#7
| ||||
| ||||
| I do not see this working at all, you have the LED's all in series across the 5v supply, with no resistance in series you will most likely blow one. You need three wire between each switch, and you have the NPN transistors which have no final load resistor. See post #7 http://www.cnczone.com/forums/showthread.php?t=77324 Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#8
| |||
| |||
| Thank you Al! That file is just what I was looking for! I understand how to connect them one at a time now, which is a step in the right direction. My problem is that my circuit calls for limit switches to be connected in series, so that if one of them is broken, the whole loop is broken. They are all connected to the same pin on the parallel port (S6), and a 5v source with a 4.7K pull up resistor. Is there a way to connect the opto-interrupters in series, so that they are all connected to the same loop? I can't figure out how to daisy chain them all together in series. |
|
#10
| ||||
| ||||
| This is a series circuit, it has been tested, the resistor values may have to be adjusted if any opto's are added or subtracted. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
| Sponsored Links |
|
#11
| |||
| |||
| I found a box in my junk that has 6 of the same type of opto-switch. They are Sharp, model number GP1S58. I've looked at the datasheet, and it says that the typical rating is 1.2Vf @ 20mAIf on the LED side. Now, my math isn't that great, but I'm pretty sure that since I'm using a +5V supply, I'll only be able to chain together four of these in series, before the forward voltage becomes too low for the LEDs to make any light, closing the circuit. Does that make sense? I'll be trying to put 6 of them in series. What I've done is attempt to separate the power to the LED half of the switches, without breaking the chain in the output side. My attempt seems logical, but again, these little optical switches baffle me for some reason. Do you think this would work? |
|
#12
| ||||
| ||||
| You could probably go with three LED's in each string with a 50 ~ 70ohm resistor. Unless you want to keep them in pairs? Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| limit switch override | swarfmacdaddy | TurboCNC | 5 | 12-12-2004 03:47 AM |
| Optical Switch w/Interrupt mechanism | cnczane | DIY-CNC Router Table Machines | 1 | 11-10-2004 08:51 AM |
| WHATS THIS?? - Optical Switch?? | High Seas | General Electronics Discussion | 5 | 07-13-2004 07:54 PM |
| optical switch | natchez | Xylotex | 3 | 05-01-2004 07:45 AM |
| Optical Limits | IndHobby | Product Announcements & Manufacturer News | 0 | 02-10-2004 12:51 AM |