Stepper Project


Author Message
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 2082
Posted: 08:48am 16 May 2026      

Well a big rethink about using the zero on I2C it was all around me using that lithium pack along with this ching charger, now that I've killed the battery the idea of battery management is off the table.

My Sprint layout should be ready to FAB but still go to put in the console output and a passive board designed to use Lyle's circuit with the opto's made and provide a 12 volt input to the 5V reg, now I do have some some 3V3 reg's too so one of them could be used.

Then tomorrow I can setup the BC337's for the stepper outputs along with the 22K and 1K resistors then put in the stepper code to my program so this project cam move forward.

So what I'm thinking is getting the stepper INIT code in early then the 3 display box's I setup in the code can actually show the position of the machine instead of the 0.000 String I put in.

Then when the display box on each axis can be used as the _pos for the stepper code and the DIR can be set and made a string by using the toggle switch so DIR will be 1 or 0 and move the distance of the _pos string depending on the axis.

I do think another displaybox should be made so the feedrate can be assigned to the F_pos for the stepper string.

Once this is all done I should be able to move each axis to establish the actual position of the machine.

There is still a longway to go and getting the steppers to move in my code will get it over V0.01

Now once the X axis and Y axis stepper code is sorted out where the X axis is just going back and forwards and be a constant distance as we only need to clear the magnetic table and the Y axis is just going to increment depending on the grinding wheel width.

I do think that will be the version update as the X axis and Y axis is sorted then comes the Z axis where a grinding wheel is doing 2,500 rpm depending on the diameter and depth of cut where if any problems are in use the E_Stop will cut the Y axis and X cam move away from the magnetic table leave so in reality the Z axis should raise to clear the job so the E_Sop is only to stop the job.

Now with surface grinding depending on the job only a few pass's are needed where the depth of cut can be measured in steps rather than distance then we need to turn the job over. So the E_Stop function can be used for changing the work setting then a new run page on the lcd can move the stepper step by step to get the grinding started.

Now I am thinking about the limit switch's as they won't be needed as the Y axis is just going to clear each side of the magnetic table and for a X axis the magnetic table is 1/2 the X axis travel.

The Z axis travel will only really move when a smaller grinding is put on but again in reality if we use the same diameter grinding wheel the Z axis is only going to move a small difference so referencing the limits in the code would do which would bring 3 in/outs free which could be used for enable pins.

So Lyle how does sound to you mate and can I wake up tomorrow morning seeing that you updated my code to work with the stepper code so I have to wire up the X and Y axis to the DM556's to test the code.

Regards Bryan