Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/racerxdl/esp32-hub-panel

A ESP32 clock / display using 64x32 HUB75 panels.
https://github.com/racerxdl/esp32-hub-panel

arduino esp32 golang hub75 led led-panel

Last synced: about 2 months ago
JSON representation

A ESP32 clock / display using 64x32 HUB75 panels.

Awesome Lists containing this project

README

        

# ESP32 HUB Panel
A ESP32 clock / display using 64x32 HUB75 panels.

This is a very hacky code that will display a clock in two 64x32 HUB75 LED Matrix Panels arranged in a 64x64 matrix. It can also receive images through UDP.

If an image has not been sent to the panel in the last 5 seconds, it automatically switches back to clock mode.

The panel used in this project is this one [https://s.click.aliexpress.com/e/_AAr36k](https://s.click.aliexpress.com/e/_AAr36k) - But chinese led panel manufactures like to change the specifications of the panel, so if you are from the future, the panel might have changed and might need some tweaks.

Uses [https://github.com/pixelmatix/aurora](https://github.com/pixelmatix/aurora) effects for the background effect. The license and credits retained in the files I copied from the project ( `PatternMaze.h`, `PatternSnake.h`, `drawable.h`, `Effects.h` )

# Required Libraries

* https://github.com/adafruit/Adafruit-GFX-Library
* https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-I2S-DMA
* https://github.com/FastLED/FastLED

# Wiring

The LED panels are in daisy-chain mode (the output of the first one hooked up the input of the second one). And the first panel is connected to ESP32 by default through these pins:

|HUB75|ESP32 Pin|
|-|-|
|R1 | 14 |
|G1 | 15 |
|BL1 | 16 |
|R2 | 17 |
|G2 | 18 |
|BL2 | 19 |
|A | 21 |
|B | 22 |
|C | 23 |
|D | 25 |
|CLK | 2 |
|LAT | 27 |
|OE | 5 |

The pins can be changed in `ledcontroller.h` file.

# Clock Mode

![Clock Mode](clock.jpg)

# Image Mode

Use sendimage golang script:

```bash
cd sendimage
go build -o send
./send image.jpg HOSTNAME.local
```

![Image Mode](sendimage.jpg)

# Packet Format

The ESP32 listens on UDP port 1234 and expects the UDP Packet to contain one or more PanelPacket structs inside it. You can send as many PanelPacket structs inside a UDP packet and the ESP32 will process them sequentially. The only limitation is that the UDP packet cannot exceed the network MTU since it does not support packet fragmentation.

```c
struct PanelPacket {
uint16_t lineN; // Number of the line
uint16_t pixels[64]; // Line Content
};
```