In the previous post, I showed how I added limit switch inputs to my CNC driver box. Now its time to attach the actual switches to the machine.
The limit switches can be wired in a variety of different ways. Since I only had three available input pins, I combined both switches for each axis (and have them perform double duty as homing switches too.) The combined switches can be wired in series (normally closed) or parallel (normally open). I chose to wire them in series, as normally closed (i.e. circuit is broken when the switch is triggered) has one major advantage over normally open: If the switch is broken or just unplugged, you notice it before any movement starts rather than when the machine crashes against the physical stop!
In the above picture is the finished switches for the Z axis. Right after taking the picture I realized I shouldn't have soldered the plug on until after threading the cable through the cable chain. I had to find smaller microswitches for this axis. The small switches are just the right size to fit between the Z assembly and the gantry column.
In the above picture, X, Y (not visible) and Z switches are superglued in place.
I reran stepconf and selected "Both Limit + Home X", "Y" and "Z" for pins 11, 12 and 13. This enabled the "Home all" button in Axis GUI, which automatically homes the machine using the (in this case) limit switches.
Calle, please can you post a simple electrical layout diagram for the limit switch modification you have made. You say you have fitted 4.5K pull-up resistors but I can not see them in your photos. I have the same board as you and I wish to make the same modification, to avoid damage to the machine.
ReplyDeleteThanks in advance.
Jon
I did not need to add the pull-ups, they were already in place. (At least on my board.) If you look at the closeup photograph of the circuit board on the part 1 post, you should see a black five legged component right next to the unpopulated header on the left side. It contains four 4.5K resistors that pull up the lines.
ReplyDeleteEven without a pull-up, the machine won't break, but since the inputs would be left floating, you'd constantly get spurious limit errors from random electrical interference.
Can you post close up photos of how you have the switches mounted, especially where they are and the Z axis switches?
ReplyDeleteI have a CNC 3040 and a hand full of Omron lever action switches, but I'm kind of at a loss where/how to mount these to allow maximum travel on Z.
Hi Steve.
ReplyDeleteI can't get to the machine right now, so I can't upload a photo, but I'll try to describe how the Z switches are mounted.
I had to use smaller microswitches on the Z axis as there is less room. (Seen in the middle picture). Those switches fit snugly in the little gap between the Z column and the side when the X axis is at the far left position. The switches themselves are superglued to the Z carriage. I used superglue because I didn't want to take the machine apart to drill & tap proper mounting holes. The switches have come loose once or twice, so I do recommend doing it properly if you need the reliability.
Above and below the switches, to the static part of the Z assembly, I glued little pieces to aluminum to make contact with the lever just before the axis has reached its extreme positions.
The post is written in very a good manner and it entails many useful information for me. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. online cannabis store
ReplyDeleteHey – great blog, just looking around some blogs, seems a really nice platform you are using. I’m currently using WordPress for a few of my blogs but looking to change one of them over to a platform similar to yours as a trial run. ancona radiators uk
ReplyDeleteI all the time used to study article in news papers but now as I am a user of net thus from now I am using net for posts, thanks to web. Take a look at my homepage.. ελλαδα ειδησεισ σημερα
ReplyDeleteI am so happy to read this. This is the kind of manual that needs to be given and not the random misinformation that's at the other blogs. Thanks for sharing! Where to buy steroids online
ReplyDeleteI just got to this amazing site not long ago. I was actually captured with the piece of resources you have got here. Big thumbs up for making such wonderful blog page! sheep vitamin drench
ReplyDeleteI really like the dear information you offer in your articles. I’m able to bookmark your site and show the kids check out up here generally. I'm fairly positive they're likely to be informed a great deal of new stuff here than anyone else! apartments for rent in pompano beach
ReplyDeleteI was very impressed with all your posts. It all has added insight for me. Hopefully your blog more successful. Steroids supplier in UK
ReplyDeleteIt is really a nice post which captured the entire topic of description with detailed explanation. I have put it in my favorite list and will return again for new topics as well. buy workout supplements
ReplyDeleteNice information, valuable and excellent design, as share good stuff with good ideas and concepts, lots of great information and inspiration, both of which I need, thanks to offer such a helpful information here. Portaloo Hire Gloucester
ReplyDeleteReally I enjoy your site with effective and useful information. It is included nice post with a lot of our resources. Keep posting these kinds of article. cannabis business plan sample Canada
ReplyDeleteThanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area. how to start a cannabis business
ReplyDelete