Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/racerxdl/esp32-hub-panel
- Owner: racerxdl
- License: mit
- Created: 2021-11-15T23:48:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T23:28:09.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T15:48:27.943Z (6 months ago)
- Topics: arduino, esp32, golang, hub75, led, led-panel
- Language: C++
- Homepage:
- Size: 476 KB
- Stars: 29
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
};
```