Performance Issues on Teensy 4.1

slippen

Member
Hi,

I'm using a Teensy 4.1 with audio shield in combination with ESP32 to build a speaker with bluetooth capability, responsive LED Stripes, RFID tag reader, RF24-Module and a ILI9341 display.

Teensy and ESP32 uses Serial to talk to each other, which seems to work fine. Bluetooth data is sent from ESP32 to I2S2 Port on Teensy. I use this library: https://github.com/JayShoe/esp32_T4_bt_music_receiver and https://github.com/pschatzmann/ESP32-A2DP for ESP32.

Display and RFID run on SPI1 and RF24 on SPI2. The System is controlled by a rotary encoder. The LED Stripes are controlled by https://github.com/lpaolini/Striptease.

Everything is powered from a 50V battery and a 5V 100 Watts power adapter.

All components are soldered on an own created pcb with short wires.

Generally everything works fine with two small isuess:
- rotary encoder double click doesn't work all the time (seems like a performance problem. When i remove most of the code the double click works fine)
- audio distortions from bluetooth about every minute (for 1-2 seconds). The rest of the time it works fine.

I tried to find the performance issues and used that code (https://forum.pjrc.com/threads/69980-RAM-amp-CPU-Usage-on-Teensy-4-1).

Unfortunatley the bluetooth problems never go away. I already tried diffrent teensy, audio boards, esp and power supply but it's always the same issue. I'm going to build a second board with less components in order to test, but it will takes some time.

Any ideas how i can try to solve the problems? Thx a lot in advance.

Kind regards
 
Back
Top