i want to be able to controll to servos whit one button -when i pres the button the servos shuld strat and when p res it again they shuld stop and then thers shuld be one other button that when i press the servos are going to go in revers and when i press button nr 2 they shuld stop- i want to be using a arduino but i need help whit the hard ware and writing code this wuld relly mean a lot... ps this is for a tv lift
quick and dirty
your main loop will be:
//servo = 0 servo off
//servo = 1 servo forward
//servo = 2 servo reverse
if button1==1
if servo==0
servo=1
else
servo=0
if button2==1
if servo==0
servo=2
else
servo=0
I am pretty sure the code as written will not work. You would need to write it in proper arduino code. What little I wrote is the meat and potatoes of the program though.