Introduction: 4X4 LED MATRIX Using 74hc595 IC
In this blog we will focus on how to make and code a 4x4 LED matrix using a shift register(SN7HC595N).
- 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
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: 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.
Step 2: CIRCUIT DIAGRAM
Step 3: 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.
Step 4: CODE
download the code from the link given. link for the code
Step 5: Explanation
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.
Step 6: Things to Take Away
- By changing the code you can actually print different patterns and figures on a 4x4 matrix.
It can act as a low cost display for small projects.