Page 1 of 1

Word Clock and Moon Phases

Posted: Mon Nov 24, 2025 10:28 am
by PhM
Hi,

I am new to this English forum but have been a member of the French forum since 2019.

I have almost finished a word clock that also displays the current moon phases.

This project is detailed on the French forum at this address: https://www.purebasic.fr/french/viewtopic.php?t=19408

The optimized PB code that may be of interest to you can be found on page 5: https://www.purebasic.fr/french/viewtop ... 8&start=60.

I have also created a presentation document in English, which can be downloaded at this address: https://uploadnow.io/f/D7723mf.

I hope you find it useful...

Philippe

Image

Re: Word Clock and Moon Phases

Posted: Mon Nov 24, 2025 9:16 pm
by idle
That's quite neat, thanks for sharing

Re: Word Clock and Moon Phases

Posted: Tue Nov 25, 2025 11:05 pm
by minimy
Hi, very nice project,
I have to dust off my Arduinos. :)
Thanks for share!

Re: Word Clock and Moon Phases

Posted: Wed Nov 26, 2025 12:09 am
by ChrisR
Very nice, thank you for sharing Philippe
The drills next to all your equipment are for old hole cards :lol:

Re: Word Clock and Moon Phases

Posted: Thu Dec 04, 2025 3:12 pm
by PhM
It's finished and ready to hang on the wall!

It's difficult to photograph because the light reflects like a mirror. There's even the entire manufacturing file (hard & soft) on board for posterity!

Image

Image

We are very close to the end of this project. Tomorrow, I will start the final installation (electricity and drilling)...

Re: Word Clock and Moon Phases

Posted: Thu Dec 04, 2025 3:34 pm
by falsam
👍

Re: Word Clock and Moon Phases

Posted: Thu Dec 04, 2025 3:37 pm
by miso
Cool stuff ;)

Re: Word Clock and Moon Phases

Posted: Fri Dec 05, 2025 1:54 pm
by PhM
It's on the wall.

Image

Image

Sorry about the sunshine, I live in the south of France :D :lol: 8)

Re: Word Clock and Moon Phases

Posted: Mon Dec 08, 2025 9:39 am
by dige
Great work!

How did you create C++ for the controller from the Purebasic code?

Re: Word Clock and Moon Phases

Posted: Mon Dec 08, 2025 1:52 pm
by PhM
Thank you for your positive comments.

Well, I created an Arduino library (LunaPhases.h) based on the PB program for the part that calculates the lunar phases. Otherwise, the rest of the code is classic Arduino with management of LEDs, GNSS, brightness sensor, and speaker.

Conversion details:

Transforming a set of PureBasic functions (e.g., astronomical calculations) into an Arduino library (LunaPhases) that can be reused in an Arduino sketch.
All the details are here: https://www.purebasic.fr/french/viewtop ... 75#p219375