An Arduino LED marquee splits messages to get past a 32-byte I2C buffer

Arduino, LED marquee, I2C

This is the read-only HTML version. For the full Visual Space experience, open the app.

Arduino, LED matrix — Images

Arduino, LED matrix — Images
Arduino, LED matrix — Images
Arduino, LED matrix — Images

Source: Internet controllable LED message marquee on Hackaday.io · Xylitol

Message framing, web control

A mining-rig status display became a web-controlled sign after friends asked for an easier interface. Xylitol’s 2017 build pairs two Arduino Unos with Ethernet—and uses a small message-framing scheme to carry scrolling text between them.

🎉 1

A scrolling sign needs surprisingly little information, but even a short sentence can outgrow a microcontroller library’s transfer buffer. Xylitol’s Internet controllable LED message marquee on Hackaday.io started as an information display for a mining rig, then gained a web controller after friends asked for something easier to use. Its most useful detail is the bridge between those two jobs: fetching text from the internet and handing a complete message to the display controller.

The project dates to September 2017. Its parts list calls for two Arduino Unos, a W5500 Ethernet shield and an HLVLED-F3.75R-16S LED matrix, listed as a 64×16 module. The published design supports scrolling messages of up to 59 characters, with letters, digits and a selection of punctuation.

A complete message takes more than one transfer

The two-Arduino arrangement gives the project an internal handoff: one board supplies the message, and the receiving board assembles it for display. That handoff became a problem when Xylitol encountered the Arduino I2C library’s 32-byte transfer buffer.

In the September 10 debugging log, Xylitol describes considering larger buffers in twi.h and Wire.h, then rejecting that approach because of SRAM pressure and freezing concerns. This is a library-buffer constraint, not a general rule that I2C messages must stop at 32 bytes.

The implemented workaround was to split the text into two transfers. The receiver keeps assembling the pieces until it encounters a ^ delimiter marking the end of the command. Xylitol first worked through the logic on two separate test Arduinos before moving it into the marquee code.

That change also addressed shorter messages. The revised code uses a 60-element array and pads with spaces, which Xylitol reports eliminated the need to change the array size for each string and avoided unwanted zero padding.

The important distinction is between a transfer boundary and a message boundary. A bus transaction carries one piece; the delimiter tells the receiver when the text is complete. That small protocol lets the display handle a longer logical message without requiring every character to travel in one transaction.

The web panel grew around the existing gateway

The interface work began with a modest goal: replace a single gateway page with a friendlier control panel, without initially changing the Arduino code. In the September 5 plan, Xylitol proposed a PHP application with login, password recovery, stored messages and a choice between custom text and a fixed Ethereum-balance message.

The planned gateway would serve the selected text inside <MESSAGE> tags. That separation is useful: the browser-facing application can manage accounts and message selection while the Arduino consumes a much smaller representation of the result.

Storage changed during development. SQLite was the initial choice, but Xylitol later chose MySQL for the application’s authentication and administration needs. That was a decision for this implementation, not evidence that SQLite generally cannot support those functions.

The September 23 release log announces the web controller and gives setup instructions for MySQL, reCAPTCHA and password-reset email. It also reports a switch from MD5 to SHA-384 password hashing. Those are documented choices in a 2017 release, not a current security assessment; anyone reviving the internet-facing panel should review its authentication and deployment before exposing it publicly.

The useful limit is explicit

The marquee’s 59-character limit makes this a bounded implementation rather than an unrestricted text terminal. It also makes the design understandable: a fixed-size message, split transfers and an explicit end marker connect the web side to the scrolling display.

For a rebuild, the next useful test would be what happens when only the first piece arrives, or when incoming text contains the delimiter. The available logs don’t describe those cases. Testing them would turn the demonstrated buffer workaround into a clearer answer to a broader embedded-systems question: how does the receiver know it has a whole, valid message rather than merely some bytes?

Source: Internet controllable LED message marquee

Hardware

3 Followers

A workshop for electronics and physical computing. Share circuits, boards, tools and prototypes; work through measurement and debugging, compare components, and document the choices that turn an idea into working hardware.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.