I’ve built my DOUT with the added ULN2003A’s as per the attached circuit pic. This is to eventually achieve an 8x8 rgb led matrix. Everything works fine as far as the DOUT is working 100%. What I’m stumped with is that there is nothing coming from the output pins of the darlingtons?? For example I place a multimeter across +5v input pin of the DOUT and pin 1 (input) of the darlington and it measures 5v - which is right. Now I measure across the matching output pin and the same +5 input of dout and it measures around -2v. The chips are working and bought new and both are doing the same thing across all outputs. I’ve been reading and checking against circuits all over the net and I’ve wired them the same as everyone else (except haven’t wired anything to pin 9 which it seems you dont have to);
I thought you had to feed -v into the darlingon in’s, but you feed in +v and it outputs -v. Still don’t really understand how that happens but there’s a lot of this going over my head - just glad it’s sorted though.
So when setting the DOUT pins 1-8 I do MIOS_DOUT_PinSet1(x) where x is 1-8 and I do this in the Init() function. Then you call MIOS_DOUT_PinSet on/off for the r/g/b pins. Awesome…get it now!
I thought you had to feed -v into the darlingon in’s, but you feed in +v and it outputs -v
Yeh that’s transistors for ya I wasn’t sure how darlingtons are configured so I didn’t pipe up, figured I’d leave it for the experts… But a quick google will explain the inversion thing for ya.
So when setting the DOUT pins 1-8 I do MIOS_DOUT_PinSet1(x) where x is 1-8 and I do this in the Init() function.
Well you need to do it repeatedly, one row at a time (Edit: SRSet), not in the init function, and it’s 0-7…
I’ve made up 2 8x8 RGB LED matrix boards using DOUTs (see attached circuit). When I connect a single matrix board to the core everything works 100% (for both of them). However when I chain both matrix boards together to the core, MIOS locks up on power up (and all LED’s light up full). Both matrix boards work 100% on their own, just when I try chaining them together the cores lockup. Seems like the circuit is getting overloaded or something?
My PSU is supplying more than enough current (over 5 amps). I’m wondering if the core circuitry can handle both matrix boards connected? Is the problem with the SR’s…do I need different SR’s…the ones I’m using are just the standard 74HC595 ?? I’m just lost at where to start trouble shooting - would really appreciate if anyone can shed some light.
So it works fine if only one colour column is connected at bootup, and after boot it works totally OK? Seems like it does something in the init functions that kills it?
Whenever more than a constant number of SR outs are driving the annodes the core craps itself. It doesnt matter which SR pins, just over a certain amount of pins activated on both DOUT’s will lock it up…must be a current/supply issue. I was reading Ralf’s great doco here http://www.suckow.de/ralf/ledmatrix4x20/ on his matrix circuit and he mentions he used 74HCT595N instead of the standard 74HC595 because they support a greater current. I’ve searched Farnell and others for 74HCT595N but nobody sells them??
yeah thats what i thought too…but I dont understand enough about it.
Could it just be a logistical thing whereby chaining the 2 matrix boards causes the total circuit to be physically too long/large for MIOS to scan? The longest cable from DOUT to LED group might be almost 2ft..?
I scrolled up to read the post about your PSU, and I couldn’t find it… Then I thought maybe you’d deleted it or something, but I couldn’t find my own posts either, so I went to your recent posts page and noticed you’d been crossposting. Please don’t do that!
Don’t sweat it, fortunately it all strung together well when merged - often they are all out of sequence and it makes for a really difficult read… and lots of edits required by a certain cranky janitor
bugfight - thanks for the response and question - I omitted them because the LED’s were too dim with them (I tested with ~30k on red, ~25k on green, ~20k on red )…I thought this was strange but never asked anyone about it - just left all resistors out - all seems very nice and normal without them until now. Do you think this could be the cause?
I think my problem is my ULN’s are hooked up through the CORE>DOUT power chain. Shouldn’t I be hooking up the ULN GND/COM to the power supply GND/+5V ?
I’ll draw up a rough diagram tomorrow morning and attach it…might explain things easier.
Heh, it’s probably the resistors. I’m sorry I figured you just left them out of that pic for illustrative purposes. You do need them… How did you calculate those values you tested with? They seem verrry high…
yes you need the resisters but they do need to be lower in value because the darlington has a fairly high voltage drop, so you only have somewhere near ~3.5 V instead of 5v (iirc).
it may well be that if your leds are not efficient enough you will need better leds or source supplies for each source pin as well (udnxxxx whatever it was).
each pin of the 595 can easily supply 25mA or so for a high power led, but the total power with all 8 on at once is too high for the power rating of the 595. i planned on ~12mA max per pin. if you have the datasheet for your leds, you can calc r as:
R = (5 - Vuln - Vled) / Iled
where:
Iled is target current in Ampere
Vled is the voltage drop of the led at Iled
Vuln is the voltage drop of the ulnxxxx
(this needs to be adjusted a bit if the timing characteristics of the leds cause them to dim when pulsed)
i made some guestimates to arrive at 150r (since i got my leds surplus), which does seem a bit dim thru the sparkfun buttons.
What I dont understand though, is that I can have all pins active on a single DOUT (ie all annodes lighting up all LED’s) and the dout/core handles fine. It’s only when I chain the 2 douts from the core that it cant manage. The DOUT’s themselves seem to be handling fine driving all LED’s on at once and it’s nice and bright.
I guess what you’re saying is if in order to chain the 2 DOUT’s I’ve gotta get all the currents correct and may have to use the resistors because of the greater load the 2nd set of SR’s introduce to the core?
The other thing I’m not sure about is with the darlingtons - I have only connected the GND to the DOUT GND. There is nothing connected to the COM pins on the darlingtons. Should I be connecting the COM pins on the darlington to +5v from my power supply? I guess that also means I should connect the GND pins on the darlington to the GND on my power supply?