Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Real-time animated clock with eFORTH web

51 views
Skip to first unread message

Marc Petremann

unread,
Mar 18, 2023, 6:12:21 PM3/18/23
to
Hello,

I am pleased to present to you the very first web animation script made with eFORTH web. This program demonstrates that eFORTH can become a full-fledged web scripting language.

https://eforth.arduino-forth.com/article/examples_web_clock

Lorem Ipsum

unread,
Mar 19, 2023, 1:50:31 AM3/19/23
to
Interesting. There seems to be a flaw in the algorithm that moves the minute and second hands. The seconds work their way around the dial, until it catches up with the minute hand. At that point, as the second hand lands on the minute hand, they both move forward one increment, together. So the second hand has moved two increments in one second.

This will cause the second hand to sweep a minute in just 59 seconds, while he minute hand loses a second each minute, so takes 61 of these fast "minutes", to sweep out an hour. Oddly, this will result in the clock being nearly correct, sweeping 3599 seconds in an hour... unless there is a similar action going on with the hour hand.

It's hard to say if the clock is fast or slow at the moment, since the minute hand increments in the middle of the minute as swept by the second hand. So it was showing 1:47:46 and one second later shows 1:48:48. Is that fast or slow when the real time is 1:47:59?

This makes my head hurt.

--

Rick C.

- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209
0 new messages