Fatcatbaz
Posts: 4
Joined: Sun Oct 26, 2014 7:45 pm

Countdown Clock

Sun Oct 26, 2014 7:52 pm

I need to build a countdown clock using the Pi. It needs to display days, hours, minutes and seconds to an event. I am new to the Pi and have limited understanding of both hardware and coding. I have not seen an example project of this type, but I guess this has been done or is straightforward to anyone with some experience of developing code for the pi.

Any help would be gratefully received...

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Countdown Clock

Sun Oct 26, 2014 8:28 pm

How many days? How big a display something in a ten point font or something full screen or something on a 16x2 LCD?

Do you want to use C/C++, python, HTML/JavaScript, or some other programming language?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Fatcatbaz
Posts: 4
Joined: Sun Oct 26, 2014 7:45 pm

Re: Countdown Clock

Sun Oct 26, 2014 8:58 pm

Hi Dougie

I want my daughter to use it as a countdown to her A levels (so from now until May - June 2015). I also want her to create it as she has just started A level computer science and she may want to go on to a CS degree.

The very limited coding in her CS course is Java, however it appears that the syllabus jumps all over the place, so Python may be a practical solution if she can't use Java on the PI..

I would like to display it on a decent size screen next to the TV. A 16X2 LCD sounds good. Maybe in the future I can activate it when the TV remote switches on the TV.


Many Thanks

Barry

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Countdown Clock

Sun Oct 26, 2014 9:15 pm

Thanks to the work by Oracle Java runs really well on a RPi.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Countdown Clock

Sun Oct 26, 2014 9:24 pm

If your daughter is smart she might 'cheat' and Google for a solution like this -

http://www.online-stopwatch.com/countdo ... -birthday/

Fatcatbaz
Posts: 4
Joined: Sun Oct 26, 2014 7:45 pm

Re: Countdown Clock

Sun Oct 26, 2014 9:37 pm

Thanks for the replies.

That's good news about Java - but at this stage she will need to find some example code to follow/adapt.

The website countdown clock is perfect, but I would like to build a replica on the Pi.

Do you think that this would be too complicated for a beginner?

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Countdown Clock

Sun Oct 26, 2014 9:47 pm

There's plenty of A-level homework answers out there on Google. But, to have any practical value your daughter should avoid stealing borrowing someone's code.

You learn more from writing things from scratch using Google to give you the documentation for libraries like JWT & Swing and going through the iterations of write some code, compile it, run it, debug it and rewrite until it works.

That gives you a transferable skill that can be used in the next project.

Eventually after some thirty odd years your daughter will be able to explain to her juniors why stealing code is pointless and fruitless and teaches nothing.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Fatcatbaz
Posts: 4
Joined: Sun Oct 26, 2014 7:45 pm

Re: Countdown Clock

Sun Oct 26, 2014 10:08 pm

Thanks for the advice and good luck with your future projects.

hrostami
Posts: 6
Joined: Wed Dec 27, 2017 7:16 am

Re: Countdown Clock

Wed Jan 10, 2018 12:38 am

Fatcatbaz wrote:
Sun Oct 26, 2014 7:52 pm
I need to build a countdown clock using the Pi. It needs to display days, hours, minutes and seconds to an event. I am new to the Pi and have limited understanding of both hardware and coding. I have not seen an example project of this type, but I guess this has been done or is straightforward to anyone with some experience of developing code for the pi.

Any help would be gratefully received...
here is a simple easy youtube tutorial:https://youtu.be/Vlw50b9EBoo

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Countdown Clock

Wed Jan 10, 2018 7:57 am

Nice reply to an almost 4-year old post.

Return to “Beginners”