How to use a GRB le...
 
Notifications
Clear all

How to use a GRB led strip

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

Hello fellow racers,

i have an old ledstrip with GRB connections and i want to use it with simhub for a shift indicator light. The problem is that this ledstrip is not individually adressable and simhub has no preset for it. Is there a way to use simhub data in custom arduino code? So for example is create some kind of custom code that takes the rpm data from simhub and then i use arduino code to change the led color.


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

Hi ! Yes it's possible software side, but you will need some power control electronic, you can't drive directly a basic RGB strip, it would draw too much current from the Arduino pins. Before trying to integrate it inside simhub make sure that you can assemble the required electronic and basic Arduino code. Once done you can use one of the two possibilities in order to integrate it inside simhub : 


   
ReplyQuote
(@thijskamphuis)
New Member
Joined: 3 years ago
Posts: 3
Topic starter  

@admin5435

The hardware is no problem for me, thanks for the links.


   
ReplyQuote
(@thijskamphuis)
New Member
Joined: 3 years ago
Posts: 3
Topic starter  

@admin5435
I used the custom hardware github to create the custom code but how does the SHCustomProtocol.h get uploaded to the arduino? Do i have to do it myself or does simhub do this automatically?


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

You can do both, the setup tool will upload the sketch and take the file as it is. 

Or you can upload using the Arduino IDE (in the setup tool menu you can click on open in "Arduino IDE" it will configure the sketch as it is in the setup tool and open simhub preconfigured Arduino IDE.

Make sure to keep a copy of your custom protocol file, in case of Simhub upgrade or reinstall it would get overwritten by the default version (it's written in the wiki and the file itself, but I prefer to repeat it :D) 


   
ReplyQuote
Share: