Pages: [1]   Go Down
Author Topic: 24x LEDs with individual P/S2 keyboard inputs?  (Read 831 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Apologies firstly for my absolute ignorance, I am a brand new convert to Arduino.

I was wondering if it would be possible to have 24 LEDs with each LED linked to a corresponding letter on a PC keyboard, so each time the key is pressed the briefly lights up. Pretty simple, but is this possible and what would be the best way to do it?

Many thanks for your help (and patience...)
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27357
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes. Two different actions - receive the keypress, and light the matching LED.
Are you getting key information one key at a time from a PC, or from a standalone keypad/keyboard?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

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

It will be from the PC rather than standalone, and ideally needs to continue running in the background whilst other software is running - is that possible?

Also, is it possible to program it so that the linked LED changes each time a key is pressed? Not randomly, but in some form of cyclic sequence? For example, the first time I press "G", LED 1 lights up, the next time LED 5 lights up, then 22, then back to 1 etc.

Thanks for your help
« Last Edit: February 06, 2013, 04:48:37 pm by corbeau » Logged

Porto
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

i don't know the best way to do this, because it's the very first time I've thought about this, but with and Arduino and a shift register or by reading your keyboard has a keypad it should be easy to do that.
Logged

For some Awesome Arduino Projects  click -> www.randomnerdtutorials.com

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27357
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It will be from the PC rather than standalone
If you have a way to make the USB port output the key pressed on every keypress, the  LED lighting part is pretty simple.
I don't know how you get individual key presses out tho.  The Serial Monitor only transmits after Enter is pressed.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 150
Posts: 5656
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Also, is it possible to program it so that the linked LED changes each time a key is pressed? Not randomly, but in some form of cyclic sequence? For example, the first time I press "G", LED 1 lights up, the next time LED 5 lights up, then 22, then back to 1 etc.

Sure. It's software so anything is possible.

The only question is who's going to write the software?
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

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

Thanks very much everyone


Sure. It's software so anything is possible.

The only question is who's going to write the software?


Haha, that would be me (better get playing about with the code then). I thought it should be doable (as you say, it's software) but just wanted to double-check - and see if anyone had tried this in the past.

Will this be possible on the PC via the serial monitor though? As CrossRoads says, the program is only transmitted when the enter key is pressed, is there a way around this?
Logged

Not behind you
Offline Offline
Newbie
*
Karma: 0
Posts: 30
WARNING...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Will this be possible on the PC via the serial monitor though? As CrossRoads says, the program is only transmitted when the enter key is pressed, is there a way around this?

I don't know for sure if it would work, as I've never thought to try it before, but you could try finding a macro or something that will make your PC think that the enter key is pressed after every time you press a key. As I said, I'm unsure if it would work (but remember, everything is possible with software  smiley-wink).
Logged

Give a man a wiring diagram, he builds for a day. Teach him how to make his own, and he builds until he runs out of parts smiley-razz

Jaipur,Rajasthan
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's an instructable of your PS/2 keyboard input to LEDs output...
http://www.instructables.com/id/PS2You-Go-anywhere-LED-digital-message-board/

Not exactly what you want,but I think it would be fine for you,or it might solve you query on making of your own LEDs display of keyboard inouts.
Logged

Pages: [1]   Go Up
Jump to: