Arduino Nano 33 IoT - 74HC595 4-Digit 7-Segment Display
Discover how to drive a 4-digit 7-segment display with a 74HC595 shift register using the Arduino Nano 33 IoT. The Nano 33 IoT runs a SAMD21 Cortex-M0+ processor at 48 MHz, includes built-in Wi-Fi and Bluetooth Low Energy, and operates at 3.3V logic. Despite all that, it keeps the same compact Nano footprint.
Along the way, you will discover:
- How to connect the 74HC595 display module to the Nano 33 IoT.
- How to display integers, floats, and text.
- How to show temperature with a degree symbol.
- How to present time in HH.MM format with a blinking separator.

Hardware Preparation
Or you can buy the following kits:
| 1 | × | DIYables Sensor Kit (18 sensors/displays) |
Additionally, some of these links are for products from our own brand, DIYables .
Introducing the 74HC595 4-Digit 7-Segment Display
This module puts four 7-segment digits behind a 74HC595 shift register so you only need 3 data pins. The shift register accepts serial data and converts it to parallel segment outputs. The library multiplexes through each digit rapidly, making all four appear lit at the same time.
| Function | Pin | Description |
|---|---|---|
| SCLK (SH_CP) | Serial Clock | Clocks data into the shift register |
| RCLK (ST_CP) | Register Clock | Latches data to the output pins |
| DIO (DS) | Data Input | Serial data line |
| VCC | Power | 3.3V or 5V |
| GND | Ground | Common ground |
Note: The Nano 33 IoT uses 3.3V logic. The 74HC595 module works fine at 3.3V.
Wiring Diagram
Connect the display module to the Nano 33 IoT:
- SCLK to D7
- RCLK to D6
- DIO to D5
- VCC to 3.3V
- GND to GND

This image is created using Fritzing. Click to enlarge image
If you do not use a breadboard, wire it like this:

This image is created using Fritzing. Click to enlarge image
For a project that lasts, screw terminals hold the wires better than jumper wires. You can plug the Arduino Nano 33 IoT into a Screw Terminal Expansion Board for Arduino Nano and connect the wires to its screw terminals. The wiring stays the same. Only the wires now go to the screw terminals, as shown below.

This image is created using Fritzing. Click to enlarge image
Preparing the Library
- Connect the Arduino Nano 33 IoT to your computer using a Micro-B USB cable.
- In Arduino IDE, choose Arduino NANO 33 IoT as the board and select the correct port.
- Open the Libraries panel from the left sidebar.
- Search for "DIYables_4Digit7Segment_74HC595" and locate the one published by DIYables.
- Press Install to add it. Select version 2.0.0 or later.

No additional dependencies needed - everything is bundled in.
Core Sketch
The core structure that every DIYables_4Digit7Segment_74HC595 sketch builds on:
Initialize with begin(), set the value with print(), and keep display.loop() running. The multiplexing is handled internally. For waits, use display.delay() instead of delay().
Discover - Display Integers
Displays a series of integers and demonstrates zero-padding.
Give It a Try
- Wire the display to the Nano 33 IoT as shown above.
- Connect the Nano 33 IoT to your computer with a Micro-B USB cable.
- In Arduino IDE, select the board and port, paste the code, and press Upload.
- Open the Serial Monitor to see what happens.
The display runs through 0, 42, 1234, -5, -123, 9999, then 0042 (zero-padded).
API Essentials
| Method | Role | Usage Example |
|---|---|---|
| print(int) | Display an integer | display.print(1234) |
| print(int, true) | Integer with leading zeros | display.print(42, true) |
| loop() | Keep display refreshed | display.loop() |
Discover - Display Floats
Shows floats with auto and fixed decimal places.
Give It a Try
- Upload the sketch and open the Serial Monitor.
Cycles through auto-decimal floats, then 1 and 2 fixed decimal places, and zero-padded output.
Discover - Text and Temperature
Displays text strings, degree symbols, and temperature readings.
Give It a Try
- Upload the sketch and open the Serial Monitor.
Shows "HELP", "Hi", "COOL", "done", then temperatures and inline dots.
Discover - Time Display
Clock-style HH.MM with a blinking separator dot.
Give It a Try
- Upload the sketch and open the Serial Monitor.
Displays 12.30 with the dot blinking every half second.
Discover - Blink
Blinks integers, floats, and text.
Give It a Try
- Upload the sketch and open the Serial Monitor.
Blinks 1234, then 12.34, then "HELP" - five blinks each.
Troubleshoot
- Display stays blank -- Check VCC and GND wiring. Verify SCLK, RCLK, DIO match your code. Confirm begin() and display.loop() are in place.
- Wrong characters -- Default is common anode. For common cathode, use DIYables_4Digit7Segment_74HC595 display(7, 6, 5, false).
- Flickering -- Replace any delay() calls with display.delay().
- Board not recognized -- Make sure you have the Arduino SAMD Boards core installed via the Boards Manager.
Platform Support
Built on Arduino standard APIs - runs on every Arduino-compatible platform (architectures=*).