iron man project

so i'm making a suit of iron man armour and currently i am working on the arm launcher i want to have a servo in it to make the launcher fold in or out on the press of one button but i don't know how to do it.... i know the basics on programming a servo but thats it

so for clarification i want to have a servo move in one direction when i press a button and move it in the other direction when i press the same button again.

is this possible, and does anyone know like a good tutorial or does anyone have a code for it
any help is much appreciated

from dutch4years

Search this site for "toggle servo with button". This comes up often here.

earlier today i posted a topic of controling a servo
i know what i am looking for now it is a togle switch but i can not find how to code it and how to wire it
can anybody help me?

plz

Do you have an Arduino? Do you have a servo? Can you make the servo move from position to position? Do you have a push button switch? Can you connect the switch and read its state?

i do have a arduino and i do have a servo that i can make to the right position yes i have a switch bit i do not know how to read it's steed

i did the tutorial i am trying out stuff but i can not get buttons to work with the arduino

Then post a diagram of your wiring ( a schematic), your code and any compiler errors that are generated. Please read the "how to use the forum" stickies to see how the format and post code.