Jump to content

bugfight

Frequent Writer
  • Posts

    812
  • Joined

  • Last visited

Posts posted by bugfight

  1. ...cut resistor legs.

    cut resistor legs are now considered inhumane and therefor cut resister leads should be used instead by all conscientious boxers, preferably .1% for audio paths...

  2. ...

    Eitherway, is not the max source current +/25mA?

    ...

    i calculated 18.75mA based on max power for the chip (750mW according to ti)

    this may not be a good way to calculate the current limit.

    wilba pointed out that max current at the power pins is listed at 70mA.  though i don't think this translates exactly to the current at the outputs when they are pulsing, it still suggests a lower limit.

    SmashTV did some tests that seemed to support the ~18mA calc

    (even running it at 2A for 5 secs before letting out the magic smoke)

    i'm sure some folks here are using more than that with high current leds, these ratings usually have a little headroom...

  3. let's say all the red leds are ON in row 1. Wouldn't that mean that 4 leds are being driven by a single SR pin out?  (but each of the 4 pins on the Cathode SR is sinking a current)

    yes but only one at a time, the code steps through sinking row 1, then row 2, etc...

    ...

    The max current a single pin on a Cathode SR would sink is when a whole column is lit up and all three colours are being used. If rgb this would be 24x Id (led current). ULN2003A can sink tons of current so this is not an issue.

    yes

    As for efficient RGB leds, I just bought custom made, superbright RGB leds from china. They have flat tops and are diffused. Unfortunately I wish there was a little more plastic on the tops of them to help diffuse the colors better but I am fixing that putting a short plastic tube on each one and then putting a semi-translucent plastic where the holes will be on my front panel.

    The red draws the most current at 0.6 mA with the brightness I want (and I get a smooth 180 degree viewing angle once it is appropriately diffused). The other colours draw 10x less!!

    cool, you have link?

    If you look at the code I posted above, ...

    sorry, i'm not going to look thru all that code looking for changes.

    if you have a specific issue, i will be happy to help if i can...

    HOWEVER, I need a 8x16 matrix of leds so I need this code to drive two 4x16 matrices, not two 4x8 matrices

    OR should I just have a second core do this?  I have no issue with chaining multiple cores but I have a feeling I may not need to.

    i believe duping the code to get 8x16 is no problem for one core, except that you will have no douts for other uses...

  4. wow, that's some efficient leds!

    ref http://www.ucapps.de/mbhp/button_duoled_matrix.pdf

    the supply side of the blm circuit (DEFAULT_SRM_DOUT_L1, DEFAULT_SRM_DOUT_L2) is no problem since each pin only supplies 1 led at a time.

    DEFAULT_SRM_DOUT_CATHODES1 on the other hand sinks current for the whole row at once

    (i mistakenly said 16 leds before, which is correct for duo leds but for rgb it will be 24)

    to simply add a third led color, you would add DEFAULT_SRM_DOUT_L3...

    (for the left side that is, the same applies to the right side)

  5. the &= 0x7F thing is good to prevent accidentally sending invalid midi, but not necessarily the best thing for setting ranges.

    this code will prevent octave shift from exeeding 0x7F and wrapping around 0 for octave up:

    unsigned char tmp;
    ...
    tmp = octave + 0x0C;
    if !(tmp & 0x80)
      octave = tmp;
    
    i supect, though, that what you really need is to keep octave + your highest note value under 0x7f. so, for octave up:
    #define OCTAVE_MAX 64   ;//set this to 0x7F - 0x0C - your highest note number
    ...
    if (octave <= OCTAVE_MAX)
      octave += 0x0C;
    
    

    same goes for octave down but with 0

    hope this helps...

  6. You can either use a rectifier or regular 1N4148's diodes. With diodes you need 4 of them.

    It will look like this:

    1n4148 is a small signal diode, you want power diodes (1n4001, 1n4002, etc)

    Anyone noticing errors in what iv'e stated here may slap me!  Grin

    *slap*

  7. hmmm that image looks like they might be relabeled to me (the text looks too white, pin 1 orientation is not the same).  before this becomes an incident of some kind, and with you being so new to the forum, may i suggest that you send some samples to someone with a good reputation here (seppoman, nILS, Wilba...), who can verify the quality?  maybe 10 or so, to be paid for after testing, or returned...

×
×
  • Create New...