step count or position of a stepper

Hi,

hi all,
i am looking for some help,
ive built a loop transmiting antenna,with a wide spaced tuning capacitor to match the impeadance,
im using an arduino and a motor shield to drive a stepper which turns the capacitor thr a reduction gear,
ive used the stepper test sketch to move the motor,
ive just removed all of the tests except the microstep routine,ii seems to take 90.000 steps end to end
at the moment all i do is set the transmit frequency and watch my antenna analyser as it sweeps, then when it gets a match for that frequency,i pull the power from the arduino,
crude but it works,
what i would like to do is see how many steps the motor has been moved up to that point,
could i press a button for instance and store that position,or see the steps elapsed via the serial monitor,
all itt seems to do is state what its doing,ie not the number of steps that the motor has moved up to that point,
any ideas?,
cheers Paul m3vuv.

Sorry Paul but in point format it is easier to read.
You can count the steps with a home and end limit switch as Dr Deittrich has said.
Each time you apply power the arduino would check to see if the cap/stepper is home position, if not it would reverse the stepper until the cap/stepper is home.

Tom... :slight_smile: