Arduino LED support
 
Notifications
Clear all

Arduino LED support

5 Posts
2 Users
0 Likes
3,560 Views
(@jastool)
New Member
Joined: 4 years ago
Posts: 4
Topic starter  

I have an arduino nano with WS2812B.  Having an issue where everything works fine in testing, but then after a couple mins in iracing the lights shut off and simhub shows the nano as disconnected. I think i finally narrowed it down to the issue.  I have speed from 5 to 150 mph on two of the segments.  You can't test speed in the test, just rpm, flags, etc.  If i have the speed going it causes the issue.  If i turn the speed effect off it never disconnects.  Does anyone know how to fix this issue?  Is it a bug in simhub or something else?

 

Edit:  It is a strand of 141 lights connected in three sections, section 1 47 leds, section 2 46 leds, section 3 48 leds. first section is flags, speed, flags.  Section 2 is pit limiter, rpm, pit limiter, then section three is flag, speed, flag.  

This topic was modified 4 years ago by Jastool

   
Quote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 728
 

Hi ! 

At first sight I would think about a powering issues, what power source are you using ? In order to test that theory could you try to set the brightness to a very minimal value (2 or 3%) ?


   
ReplyQuote
(@jastool)
New Member
Joined: 4 years ago
Posts: 4
Topic starter  

It is off of a usb 3.0 powered hub that is under my simulator. Will try lowering brightness as next test.


   
ReplyQuote
(@admin5435)
Prominent Member Admin
Joined: 7 years ago
Posts: 728
 

@jastool Ah if you use only the usb power you will probably reach easily the limits, usb3 may give you some additional room (assuming it accepts to deliver than the 500mA of the USB2 norm). But 140+ leds is a lot, you should consider adding an external power supply : https://github.com/SHWotever/SimHub/wiki/Arduino--Setup#powering-considerations

Nicolas


   
ReplyQuote
(@jastool)
New Member
Joined: 4 years ago
Posts: 4
Topic starter  

Thank you. Power seems to be it. If I lower brightness it doesn't crash. Will adjust my settings or add external power. Thank you for helping me figure out the root cause.


   
ReplyQuote
Share: