In Progress

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

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.

Skills: Arduino

See more: arduino serial example, arduino mega 2560 serial ports, arduino hardware serial example, arduino to arduino serial communication code, arduino serial read example, arduino software serial example, arduino ide, arduino uno, microphone input using cnet, programs reading serial data using perl, serial communication using 8051 using visual, source code serial communication using hdlc, rs232 serial communication using vb6, fpga interfacing serial communication using matlab, email html form input using aspemail, input using mips, serial communication using rs232 java, text input using gui, upload data serial port using perl, arduino sketch led

About the Employer:
( 1 review ) Broxburn, United Kingdom

Project ID: #18768194

Awarded to:

shanevanj

I have been working with Arduino for more than 5 years developing commercial projects, I have just completed a similar serial input project that logs data to a SD card and dialyse a website with the data - I can happil More

$40 USD in 1 day
(0 Reviews)
0.0

3 freelancers are bidding on average $28 for this job

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 More

$30 USD in 5 days
(3 Reviews)
3.3
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 More

$15 USD in 10 days
(0 Reviews)
0.0