CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: kotu on March 28, 2017, 07:33:37 pm

Title: StopwatchCE [ti-84+ce]
Post by: kotu on March 28, 2017, 07:33:37 pm
So I thought it would be useful to be able to use your calc as a stopwatch, so I made this utility for the CE.

(https://s9.postimg.org/wzuqpg0gf/swscr.png)

Source code and .8xp file available here....
https://github.com/rowanmedhurst/stopwatchce (https://github.com/rowanmedhurst/stopwatchce)

I might add other features (such as lap times) if enough people want that.
Thanks.
Title: Re: StopwatchCE
Post by: DJ Omnimaga on March 29, 2017, 05:02:39 am
I like it Kotu. Does this use the calculator clock itself for maximum accuracy? Because this could be handy when you can't use your smartphone or don't have an actual stopwatch with you
Title: Re: StopwatchCE [ti-84+ce]
Post by: kotu on March 29, 2017, 05:07:43 am
It uses the 32768 Hz clock.
Title: Re: StopwatchCE [ti-84+ce]
Post by: p2 on March 29, 2017, 08:35:08 am
I really like it, lap times would be cool as well  :thumbsup:
btw... why don't u ues the same button for Stop and Pause...?
U sure donä't want to do it both at once  ;D
Title: Re: StopwatchCE [ti-84+ce]
Post by: kotu on March 29, 2017, 08:54:19 am
i prefer it like this  ;)


I really like it, lap times would be cool as well
err, don't see how this affects you as you don't even have a CE..... so.... not good enough reason to add it  :thumbsup:
Title: Re: StopwatchCE
Post by: DJ Omnimaga on March 29, 2017, 04:06:09 pm
I don't mind the controls actually. I had watches where you used the same button for start and pause and others where two buttons were used.
Title: Re: StopwatchCE [ti-84+ce]
Post by: kotu on April 05, 2017, 04:58:07 pm
Just updated the repository - the program now runs at 64 fps instead of 32 fps.
Title: Re: StopwatchCE [ti-84+ce]
Post by: kotu on April 06, 2017, 05:48:14 am
ok some news regarding this

i ran my calc for 8 hours to determine the accuracy of the "32768Hz" clock. it came out around 6 and a half seconds slow. i determined the actual frequency of the timer on MY calc is around 32760.73 Hz

this is not actually a problem as you can rebuild the program to suit your calc. this WILL make it more accurate, but obviously the closest you can achieve will always be an integer (in my case it would be 32761)

ok bye

*edit*-
in this example it would still be around .24 seconds slow  :(
Title: Re: StopwatchCE [ti-84+ce]
Post by: p2 on April 06, 2017, 08:12:35 am
if you get less than a second error after 8 hours... I dont think lots of people would care about such a tiny mistake ;)
sounds good enough to me :)
Title: Re: StopwatchCE [ti-84+ce]
Post by: kotu on April 06, 2017, 08:51:46 am
the thing is though p2 I intended for this to be used in Formula 1

 :'(
Title: Re: StopwatchCE [ti-84+ce]
Post by: p4nix on April 06, 2017, 12:37:19 pm
the thing is though p2 I intended for this to be used in Formula 1
I think even F1 doesn't have enough money to use TI calculators as clocks :c
Title: Re: StopwatchCE
Post by: DJ Omnimaga on April 06, 2017, 04:25:38 pm
That's not too bad I would say. Still very close to accurate.
Title: Re: StopwatchCE [ti-84+ce]
Post by: p2 on April 07, 2017, 09:51:02 am
the thing is though p2 I intended for this to be used in Formula 1
I think even F1 doesn't have enough money to use TI calculators as clocks :c
^this. so much!
Title: Re: StopwatchCE
Post by: DJ Omnimaga on April 07, 2017, 06:38:08 pm
Yeah I agree that those are friggin' expensive clocks. :P
Title: Re: StopwatchCE [ti-84+ce]
Post by: kotu on April 07, 2017, 07:42:55 pm
Jeremy Clarkson just kicked my head in
Title: Re: StopwatchCE [ti-84+ce]
Post by: Alvajoy123 on April 13, 2017, 03:28:17 pm
it looks good  :thumbsup:
Title: Re: StopwatchCE [ti-84+ce]
Post by: kotu on April 13, 2017, 04:35:16 pm
that's due to @MateoConLechuga 's work  ;)
Title: Re: StopwatchCE [ti-84+ce]
Post by: kotu on April 21, 2017, 04:13:10 pm
i mean thanks

currently testing accuracy again - this time with a 32761 Hz cycle

plus changed the colours......
(https://s24.postimg.org/h3hanwz5x/red-blue.gif)
Title: Re: StopwatchCE
Post by: _iPhoenix_ on April 21, 2017, 04:16:57 pm
Until it has a thousandths place, I deem it obsolete.

But seriously, it's really good!
Title: Re: StopwatchCE
Post by: kotu on April 21, 2017, 04:18:16 pm
Until it has a thousandths place, I deem it obsolete.

But seriously, it's really good!

they use it for F1
Title: Re: StopwatchCE
Post by: DJ Omnimaga on April 21, 2017, 04:25:30 pm
Good to see updates.
Title: Re: StopwatchCE [ti-84+ce]
Post by: kotu on April 21, 2017, 06:38:38 pm
Just done a 6 hour test, it was 0.2 seconds out. Pretty much what I was expecting  :D
Title: Re: StopwatchCE
Post by: DJ Omnimaga on April 22, 2017, 07:57:54 pm
Good actually for a stopwatch. :3=
Title: Re: StopwatchCE
Post by: _iPhoenix_ on April 22, 2017, 08:11:36 pm
Extremely. I'm assuming there is no way for you to have the stopwatch self-adjust to the speed of the calc it is running on?

If it did, this would be a much better (is that possible?!) program!
Title: Re: StopwatchCE [ti-84+ce]
Post by: kotu on April 22, 2017, 08:12:29 pm
 :(

i don't have the assembler knowledge to do that i'm afraid