I just started using the Arduino Uno, and have already attatched a servo to it. I made a program from scratch, and so far it is working; however, all it can do so far is the same thing over and over whenever I press the RESET button. I would like to know if there is any way to allow my starter kit to accept live feed from a computer (arrow keys?) or another device (possibly a sensor, either 1 or 0) that triggers a response. Is there a specific piece of hardware or a new computer language I need?
All criticism and advice is welcome.
So far, this is what I have for my servo--stored on the microprocessor:
#include <Servo.h>
Servo servol;
void setup()
{
servol.attach(9);
}
void loop()
{
int position;
servol.write(0);
delay(1000);
for (position = 0; position < 90; position++ )
{
servol.write(position);
delay(70);
}
while (1) {}
}
Help, please?