Main > Driving & Racing Cabinets
Sega Monaco GP 1979/1980 - My Remake
geecab:
Thanks excellent to hear GPForverer2024!
Its weird that changing from a Pulsed Wave to a Square Wave makes such a difference. I would have said Pulsed Waves should work better because that's what I thought the ignition coil on a car produces... Maybe the ignition coils on modern cars produce square waves... Maybe older revcounters would work better with a Pulsed Wave... who knows lol! Just happy we've got rid of that instability on your revcounter!
BTW. Should anyone ever feel the need to set the output wave back to a Pulsed Wave, you'll see there is a setting in arduino_rev_sim.ino that allows you to do this.
>>I had to increase the damping in your file to 95 because in first gear, the needle was rising too fast compared to the graphical rev counter.
I increased the RPM to 8300 because in second gear, it was lagging behind the graphical rev counter, and what's more, it didn't reach 8 RPM at full throttle.
OK, I think I understand what is happening, and I'm going to re-do my damping code to sort this :)
>>I just noticed a small, not too serious detail, but the needle has trouble at low revs.
Let me explain: if I accelerate and slow down, the needle stops at 1 rpm, which is normal.
However, if I have an accident with the car, the needle should drop to 0 rpm, and then it stops for about 1 second at 0.5 rpm, then 0 rpm, when it should drop directly to 0 rpm.
I think I understand what you are saying. So I can get a better idea of what is going on, can you run a couple of things for me:
1.In arduino_rev_sim.ini set DAMPING to 75 and RPM_STALL to 0 (I think its currently set to 500). Then run the demo like this:
scoreboard_to_revcounter.exe 10 demo 8 8000 0
The moments in the demo where the needle should move from 2000RPM to 0RPM, do you still see then needle 'stick' at 500RPM for 1 second?
2. Can you repeat the above but this time in arduino_rev_sim.ini change the line that reads:
noTone(OUTPUT_PIN);
and change it to:
tone(OUTPUT_PIN, 1);
The moments in the demo where the needle should move from 2000RPM to 0RPM, do you still see then needle 'stick' at 500RPM for 1 second?
Many thanks!
:)
GPForverer2024:
Hi Geecab!
I changed the damping to 75 and the rpm_stall to 0 in the Arduino_rev.sim.ino file.
And strangely, the needle goes all over the place.
What if there were throttle inputs from 1 to 6 very quickly?
Nothing's consistent anymore.
Then I modified the file by changing oar tone(OUTPUT _Pin,1); And the needle doesn't go to zero; it increases and then drops to 2 rpm.
Nothing's consistent either.
So I tried changing the damping to 75 and rpm_stall to 500 in the file, leaving the tone(OUTPUT _Pin,1); The rev counter responds better, but doesn't go down to 0 rpm at all; it only goes down and freezes at 500 rpm.
Finally, I went back to the file as I did yesterday with the Damping at 95, the rpm_stall at 500, and the noTone(OUTPUT _Pin);
This is the best result I have, except that the needle doesn't go directly to 0; it stops at 500 rpm for 1 second, then goes down to 0 rpm.
I noticed that as soon as I go below 500 with the rpm_stall, the needle goes crazy.
I hope this helps, thanks.
:)
GPForverer2024:
Hi Geecab!
I changed the damping to 75 and the rpm_stall to 0 in the Arduino_rev.sim.ino file.
And strangely, the needle goes all over the place.
What if there were throttle inputs from 1 to 6 very quickly?
Nothing's consistent anymore.
Then I modified the file by changing oar tone(OUTPUT _Pin,1); And the needle doesn't go to zero; it increases and then drops to 2 rpm.
Nothing's consistent either.
So I tried changing the damping to 75 and rpm_stall to 500 in the file, leaving the tone(OUTPUT _Pin,1); The rev counter responds better, but doesn't go down to 0 rpm at all; it only goes down and freezes at 500 rpm.
Finally, I went back to the file as I did yesterday with the damping at 95, the rpm_stall at 500, and the noTone(OUTPUT _Pin);
This is the best result I have, except that the needle doesn't go directly to 0; it stops at 500 rpm for 1 second, then goes down to 0 rpm.
I noticed that as soon as I go below 500 with the rpm_stall, the needle goes crazy.
I hope this helps, thanks.
GPForverer2024:
Hi Geecab!
I changed the damping to 75 and the rpm_stall to 0 in the Arduino_rev.sim.ino file.
And strangely, the needle goes all over the place.
What if there were throttle inputs from 1 to 6 very quickly?
Nothing's consistent anymore.
Then I modified the file by changing oar tone(OUTPUT _Pin,1); And the needle doesn't go to zero; it increases and then drops to 2 rpm.
Nothing's consistent either.
So I tried changing the damping to 75 and rpm_stall to 500 in the file, leaving the tone(OUTPUT _Pin,1); The rev counter responds better, but doesn't go down to 0 rpm at all; it only goes down and freezes at 500 rpm.
Finally, I went back to the file as I did yesterday with the damping at 95, the rpm_stall at 500, and the noTone(OUTPUT _Pin);
This is the best result I have, except that the needle doesn't go directly to 0; it stops at 500 rpm for 1 second, then goes down to 0 rpm.
I noticed that as soon as I go below 500 with the rpm_stall, the needle goes crazy.
I hope this helps, thanks.
GPForverer2024:
Hi Geecab!
I changed the damping to 75 and the rpm_stall to 0 in the Arduino_rev.sim.ino file.
And strangely, the needle goes all over the place.
What if there were throttle inputs from 1 to 6 very quickly?
Nothing's consistent anymore.
Then I modified the file by changing oar tone(OUTPUT _Pin,1); And the needle doesn't go to zero; it increases and then drops to 2 rpm.
Nothing's consistent either.
So I tried changing the damping to 75 and rpm_stall to 500 in the file, leaving the tone(OUTPUT _Pin,1); The rev counter responds better, but doesn't go down to 0 rpm at all; it only goes down and freezes at 500 rpm.
Finally, I went back to the file as I did yesterday with the damping at 95, the rpm_stall at 500, and the noTone(OUTPUT _Pin);
This is the best result I have, except that the needle doesn't go directly to 0; it stops at 500 rpm for 1 second, then goes down to 0 rpm.
I noticed that as soon as I go below 500 with the rpm_stall, the needle goes crazy.
I hope this helps, thanks.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version