michinyon:
Your homeset() function will only run once, in setup().But I fail to see why you are using a continuous servo at all. Setting the home position isn't really going to help you much, why don't you manipulate your color wheel with a regular position-controlled servo ?
i am not using a servo any more i took the advice from here and found a small stepper to use. the homeset function is onl suppose to rune once and it is just to make sure that the filter wheel is at position 0 and the step count is at 0 also.
the project is a 5 position color filter wheel. that when it gets a command from the computer it will move the wheel to that position. the problem i seem to be having now is that it seem to miss some of the commands that are sent from the computer. so that some times it moves and others it dosent.