LED Buttons

led_buttons

For their final project in ECE 4760 at Cornell, [Christina] and [Joe] made a small single octave keyboard using LEDs as the input. They used a total of 63 LEDs to make the keys. Each key consists of 9 LEDs, with the center one acting as a sensor. When you lay your finger on it, the light reflects off of your finger and is picked up by the center LED. An ATMega 664 runs custom code to play a sound. You can find out more details about the construction as well as download the source code on the site. You can also download an example movie of it in action ( 7MB .mp4)

26 thoughts on “LED Buttons

  1. They are missing something easy – they could detect how strongly the finger is pressed against the LED’s and thereby control the volume of the notes, either by the pressure or the rate of change of the pressure.

  2. Actually, we can detect up to all 7 keys at once, and play all 7 notes at once. The scanning of the buttons is done sequentially in about 16 ms intervals.

    As far as detecting the press, we do an ADC conversion to detect basically how close someone’s finger is to the button, but the problem with detecting volume is that people with different skin reflectivity will give different values after the conversion. Mainly the paler you are the more sensitive the keys are.

  3. You could at least sense velocity by seeing how quickly the light level ramps up to the maximum. You could also have to self calibrate to skin color…or require that musicians wear white gloves.

  4. You could at least sense velocity by seeing how quickly the light level ramps up to the maximum. You could also have it self calibrate to skin color…or require that musicians wear white gloves.

  5. instead of using one color of LED’s, why not have ir, regular color, and UV led’s and average out the values? That way skin tone would affect the results less.

    Also, are you doing an analog or digital read on the sensors? if you’re doing digital, for the volume of the notes, you could have 2 sensor LED’s with one of them having a slightly more opaque sensor and measure how much time is between the regular sensor going high and and the opaque one going high. Somewhat like the way most drum pads measure velocity.

  6. I’ve seen a matrix version of this ~2 yrs ago where they alternated the leds’ function between sensing and lighting, making it a “sensing display” with distance sensing too. that might have been overkill but it looked beautiful on video.

  7. haha-

    “writing the code: joe
    testing the code: both
    ordering and buying parts for the project: joe
    designing the hardware: joe
    testing the hardware: both
    soldering the parts: both
    integration and final testing: both
    writing the report: both
    creating the webpage: cristina”

    nice.

  8. This is sad for a senior design project. We do projects more complex than this in our 362 microprocessor class here at Purdue, and our “mini-projects”,as they are called, are completed in the last 2-3 weeks not over an entire semester.

  9. @justDIY yeah many undergrad “design projects” are really just “basic hobbyist projects” that you get credit for. I say this as someone with a masters in engineering

    @james further evidence why “team projects” should be mostly done away with.

  10. @aman Yeah, it would have been a pretty sad senior design project, but if you would have done a better job reading the description this is one of those “mini-projects.”

  11. if you made a strip of vertical sensor LEDS between 2 strips of ligt LEDS you could do pitch bend per note or some other modulation. it really needs to be a MIDI or OSC controller rather than a dinky piano :D

Leave a Reply to k-wwCancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.