-
Notifications
You must be signed in to change notification settings - Fork 8
Support for WS2812B #25
Comments
Hi pigers
If you change the option in the method setLEDChipSet() to WE2801 this might work for WS2812B, then upload this new version to the arduino. We are using a library called fast spi to handle different LED types it is documented here https://code.google.com/p/fastspi/ and here https://github.com/FastLED/FastLED we are probably a few versions behind, if this option does not work for you we can look into updating to the latest version. |
Hey Jono Yesterday I worked with newer version of FastLED and acheived blinking in blue&white rythm instead working correctly - looks like communication is working but there's problem with data received (at least I think). Here's code I used for Arduino: Maybe there's something wrong with it. |
Your example is using 'A', 'd', 'a' as the 'prefix' it is currently expecting 'G', 'l', 'o' you can either change it to 'Glo' or change the Afterglow settings in the web interface to 'Ada'. This prefix is to ensure that the communication being received is intended for this the correct software. This means communication is being received but disregarded. It sounds like I should update Afterglow to use FastLED |
Im using "Ada" value in both AfterGlow and Ardunio code, so that's not an issue. Yep, update is quite good, but I remember that newer fastLED wont work with older LEDs version, so it'd nice to have an copy for older ones. |
@pigers I have an old version of lights SPI_LPD6803 so if you are able to update to FastLED that would be great and I could create an Arduino release that for old lights like mine. I think you need to add a buffer to the data being received, @spazzarama and I had issues so we added it. Without it we were getting strange colours, as the data was being received to fast and bits were being skipped causing incorrect colours. |
@mrjono1 - could You post your code used for Arduino with that buffer ? Im playing with code for few hours without results. After some code modifications I have get rid of frustrating blinking , I have spotted another problem, as for me there's no change in colour of LEDs despite changing background of my desktop. Is there any chance to show what's AfterGlow pushing to COM port ? |
Opps I have not have documented that the Arduino code is also in this repo https://github.com/FrozenPickle/Afterglow/tree/master/Arduino Afterglow is transmitting this to the COM port on each light change lightData[0] = //light 1 R //lightData can have a lot of data so we built the buffer to capture it as it is transmitted When selecting a Capture Plugin it is good to know that only one or the other will work because of the way graphics processing is done. Most games and some media players use DirectX, windowed applications like browsers and most media players use the .Net Copy Screen. If you are able to run afterglow on your network and open it on your phone or tablet the preview will show if it works or not. |
How do I purge settings of AfterGlow ? I extracted ZIP package but it read settings from somewhere and I cannot find this place. |
Settings are stored in "Environment.SpecialFolder.CommonApplicationData" / Afterglow / Afterglow.xml |
Back there I have updated my Arduino code with FastLED to look similiar to your but it's not working now. |
I had a look at your code for while and it looks good to me, I haven't found any obvious issues. Maybe call FastLED.Clear() in MODE_HEADER https://github.com/FastLED/FastLED/wiki/Basic-usage#bringing-in-external-controls this loop does it? Most change that you do to the settings while running Afterglow will require that you start and stop the preview to make sure it gets the new settings. Also if you navigate away from the preview it should stop but afterglow should still be sending to the arduino. |
I can confirm it's working nice with Win 7 : https://www.dropbox.com/s/de9h588qvdb15hz/WP_20150219_195811Z.mp4?dl=0 Now trying to cooperate with Windows 10. Keeps fingers crossed ! |
pigers your vid looks great! |
Yeh that's looking great! Now I want to get mine up and running again :) |
Unfortunetly on WIndows 10 it's not running correctly. I see some output on screen diagnostic (right screen) but no effect on LEDs. I see that led on Arduino is blinking (one responsible for data activity) but what's going on ... it requires more work to check. Vid from Win 10 tests: |
It could be the arduino driver for windows 10? I noticed that windows 10 On Wed, Aug 5, 2015 at 4:45 AM, M0C [email protected] wrote:
|
nope - i can program my arduino under Win 10 |
Rolled back to Windows 7 - anyone got issue with Afterglow not showing settings in browser? |
Support for those LEDs would be very nice, as they are getting more more at market.
I have one strand to test ;)
The text was updated successfully, but these errors were encountered: