Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Components and supplies

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide
Arduino Nano R3
×1
Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide
Texas Instruments Shift Register- Serial to Parallel
74HC595
×4
Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide
Solderless Breadboard Full Size
×1
Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide
LED (generic)
Depends on your preference.
×1
Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide
Resistor 100 ohm
Depends on the LEDs.
×1
Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide
Jumper wires (generic)
A lot.
×1

Apps and online services

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide
Arduino IDE

About this project

This is a step-by-step guide that I have created for beginners and arduiNOOBS like me.

In this tutorial, we would be discussing some pretty basic knowledge about the 8-bit shift register called 74HC595.

Learn how to daisy-chain them together and use some codes from an HC595 Library.

Also, I encountered a problem with some of the shift registers. I don't know why. Was it because of lack of power?

******************************************************************************

NECESSARY LINKS:

HC595 Library - https://github.com/j-bellavance/HC595

Datasheet - http://www.ti.com/document-viewer/SN74HC595/datasheet/specifications#SCLS0419845

More Information: https://rastating.github.io/using-a-74hc595-shift-register-with-an-arduino-uno/

For Loop Iteration: https://www.arduino.cc/en/Tutorial/ForLoopIteration

******************************************************************************

Social Media Links To Follow (I mean, if you want to):

Facebook - https://fb.me/HeathenHacks

Twitter - https://twitter.com/HeathenHacks

Instagram - https://instagr.am/HeathenHacks

******************************************************************************

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Code

  • Edited Sample Code From The HC595 Library.
Edited Sample Code From The HC595 Library.Arduino
#include <HC595.h>

const int chipCount = 2;  // Number of serialy connected 74HC595 (8 maximum)
const int latchPin = 4;  // Pin ST_CP (12) of the 74HC595
const int clockPin = 3;  // Pin SH_CP (11) of the 74HC595
const int dataPin = 2;   // Pin DS (14) of the 74HC595

//Constructor
HC595 ledArray(chipCount,latchPin,clockPin,dataPin);

int delayMs = 30;
int lastPin = ledArray.lastPin();

void setup() {
  ledArray.reset();
}

void loop() {
  for (int i = 0 ; i <= lastPin ; i++) {
    ledArray.setPin(i, ON);
    delay(delayMs);
  }
  for (int i = lastPin ; i >= 0 ; i--) {
    ledArray.setPin(i, OFF);
    delay(delayMs);
  }
  for (int i = lastPin ; i >= 0 ; i--) {
    ledArray.setPin(i, TOGGLE);
    delay(delayMs);
  }
  for (int i = 0 ; i <= lastPin ; i++) {
    ledArray.setPin(i, TOGGLE);
    delay(delayMs);
  }
}
HC595 Library by Mr. J. Bellavance
https://github.com/j-bellavance/HC595

Schematics

Controlling 32 LEDs with Arduino Nano and 4x 74HC595 Shift Registers – A Beginner’s Guide

Manufacturing process

  1. DHT11 Temperature & Humidity Sensor Project with LED Indicators and Piezo Speaker
  2. Control LEDs with Alexa via Raspberry Pi – Easy Step‑by‑Step Guide
  3. Build an Arduino Iron Man: Components, Sensors, and Step‑by‑Step Guide
  4. Find Me: Smart Item Locator with Arduino and Bluetooth
  5. DIY Arduino Humidifier Controller with Relay – Safe High‑Voltage Setup
  6. Build a Custom Arduino Joystick Steering Wheel for Gaming
  7. Arduino 101: Build a Pedometer with DHT11 Sensor & LCD Display
  8. Build an Arduino RGB Color Mixer – Step‑by‑Step Tutorial
  9. PhoneLocator: Securely Locate Your Phone Anywhere
  10. DIY Arduino Snowflake: 30‑LED LED Display Project