Good morning all
Sorry, this is a relatively long 'ask'.
I am wanting to make a coil winder to wind several coils of around 25,000 turns each. My plan is to (initially, anyway) turn the coil to be would by hand, but to lay the wire on the coil using a guide driven by a stepper motor. Assuming the coil to be 50mm wide and using a wire that's 0.2mm in diameter, this will require each layer of the coil to have 250 turns on it. The stepper motor would be attached to a lead screw that the wire guide is attached to. Once a coil layer is complete, the stepper motor will then reverse direction, and the next coil layer would then be wound. If the stepper motor is directly connected to the lead screw, and the pitch of the lead screw is 1mm, then the stepper motor will need (assuming a full step rate of 200 per rotation) to step 10,000 steps per layer of the coil. I can see that I will need to attach a sensor to the coil being wound so that it can send data to the Arduino as to how many rotations the arbour has done. The arbour rotation speed won't be consistent, as I will be turning it by hand (at the beginning of this project).
My question is: My experience with Arduino is very limited, and I am getting quite frustrated that I can't seem to find any information on line how to go about writing a suitable program for the Arduino. Can anyone steer me in the right direction?. What I need is a Arduino program (which, to me, sounds really simple) to drive the stepper motor the right (programmable) number of steps, which may be something like 200 for 20 input pulses (also needing to be programmable), and then after (say) 1,000 input (or 10,000) output pulses, the direction of the stepper motor to be reversed?
I have an Arduino Uno kit, which I have experimented with (only flashing LED's), but the programs that come with the kit all appear to be based on 'time' rather than 'counting'. I am very much of the belief that I can do this, but need help from better educated people than me. I am aware I will need to get a stepper motor driver to drive the stepper motor. I have zero knowledge of programming - other than the above, so please be patient with me.
Thank you all, in advance.