I would like to start a long term project (converting a manual mill to a hybrid) .
First stage will be hooking a stepper motor to the Z axis and (hopefully) controlling it manually with a homemade “pendant”. This will be a long term use (and focus of this thread) in case the full hybrid project never gets finished.
For the record, I know nothing about stepper motors, drivers or Arduino.
Mill head weighs around 200lbs
Right now i have no plans on swapping the current lead screw to a ball screw.
Currently I have a 12v cordless screw guns motor moving the head up and down, the motor does not strain too much while moving the head up, obviously coming down is not a problem.
What I would like to do:
- “rapid” with a momentary toggle switch
- feed with a toggle switch
- potentiometer to set the feed
- move the head at .0001 .001 and .01 increments with a hand wheel and selector switch
- have a re-settable readout which can be used as a DRO (I understand there is a lot of room for error & backlash counting on the lead screw like this and not using real scales, but for the Z, i would just like to zero out and then move down xxx distance)
- bore & drill to a depth by hooking up a number pad to Arduino, keying in distance (displayed on a second readout) then flip a switch to “engage/start”
- Use a 12v PC power supply to run everything
So far heres where im at:
- Stepper motor (Nema 34 1290 oz) too big, too small ???
- Arduino Mega 2560 or Arduino Due (knowing nothing, they seam to have the most flexibility/options)
- Arduino Motor Shield to drive the stepper motor
The motor will mount on side of column and drive the lead screw via a pulley (have height issue, can not directly lead screw)
Questions:
How do these Arduino boards work ?
- Do you write the code on a PC
- hook a PC to the Arduino
- offload the code to the Arduino
- disconnect the PC from the Arduino
- and now the Arduino runs as a standalone with the code you saved to it ?
Since I have no need for a PC in the current plan, I do not want one in the operation. I would like to use the Arduino like a “stand alone” device.
With all of that said, am I close, will it work, what else do I need ?
What would be better, Arduino Mega 2560 OR Arduino Due ?
Aside from the switches, buttons, displays, etc for the “pendant” and the code; will the stepper motor, Arduino Mega and Arduino Motor Shield accomplish what im looking to do ?
Hope I didn't miss anything...
Any input would be great, any input conveyed like im a simpleton would be better
Thanks...
_