need motor tutorial

i am trying to make a useless box but I do not know where the tutorials are for motors, switches and buttons

Some buttons and switches tutorials are here:

I'm guessing you're using a servo motor for this application. If so, you can find tutorials here:

Have you Googled for "Arduino useless box" ?

...R