Help with custom de...
 
Notifications
Clear all

Help with custom device creation and LEDs management

4 Posts
2 Users
0 Reactions
354 Views
(@eder-merino)
Active Member
Joined: 3 months ago
Posts: 11
Topic starter  

Hi all, I am relatively new in SimHub and despite having done some research, I found it impossible to get information in any forum or discussion on the internet, so I am addressing you as my last option.

First of all, I am currently working on a DIY steering wheel that will be containing inputs (switches, rotaries...), a VoCore screen, an RGB LED strip, LEDs for buttons' backlight and the electronics.

My first choice for the electronics was an STM32 to control all the inputs through FreeJoy and an Arduino Pro Micro for all the LEDs, but after getting deeper into SimHub's configurations and settings, some doubts have raised.

- 1st QUESTION:
To control the LEDs, mainly the RPM strip (2812B), I have seen that there is an arduino library that automatically installs the specific script for the LEDs to work.
Now, am I forced to use an arduino to control the LEDs? Or, alternatively, can I directly pin them to the STM32 and run two simultaneous codes in it (one for FreeJoy and the other for the LEDs).

- 2nd QUESTION:
From the Devices tab, I tried to "Add new device" --> "Create standard device" --> "Generic VoCore screen with I2C LEDs", as this would theoratically be the profile for my custom wheel.
As a reference, I tried to load a GSI Hyper P1 profile aswell, and compare the available configurations of that wheel with the generic one.
I saw that for both LCD and Controls tab, the configuration is the same, but for the LEDs tab, GSI has two separate profiles that differentiate the LEDs from the RPM strip from the ones for the buttons' backlight, but I can't manage to create a differenciation on my generic profile. I'll attach a picture below to let you understand what I mean.
So, is there a way to separate the LEDs of the PCB to load different profiles to them? I guess so, in that case, how could I do it?

Screenshots for comparison: <a class="relative pointer-events-auto a

hover:underline
" href=" removed link " target="_blank" rel="noopener nofollow ugc">https : removed link com /a/ dPBWe0V

Thanks in advance, any suggestion or help is much appreciated.

This topic was modified 3 months ago by eder.merino

   
Quote
(@moisekean)
Active Member
Joined: 8 months ago
Posts: 10
 

Posted by: @eder-merino

Hi all, I am relatively new in SimHub and despite having done some research, I found it impossible to get information in any forum or discussion on the internet, so I am addressing you as my last option.

First of all, I am currently working on a DIY steering wheel that will be containing inputs (switches, rotaries...), a VoCore screen, an RGB LED strip, LEDs for buttons' backlight and the electronics.

My first choice for the electronics was an STM32 to control all the inputs through FreeJoy and an Arduino Pro Micro for all the LEDs, but after getting deeper into SimHub's configurations and settings, some doubts have raised.

- 1st QUESTION:
To control the LEDs, mainly the RPM strip (2812B), I have seen that there is an arduino library that automatically installs the specific script for the LEDs to work.
Now, am I forced to use an arduino to control the LEDs? Or, alternatively, can I directly pin them to the STM32 and run two simultaneous codes in it (one for FreeJoy and the other for the LEDs).

- 2nd QUESTION:
From the Devices tab, I tried to "Add new device" --> "Create standard device" --> "Generic VoCore screen with I2C LEDs", as this would theoratically be the profile for my custom wheel.
As a reference, I tried to load a GSI Hyper P1 profile aswell, and compare the available configurations of that wheel with the generic one.
I saw that for both LCD and Controls tab, the configuration is the same, but for the LEDs tab, GSI has two separate profiles that differentiate the LEDs from the RPM strip from the ones for the buttons' backlight, but I can't manage to create a differenciation on my generic profile. I'll attach a picture below to let you understand what I mean.
So, is there a way to separate the LEDs of the PCB to load different profiles to them? I guess so, in that case, how could I do it?

Screenshots for comparison: <a class="relative pointer-events-auto a

hover:underline
" href=" removed link " target="_blank" rel="noopener nofollow ugc">https : removed link com /a/ dPBWe0V

Thanks in advance, any suggestion or help is much appreciated.

You can control LEDs with STM32 directly and run FreeJoy simultaneously. SimHub may need customization to differentiate LED profiles.


   
ReplyQuote
(@moisekean)
Active Member
Joined: 8 months ago
Posts: 10
 

Posted by: @eder-merino

Hi all, I am relatively new in SimHub and despite having done some research, I found it impossible to get information in any forum or discussion on the internet, so I am addressing you as my last option.

First of all, I am currently working on a DIY steering wheel that will be containing inputs (switches, rotaries...), a VoCore screen, an RGB LED strip, LEDs for buttons' backlight and the electronics.

My first choice for the electronics was an STM32 to control all the inputs through FreeJoy and an Arduino Pro Micro for all the LEDs, but after getting deeper into SimHub's configurations and settings, some doubts have raised.

- 1st QUESTION:
To control the LEDs, mainly the RPM strip (2812B), I have seen that there is an arduino library that automatically installs the specific script for the LEDs to work.
Now, am I forced to use an arduino to control the LEDs? Or, alternatively, can I directly pin them to the STM32 and run two simultaneous codes in it (one for FreeJoy and the other for the LEDs).

- 2nd QUESTION:
From the Devices tab, I tried to "Add new device" --> "Create standard device" --> "Generic VoCore screen with I2C LEDs", as this would theoratically be the profile for my custom wheel. Botox Dubai
As a reference, I tried to load a GSI Hyper P1 profile aswell, and compare the available configurations of that wheel with the generic one.
I saw that for both LCD and Controls tab, the configuration is the same, but for the LEDs tab, GSI has two separate profiles that differentiate the LEDs from the RPM strip from the ones for the buttons' backlight, but I can't manage to create a differenciation on my generic profile. I'll attach a picture below to let you understand what I mean.
So, is there a way to separate the LEDs of the PCB to load different profiles to them? I guess so, in that case, how could I do it?

Screenshots for comparison: <a class="relative pointer-events-auto a

hover:underline
" href=" removed link " target="_blank" rel="noopener nofollow ugc">https : removed link com /a/ dPBWe0V

Thanks in advance, any suggestion or help is much appreciated.

You can control LEDs with STM32 directly and run FreeJoy simultaneously. SimHub may need customization to differentiate LED profiles.

This post was modified 2 months ago by MoiseKean

   
ReplyQuote
(@eder-merino)
Active Member
Joined: 3 months ago
Posts: 11
Topic starter  

@moisekean But, from what I understand, the SimHub libraries are only compatible with Arduino, right? So, should I have to code the LEDs library for the STM myself? Or otherwise, could I still use the Arduino libraries in it?

 

Regarding the LEDs profiles, I asked Daniel Newman personally and he told me that to create custom profiles I should need SimHub's source code (which is only available for enterprises) to make so. So, may I ask you what do you mean by "customization to differentiate LED profiles"?

Thanks in advance.


   
ReplyQuote
Share: