Jump to content

32 switches + leds = current ?


urban soul
 Share

Recommended Posts

Hello,

I am new on the list. My MidiBox is here:

http://www.schlemmer.gmxhome.de/ -> Galery

My design is strictly one-way. No feedback from the DAW.

Is it a good idea to replace the 10k resistors on the DIN module with 220R ones so as to drive 32 LEDs by the buttons ?

Vss---220R---LED---BUTTON---GND

The 220R resistor would be connected to DINx4. But then pressed button gives +1,6V instead of 0V. Does the 74HC165 draw any current here? Or is it possible to connect after the LED ?

Lot's of questions. Thanks TK  - this is an amazing project!

Urban

Link to comment
Share on other sites

First up, no, you should not expect that the SR will read your button press.

The VIL for the 74HC family of chips is 0.8V.

The VIH for these is 2.0V.

The WHAT?

VIL = The maximum voltage :P allowed as a 'low' (logic 0) at an input.

VIH = The minimum voltage allowed as a 'high' (logic 1) at an input.

This means that a switch intended to pull the input low, must present to that input a voltage of less than 0.8V. Anything higher than this and results are not guaranteed.

1.6V falls right into the undetermined place between VIL and VIH

The 10k resistors are a pull-up device, intended to give the PIC / SR chips a steady high state (logic 1) when the button is not pressed. Changing these for LEDs with resistors might lead to the SR reading incorrectly.

Now, you may find that results are better if you keep what you have, but connect the SR pin to the junction of button+LED, not the LED+220R.

ie:

[tt]Vdd---220R---LED---+---BUTTON---VssGND

                  |

              To DIN SR pin[/tt]

Try that, take some measurements...

If it doesn't look good, how about this?

[tt]

Vdd-------10k-------+

                    |

Vdd----220R----LED--+----button/SR pin-----Vss(ground)

[/tt]

P.S.

** Edit: the 1.6V you are reading is the voltage drop across your LED **

(Don't forget to answer the question...) :)

Edit:typo

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...