I have been using Arduino for a short time now (3 months) so this is my second project (the other being a videogame in a box type thing). I do have coding experience in other languages but need some assistance with Arduino.
I am attempting to build a binary (BCD) clock using shift registers (If you don’t know what a binary clock is, read this: http://en.wikipedia.org/wiki/Binary_clock). I am using three shift registers, one for each set of digits (Hours, Minutes, Seconds), but I am having trouble operating them all at once.
I am currently testing with an Arduino Uno but will be switching to an Arduino Pro Mini for the final product.
The shift registers’ serial number: SN74HC595NE4 (datasheet: http://www.ti.com/lit/ds/symlink/sn74hc595.pdf)
It is the same as the one found in the “Serial to Parallel Shifting-Out with a 74HC595” tutorial but with 7 LEDs and with the three highest digits being in a separate row on the right. In an arrangement like this:
I’ve tested this setup with some other code (Counting from 0 to 255) and it worked just fine, so the problem must be in my coding.
All of the LEDs are turned off, but when the latch pin is removed, all of the LEDs come on, with the exception of one or two. The program seems to be doing something as it flickers off and back on at a consistent rate, and the LEDs that stay off seem to be following some pattern.
EDIT: I did not get any errors in the code which was odd, but I was able to deduce that there was in-fact, something wrong with it.
All help is extremely appreciated!