Controlling servo motor with keyboard

slipstick:
What keyboard is that? Most Arduinos don't have a keyboard.

And what robot? All I can see from your code is two servos sweeping back and forth. A robot with just two servos doing that isn't going to move very far.

And what location is "e" that it might want to move to?

I think you may need to provide quite a few more details before we can help.

Steve

  1. I'm talking about my laptop keyboard, I want to control it with my laptop keyboard
  2. Yes, this is a simple robot arm which picks up objects, but this is not important. Doesn't matter if it sweeps back and forth.
  3. It doesn't matter what location I want it to move it to. I can change the coordinates later. I'll just give a random number, 130.