# Arduino Coding Question: How do I blink one LED 8 times and then another LED 8 times then repeat?

I'm using two 4017 decade counters to count to 16 and I figure two Arduino outputs would be a good way to go. I want one 4017 to receive 9 pulses then and then wait while the other 4017 receives 9 pulses. (one pulse is a holding position)

For the moment I'm just trying to blink one LED 9 times and then another 9 times to represent two separate clock outputs. Here is a diagram:

pin 13    1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1,
pin 12    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0,
Start      ------------------------------------------------------------------------------------------------------------ then loop.

This is for multiplexing a 16x16 led screen so I don't think I should use the  delay(1000);  command.

Each counter needs 9 pulses with the last pulse to the first counter happening simultaneously with the first pulse to the second counter. And similarly the first counter getting its first pulse at the same time as the second counter gets its 9th pulse. Get it?

vishalapr3 years ago
If you need some basic help you can go to the arduino website's forums and if its really basic then you can learn on the arduino website itself!

Arduino website help :
http://arduino.cc/en/Tutorial/HomePage
and
http://arduino.cc/en/Reference/HomePage

Arduino Forum : http://arduino.cc/forum/
seandogue4 years ago
(removed by author or community request)
4 years ago
(removed by author or community request)
snotty (author)  seandogue4 years ago
Right on, thanks!

Also I can't program at all. Can you recommend some online primers that would help me understand your answer more clearly?
4 years ago
(removed by author or community request)
snotty (author)  seandogue4 years ago
Yikes, get some sleep.
4 years ago
(removed by author or community request)
snotty (author)  seandogue4 years ago
:)