You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this blog we will focus on how to make and code a 4x4 LED matrix using a shift register(SN7HC595N).
Materials Required
Shift register(SN7HC595N)
Jumper cables
Arduino board(I will be using Arduino UNO)
16 LED's
330 ohm's resistors x4
Soldering kit
Pcb plate
Solid wires
Circuit-
Place 16 LED'S in square such that anode of each LED are facing downwards and cathodes facing rightwards.
Connect all the cathodes of the LED in columns
Connect all the anodes of the LED'S in rows
Take output from each rows and columns,so at the end you will have 8 outputs from the4x4 matrix.
Precautions
Correct value of resistor is very important as the circuit won't work properly without it.
While soldering be very careful and make sure no row and column wires are touching each other.
Do not connect the circuit while arduino is on i.e-when arduino board is powered.
Individually check all the LED'S before connecting.
Circuit Diagram
Explanation
Arduino Uno
Shift Register
5v
-
SCLR,VCC
D11
-
SCLK
D12
-
RCLK
D10
-
Pin 14 (SER)
Important pins on the IC-
SER (Serial) where the data gets in;
SRCLK (Serial Clock) the pin you set to high to store what’s in SER;
RCLK (Register Clock) the pin you set to high once you’re done setting all the pins.
Shift register chip transforms bits that are inserted in series trough the data pin into 8 parallel bits,So if you want to send lets say 10010000 you start with the least significant bit (0) so you set SER to LOW (D10 on the Arduino). Next, you set SCK (D11 on the Arduino) to HIGH and then to LOW, to “save” the value.