Hi,
First of all, I want to thank everyone here for their guidance. I've had a few issues with the project I'm working on and all have been resolved, EXCEPT for the new one I am encountering now.
This is sort of related to another thread, but it's a different issue so I am creating this new post.
Here is my last post, which seems resolved:
https://forum.pjrc.com/threads/5955...kering-from-PWM-breakout-board-and-Teensy-3-6
I have a Teensy 3.6. I now have 2 PWM LED driver boards with 5 RGB LEDs connected to them (for testing, going to eventually have 17), and 3 LED displays connected to the Teensy using the SCL0 and SDA0 pins.
When I send the LED boards messages to control the LEDs they are slow if I send a bunch of messages in fast succession, like if I send 10 messages in 30 milliseconds it might take a few seconds to display all of them. I originally guessed it was the PWM LED boards just being slow.
But then I connected some LED displays to the SCL0 and SDA0 and sent a bunch of messages really fast and they took a few seconds to display them.
In my previous tests, before I connected the PWM LED boards, the LED displays showed their animations pretty much instantly, no lag whatsoever. But now there is a lag.
Maybe there is something in my code or settings that is needs to me changed? The new thing I added to the code was what was needed to communicate with the PWM LED boards.
I added this to my void setup because it was in the example code for the PWM LED boards
I ended up commenting some of it out, so like this
And it didn't seem to make a difference. I don't know if this has anything to do with it. But it might since that is what was added.
Right now, when uploading my code to Teensy in "Tools" I select MIDI.
Because of Serial.begin(9600)
Should I select Serial + MIDI, or something else? I also wonder if I should change the speed in Seiral.begin to something else. But when I comment it out it doesn't seem to matter anyway.
Is there too much PWM happening with SCL0, SDA0 and the LED boards getting sent messages on 3 digital pins, that something is getting slowed down? Any other ideas or things I can try?
How can I get it back to being instantaneous display of messages?
Thank you and let me know if you have any suggestions.
First of all, I want to thank everyone here for their guidance. I've had a few issues with the project I'm working on and all have been resolved, EXCEPT for the new one I am encountering now.
This is sort of related to another thread, but it's a different issue so I am creating this new post.
Here is my last post, which seems resolved:
https://forum.pjrc.com/threads/5955...kering-from-PWM-breakout-board-and-Teensy-3-6
I have a Teensy 3.6. I now have 2 PWM LED driver boards with 5 RGB LEDs connected to them (for testing, going to eventually have 17), and 3 LED displays connected to the Teensy using the SCL0 and SDA0 pins.
When I send the LED boards messages to control the LEDs they are slow if I send a bunch of messages in fast succession, like if I send 10 messages in 30 milliseconds it might take a few seconds to display all of them. I originally guessed it was the PWM LED boards just being slow.
But then I connected some LED displays to the SCL0 and SDA0 and sent a bunch of messages really fast and they took a few seconds to display them.
In my previous tests, before I connected the PWM LED boards, the LED displays showed their animations pretty much instantly, no lag whatsoever. But now there is a lag.
Maybe there is something in my code or settings that is needs to me changed? The new thing I added to the code was what was needed to communicate with the PWM LED boards.
I added this to my void setup because it was in the example code for the PWM LED boards
Code:
Serial.begin(9600);
Serial.println("TLC5947 test");
tlc.begin();
if (oe >= 0) {
pinMode(oe, OUTPUT);
digitalWrite(oe, LOW);
}
I ended up commenting some of it out, so like this
Code:
//Serial.begin(9600);
// Serial.println("TLC5947 test");
tlc.begin();
if (oe >= 0) {
pinMode(oe, OUTPUT);
digitalWrite(oe, LOW);
}
And it didn't seem to make a difference. I don't know if this has anything to do with it. But it might since that is what was added.
Right now, when uploading my code to Teensy in "Tools" I select MIDI.
Because of Serial.begin(9600)
Should I select Serial + MIDI, or something else? I also wonder if I should change the speed in Seiral.begin to something else. But when I comment it out it doesn't seem to matter anyway.
Is there too much PWM happening with SCL0, SDA0 and the LED boards getting sent messages on 3 digital pins, that something is getting slowed down? Any other ideas or things I can try?
How can I get it back to being instantaneous display of messages?
Thank you and let me know if you have any suggestions.