How do get keyboard input.
I want to press p or n and have a relay run for like a second or 2
havn't found any examples yet.
tnx
perkunas:
How do get keyboard input.
I want to press p or n and have a relay run for like a second or 2
havn't found any examples yet.
tnx
What keyboard? If you mean the keyboard on your PC, then you can use the Arduino serial monitor and send the characters to the attached arduino board, where you have written a sketch to receive the characters using the Serial library functions to control the relay.
If you mean a separate keyboard, there are hardware examples and code support in the Arduino playground site showing how to wire a generic PS2 PC compatible keyboard to a arduino.
Lefty
no just the laptop pluged into the serial port
how do I write a p or n as a code?
perkunas:
no just the laptop pluged into the serial port
how do I write a p or n as a code?
Have you learned to write any arduino code yet?