tasshack's bugfix resolved my problem.
The baudrate, he had initially suggested (921600) didn't work for my arduino pro mini. I had to decrease it to 115200. Then it still wouldn't work, since the libSambilight.so had a bug, wich caused the tv not to adjust the baudrate to the value from the 01_99_Sambilight.init.
After tasshack found and fixed the bug, it worked, yet the backlight was somewhat sluggish.
That's why we switched the pro mini for an ESP8266. Here are the instructions tasshack gave me:
Code: Select all
Pro micro has a usb port but it does not have a usb to serial converter. It works like a software serial but it is embedded in arduino itself. Therefore you can use it's RX TX pins by changing the Serial to Serial1 in sketch. I have attached an example.
Yesterday i remembered that the esp8266 can swap the pins of serial to another gpios. Therefore you can fix it that is interfering with the onboard usb serial controller. You need to change the jumper on the FTDI to 3.3v and you have to power your ESP8266 from your PSU with 5V pin of the ESP8266. FTDI does not have enough output to power the esp directly from VCC pin.
You can use the following connection from FTDI and LED to ESP8266.
FTDI TX -> ESP8266 GPIO13
FTDI GND -> ESP8266 GND
LED GND -> ESP8266 GND
LED DATA -> ESP8266 GPIO5 (You can change that from sketch)
LED CLK -> ESP8266 GPIO4 (You can change that from sketch)
LED VCC -> ESP8266 5V
I am sending you a new sketch to test on the esp8266 board. I only changed the Serial.begin() line to swap serial pins and set rx buffersize to a high value (I think buffersize/ram is the problem with pro mini and not baudrate).
Serial.setRxBufferSize(4096);
Serial.begin(SerialSpeed);
delay(500);
Serial.swap();
delay(500);
Following these instructions I managed to get the ESP8266 setup, yet the light still looked jerky. Only after setting the baudrate back to the initial 921600, the backlight started behaving the way it is supposed to, as you can see in this short demo:
https://youtu.be/m_5iAqfV2N4
I attached the slightly modified sketch. I changed the ports to 2 (data) and 0 (clock) since my ESP8266 had wires connected there already and added "#define FASTLED_ESP8266_RAW_PIN_ORDER" since I had had trouble with the ESP8266's pinout in an earlier project. LED_TYPE and COLOR_ORDER are also adjusted for my setup.
Thanks for sharing your work and helping me to get it running @tasshack

You do not have the required permissions to view the files attached to this post.