Help with race timer script

jayehessohen Friday, 11/12/2021

Anyone here using Slanman's timer have a script for arduino that allows me to speed up the timer so for instance it will show 20 seconds instead of 10 seconds?  I want to double the time that it actually took.  Any help would be appreciated.


View member profile
TheMakersBox 11/12/21

I've been building my own timers and thinking a lot about scale speed and timing.  It would be trivial to add a time adjustment, even one with a potentiometer so you could adjust it on the fly.

I would contact Slanman.  If he is not willing to provide the code, I'll bet he'd be willing to at least make you a custom firmware flash, or reflash your system for you.

Alternatively, the hacker in me says that if he is using a 16 Mhz Arduino based system, you could just swap the crystal out for 8 Mhz.  That would be the "hardware fix", but would require some soldering.

Even more "hackery", you could pull the hex file, set the chip to use its 8 Mhz internal resonator, and then reload the hex file.  Since the code is complied for a specific frequency, it would run half as fast.  That would be the "software hack", but require you to use AVRdude instead of the Arduino IDE.

  • Thanks for replying with some suggestions but I rather not get that deep lol I kinda know what you are saying but would much prefer a simple script. Slanman has been trying to help and is looking into it but I figured maybe someone here may have the same setup. Thanks! — jayehessohen
View member profile
jdensillegg 11/19/21

Assuming you have access to the arduino sketch, you should be able to make the conversion near the end of it. There should be a line that reads something like, "lcd.print(micros()/1000000);". Adjust the number based on how much you plan on slowing down your video (i.e. 500000 for half spead).

If you don't have the original sketch, anything someone else gives you will most likely make the whole thing fail.

You'd think there would be a lot of resources on this sort of thing, but I spent the better part of six months teaching myself arduino in order to simplify/customize my timing system. There are a lot of arduino resources, but our use case is so specialized that you won't easily find anything applicable. 

to join the conversation or sign-up now