Forum Replies Created
-
AuthorPosts
-
December 11, 2016 at 10:20 am in reply to: 2nd TinyG and X limit switch input and SpON not working?! #10064rickcaddellMember
One possible problem with driving relays with a 3.3V output is that relay coils are inductors and have inductive kickback, ie. V = L di/dt. Outputs switch very fast and when the current changes rapidly (di/dt is change in current vs. change in time) across a coil (ie. inductor) the voltage goes very high. This is what may have blown the output, and other things on the board. The best way to power a relay is with a buffer gate like a relay driver. Another way is a diode from the output to 3.3 volts to clamp the voltage so the it does not go much higher than 3.3 volts, or a zener around 3.3 volts from the output to ground.
rickcaddellMemberJuKu,
As far as I know there is no good way to square the axis using TinyG. Even if you could there are other problems. The following is the method I use.
Beware. Most homing switches are not very repeatable. I built my own CNC (designed and built the hardware, software, electronics, everything but the TinyG). The machine has gantries (two motors) on X and Y. If I put a dial indicator on an either axis, and home several times watching the gauge, the home position will vary by 5 to 10 thousands. And these are expensive limit switches (30 bucks a pop) that are supposed to be high precision. What I ended up doing was putting rings on the lead screw of each axis. The rings have a mark on them, and have a set screw that allows them to be rotated, and by tightening the set screw, put in a fixed position. The machine has a matching mark where the lead screw passes through the frame. I go through a procedure that squares the axes (another story) then loosen the set screws, set the rings so the marks line up and tighten the screws. Each time I home, the home switches gets the machine close (within a few thousandths), I disable the axes and turn the motors so that the marks on the rings line up with the marks on the frame. If I jog the machine, and command the machine back to the home position, the marks may not line up by one step of the motor. I am not sure why, but I think it is because of the micro stepping. The micro stepping may put the machine somewhere in between motor steps, and when I disable the motors and turn them by hand the micro step gets lost, but on my machine it will only be off by at most one motor step which is a thousandth of an inch.
I tried several ways to get the axis square in the first place to set the rings, but nothing worked well. I finally ended up using a framing square and a spindle probe. I have the square on a mount that allows adjustment of the angle of the square in relationship to the machine. I run X against some hard stops and set the rings on each X axis lead screw. Then I probe each end of the square in the X direction and adjust the angle of the square until it is square with the machine (ie. the probe reading is the same at both ends of the square). I then probe each end of the square in the Y direction and turn one disabled Y axis motor until Y is square. When Y is square, I set the rings on the Y lead screws. A total pain in the ass, but once the rings are set, I do not have to go through this unless I physically change something on the machine (like taking the machine apart, or a crash that causes the motors to get out of sync). You do however have to disable the axes and line up the marks each time you home, but that only takes a few seconds. If you don’t have a spindle probe, you can use an edge finder, if you have a variable speed router and set it at the lowest speed. At high speeds it will ruin the edge finder. Another way would be to mount a dial indicator on the spindle and tram the square. The final test of the squaring procedure is to make two cuts (at a 90 degree angle to each other) on a large piece of material and measure with a square to confirm that they are indeed square.
An edge finder is the best for this procedure or for finding a position (like where a part is to be mounted to determine offsets) because it finds the true position even if the spindle has runout. My router has a 1/2 collet, but a 1/2 inch edge finder has too much mass to work well, so I use a 3/8 inch shaft edge finder with a 0.200 tip (see link below). I use a 1/2 to 3/8 bushing to accommodate the 3/8 shaft of the edge finder (see link below). The bushing in the link is a 1/2 to 1/8 but you can search for the proper one. Note that the bushing in the link below has slots that come from both ends. This allows the collet to have a greater range. I have had troubles in the past with bushings with slots only on one end. These types of bushings do not always tighten up enough to hold the tool fast and during cutting it slips. A lot of tooling is not very precise as far as the shaft diameter is concerned, and I use a quick change collet which also adds a bit of error (google ‘quick change router collet’).
I sense that you are a rookie at machine tools. Very glad to see youngsters getting interested in something besides cell phones and video games. As an old hand at this (45+ years) I would like to give you a bit of advice, use gauges to measure things. If you can’t measure it you can’t control it. I use digital ones. They are cheap and have very good repeatability and accuracy. See links below for a what we old farts used to call a dial indicator and Vernier caliper. I use these constantly.
Digital Electronic Indicator:
Digital Caliper:
Edge Finder:
Collet Bushing:
http://www.ebay.com/itm/282244179108?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AITGoogle of ‘quick change router collet’
https://www.google.com/search?q=quick+change+router+collet&ie=utf-8&oe=utf-8&client=firefox-bHope this helps.
If you want pictures of the squaring procedure e-mail me at rickcaddell@epbfi.com. I did not include them in this response because I did not know if they would pass through GitHub, or if you would be interested.
Old Man
rickcaddellMemberThanks for the tip about QF. I missed that. I may have interpreted the % command write up wrong. It seems a little vague on the point. Here is what it says:
If you wish to not perform the remainder of the move after the feedhold send a queue flush character (‘%’) after the feedhold character. Motion will start with the next Gcode command entered. A cycle start is not necessary after a queue flush.
I have just received the hardware I need to test this. I will post the results.
-
AuthorPosts