I want to make a dazzling LED animation with 15 LEDs. It is not working when I start the simulation. The LEDs are not glowing. Could you help me solve this problem?
seqNorm[] has 15 items (thus, the index goes from 0 to 14) while seqRev[] has 14 so you can't do that for() starting with 14.
Either add an item to seqRev[] (I suppose it's the 0), or change the for() to start from 13.
You could of course be right but I was hoping to see the schematic before indulging in too much speculation about the behaviour of the chip this program is going to be talking to.
shows the three signals that count, /OE doesn't enter into it at all. so I like @build_1971 want to know what shiftOut function @emir38501 is using, and where the code came from as well as the actual part that is attached.
Out over the end of my surfboard again, sry.
From the wokwi documentation for the 74595 shift register:
Ah yes, a 74595 shift register. That is certainly a possibility.
However, in the admittedly unlikely case that he has picked a CD4094 shift register, then the LOW and HIGH (there is called a strobe) would be reversed. However, I'd be surprised if TinkerCad even had such an ancient relic in their device palette. I've found a use for them driving Vacuum Fluorescent displays because you can coax up to 20 volts out of them.
You do need to call OE to be set LOW if its not externally tied LOW ; The 595 wont outout anything if this isnt kept LOW, I assume OE is connected to the arduino @emir38501 is using, Another option is just tie it direclty to ground
Do you have pin 10 of the 595 tied to 5V , This is reset and needs to be held high for the 595 to function.
This is the function shiftout calls and as above it expects a byte/bit pattern such as
No, no it is not. Now the responses do all add up to enough information for you to solve the problem.
If you want our my help, I'll need you to
post the code you are using
post a schematic diagram of your circuit
supply a detailed description of the problem
by which I mean not "it doesn't work", but what it is doing that it should not, or not doing that it should. I don't actually recall you ever saying what it it is supposed to do, so you might. I can infer your goal from the code even in its current condition, but let's just be sure.
As you work, if any of those three things change, and you want more help, post them again. The entire altered sketch and/or the new wiring arrangement and/or the description of the new problem.
Imagine that we'd like to be in the room with you. You are our eyes and ears.
I see some hope that, incrementally, we are going to be able to reverse engineer a schematic diagram out of the titbits of information which are gradually revealed in this thread.