Arduino sketch help - Missing characters from serial input when using DMD panels

Sedang Disiapkan Disiarkan 5 tahun lepas Dibayar semasa penghantaran
Sedang Disiapkan Dibayar semasa penghantaran

I'm working on a project to build a sports timing clock in a 5w x 2h configuration (160x32 pixels) using an Arduino Due.

I’ve tested the panels in a 5x2 configuration using the “Game of Life” example sketch from the DMD2 library and it worked as expected.

However for the real project, I have a separate sports timing device that outputs the running time over an RS232 serial connection (9600/8/n/1). It outputs the time every 1/10sec, so the Arduino is receiving 10 packets of serial data every second.

I’ve written a sketch that receives and displays the data correctly over the serial monitor. ([login to view URL])

However, when I add in the DMD2 code to display the time on the panels, there are missing characters on both the DMD panels and the serial monitor. ([login to view URL])

If I change the panel configuration to 1x1, I still get missing characters but only approx. 1 missing character every 20 packets. With the 5x2 panel configuration, most packets have 1 missing character, some have 2 or 3 or even 4 missing characters.

I guess the Ardunio isn’t coping with the 5x2 display and reading the serial data, but I’d hoped using the Arduino Due would remove any processor speed issues.

I'm looking for help to improve my code to handle receiving the serial data AND display it on the DMD panels, without dropping characters.

Arduino

ID Projek: #18768194

Tentang projek

2 cadangan Projek jarak jauh Aktif 5 tahun lepas

2 pekerja bebas membida secara purata $23 untuk pekerjaan ini

AndrijIN

Hello there, I think the code is not fast enough to update the panel according to previously received data and read the next batch of data from serial port within 100ms, especially at 9600 baud. How many bytes do you Lagi

$15 USD dalam 10 hari
(2 Ulasan)
4.2
mrjadhav

Hi, I am embedded System developer. I have worked on Arduino as well as other types of controller based system. I have worked on Arduino 's DMD based library. I know how it works. Let's have a discussion for your proje Lagi

$30 USD dalam 5 hari
(3 Ulasan)
3.2