Hello all, I am new here. I took electronics but it was over 25 years ago and I am very rusty. I am looking for a simple circuit for a machine I am building. Basically ths machine will feed anything from a roll(paper, wire, etc) a preset length. The length would be preset either with a moveable pin on a gear or interchangeable gears. What I want this to do is when you press a foot pedal or button, the motor advances and feeds the material out. when the correct amount is fed a pin on the gear would hit a switch causing the motor to stop, reverse, and go back to the start where it would hit another switch and stop. Then when the foot pedal is pressed again it would cycle again. I have looked all over but have not found what I am looking for. If anyone here has a schematic it would be a great help. The motor would likely be small, likely 12v dc and low current. The simpler the design the better. Any help would be greatly appreciated.