Author Topic: arduino  (Read 487 times)

0 Members and 1 Guest are viewing this topic.

Offline harpoTopic starter

  • Jr. Member
  • **
  • Posts: 40
  • Helpful? 1
arduino
« 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.

Offline joe61

  • Supreme Robot
  • *****
  • Posts: 417
  • Helpful? 16
Re: arduino
« Reply #1 on: September 02, 2011, 06:54:23 PM »
There are some tutorials on the web (google "arduino tutorial"), for example 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

 


Get Your Ad Here