|
Re: Moving Servo Motors
There are a number of good ways of doing this, but perhaps what you want is to identify an initial servo setting, say 90 degrees. Pressing a button adds a delta, say 10 degrees to the number and updates the servo. Perhaps another button will subtract 10. Alternatively, you could use buttons to simply set the number to a special number.
The code for this would look similar to the attached image. Note that I duplicated the case diagrams near it as printing would. They are actually stacked in the code as individual diagrams.
greg McKaskle
|