Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

NodeMCU ESP8266 Lights not being outputted from the Adrilight program #102

Open
T-NhanNguyen opened this issue May 18, 2020 · 22 comments
Open

Comments

@T-NhanNguyen
Copy link

T-NhanNguyen commented May 18, 2020

I'm used the Node MCU ESP8266 microcontroller, and there were some tweaking that needed to be done to get FastLED to work for the Arduino ide, specifcally, including 1 line of code from here:
https://github.com/FastLED/FastLED/wiki/ESP8266-notes

So, I've gotten the Adrilight.ino Code to upload and work with my MCU, however I can't seem to get the serial communication to work. I've set the proper amount of LED count, port value, and even tried older versions, Nothing is working for me. I think the problem is becuase within my preview, the LED bars are black rather than showing the appropriate colors.

image

Using Windows 10 version 1909

@fabsenet
Copy link
Owner

fabsenet commented May 18, 2020 via email

@T-NhanNguyen
Copy link
Author

T-NhanNguyen commented May 18, 2020

The black threshold doesn't change the outcome, and one thing I forgot to mention is that, when turning on "Enable sending" after uploading the ino code, the program doesn't change the LED to black, it fix it to the last color that each led is on, of the rainbow.

I've been reading over the old reports of similar problems about this same issue, but the solutions for those reports doesn't seem to work (Old version required turning off overlay, and using bambilight).

@TheLilGrant
Copy link

I have a very similar problem, using the ESP8266 NodeMCU. When I load the arduino code after completion the entire strip lights up with the rainbow effect for a few seconds and then fades. When I launch Adrilight nothing seems to be sent to the arduino, even if I try to send random colours, nothing appears.

@T-NhanNguyen
Copy link
Author

I think, it's defintiely something with the program, rather than the MCU we're using. I assumed that it was a serial communication problem, so I did some research, and found this problem that also occurred within my MCU with the serial communication. esp8266/Arduino#4005

I know that for this specific application, you're not suppose to change the baud rate to anything below 1 million, but for the heck of it, I've tried it out and that wasn't the fix.

Something might be blocking the app from reading reading the section color values

@TheLilGrant
Copy link

In my case, the exact same setup with a FastLED example program works perfectly, its only Adrilight that does not work. When I try to communicate with the board while Adrilight is running I get blocked on the port, so I assume Adrilight is at least trying to communicate. The preview portion shows the proper colours, but all lights are off.

@T-NhanNguyen
Copy link
Author

if you disable the "Enable sending" you can free up the port without have to exit the program. That's weird though, you're the tiles are showing proper colors but it's not displaying the lights? What version of the build are you using, and what antivirus are you using? tried disabling my avast to see if that was the cause for improper preview, but that wasn't a fix

@T-NhanNguyen
Copy link
Author

T-NhanNguyen commented May 19, 2020

I take that back, I've purged all instances of adrilight from my computer and downloaded the newest version. The preview is working properly now, but the communication isn't working still.

I've attempted to switch my board out with the nano, and that's a no go either.

@fabsenet
Copy link
Owner

fabsenet commented May 19, 2020 via email

@TheLilGrant
Copy link

I verified that the number of LEDs is the same in adrilight and the arduino code. I've tried a smaller number of LEDS for testing and modified all the settings I can think of but nothing causes any of the LEDs to turn on. Any other ideas?

@Kaitoukid93
Copy link

3 things need to be verified
number of leds in the arduino code= (numled_x+numled_y -2)x2
With Raw pin order, D1 pin(node mcu) is pin 5
if you're not using wifi then turn the wifi function off, or you will get the wdt reset

@Kaitoukid93
Copy link

think about the matrix led, 4 led at 4 corner is used twice so actual leds number on the strip(arduino code) is less than on the software

@T-NhanNguyen
Copy link
Author

Is the WIFI setting defined within the "Erase setting" of the tool's tab? D1 seems to work for uploading the lights, are you suggesting to use pin 5 instead?

@Kaitoukid93
Copy link

you should google it for "how to turn off wifi on esp8266"
it's a line of code inside setup()
you should try to upload the example code from Fastled( color palette) to make sure D1 is working ( remember to use with or without raw pin order to check)
if the fastled and the pin work together, you should see the rainbow color moving on the led strip after the adrilight code uploaded
next, turn on serial connection on adrilight app, if the led freeze then turn off or just freeze, the led number is not match

@T-NhanNguyen
Copy link
Author

That's the problem though, that's what fatsenet mentioned earlier, and that's what me and TheLilGrant is having problems with. The led are stuck even with matching count.

@Kaitoukid93
Copy link

did you even try the serial communication??
because CP2102 has some problems with unpopular baud rates( 1000000 )

@T-NhanNguyen
Copy link
Author

Yes, if you've read earlier post, I've attempted with lower baud rate than the suggested baud rate of 1 million.

"I know that for this specific application, you're not suppose to change the baud rate to anything below 1 million, but for the heck of it, I've tried it out and that wasn't the fix."

@Kaitoukid93
Copy link

ok sow now
data pin work with fastled example (D1 or 5) : checked
Numleds ( example 30 on arduino equal to 34 on adrilight led setup): checked
Serial communication ( example Ascii table print using arduino serial monitor with Serial.begin(1000000) and baudrate setting 1000000) : checked
if you can confirm all 3 things above checked and the led still freeze then I have nothing to do here

@fabsenet
Copy link
Owner

fabsenet commented May 19, 2020 via email

@Kaitoukid93
Copy link

Kaitoukid93 commented May 19, 2020

The windows part has a separate widget displaying the expected count if less. The matrix thing with minus2 is gone. Please tell us, how many leds each of your strips has. Also provide the Screenshot of adrilight and the first few lines of the adrilight ino Kaitoukid93 [email protected] schrieb am Di., 19. Mai 2020, 17:01:

ok sow now data pin work with fastled example (D1 or 5) : checked Numleds ( example 30 on arduino equal to 34 on adrilight led setup): checked Serial communication ( example Ascii table print using arduino serial monitor with Serial.begin(1000000) and baudrate setting 1000000) : checked if you can confirm all 3 things above checked and the led still freeze then I have nothing to do here — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#102 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPYKKLNDHEA6L5JDVYFHRTRSKNMFANCNFSM4NDY2SPA .

if the LED number is matched so the only reason that I can think about is the serial communication

@TheLilGrant
Copy link

TheLilGrant commented May 19, 2020

So in my case, I have a 288 LED long strip, 2 meters in length, using the WS2815 IC. I have tested with a smaller number of LEDs, as low as 10, and still have the same issues. Essentially, I can load any FastLED animation, even very complex ones at max brightness on the full strip with no issues at all. When I upload the adrilight ino, the rainbow animation displays on the strip. As soon as I launch Adrilight on my PC, the rainbow animation immediately stops moving, and sticks at that state. If I try to send random data or screen data, nothing changes on the strip.

Also when I close the Adrilight application the strip fades to off.

Capture
Capture2

@fabsenet
Copy link
Owner

fabsenet commented May 20, 2020 via email

@Neilblaze
Copy link

It's 2022, & I'm still facing the same issue of having static rainbow when I click on sending active

OS - Windows 10 (64bit)
MCU - NodeMCU esp8266

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants