Society of Robots - Robot Forum
Software => Software => Topic started by: harpo on September 02, 2011, 12:41:11 PM
-
hello and welcome to my post XD.
i am wondering if any body reading this would know how to program a arduino so that when connected to my computer via a usb cable the keyboard input from my computer would tell it what to do.
for example presses the w key on keyboard and light on arduino turns on
releases key and the light turns of
thank you for any help given have a nice day.
-
There are some tutorials on the web (google "arduino tutorial"), for example http://www.ladyada.net/learn/arduino/ (http://www.ladyada.net/learn/arduino/)
In general you can talk to an arduino through the USB port using the serial monitor, and the Serial class in your code. The link above will take you through that.
Joe