Is it impossible to use TLC5955 with ESP32 specs?
Posted: Tue Jan 30, 2024 8:15 am
I would like to connect TLC5955 to ESP32 and light the LED with TLC5955.
However, an error occurs and the LED turns off automatically.
Is it because of the ESP32 specs? How can I improve it?
Use this Library in your Android IDE.
https://github.com/zackphillips/TLC5955
tlc5955 datasheet
https://www.ti.com/jp/lit/ds/symlink/tl ... 2FTLC5955
The Library settings were as follows.
TLC5955.h
#define GS_FREQUENCY 33000000 //33MHz from tlc5955 datasheet
TLC5955.cpp
analogWriteResolution(_gsclk, 8);
Run the code below to light up the LED.
If everything goes well, it should stay lit until you run the code to turn it off.
The LED lights up, the error below occurs, and the LED turns off automatically in 3 seconds.
#define GS_FREQUENCY 33000000
If you set this value to a lower value such as 1000000,
The error will no longer occur. However, the lighting frequency of the LED becomes too low, causing the LED to blink rapidly.
analogWriteResolution(_gsclk, 8);
If you set this value to 1, the error display will disappear and the LED will remain lit.
However, the LED current is 1.0mA, which is a very low output.
#define GS_FREQUENCY 33000000 //20MHz or higher to prevent LED from blinking
analogWriteResolution(_gsclk, 8); //A value of 2 or more is desired
Is it impossible to use ESP32 with this setting?
According to the error, it seems that ESP32 processing cannot be completed in time. So you can't use TLC5955?
I don't think that's the case.
I don't know much about ESP32, so I don't know what the problem with the ESP32 specs is that is causing this error.
However, an error occurs and the LED turns off automatically.
Is it because of the ESP32 specs? How can I improve it?
Use this Library in your Android IDE.
https://github.com/zackphillips/TLC5955
tlc5955 datasheet
https://www.ti.com/jp/lit/ds/symlink/tl ... 2FTLC5955
The Library settings were as follows.
TLC5955.h
#define GS_FREQUENCY 33000000 //33MHz from tlc5955 datasheet
TLC5955.cpp
analogWriteResolution(_gsclk, 8);
Run the code below to light up the LED.
Code: Select all
setup(){
tlc.set_single_channel(0, 4095);
tlc.update();
}
The LED lights up, the error below occurs, and the LED turns off automatically in 3 seconds.
Code: Select all
E (1882) ledc: requested frequency and duty resolution can not be achieved, try reducing freq_hz or duty_resolution. div_param=0
If you set this value to a lower value such as 1000000,
The error will no longer occur. However, the lighting frequency of the LED becomes too low, causing the LED to blink rapidly.
analogWriteResolution(_gsclk, 8);
If you set this value to 1, the error display will disappear and the LED will remain lit.
However, the LED current is 1.0mA, which is a very low output.
#define GS_FREQUENCY 33000000 //20MHz or higher to prevent LED from blinking
analogWriteResolution(_gsclk, 8); //A value of 2 or more is desired
Is it impossible to use ESP32 with this setting?
According to the error, it seems that ESP32 processing cannot be completed in time. So you can't use TLC5955?
I don't think that's the case.
I don't know much about ESP32, so I don't know what the problem with the ESP32 specs is that is causing this error.