Jump to bottom
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.
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.
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.