I am using shift register ST M74HCT164B1. It is 8 bit serial-to-parallel shift register. I connected it to 7 segment display. It works, except output is around 2.5V. So the LCD color is orange instead of yellow. I checked LCD - if i give it 4.8V it works OK.
I connected as follows:
1: VCC
2: data
3-6 output
7: ground
8: clock
9: VCC
10-13: output
14: VCC
Do you have current-limiting resistors on the 7-segment display? You didn't post a datasheet, but many shift registers and similar ICs have a fairly limited capability to supply current. As a result, the voltage output could drop significantly with current load.
I just check this chip - M74HCT164B1 and download the datasheet. shiftOut() will work but, that chip don't have a latch and need to clear / reset the internal Flip Flop before this chip work properly. It mean after a shiftOut() is being complete, the output from D7 to D0 will be all 1 or 0. Not like 10011001 for example, but more like 00000000 or 11111111. In my opinion. You need the 74HC595. It does have a latch and the example code use a digital pin to use that latch so the bits stay there.
About the so call "display"... no datasheet...no picture of the so-call "display"... it will be hard to help... sorry
What is that ? Is it the chip pinout ? Let assume it is... Almost correct connection...except pin 9. That pin goe to RESET of the Arduino. A reset / clear will "set" the Flip-Flops at start-up. I mean when the Arduino is being power up.
And don't forget the limiting resistors. A value of 470 ohms should be fine. It will be a bit dim, but it will work. Ig you want REALLY bright... use a transistor circuit for each segments or ULN2804 driver
. It mean after a shiftOut() is being complete, the output from D7 to D0 will be all 1 or 0. Not like 10011001 for example, but more like 00000000 or 11111111
No that is not correct, you will still get the bit pattern produced correctly. But when shifting out a bit pattern the outputs will briefly have false states on them as the pattern is shifted past each output.
No that is not correct, you will still get the bit pattern produced correctly. But when shifting out a bit pattern the outputs will briefly have false states on them as the pattern is shifted past each output
Sorry about that. Thanks for clear that out. By thinking about it, it make sense now. Sorry Grumpy_Mike