adafruit / RGB-matrix-Panel

Arduino library and example code for the 16x32 RGB matrix panels in the shop
http://www.adafruit.com/products/420
304 stars 145 forks source link

Incompatibility with SoftwareSerial library #18

Open mdauria opened 9 years ago

mdauria commented 9 years ago

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...

ShafiqUrRehman commented 7 years ago

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

Same timer is messing up I2C communication as well.

Thanks,

arduibag commented 7 years ago

Hi,

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

Mike

obbaeiei commented 5 years ago

@arduibag hi, which module you have changed

marcmerlin commented 5 years ago

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

obbaeiei commented 5 years ago

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

marcmerlin commented 5 years ago

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)

obbaeiei commented 5 years ago

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