Jump to content

LED's on MIDI in/out on the CORE32


orange_hand

Recommended Posts

Hi,

I am wondering what I need to do in order to enable the LED's for the MIDI in's and out's on the CORE32, like it is realized on the IIC board. When I read the documentation a couple of weeks ago I found somewhere an explanation, but I can't retrieve it. The only thing I remember is that it has to be in parallel to the MIDI connectors ...

Can anyone help me out with a small schematic ?

Cheers

orange

Edited by orange_hand
Link to comment
Share on other sites

MIDI IN/OUT LEDs are no MIOS32 feature, they have to be supported by the firmware.

MBSEQ doesn't support such LEDs - but an integrated MIDI monitor screen, which is very helpful for debugging MIDI connections: MENU+MIDI, select "Misc." -> GP16

Best Regards, Thorsten.

Link to comment
Share on other sites

The GM5x5x5 LED circuit isn't an ideal design, the LEDs are flickering too fast.

And putting a LED into the current loop means that there is no current for the optocoupler at the MIDI target anymore ;-)

Have a look into the http://www.ucapps.de/mbhp_ltc.html schematic for a perfect HW based MIDI activity indicator.

Best Regards, Thorsten.

Link to comment
Share on other sites

I am also looking to add activity LEDs. I have come up with a schematic based on the LTC module, but with what I assume are unnecessary parts removed. Could someone please confirm that this is all I need.

LED_Driver.png

Thanks,

Kevin

Edited by gslug
Link to comment
Share on other sites

I am also looking to add activity LEDs. I have come up with a schematic based on the LTC module, but with what I assume are unnecessary parts removed. Could someone please confirm that this is all I need.

LED_Driver.png

Thanks,

Kevin

As drawn, this circuit will drive negative spikes to the inputs of the "upper" NAND gates.The built-in protection diodes will help, but it's hard to say how long they will last before the HC00 chip just dies,

Link to comment
Share on other sites

I have attached a screen grab from the java circuit simulator to help show why.The sim is at falstad.com.. under analog circuit simulator, 555 timer, square wave generator if you want to have a play.

To show the problem, I attached a capacitor in series to the square wave output, then a resistor to ground. this is the same arrangement you have between the lower and upper NAND gates.The scope trace at the bottom shows the problem. Every time the square wave falls from 5v to 0v, you get a negative voltage spike of over 4 volts (actually, that would be UNDER -4 volts).

The datasheets of most chips require all voltages to stay between V+ and V-, or in this case 5V and Ground.

There _ARE_ built-in diodes at each input to the chip to help protect the chip from damage, but these are last-ditch protection devices, and it's not a good idea to design a circuit that requires this protection to avoid frying the chip. The particular HC00 datasheet that I looked up (no link, sorry) even puts a statement near the top of the page specifying that you should never depend on the protection diodes to save you.

Most chip datasheets offer two sets of limits.. "operating" conditions and "absolute maximum" conditions. The difference is simple.. the chip may fail outside the operating conditions, the chip may suffer permanent damage outside the "absolute maximum" conditions. As you might guess, the requirement to keep all inputs between VCC and VSS is an absolute maximum condition.

I hope this has helped to explain my previous comments.

LyleHazepost-4565-0-29887400-1342815938_thumb.jp

Link to comment
Share on other sites

Thanks lylehaze. I based the schematic on the relevant part of the MIDIbox LTC module: http://www.ucapps.de/mbhp_ltc.html, so figured that it would be OK. Do you have any suggestion as to how to protect the inputs of the gates?

Thanks,

Kevin

I'd try to avoid any negative voltages in the first place. The attached drawing is untested, PLEASE build a test circuit and experiment with the R and C values before committing anything.Without any timing delays, you get such a brief flicker of light that it's hard to see. So the question becomes, how long should a minimum flash length be? You get a longer LED ON timeby increasing resistor ohms OR increasing capacitor uf. Lesser values for either will make a shorter flash.I drew this using inverters, you may use NAND gates instead if you want, just gang both inputs together.Bonus Design goal: CMOS chips WILL operate in the linear region (as they do in this circuit), but they draw less power when run with hard ON or OFF signals.. You can get that by using this same circuit but choosing inverters with "schmitt trigger" inputs. Basically these are inputs that "snap" high or low when the input voltage is wandering around in between. What you get in return is a bit less power draw and LED's that are ON or OFF instead of some (minor) "fading" during the delay portion.

Please experiment before deciding what values of R and C to use.. I just threw some random numbers into the simulator.

Have Fun.post-4565-0-52323800-1342856667_thumb.jp

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...
×
×
  • Create New...