Offline
Jr. Member
Karma: 1
Posts: 55
|
 |
« Reply #15 on: February 08, 2013, 02:24:38 pm » |
Then I will use your sequence, after all it looks like the best sequence out of the three i can choose. Thanks again!
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 1
Posts: 55
|
 |
« Reply #16 on: February 19, 2013, 11:23:28 am » |
So i got my cube working and all  . Only thing is that i still get a really faint flash on all leds (pretty hard to see because its maybe on for a millisecond or so). I tried lowering my pull down resistor to 3k but i still see the flashes. Maybe someone know why I still get flashes??
|
|
|
|
« Last Edit: February 19, 2013, 11:27:43 am by WonderTiger »
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 283
Posts: 15443
Measurement changes behavior
|
 |
« Reply #17 on: February 19, 2013, 07:07:59 pm » |
So i got my cube working and all  . Only thing is that i still get a really faint flash on all leds (pretty hard to see because its maybe on for a millisecond or so). I tried lowering my pull down resistor to 3k but i still see the flashes. Maybe someone know why I still get flashes?? I suspect it's the way you are managing the latching sequence Vs level enabling, but just a guess. You should enable a level only after all the shifting of data for that level is done and the latch set to output the value, only then should you enable that level for the time duration you have set for your scan timing, then disable that level, do the shifting/latching for the next level and then enable that next level. Lather, rinse, repeat. Lefty
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 1
Posts: 55
|
 |
« Reply #18 on: February 20, 2013, 07:01:26 am » |
The problem is not with latching data out, but the leds are flashing when i connect my arduino to my laptop via usb (so when the arduino gets powered up). So im already using a pull down resistor on the latch I get significant less flashing on powering up. However its not completely gone(like 1ms flash or so).
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 270
Posts: 17057
Available for Design & Build services
|
 |
« Reply #19 on: February 20, 2013, 09:36:52 am » |
Have you considered a pullup on the shift register's OE pin, and have your sketch pull it low when you're ready for output to begin showing up?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 1
Posts: 55
|
 |
« Reply #20 on: February 20, 2013, 10:23:28 am » |
Im going to try a 10k from OE to 5V and see if that works, ill report back!
Btw, i wrote a piece of code in the void setup to put all latches to low and shift out B00000 (each zero is a LED in off state) to all shift registers
|
|
|
|
« Last Edit: February 20, 2013, 10:28:23 am by WonderTiger »
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 1
Posts: 55
|
 |
« Reply #21 on: February 20, 2013, 11:06:44 am » |
So I tryed it on a single shift register but no luck, its still flashing when getting powered up. However when I put a 10k resistor on the latch to ground on a single shift register on my breadboard it won't flash at all, but on my cube with 6 registers it will flash when using a 10k pull down resistor.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 270
Posts: 17057
Available for Design & Build services
|
 |
« Reply #22 on: February 20, 2013, 06:27:10 pm » |
Well, 10K is only 0.5mA of pulldown - you could go stronger, like 1K for 5mA of pulldown. Arduino will drive it high okay.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 1
Posts: 55
|
 |
« Reply #23 on: February 21, 2013, 06:19:12 am » |
So I tried 1k, still some very faint flashes on powering up 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 1
Posts: 55
|
 |
« Reply #24 on: February 22, 2013, 12:13:57 pm » |
Got it fixed, I was so stupid to shift out B00001 instead of B00000 at the void setup(I shift out B00000 to clear out all the shift registers). So I got it fixed  !
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 270
Posts: 17057
Available for Design & Build services
|
 |
« Reply #25 on: February 22, 2013, 12:45:43 pm » |
Cool.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 1
Posts: 55
|
 |
« Reply #26 on: February 25, 2013, 02:36:06 pm » |
Ok...Another question. For now I have my Master Reset/Reclear tied to 5v. However I want to control the MR. Now is it right when I pull the MR to LOW that all the shift registers will be cleared, and the bytes that were in the shift registers are gone(even when I set it to HIGH again)?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Online
Brattain Member
Karma: 270
Posts: 17057
Available for Design & Build services
|
 |
« Reply #27 on: February 25, 2013, 07:10:48 pm » |
Ok, pull MR high with 10K resistor, have your sketch pull it low when you want to clear the input register. Outputs will go low on the next rising edge of the output register clock; See the final RCLK on the diagram on page 4.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 1
Posts: 55
|
 |
« Reply #28 on: February 26, 2013, 04:37:22 am » |
Thanks! Thats exactly what I was looking for. This is faster and easier then writing 0's to the shift registers.
|
|
|
|
|
Logged
|
|
|
|
|
|