urban soul Posted June 16, 2008 Report Share Posted June 16, 2008 I need the opinion of some experienced developers...I have connected 64 LEDs to 8 74HC595 according to mbhp_doutx4.pdf.Observation:- Everything works fine - if I 'ping' (note on followed by note-off) each led. - However if leds are lit, leds 32...63 show random behaviour, even flickering occurs. In this case also leds 0...31 are triggered randomly. Design notes:- Did not use PCB, wired free- left away the two 100uF caps - LEDs have 1k resistors (instead of 220R)-------------I looked at the datasheet of the HC595 and saw that it operates quite at high frequencies (serial 100MHz typically). Therefore the 100uF may be important. (I'm on the way to buying them now). But I got a strange feeling that this is not all about it. I wonder if termination of the bus is required. Any help greatly appreciated.Urban Quote Link to comment Share on other sites More sharing options...
stryd_one Posted June 16, 2008 Report Share Posted June 16, 2008 Given that it's on a protoboard the bypass caps are probably more important than ever. Try it with those on, and maybe higher resistance... Quote Link to comment Share on other sites More sharing options...
cimo Posted June 16, 2008 Report Share Posted June 16, 2008 - left away the two 100uF caps- LEDs have 1k resistors (instead of 220R)-------------I looked at the datasheet of the HC595 and saw that it operates quite at high frequencies (serial 100MHz typically). Therefore the 100uF may be important.typo or you re using 100 uF caps? they should be 100 nF !Simone Quote Link to comment Share on other sites More sharing options...
urban soul Posted June 16, 2008 Author Report Share Posted June 16, 2008 typo or you re using 100 uF caps? they should be 100 nF !No, typo is on your side here... 4x 100nF I have soldiered, additional 100uF per DOUT PCP I left away. I'm on a standart PCB v.3 with PIC18F452, OS is MB64. Coming back soon with more test results, thx for the replies. Quote Link to comment Share on other sites More sharing options...
cimo Posted June 16, 2008 Report Share Posted June 16, 2008 Quote from: cimo on Today at 15:15typo or you re using 100 uF caps? they should be 100 nF !No, typo is on your side here... 4x 100nF I have soldiered, additional 100uF per DOUT PCP I left away. this is not a typo, this is a misunderstanding! from what you write i would double check the connection between the first DOUT4 and the second one, just for the sake of it.Simone Quote Link to comment Share on other sites More sharing options...
urban soul Posted June 16, 2008 Author Report Share Posted June 16, 2008 Now - I did additional testing and capacities seem to be very important for this chaining of serial ports. It is not only the bypass caps it is the connection from one serial out to the next serial in. I soldered the additional bypass caps but that didn't change too much. Then I checked the ground connection if each HC595 and that did improves some things. Still it is sort of unstable - when I touch certain points with my fingertips other LEDs are lit... Finally - after having a closer look at the design - it was pure nonsense to mount the HC's freely spaced somewhere on the front panel. Maybe it is best if I redo the whole DOUT stuff on a proper smashtv PCB. Thats because the frequencies involved are critical to wiring. Quote Link to comment Share on other sites More sharing options...
cimo Posted June 17, 2008 Report Share Posted June 17, 2008 Still it is sort of unstable - when I touch certain points with my fingertips other LEDs are lit... That sounds to me more of an unstable track/soldering than a static/grounding issue.Anyway Smashtv s boards are your best betSimone Quote Link to comment Share on other sites More sharing options...
Sasha Posted June 17, 2008 Report Share Posted June 17, 2008 I`m having bad time with my DOUTs too. It worked OK before with 1 or 2 modules but now, when I have 4.. same thing as urban_soul. I also have 100uF and 100nF capacitors even i never use it before for 1 module. Soldering seams OK. I tested each module with DOUT testing app and everything worked OK. I noticed that length of interconnection affect this issue before, so I keep the wires very short. I`m too pretty much sure it is some kind of ground problem or such as touching the PCBs with fingers stabilize it. DINs seams much more unforgiving in longer chains than AINs, even I would expect other way. What is left for me to try is to use bigger, 470uF instead of 100uF capacitor at input and see will it help. Quote Link to comment Share on other sites More sharing options...
urban soul Posted June 17, 2008 Author Report Share Posted June 17, 2008 @Sasha well I have no solution other than mounting all 16 HC595 on one single PCB in your case. In theory the digital clock signal looks like a pulse wave. A cable has a capacity and also a resistance and acts therefor as lowpass filter. Result: the edges of the clock signal are smeared. For the most important capacity the surface of the cable plays a major role. Ultrathin copper cables should be best suited. (0.1mm)You can determine the quality of the clock signal with an osci. Also in theory cable length of less than one meter should be non-critical. (Just a quick guess, I can do the math if you ask me) In practice every soldering point is disturbing too. If the HC595 does not terminate the clock signal correctly (this is very unlikely) reflexions may also occur. The longer the chain the more likely it is that an error in reading the clock signal occurs. When you touch certain points with your fingertips you change this very unstable reading state. Quote Link to comment Share on other sites More sharing options...
Sasha Posted June 17, 2008 Report Share Posted June 17, 2008 Strange is that not much people reported these kind of problems. I didn`t noticed it before as I never did big DOUT chains. I was also thinking about trying to use ferrite beads on interconnection cables as I was thinking it might picking the noise from outside. ::) Quote Link to comment Share on other sites More sharing options...
urban soul Posted June 17, 2008 Author Report Share Posted June 17, 2008 Probably not many people have more than 64 LEDs to control. I dont know.Also in my case I soldered one point in less than one second... bad habit. Quote Link to comment Share on other sites More sharing options...
doc Posted June 17, 2008 Report Share Posted June 17, 2008 Probably not many people have more than 64 LEDs to control. I dont know.Thats not true. Every LC uses the fullchain of 16 HC595.I once had a simular problem with flickering. I forgot one PIN 13 to ground on one or two registers. Doublecheck all connections.btw. It doesn't matter, if you "freewire" the DOUT chain. As long as the RC/SC/SO Lines are not too long (long= 50cm or more).Looking back in the troubleshooting section: 99% of all those problems were (are) bad wires or solders. greetsDoc Quote Link to comment Share on other sites More sharing options...
urban soul Posted June 17, 2008 Author Report Share Posted June 17, 2008 It doesn't matter, if you "freewire" the DOUT chain. As long as the RC/SC/SO Lines are not too long (long= 50cm or more).Thanks for that info. Would be nice. Most likely its bad soldiers. Have to look at it with an osci. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted June 17, 2008 Report Share Posted June 17, 2008 Edit: You just edited your post. Good idea. It'll be our little secret :) Quote Link to comment Share on other sites More sharing options...
cimo Posted June 17, 2008 Report Share Posted June 17, 2008 !!OFFTOPIC!!US i was reading your website, it seems interesting stuff, i also like the way you ve built it, getting really tired of fancy sites.I am going to redesign mine soon and i ll be probably inpired by yours.!!BACKTOTOPC!!There is some big project going on there i see, pictures are a bit blurred though. we love details here! ;)Looking back in the troubleshooting section: 99% of all those problems were (are) bad wires or solders. I would put this in flashing big letters under the MIDIBOX logo, for my own sake of course. Quote Link to comment Share on other sites More sharing options...
urban soul Posted June 18, 2008 Author Report Share Posted June 18, 2008 Edit: You just edited your post. Good idea. It'll be our little secret :)I didn't know that editing topics is forbidden in here. For the record - I asked doc kindly to give a referemce. There's no secret. I then decided to search the forum on my own. Is there anything wrong with it?@cimo: a can send you the script which turns LateX into a blog. Just send me a email. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted June 19, 2008 Report Share Posted June 19, 2008 hehehe, defensive much?Who said that editing is forbidden? I certainly didn't.What was wrong with it? You might say you "asked doc kindly to give a referemce", but when I read the post, it sounded more like you were challenging his qualification to give that advice, and rudely, not kindly. My initial reply was to post his postcount. Quote Link to comment Share on other sites More sharing options...
urban soul Posted June 20, 2008 Author Report Share Posted June 20, 2008 rudely ? No. plain wrong.bye Quote Link to comment Share on other sites More sharing options...
stryd_one Posted June 20, 2008 Report Share Posted June 20, 2008 Thanks for proving my point :) Quote Link to comment Share on other sites More sharing options...
urban soul Posted June 20, 2008 Author Report Share Posted June 20, 2008 Let forum member doc explain by himself if he feels offended by the sentense: 'May I ask you to give at least one reference' . (was up for about 30sec.) I have never seen a moderator getting into personal flams with newbies. Normally moderators are too busy. Nobody ask you to post OT nonsense like 'secrets' we share. Do you think this is the job of a moderator? If someone throws a stone I have to react. You are the aggressor here.Did I prove your pov again ? Not so difficult. It's a self fufilling prophecy. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted June 20, 2008 Report Share Posted June 20, 2008 Let forum member doc explain by himself if he feels offended by the sentense: 'May I ask you to give at least one reference' . (was up for about 30sec.) You sure those are the exact words? I think not. We could find out, but I think we all have better things to do with our time. Fact is, regardless of the words you used, I found it to be rude. Even still, it's not like I told you off or anything, so what's your beef?I know it was only up for like 30 seconds, it changed in the time it took me to copy and paste doc's user info from the left column, which is four clicks and a page load for me.I have never seen a moderator getting into personal flams with newbies. Normally moderators are too busy. I like to feed trolls, they make funny noises when they eat. I was the same before i was a mod and I'll be the same when TK sacks me :)Seriously though, what do you want me to do? To walk away without giving you the respect of a conversation is just rude. I like to think that you'll realise what a dork you're being, and get back on the midibox train :) If you just keep being a dork, that's when I'll slap you down and walk away.Nobody ask you to post OT nonsense like 'secrets' we share. Do you think this is the job of a moderator? If someone throws a stone I have to react. You are the aggressor here.OT nonsense? throwing stones? aggressor?Ah, that was a JOKE! See the smiley? Newsflash: that means I'm smiling! ;DYou need to take a chill pill dude. What you said was rude, but removing it was cool. I was being friendly and making light of the screwup you made. If you never make screwups... would you like to walk across the water and turns this water into wine for me? :D It's not whether a person screws up - How someone handles their screw-ups, is what makes the man. If your next post had been something like "that came out all wrong" we could have all had a laugh, but you're buggin.Is that the job of a moderator? I don't give a damn, I'm stryd_one; always, whether moderator or newb or in real life. I like to have fun, I like to joke around, and that's what I was doing. It's what I always do and I'm unlikely to stop any time soon. I also like to give people a fair go, and if they continue to be disrespectful I like to slap them down. But what you may not realise is that I'm not your usual form of moderator. I'm not the boss around here or anything, TK is. I'm just a moderator so I can keep the place tidy, and the reason it's me and not someone else is that I'm around a lot. I'm nothin' special, just a glorified janitor :) So even if I'm going to give someone a mouthful, my moderator status plays no part. That's just me, doing what I always do. I'll just diss you, and that doesn't need moderator rights.Did I prove your pov again ?Ahh, yeh you did. Chill out dude, you're in the wrong place for these vibes. Quote Link to comment Share on other sites More sharing options...
urban soul Posted June 20, 2008 Author Report Share Posted June 20, 2008 Ah, that was a JOKE!Arrrgh, your telling jokes that are most likely understood by people which got to know you better... That's rude, BTW :-) If I can laugh my ass off while reading your posts, we'll have a good time. You can be rude. Thats ok. As long as you stay funny. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted June 20, 2008 Report Share Posted June 20, 2008 Yeh, it's totally all my fault. Using one smiley, and assuming you weren't totally paranoid wasn't enough. I shoulda used three big grinning smileys and said "THIS IS A JOKE" with the marquee tag, and sent you a PM asking for your address so I could send you flowers with a note reminding you that I don't have beef with you.I'm sorry. Whatever was I thinking? ;D ;D ;D THIS IS SARCASMOh look you edited your post again. Arrrgh, your telling jokes that are most likely understood by people which got to know you better... That's rude, BTW :-) If I can laugh my ass off while reading your posts, we'll have a good time. You added:You can be rude. Thats ok.You want rude? I'll give you rude. You're a d*ck. F*ck off.Edit: just put *'s in those rude words. I dunno who's kids read these forums. Quote Link to comment Share on other sites More sharing options...
nILS Posted June 20, 2008 Report Share Posted June 20, 2008 Kids, keep it down a bit. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted June 20, 2008 Report Share Posted June 20, 2008 Bite me. ;D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.