<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>Hi</DIV>
<DIV> </DIV>
<DIV>Just wanted to check with you guys so see what would be the best way to 
structure some code.</DIV>
<DIV> </DIV>
<DIV>I have four stepper motors controlled by a windows form via an 
Arduino.</DIV>
<DIV> </DIV>
<DIV>One motor moves a camera on a lead screw forwards and backwards in order to 
take s stack of pictures. This happens each time there is a movement by one of 
the other stepper motors.</DIV>
<DIV> </DIV>
<DIV>Stepper 2 – rotates a turntable on which the subject sits. Parameters are 
1. direction (clockwise or anticlockwise); 2. number of steps to take to reach 
new position; 3. total number of moves.</DIV>
<DIV> </DIV>
<DIV>Stepper 3 – moves the turntable left or right. Parameters are 1. direction 
(left or right); 2. number of steps to take to reach new position; 3. total 
number of moves.</DIV>
<DIV> </DIV>
<DIV>Stepper 4 – inclines the subject. Parameters are 1. direction (tilt up or 
tilt down); 2. number of steps to take to reach new position; 3. total number of 
moves.</DIV>
<DIV> </DIV>
<DIV>It may be that just one of steppers will move or a combination of all three 
at the same time or with one coming in for part of the movemnt of one of the 
others.</DIV>
<DIV> </DIV>
<DIV>An integer is sent from the windows form to the Arduino to trigger the 
motors one step at a time:</DIV>
<DIV> </DIV>
<DIV>1 moves camera forwards</DIV>
<DIV>2 moves camera backwards</DIV>
<DIV>4 moves turntable motor clockwise</DIV>
<DIV>5 moves turntable anticlockwise</DIV>
<DIV>6 tilt up</DIV>
<DIV>7 tilt down</DIV>
<DIV>8 left</DIV>
<DIV>9 right</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Any suggestions as to how to structure the code will be most welcome.</DIV>
<DIV> </DIV>
<DIV>Cheers</DIV>
<DIV> </DIV>
<DIV>Andy</DIV></DIV></DIV></BODY></HTML>