Announcement

Collapse
No announcement yet.

Controlling Button LEDs

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Controlling Button LEDs

    Calling any electrical whizzes...
    I'm more of a software guy myself so if any of this below is rubbish I'll be the first to agree with you...

    I want to hook up some illuminated buttons (say 6) to the internals of a keyboard. I've read that I need to run a couple of wires from each button to the tracks to simulate the ASCII key code that I am after. Fair enough.

    But, how do I go about powering the buttons LEDs?
    I'm not sure if I can power them off the feed for the Num Lock, Caps Lock and Scroll Lock keys or not?
    If this works I could probably run the leds in parallel to this source and they would light when the Num lock key is on or off (I can simulate this in software).

    What I really want is to have control over each individual LED but I don't think I can do this without a relay board or something.
    I have visions of being able to toggle each LED in turn to get a nice ripple effect....

    FYI - The LEDs I'm looking at are here :

    http://www.maplin.co.uk/products/mod...03&modulecode=

    Any help appreciated.
    Huge

  • #2
    Well, its all down to taste, but the first thing Id say is not to buy those ones from Maplin, but instead get them from Farnell (www.farnell.com). Farnell sell the ring illuminated version of these buttons which Maplin dont sell, and personally I think they look excellent. See this thread for a picture.

    you should be able to run the LED by soldering to where the LEDs in the keyboard used to connect, but that will only give you control of 3 of them. Try searching the board for serial and paralell controllers for relays.
    -------------------------------------------
    (=========-) 99% complete
    --------------------------------------------
    AMD K6/2 500 @ 450mhz to keep heat and power usage down, 64Mb, slim CDrom drive, 64mb USB pendrive for MP3 transfer, 10Gb 2.5" drive for MP3, USB>RS232
    All jammed in external CDROM drive case.
    Kenwood KVC-1000r In-Dash LCD. x-10 MouseRemote. Destinator V2 Gps. DC-DC with onboard Shutdown controller.
    ----------------------------------------------

    Comment


    • #3
      agry with phil.45
      don't know what you want but take a look at this:
      http://members.home.nl/lodio/audiovu.htm
      it's in dutch but the schamatics are clear.
      PETER - THE NETHERLANDS - DEVENTER
      sproggy 2.8,epia c3-800,20Gb 2.5", 5.6"lcd,touchscreen.

      Comment


      • #4
        I'd seen those buttons before - you're right they do look better but I hadn't realised that I could get them from Farnell. Think I'll go for them now...

        I've seen PC controlled (serial or parallel port) relay boards on the net and you are talking about 40 pounds (that's 6 million American dollars ) so it would seem a bit expensive just for doing that...

        Although if I wanted to power on my amp or turn on the screen as well when the PC boots then it might be an idea to go down that road...

        Comment


        • #5
          The order codes for Farnell are: 3248896, 3248902, 3248914, 3248926.
          -------------------------------------------
          (=========-) 99% complete
          --------------------------------------------
          AMD K6/2 500 @ 450mhz to keep heat and power usage down, 64Mb, slim CDrom drive, 64mb USB pendrive for MP3 transfer, 10Gb 2.5" drive for MP3, USB>RS232
          All jammed in external CDROM drive case.
          Kenwood KVC-1000r In-Dash LCD. x-10 MouseRemote. Destinator V2 Gps. DC-DC with onboard Shutdown controller.
          ----------------------------------------------

          Comment


          • #6
            Thanks for the Farnell codes but what's the difference in them?

            The first 2 are red and green leds as are the second two codes?

            Is there a difference?

            Comment


            • #7
              Try this link:
              Illuminated Keyboard

              The LEDs you want to use are rated at 1.6 volts, 2mA. So change the 15 ohm resistor shown in the schematics to 1800 ohms and you'll be OK.

              Comment


              • #8
                Originally posted by Huge
                I'd seen those buttons before - you're right they do look better but I hadn't realised that I could get them from Farnell. Think I'll go for them now...

                I've seen PC controlled (serial or parallel port) relay boards on the net and you are talking about 40 pounds (that's 6 million American dollars ) so it would seem a bit expensive just for doing that...

                Although if I wanted to power on my amp or turn on the screen as well when the PC boots then it might be an idea to go down that road...
                40 UKP ~= 57 USD

                aka Kumaneko
                "Don't make me moderate your ***!"
                Maxima of Doom - project thread - photo gallery
                mp3car system is currently FUBAR and finances do not allow for a correction of that situation
                Real computer hackers use a rotary cutting tool on their motherboard.

                Comment


                • #9
                  You can power small LED's right off the parallel port. All you need to do is wire the cathode(-) (the shorter lead on the LED) to ground on the parallel port (Any pin from 18-25), and wire the LED's anode(+) (longer lead) to one of the pins from 2 - 10 (a total of 8 LEDS can be controlled). Here's a diagram to help you out: http://www.diyha.co.uk/electronics/parallel.html. What exactly are you looking to accomplish here? Do you want explicit control over each LED, or do you want to have the LED's flash in a sequence, just for show? Let me know, I can write up a quick VB for you.

                  Comment


                  • #10
                    Originally posted by Huge
                    Thanks for the Farnell codes but what's the difference in them?

                    The first 2 are red and green leds as are the second two codes?

                    Is there a difference?
                    The first two are the red and green LED buttons that do what youd expect them to do, ie you push the button to make a contact, and there are seperate terminals to wire the LEDs. These are the ones I bought. The second pair are the same colour, but I have no idea why they are different. They have TERM in the manufacturers code, but I couldnt find any difference on the spec sheet. If in doubt, go for the top pair. Perhaps someone else knows?
                    -------------------------------------------
                    (=========-) 99% complete
                    --------------------------------------------
                    AMD K6/2 500 @ 450mhz to keep heat and power usage down, 64Mb, slim CDrom drive, 64mb USB pendrive for MP3 transfer, 10Gb 2.5" drive for MP3, USB>RS232
                    All jammed in external CDROM drive case.
                    Kenwood KVC-1000r In-Dash LCD. x-10 MouseRemote. Destinator V2 Gps. DC-DC with onboard Shutdown controller.
                    ----------------------------------------------

                    Comment


                    • #11
                      Originally posted by ShinkunoNamida
                      40 UKP ~= 57 USD

                      If only that where true! If you check the US price's and then the UK prices for the same stuff, the rate is more like:

                      1 <= $1

                      Dave

                      Comment


                      • #12
                        Depending on the keyboard, you may find running a couple of wires to the contacts under a keyboard will not work. A number of keyboards use magnetic switch. There is only a moentary pulse for each key pressed and one when it is released. If you hold a key down you dont have completed circuit like you would with a normal push button. If you want to listen to and talk to a keyboard you might be better of doing it from the ps/2 port side. ps/2 port is just a serial port at TTL level. Listen for the keypress. The LED can be controlled from the ps/2 serial stream as well.

                        Comment


                        • #13
                          Originally posted by Huge
                          Thanks for the Farnell codes but what's the difference in them?

                          The first 2 are red and green leds as are the second two codes?

                          Is there a difference?
                          When looking at the parts on farnell look at the Manufacturer part number. The part number that ends in 001 is the switch type with the light in the middle of the switch and the one that ends in 002 has the "ring" of light in the switch.
                          Aura MR62 (F and R)
                          My Current MP3s
                          IamDefiler.com

                          Comment


                          • #14
                            Nah, all of the codes for Farnell I listed above are for MPI002, the ring of light version.
                            -------------------------------------------
                            (=========-) 99% complete
                            --------------------------------------------
                            AMD K6/2 500 @ 450mhz to keep heat and power usage down, 64Mb, slim CDrom drive, 64mb USB pendrive for MP3 transfer, 10Gb 2.5" drive for MP3, USB>RS232
                            All jammed in external CDROM drive case.
                            Kenwood KVC-1000r In-Dash LCD. x-10 MouseRemote. Destinator V2 Gps. DC-DC with onboard Shutdown controller.
                            ----------------------------------------------

                            Comment


                            • #15
                              Originally posted by phil.45
                              Nah, all of the codes for Farnell I listed above are for MPI002, the ring of light version.
                              I stand corrected.

                              Possible screw up on the web site?
                              Aura MR62 (F and R)
                              My Current MP3s
                              IamDefiler.com

                              Comment

                              Working...
                              X