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

Probíhá Zveřejněno před 5 lety K zaplacení v momentě doručení
Probíhá K zaplacení v momentě doručení

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

Identifikační číslo projektu: #18768194

O projektu

2 nabídek Projekt na dálku Aktivní před 5 lety

2 Freelnceři na tento projekt zveřejňují nabídky v průměru $23

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 Další

$15 USD za 10 dní
(2 Recenzí)
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 Další

$30 USD za 5 dní
(3 Recenzí)
3.2