Countdown timer?
Vaati
Posts: 712
Is it possible to make a countdown timer with the Prop written in Spin?· If so, how?· All of the timer objects I have tried either don't output on tv, require a keyboard/mouse, or are made to work on·the HYDRA...
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Comments
http://obex.parallax.com/objects/45/
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
1) Making a countdown timer ... What is it counting down? Seconds? Hundreths of a second? What?
2) Displaying time, specifically the count in the timer ... What do you want to display? How large? On what kind of display device? (You mentioned a TV. Is that it?)
Yes, of course it's possible to make a countdown timer. It could be done entirely in Spin as long as you're counting milliseconds or multiples of milliseconds.
How? By programming the parts of the project, one at a time. The existing graphics driver can scale up characters pretty large. You do have to clear the area of the display used. You can't just write new characters. They don't erase what's underneath. The cycle is "clear the area for the digits", "write a new number". You probably will need to write your own formatting routine to add colons and a decimal point where you need it. You probably don't want to suppress leading zeros (which the standard decimal output routine does.
That pretty much sums it up. It would only need to count seconds, but the timer would need to be accurate enough to be close to the actual auction end time of a 30 day listing. I do have a 5.00 MHz xtal, so...
So, is it still possible... ?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
You don't need to find an object that counts down and supports displaying to a screen at the same time. All you need is a television driver object. The rest can be done in the main program code.
You don't need a counter object, because you can pull the time left until the end auction right off the computer you are using to access the internet (which I am assuming you are doing).
Other than that, good luck with the project, sounds like a really useful device.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Not the fish.
sites.google.com/site/bitwinproject/
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
You may need a temperature compensated clock oscillator and further manually calibrate it against something like the WWV time standard by letting it run over a month and note the count your clock thinks it is vs. the elapsed time via WWV and adjust for the difference in your program.
Alas, what I really need is code. So, what sort of code would be needed to do what I described in my previous post?
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Also, I am terrible with three letter acronyms. What in the world does WWV stand for?
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
·
Thanks again.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Post Edited (JonnyMac) : 5/14/2009 3:17:28 AM GMT
So... Which circuit are you suggesting I try...?
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Would that work...?
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Couldn't I use a tv-compatible timer such as the timer in the obex?· I modded it so it would work on the tv instead....
@rokicki:
Well, I did get that slight bit of humor there...· ·· But I can't get an EMIC shipped by tomorrow!· This project is for the Gadget Gangster Mother's Day contest...· The contest ends on the 17th, so I don't have a whole bunch of time...
Please respond as soon as possible, because I really don't want to still be working on my project on sunday night....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Hmm... Did you mean to post a schematic...? I don't see one.....
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Please help...
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Never mind...· It turns out, the timer is still not working properly!!!· I attached·all of the files needed to run timer_something.
Just so you know, the timer works fine until the minutes section goes to 00.· Then, things start going to the wrong place in the ASCII table....
Let it run for about 10 or so minutes to see what the problem is.
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
Post Edited (Vaati) : 5/15/2009 7:04:02 PM GMT
Help!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!