Apps Download removed [Deleted]

Status
Not open for further replies.
Hum you need some debouncing, SimHub does it with inputs on computer side,

https://www.arduino.cc/en/Tutorial/Debounce
Debounce it,debounce it...i like to debounce it...
Now iam very happy.It works very well with momentary and latching swichtes.I have already thought that the delay can only be a problem solution and not the final solution.Thank you very mutch-now i can debouncing.
This is the code I used for it:

int LightPin = 12;
int lightState = LOW;
int buttonState = 0;
int lastButtonState = LOW;
unsigned long lastDebounceTime = 0;
unsigned long debounceDelay = 50;

void setup()
{

pinMode(LightPin, OUTPUT);
pinMode(BUTTON_PIN_1, INPUT);
digitalWrite(LightPin, lightState);

void loop() {


int reading = digitalRead(BUTTON_PIN_1);
if (reading != lastButtonState) {
lastDebounceTime = millis();
}
if ((millis() - lastDebounceTime) > debounceDelay) {
if (reading != buttonState) {
buttonState = reading;
if (buttonState == HIGH) {
lightState = !lightState;
}
}
}

digitalWrite(LightPin, lightState);


lastButtonState = reading;

Maybe someone can use this code for his own projekt...


Thank you very mutch for your help Wotever,again and again and again...:)
 
Hi Wotever,

I found this App yesterday and it seems awesome. My Arduino with TM1638 was working in less than 10 minutes :)

Is it possible to use an IO-Expander like PCF8574 to use more than 8 buttons?

Thank you for this software!

Hi! Are your shift lights also working? Because i have an arduino nano, and a tm1638 and i cant get the shift lights to work. Am i doing something wrong? If yes then how do i do it right?
 
Hi! Are your shift lights also working? Because i have an arduino nano, and a tm1638 and i cant get the shift lights to work. Am i doing something wrong? If yes then how do i do it right?
You have probably a single color TM1638 like this :
img_2160-0.png


Go into the led layouts, double click on de default layout to edit it and modify the TM1638 mappings lines to display green (Yes green ;) )
Save, and it should be ok.
 
Could you upload a picture of all your led settings?
Edit: i got it to work but they are always on or blinking when i want it to go from left to right like @1000 rpm 1 light on @2000 rpm 2 lights on etc etc. is there any way to do that?
 
Last edited:
Could you upload a picture of all your led settings?
Edit: i got it to work but they are always on or blinking when i want it to go from left to right like @1000 rpm 1 light on @2000 rpm 2 lights on etc etc. is there any way to do that?

Rpms are bound on leds to a percent of a max rpm so you don't have to worry about which car you are running, so the most basic way to bind to rpms is like that :
upload_2017-8-28_12-48-46.png


If you want to use the absolute value of rpm , you must switch to "Formula" mode, and pick the rpm property ([DataCorePlugin.GameData.NewData.Rpms]) in value, and define your own blinking trigger (for instance [DataCorePlugin.GameData.NewData.Rpms]>7000)

upload_2017-8-28_12-50-40.png


You can add as many mappings you want if it's required.
 
Rpms are bound on leds to a percent of a max rpm so you don't have to worry about which car you are running, so the most basic way to bind to rpms is like that :
View attachment 208932

If you want to use the absolute value of rpm , you must switch to "Formula" mode, and pick the rpm property ([DataCorePlugin.GameData.NewData.Rpms]) in value, and define your own blinking trigger (for instance [DataCorePlugin.GameData.NewData.Rpms]>7000)

View attachment 208933

You can add as many mappings you want if it's required.

Thanks mate! I got it to work!
Btw is there any way to make the first 5 lights green and the last 3 lights red?
 
Last edited:
Reinstall windows and now i have led display with matrix and tacho. If i connect leds and run simhub, all is OK. When i connect tacho, and enable multiple usb, leds turn off and working only tacho, but not both together.
 
Reinstall windows and now i have led display with matrix and tacho. If i connect leds and run simhub, all is OK. When i connect tacho, and enable multiple usb, leds turn off and working only tacho, but not both together.

So you have two arduinos ?
Could you send me a capture of your HW panel with everything connected :
upload_2017-8-28_21-0-2.png
 
Uh oh, never seen it, when you say "for a while" what time frame are we talking about ?
may have an idea of what is causing this

Hi Wotever, I've tried several times tonight and what I have noticed won't help you I'm afraid... The issue seems to be totally random, That can freeze after 30 s. and then the next time after a couple of minutes. I've tried to desactivate the 8888 rule I've created.....same result.... tried to reactivate it.... still the same issue....
Do you think it can come from the change you made in the 5.3.2 release (ref. "Improved web sync, if somehow the display device gets late SimHub will wait to get it back in sync") ?

[/QUOTE]
 
Hi Wotever, I've tried several times tonight and what I have noticed won't help you I'm afraid... The issue seems to be totally random, That can freeze after 30 s. and then the next time after a couple of minutes. I've tried to desactivate the 8888 rule I've created.....same result.... tried to reactivate it.... still the same issue....
Do you think it can come from the change you made in the 5.3.2 release (ref. "Improved web sync, if somehow the display device gets late SimHub will wait to get it back in sync") ?
[/QUOTE]
Yep that's the guilty code i think, I think I've found how it could get stuck and fixed it, and if somehow it get stuck I've added a auto-reset to let the dash start again. I will release the fix in a couple of minutes ;) Time to package everything :D
 
Yep that's the guilty code i think, I think I've found how it could get stuck and fixed it, and if somehow it get stuck I've added a auto-reset to let the dash start again. I will release the fix in a couple of minutes ;) Time to package everything :D[/QUOTE]
Cool, won't be able to test it tonight, but probably later this week. will of course let you know if that works on my side.
Thanks again for your always very efficient support.
T'es le meilleur Wotever ;-)
 
Wotever updated SimHub, DIY Sim racing Dash with a new update entry:

5.4.1 Hotfix

5.4.1 Hotfix

I little hotfix update to address some issues reported recently, and with some fresh additions,

A feature requested many times by DIYers : You can now expand SimHub sketch to manage your own custom hardware, I've added some sample like driving a BMW E36 speed gauge. It's possible to get almost any game data and send it to arduino. I'm now waiting to see the creativity at work :D, driving leds, coffee machine, fans, beer pump, or your ceiling lights, surprise me !...

Read the rest of this update entry...
 
I have a TM1638 with the secuence:
5 green leds + 3 red leds and when it reaches 98% all leds blink in red.

I'm at work and I don't know if I have a capture here in the laptop. Let me search and I'll post it if I have it. In another case and if you didn't figure out, I'll do a screenshot tomorrow and I'll put it here.
 
Oh yes,,
I see youve added Dota to the games list.
Any chance of adding Rc Flight Simulators like Phoenix v5,5??
That would be great, as im working on an 2004 lcd screen for my radio Tx to display plane telemetry like on the sim.

Karl
 
Oh yes,,
I see youve added Dota to the games list.
Any chance of adding Rc Flight Simulators like Phoenix v5,5??
That would be great, as im working on an 2004 lcd screen for my radio Tx to display plane telemetry like on the sim.

Karl
If somehow they expose the data, yes it's possible, however on this particiluar software, from what i see, it's really expensive software and hard to get moreover.
 
Status
Not open for further replies.

Latest News

Do you prefer licensed hardware?

  • Yes for me it is vital

  • Yes, but only if it's a manufacturer I like

  • Yes, but only if the price is right

  • No, a generic wheel is fine

  • No, I would be ok with a replica


Results are only viewable after voting.
Back
Top