Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Red flash from the strip when arduino wakes upon PC boot. #24

Closed
devsfan1830 opened this issue Aug 23, 2020 · 6 comments
Closed

Red flash from the strip when arduino wakes upon PC boot. #24

devsfan1830 opened this issue Aug 23, 2020 · 6 comments

Comments

@devsfan1830
Copy link

Hi. First off your write up to make this and your code is awesome. Easy to follow and based on comments on various sections of the build and some comments in the two github repos, I have mine wired up to an 120Hz alienware ultrawide with 120 APA102 LEDS running on an Arduino Pro Micro with a 1,000,000 baud rate able to successfully run them at 15ms. It operates smooth as butter after some confusion on maybe my part as far as the RGB settings and having the LED order reversed in Prismatik. Prismatik had to be set to RGB while BGR was set in arduino to not have R and B swapped. Not sure if I missed that in your write up somewhere.

Anyways. My issue is regarding when the LEDS get woken up from their sleep mode when I turn my PC on and Prismatik connects. The entire strip flash full brightness red for a half second before setting to the correct color. I was hoping there's a way to soften this wakeup transition a bit as its pretty jarring. I'm running on the latest releases of Prismatik and your code. Any other info you need from me let me know and thanks again for making this. Its incredible and far better in my eyes than stuff like Hue or Nanoleaf and at a fraction of the cost.

@dmadison
Copy link
Owner

dmadison commented Aug 23, 2020

Hi there! Thanks for the kind words - I'm glad I was able to help you get up and running. I don't believe there's anything about the color order in my writeup, although as you've discovered it's easy enough to experiment and get it right. Typically I would recommend the setup you have where the device does the channel correction and the color data is sent in RGB order, but at the end of the day whatever works is fine.

Sorry to hear about the full brightness red frame, that can't be pleasant. A few questions to try and narrow down the source of the issue:

  • Does the flash happen every time, or is it intermittent?
  • Does the red frame happen when the PC is turned on (i.e. board is powered) or when Prismatik connects for the first time (i.e. serial data is sent)?
  • If the latter, does turning off the LEDs in Prismatik and then back on also cause a red flash? Does shutting down Prismatik entirely and restarting it cause a flash?
  • Does the flash change (# of LEDs illuminated, color, intensity, duration) if you change the number of LEDs in the Arduino code? Does it change if you set a different max brightness in the Arduino code?
  • Does the flash change if you set a different number of LEDs in the Prismatik code, but don't adjust the number on the Arduino? What about a different grab rate in Prismatik?
  • How are you powering the LEDs? Are you connecting power at multiple points?

@devsfan1830
Copy link
Author

devsfan1830 commented Aug 23, 2020 via email

@dmadison
Copy link
Owner

Thanks for those answers, that's really helpful. Just to be clear - if you keep the number of LEDs in the Arduino code at 120, and you decrease the number of LEDs in the Prismatik setup to 60, all 120 LEDs flash red when Prismatik connects?

I'm knee-deep in the end stages of a project at the moment, but I'll try to set aside some time next week to look into this.

@devsfan1830
Copy link
Author

devsfan1830 commented Aug 24, 2020 via email

@dmadison
Copy link
Owner

After some testing I've confirmed that this is a bug with Prismatik and not due to the firmware on the Arduino. See psieg/Lightpack#385 for more details.

I'd recommend reverting to Prismatik version 5.11.2.19 until the issue is resolved.

@devsfan1830
Copy link
Author

devsfan1830 commented Aug 26, 2020 via email

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

No branches or pull requests

2 participants