RGB-matrix-Panel icon indicating copy to clipboard operation
RGB-matrix-Panel copied to clipboard

Incompatibility with SoftwareSerial library

Open mdauria opened this issue 10 years ago • 7 comments

Enable Timer1 interrupt causes an instability of the SoftwareSerial library : TIMSK1 |= _BV(TOIE1); // Enable Timer1 interrupt (in "void RGBmatrixPanel::begin(void)" function)

So I can't use a bluetooth module with the RGB matrix : Timer 1 causes the appearance of random characters at the bluetooth reception...

mdauria avatar Mar 29 '15 11:03 mdauria

Buddy, Did you find any solution to the timer issue?

Same timer is messing up I2C communication as well.

Thanks,

ShafiqUrRehman avatar Dec 22 '16 07:12 ShafiqUrRehman

Hi,

I just changed the Bluetooth module (another reference), then it works. (!?!)

Mike

arduibag avatar Dec 25 '16 21:12 arduibag

@arduibag hi, which module you have changed

obbaeiei avatar Apr 04 '19 20:04 obbaeiei

can you connect the BT module to a serial port with UART? Using 2 pieces of software that do bit banging (i.e. this lib + softwareserial) is not super likely to work unless timing happens to work half by luck

marcmerlin avatar Apr 04 '19 20:04 marcmerlin

@marcmerlin I'm connect with UART. It still random characters

obbaeiei avatar Apr 04 '19 21:04 obbaeiei

Ah, in this case this is not what I expected. All I can think of is that this driver is taxing your chip so much (I see no info on what chip is being used) that it can't empty the UART buffer quickly enough. If that's the case, I recommend you upgrade to better hardware with SmartMatrix (teensy with SmartMatrix shield, or ESP32 if you're ok doing your own wiring)

marcmerlin avatar Apr 04 '19 21:04 marcmerlin

Thank you for your recommendation. I'm using mega2560 with AT-09 BLE

obbaeiei avatar Apr 04 '19 21:04 obbaeiei