Pages: [1]   Go Down
Author Topic: Arduino PC key event ?  (Read 554 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey ,
i'm new in the Forum and just 13 years old , so sorry for my bad english.My qustion is how i can do that when i press a button that the Pc see that as a Key event without any usb shild or so... ?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46029
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
My qustion is how i can do that when i press a button that the Pc see that as a Key event
The Arduino has no idea what a key event is. The only way for an application on the PC to communicate with the Arduino is via the serial port.

So, you'll need to create an application on the PC that recognizes key events and sends something to the Arduino, via the serial port.

Various languages can be used to develop such an application, and there are links on the Playground to help you with some of them. I like C# because it makes communicating with the serial port very easy. There are free versions of Visual C# available from Microsoft if you want to go that route.

Processing is another good choice (http://Processing.org)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

first thank you ! can you show me a link on playground or on processing ?  smiley-surprise
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46029
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
can you show me a link on playground
http://arduino.cc/playground/Main/InterfacingWithSoftware
Scroll down to find a list of the languages that people have documented how to use. Pick one you are familiar with. If none, pick one you want to learn.

Quote
or on processing
Download and install Processing. Just like the Arduino IDE, Processing comes with a lot of examples. Use File + Examples... to open a dialog. Scroll down to Libraries + Serial I/O to see how to send data to/read data from the serial port. Look at Basics + Input to find keyboard examples.
Logged

Pages: [1]   Go Up
Jump to: