
HUB75 RGB Matrix Library for Proteus Simulation

Hello friends, I hope you all are doing great. Today, I am going to share the new HUB75 RGB Matrix Library for Proteus Simulation. HUB75 panels are the colour LED tiles of video walls, scoreboards, bus-stop screens and LED art: this one has 2,048 RGB LEDs in 64 columns and 32 rows at a 4 mm pitch. With this library you can run a full Proteus simulation of such a panel - its six colour inputs, its row pairs, its latch and the scan that keeps it alight - and find out what it really takes to drive one from an Arduino.
HUB75 RGB Matrix Library for Proteus
Latest version: V1.0 (November 2026, this tutorial)
Helping Tools
- Serial Monitor Advance: a serial terminal window for the UART of your board
- Serial Monitor Expert: the serial monitor with extra debugging tools
- LCD Library for Proteus V3.0: 16x2, 20x4 and I2C LCDs to show your readings
The panel lights up on the sheet as your sketch scans it, and a pop-up shows the picture, the refresh rate and the latches. The demo is a colour sign: an Arduino scans the panel from a timer interrupt and shows a rainbow title, a white line of text, a scrolling message and a moving colour bar.
NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the LED matrix board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the HUB75 RGB Matrix Library for Proteus Simulation:
What Is a HUB75 RGB Panel?
HUB75 is the name of the 16-pin connector these panels share, and by now of the whole family. A panel is a grid of RGB LEDs with shift registers for the columns, row drivers and two connectors - IN from the controller and OUT to the next panel. Our panel is a P4: 64 x 32 LEDs, 4 mm apart, about 256 x 128 mm. Like the single-colour P10, it holds no picture: the controller has to scan it all the time, row after row.
| HUB75 64 x 32 RGB panel (P4) | |
|---|---|
| LEDs | 2,048 RGB, 64 columns x 32 rows, 4 mm pitch |
| Size | about 256 x 128 mm, chainable |
| Interface | HUB75: R1 G1 B1, R2 G2 B2, A - D, CLK, LAT, OE |
| Scan | 1/16: one row pair lit at a time |
| Supply | 5 V, up to about 4 A with every LED white |
| Uses | video walls, scoreboards, signs, LED art |
Two Halves, Six Colour Lines
The panel is split into a top half (rows 1 - 16) and a bottom half (rows 17 - 32), driven at the same time. R1, G1 and B1 carry the colours for the top half, R2, G2 and B2 for the bottom half. A, B, C and D pick one of 16 row pairs: row n of the top half and row n + 16 of the bottom half. So the controller shows two rows at once, 16 times per frame - a 1/16 scan.
Loading One Row Pair
For each row pair the controller puts six bits on the colour lines and pulses CLK, 64 times - one column at a time, x = 0 first, because the first bit clocked in ends at the left edge seen from the front. A pulse on LAT copies the new columns to the LED drivers. Then the controller blanks the LEDs with OE (active low), changes A - D to the new pair and lights it again. The data is active high: 1 turns a colour on. Each LED's red, green and blue are simply on or off, which gives 8 colours; shades need fast PWM on top of the scan.
The Speed Problem
That is 384 bits per row pair and 6,144 per frame, and the whole panel should be refreshed more than about 100 times a second. With digitalWrite() an Arduino UNO falls far short of that - even our first version of the demo, which already wrote each colour line through a port pointer, reached only 41 Hz in the simulation and flickered. The answer is direct port writes: the six colour lines are wired to six bits of one port, so a single write sets a whole column. Our simulation measures the refresh rate, so you see at once whether your scan is fast enough.
Features of the HUB75 RGB Matrix Library for Proteus Simulation
- A real-looking panel: the black P4 panel with its 2,048 RGB LEDs, drawn compact so that the 256 mm panel stays smaller than the Arduino on the sheet.
- The LEDs on the sheet: they light in 8 colours as your sketch scans them; a panel that is not scanned goes dark.
- The real interface: six 64-bit colour chains on CLK, the latch on LAT, 16 row pairs on A - D, OE active low, the data active high.
- Real faults: a dark panel without a scan, a mirrored picture with the wrong bit order, rows in the wrong places, flicker below 100 Hz.
- A pop-up: the panel as it looks, eight tiles - the refresh, OE time, LEDs lit, current, latches, clocks a latch, the row pair and the row changes - graphs, an event log and a check page.
- A complete package: about 1.4 MB with the library, our Arduino UNO V4.0 and the demo, without the source code of the model.
The HUB75 Panel in Proteus
The device is HUB75P4TEP in TEPHUB75.LIB, under Optoelectronics > LED Matrix, with the prefix U and the model TEPHUB75.DLL. Search HUB75 or RGB matrix in Pick Devices. The connector is drawn as pins on two edges: VCC, GND, R1, G1, B1, R2, G2 and B2 on the left, A, B, C, D, CLK, LAT and OE at the bottom. It has no properties: it shows whatever your sketch scans into it.
Download HUB75 RGB Matrix Library for Proteus Simulation
Click the button below to download HUB75-RGB-Matrix-Library-for-Proteus-v1.0.zip (about 1.4 MB, without the source code of the models):
HUB75 RGB Matrix Library for Proteus V1.0- README.txt: installation, the demo, the wiring, troubleshooting and the limits of the simulation.
- Proteus Library Files:
TEPHUB75.LIBandArduinoV4TEP.LIB. - Proteus Model Files:
TEPHUB75.DLLandTEPARDUINO.DLL. - Arduino Code: the demo sketch (no panel library).
- Proteus Simulation: the demo project, its HEX file and copies of the DLLs.
No Proteus yet? Read How to Download and Install Proteus 7 and 8. New to libraries? Follow How to Install a New Library in Proteus.
How to Install HUB75 RGB Matrix Library for Proteus Simulation
- Close Proteus and extract the whole zip file, for example to your Desktop.
- Copy the files from Proteus Library Files into the LIBRARY folder of Proteus.
- Copy the files from Proteus Model Files into the MODELS folder.
- Delete
TEPHUB75.IDXfrom the LIBRARY folder if it is there. - Start Proteus, press P and search for HUB75.
Proteus Simulation of a Colour Sign
Our demo is a colour sign. U1 is the HUB75 panel. R1, G1, B1, R2, G2 and B2 go to D2 - D7 of our Arduino UNO Library for Proteus V4.0, A - D to A0 - A3, CLK to D8, OE to D9 and LAT to D10; VCC and GND to the supply. The Arduino's built-in monitor is the same window as our TEP Serial Monitor Advance for Proteus. Open HUB75-Sign-ArduinoUnoV4.pdsprj.
The Sketch
The sketch needs no panel library. The picture is a 1 KB buffer: one byte for each column of each row pair, with bits 0 - 2 for the top row's red, green and blue and bits 3 - 5 for the bottom row. Setting a pixel only changes its three bits:
fb[y & 15][x] = (fb[y & 15][x] & ~(7 << shift)) | (colour << shift);
A Timer1 interrupt does the scanning, one row pair every 0.5 ms. Because D2 - D7 are bits 2 - 7 of one port, a single write puts a whole column on the six colour lines, and a short pulse on CLK clocks it in:
PORTD = keep | (line[x] << 2);
PORTB |= _BV(0); PORTB &= ~_BV(0); // CLK (D8 = PB0): one rising edge a column
After the 64 columns it blanks the LEDs, latches the new row, selects the row pair on A - D and lights it again:
PORTB |= _BV(1); // OE (D9 = PB1) high: blank while the outputs change
PORTB |= _BV(2); PORTB &= ~_BV(2); // LAT (D10 = PB2): latch the new columns
PORTC = (PORTC & 0xF0) | r; // A - D (A0 - A3 = PORTC bits 0 - 3): rows r and r + 16
PORTB &= ~_BV(1); // OE low: light them
Timer1 runs in CTC mode. With the UNO's clock, a prescaler of 8 and OCR1A = 999 give 0.5 ms, so all 16 row pairs come round every 8 ms - 125 times a second:
TCCR1A = 0; TCCR1B = _BV(WGM12) | _BV(CS11); OCR1A = 999; TIMSK1 = _BV(OCIE1A);
loop() only draws into the buffer: the title "HUB75" in rainbow colours and "64X32 RGB" in white once in setup(), the message in cyan and magenta moved one column every 50 ms, and a colour bar that shifts its colours every 100 ms.
HUB75 Simulation Results
Open the project and press Run. The demo runs 9.0 simulated seconds and took about two and a half minutes on our PC with the pop-up open and the pictures being taken. Click the panel for its pop-up. Every number below comes from one simulation run, the demo exactly as it ships.
The Sign Lights Up
The panel is dark until the timer interrupt starts scanning it. 104 ms after the start the Event log notes "scanning", and from 1 s on the pop-up shows a steady 125 Hz. The sign appears all at once: "HUB75" with each letter in its own colour - red, yellow, green, cyan, blue - "64X32 RGB" in white below it, the message entering from the right in cyan and magenta, and the colour bar along the bottom. 506 LEDs are lit at 1 s.
The Scan in Numbers
The tiles follow the scan. Every latch comes after 64 clocks - one 64-wide panel - and the row pair tile runs through 0 to 15, row n of the top half together with row n + 16 of the bottom half. OE is on practically all of the time: the interrupt blanks it only around the latch and the change of A - D. The LEDs lit change with the message and the bar - 599 at 3 s and 632 at 4.5 s - and with them the current estimate, between 0.64 and 0.81 A. On the sheet the panel shows the same picture, crisp, because the model draws each row pair as it was last scanned, the way a camera sees a real panel.
The Message Scrolls
The message moves one column every 50 ms and the colour bar shifts its colours every 100 ms, while the interrupt keeps scanning underneath. The monitor prints every two seconds: "Row scans so far" 3999, 7999, 11998 and 15998 - exactly 2,000 row pairs a second - and "message at" 25, -15, -55 and -95, forty columns each time. In our pictures "THE ENGINEERING" slides through the bottom half. By 9.0 s the panel has seen 17,846 latches, none of them odd.
The Graphs, the Event Log and the Check Page
The Graphs page plots the refresh rate, the LEDs lit, the OE time and the current over the run. The Event log keeps the power-on and the moment the scan began. The Check page sums up the run: +5V at 5.00 V with the current estimate, the scan at 125 Hz (steady), 17,846 latches each after 64 clocks with no odd latch, the row pairs cycling on A - D, and OE on with the LEDs lit. Every line is green.
The monitor shows the sketch's side: the row scans so far and where the message is.
A HUB75 Panel, a P10 or NeoPixels?
Our P10 LED Panel Library for Proteus is the single-colour cousin: 32 x 16 red LEDs, a 1/4 scan and a single data line - much easier on the controller and perfect for text signs. Our WS2812B NeoPixel Library for Proteus covers addressable RGB LEDs that keep their own colour, so the Arduino only sends a picture when it changes. A HUB75 panel gives the most colour LEDs for the money, but it needs a controller that never stops scanning, fast - exactly what you can try here first.
Try It Yourself
- Replace the port writes in the interrupt with digitalWrite() calls: the refresh in the pop-up drops far below 100 Hz and the check page warns about flicker.
- Send the columns from x = 63 down to 0: the whole sign is mirrored.
- Change OCR1A from 999 to 3999 (2 ms a row pair): the refresh falls to about 31 Hz.
- Leave out the OE blanking around the latch: on a real panel the old row ghosts into the next one.
- Change the message's colours from CYAN and MAGENTA to YELLOW and BLUE in loop() - YELLOW is just red and green together.
Ideas to Extend the Demo
- A scoreboard with two big numbers in different colours.
- A clock with a coloured second bar along the bottom.
- A simple game of life with each generation in a new colour.
Your Own Sketches
The demo sketch is in the zip file, and you can change it in the Arduino IDE. New to Arduino? Start with our Arduino Tutorial for Beginners. Export the compiled binary, and set the UNO's PROGRAM property to the new file. Our guide on How to get the HEX file from Arduino shows you where the file ends up.
Things to Know Before Using a Real HUB75 Panel
- Power: feed the panel from its own 5 V supply of up to 4 A; join its GND to the Arduino's GND.
- Keep scanning: the panel shows only the row pair being driven, so the scan must never stop.
- Speed and memory: an UNO can just scan one 64 x 32 panel in 8 colours; shades or bigger walls need a faster board.
- Variants: 64 x 64 panels are 1/32 scan with an E line; some panels need other driver chips' start-up codes.
- Wiring: keep the flat cable short; long cables need buffers.
Troubleshooting
- The panel stays dark: the interrupt is not running, OE is held high, or there is no supply.
- The picture is mirrored: send x = 0 first after each latch.
- Rows in the wrong places: A - D must select row n of the top half and n + 16 of the bottom half.
- Flicker: the refresh in the pop-up is below 100 Hz - use direct port writes in the interrupt.
- The part is not simulated:
TEPHUB75.DLLis missing from MODELS and from the project folder.
Limitations of the Simulation
- The six 64-bit colour chains, the latch, the 16 row pairs, OE active low, the active-high data and the scan rate follow the HUB75 panel's description; the panel is our own drawing.
- Our own choices: the compact drawing, each row pair shown as it was last scanned, and the current estimate.
- Not modelled: chained panels, 1/32-scan panels with an E line, shades from binary-coded modulation and the drivers' timing limits.
- Arduino is a name of Arduino; this library is not made or endorsed by Arduino or Labcenter.
- Tested in Proteus 8.5 in November 2026 (the demo as shipped). Proteus 7 is not supported.
So, that was all about the HUB75 RGB Matrix Library for Proteus Simulation. I hope it helps you get your scan fast, your colours right and your rows in order before the first panel arrives - so that your sign glows in the simulation before it glows on the wall. If you have any questions, ask in the comments and I will help you out. Till the next tutorial, take care and have fun!






















Comments
0