Hey guys,
I have been at this for some time and I just can not seem to get it. Programming never was my strong suit.
I am simply trying to push a button and make a servo move from point A to B and stop. Then push button again and have it move from Point B back to point A.
It seems so easy in theory and what sample code i get. But all the code I work with has 2 issues. 1) I have to old the button down for the servo to stay at point B, upon releasing it returns to A. and 2) the servo jitters.
I have the servo powered externally and grounded to the Mega also. I also added the debouncing and delay to supposedly help with jitter.
Any and all help would be greatly appreciated.
I have been at this for some time and I just can not seem to get it. Programming never was my strong suit.
I am simply trying to push a button and make a servo move from point A to B and stop. Then push button again and have it move from Point B back to point A.
It seems so easy in theory and what sample code i get. But all the code I work with has 2 issues. 1) I have to old the button down for the servo to stay at point B, upon releasing it returns to A. and 2) the servo jitters.
I have the servo powered externally and grounded to the Mega also. I also added the debouncing and delay to supposedly help with jitter.
Any and all help would be greatly appreciated.