home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
HTPC Projects
Hardware
Ambient Lighting System
[BUG] Some weird problems, Arduino (SainSmart) crashes
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Dragy" data-source="post: 1115539" data-attributes="member: 91197"><p>I am busy with a new setup for my new TV, but I run into some problems. This is the setup:</p><p><a href="http://www.ebay.nl/itm/300948763268?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649" target="_blank"></a></p><p><a href="http://www.ebay.nl/itm/300948763268?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649" target="_blank">- SainSmart UNO R3</a></p><p>- AtmoDuino firmware with FastLed 3.0.3</p><p>- Serial port on 115200</p><p>- 64 leds</p><p>- AtmoWin 1.0.0.8</p><p>- AtmoLight 1.14</p><p></p><p>What goes wrong:</p><p>I have the idea that serial data lets the Arduino crash, because this problem only occurs with the AtmoDuino code. Sometimes it reboots, the other time it just doesn't respond. I can reproduce this every time when playing with the static color or software adjustment sliders. To let it run again, I have to press the reset button on the Arduino. It runs fine when not changing mode or doing this, so no problems occur when not touching AtmoWin and just let it run whatever it does.</p><p></p><p>Also, AtmoLight can't connect to AtmoWinA.exe, because it lets AtmoWin crash.</p><p></p><p>So there are 2 problems:</p><p>- The Arduino crashes when playing with color sliders and sometimes when changes mode</p><p>- AtmoWin crashes when AtmoLight starts</p><p></p><p>Also, when I do this: AtmoWinA.exe /register, it gives an error: <em>RegisterTypeLib failed. Code:0x8002801c</em></p><p></p><p>Someone knows what's going on?</p><p></p><p>This is the error AtmoLight produces in MP:</p><p>[code]</p><p>[2014-12-18 12:38:19,035] [Error ] [AtmoLight Initialise] [ERROR] - AtmoLight: AtmoWinHandler - Error with GetAtmoRemoteControl!</p><p>[2014-12-18 12:38:19,056] [Error ] [AtmoLight Initialise] [ERROR] - AtmoLight: AtmoWinHandler - Exception: Ongeldige klassereeks (Uitzondering van HRESULT: 0x800401F3 (CO_E_CLASSSTRING))</p><p>[2014-12-18 12:38:20,177] [Error ] [AtmoLight Reinitialise] [ERROR] - AtmoLight: AtmoWinHandler - Error with GetAtmoRemoteControl!</p><p>[2014-12-18 12:38:20,177] [Error ] [AtmoLight Reinitialise] [ERROR] - AtmoLight: AtmoWinHandler - Exception: Ongeldige klassereeks (Uitzondering van HRESULT: 0x800401F3 (CO_E_CLASSSTRING))</p><p>[2014-12-18 12:38:20,281] [Error ] [AtmoLight Reinitialise] [ERROR] - AtmoLight: AtmoWinHandler - Reinitialising failed.[/code]</p><p></p><p>[code]</p><p>#include <FastLED.h></p><p></p><p>// Set the number of leds in the strip.</p><p>#define NUM_LEDS 64</p><p>#define DATA_PIN 12</p><p></p><p>CRGB leds[NUM_LEDS];</p><p></p><p>void setup(){</p><p> Serial.begin(115200);</p><p></p><p> //sanity check delay - allows reprogramming if accidently blowing power w/leds</p><p> delay(2000);</p><p> FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS);</p><p></p><p> setupLEDs();</p><p> loopLeds();</p><p> clearLeds();</p><p>}</p><p></p><p>int readByte(){</p><p> while (Serial.available() == 0){ /* wait for data */ }</p><p> return Serial.read();</p><p>}</p><p></p><p>void loopLeds(){</p><p>for(int j = 0; j < 3; j++) {</p><p> for(int i = 0 ; i < NUM_LEDS; i++ ) {</p><p> memset(leds, 0, NUM_LEDS * 3);</p><p> switch(j) {</p><p> case 0: leds[i].r = 255; break;</p><p> case 1: leds[i].g = 255; break;</p><p> case 2: leds[i].b = 255; break;</p><p> }</p><p> FastLED.show();</p><p> delay(5);</p><p> }</p><p> }</p><p>}</p><p></p><p></p><p>void clearLeds(){</p><p> for(int dot = 0; dot < NUM_LEDS; dot++){</p><p> leds[dot] = CRGB::Black;</p><p> };</p><p> FastLED.show();</p><p>}</p><p></p><p>// shows colored LEDs for 500ms then blanks out ready to go</p><p>void setupLEDs()</p><p>{</p><p> memset(leds,150, sizeof(leds));</p><p> FastLED.show();</p><p> delay(500);</p><p> memset(leds,0, sizeof(leds));</p><p> FastLED.show();</p><p>}</p><p></p><p>void loop() {</p><p> if(readByte() == 0xFF){</p><p> if(readByte() == 0x00){</p><p> if(readByte() == 0x00){</p><p> int channels = readByte();</p><p> for(int dot = 0; dot < channels; dot++){</p><p> leds[dot].r = readByte();</p><p> leds[dot].g = readByte();</p><p> leds[dot].b = readByte();</p><p> }</p><p> FastLED.show();</p><p> }</p><p> }</p><p> }</p><p>}</p><p>[/code]</p></blockquote><p></p>
[QUOTE="Dragy, post: 1115539, member: 91197"] I am busy with a new setup for my new TV, but I run into some problems. This is the setup: [URL='http://www.ebay.nl/itm/300948763268?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649'] - SainSmart UNO R3[/URL] - AtmoDuino firmware with FastLed 3.0.3 - Serial port on 115200 - 64 leds - AtmoWin 1.0.0.8 - AtmoLight 1.14 What goes wrong: I have the idea that serial data lets the Arduino crash, because this problem only occurs with the AtmoDuino code. Sometimes it reboots, the other time it just doesn't respond. I can reproduce this every time when playing with the static color or software adjustment sliders. To let it run again, I have to press the reset button on the Arduino. It runs fine when not changing mode or doing this, so no problems occur when not touching AtmoWin and just let it run whatever it does. Also, AtmoLight can't connect to AtmoWinA.exe, because it lets AtmoWin crash. So there are 2 problems: - The Arduino crashes when playing with color sliders and sometimes when changes mode - AtmoWin crashes when AtmoLight starts Also, when I do this: AtmoWinA.exe /register, it gives an error: [I]RegisterTypeLib failed. Code:0x8002801c[/I] Someone knows what's going on? This is the error AtmoLight produces in MP: [code] [2014-12-18 12:38:19,035] [Error ] [AtmoLight Initialise] [ERROR] - AtmoLight: AtmoWinHandler - Error with GetAtmoRemoteControl! [2014-12-18 12:38:19,056] [Error ] [AtmoLight Initialise] [ERROR] - AtmoLight: AtmoWinHandler - Exception: Ongeldige klassereeks (Uitzondering van HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) [2014-12-18 12:38:20,177] [Error ] [AtmoLight Reinitialise] [ERROR] - AtmoLight: AtmoWinHandler - Error with GetAtmoRemoteControl! [2014-12-18 12:38:20,177] [Error ] [AtmoLight Reinitialise] [ERROR] - AtmoLight: AtmoWinHandler - Exception: Ongeldige klassereeks (Uitzondering van HRESULT: 0x800401F3 (CO_E_CLASSSTRING)) [2014-12-18 12:38:20,281] [Error ] [AtmoLight Reinitialise] [ERROR] - AtmoLight: AtmoWinHandler - Reinitialising failed.[/code] [code] #include <FastLED.h> // Set the number of leds in the strip. #define NUM_LEDS 64 #define DATA_PIN 12 CRGB leds[NUM_LEDS]; void setup(){ Serial.begin(115200); //sanity check delay - allows reprogramming if accidently blowing power w/leds delay(2000); FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS); setupLEDs(); loopLeds(); clearLeds(); } int readByte(){ while (Serial.available() == 0){ /* wait for data */ } return Serial.read(); } void loopLeds(){ for(int j = 0; j < 3; j++) { for(int i = 0 ; i < NUM_LEDS; i++ ) { memset(leds, 0, NUM_LEDS * 3); switch(j) { case 0: leds[i].r = 255; break; case 1: leds[i].g = 255; break; case 2: leds[i].b = 255; break; } FastLED.show(); delay(5); } } } void clearLeds(){ for(int dot = 0; dot < NUM_LEDS; dot++){ leds[dot] = CRGB::Black; }; FastLED.show(); } // shows colored LEDs for 500ms then blanks out ready to go void setupLEDs() { memset(leds,150, sizeof(leds)); FastLED.show(); delay(500); memset(leds,0, sizeof(leds)); FastLED.show(); } void loop() { if(readByte() == 0xFF){ if(readByte() == 0x00){ if(readByte() == 0x00){ int channels = readByte(); for(int dot = 0; dot < channels; dot++){ leds[dot].r = readByte(); leds[dot].g = readByte(); leds[dot].b = readByte(); } FastLED.show(); } } } } [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
Hardware
Ambient Lighting System
[BUG] Some weird problems, Arduino (SainSmart) crashes
Contact us
RSS
Top
Bottom