Hi, which is the best method/protocol/alternatives to send serial data from Android app to

Hi, which is the best method/protocol/alternatives to send serial data from Android app to arduino with Bluetooth to control a 400led strip with ws2811 chip?
I read in the github wiki of fastled lib that there are some problem to comminicate caused from interrupt. I readed also about a protocolo to send data but it is not clear for me.

Thanks

There’s a few examples on the web, but I tend to use wi-fi and an HTML app which can be hosted on the controller (WeMos D1 mini etc). This is much easier and avoids having to get involved with play stores etc and will work on almost any device, PC, iPhone, android and even Windows phones.

I have used the Pfod application before and that worked quite well.

The problem is the comunication. With BT Module in Arduino i lost byte after changed color in Android App because fastled shutdown interrupt. I read for for a protcol:

but i have difficult to implement it.

With a WeMos i can chage “rapidly” the color of led for example?

Thanks

The problem is the comunication. With BT Module in Arduino i lost byte after changed color in Android App because fastled shutdown interrupt. I read for for a protcol:

but i have difficult to implement it.

With a WeMos i can chage “rapidly” the color of led for example?

Thanks

There will always be small delays etc when using the same MCU for communication and driving the LEDs. For projects where this is an issue I use one controller for communication and another to drive the LEDs. The easytransfer library is great for controller to controller communication.

But the ESP8266 boards are so cheap now, try one and see how it goes.

@Jason_Coon ​ has written some great code which is here. Try tree or tree v2

I use the Adafruit UART BLE Friend and it’s working great with WS2812B. It comes with an Android/iPhone app. Very useful for portable projects when you can’t use WiFi.