"Configurable" Digital Clock

This board is to show, discuss and archive useful combinator- and logic-creations.
Smart triggering, counters and sensors, useful circuitry, switching as an art :), computers.
Please provide if possible always a blueprint of your creation.
Post Reply
DrNye
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Feb 11, 2019 11:04 pm
Contact:

"Configurable" Digital Clock

Post by DrNye » Mon Feb 11, 2019 11:24 pm

Image
Image
Adding Combinator contains an [0] = [0]+1 command -> counting ticks.
Decider compares that number with the number saved in [4] which equals the ammount of ticks in the wished for intevall (in this case 5.184.000 which equals the number of ticks in 24 hours)
-> if yes uses multiplicative combinator to remove those ticks from counter -> 0 o' clock again

modulo operators and divisors calculate number of hours, minutes and seconds and multiply with 100, 10, 1 afterwards respectively (need this to make it compatible with display)
combinators [1],[2],[3] hold the number of ticks in a second, minute and hour. Those can be changed, but the quotient should stay below 1/ 100 since the display only supports up to 2 digits for each of those numbers.

Display should be pretty self explanatory

Blueprint here:

Code: Select all

0eNrtXWtuG8kRvguB/ZPQzvS720BOEiwM2eZ6CUiUQFFGjIUPkFvkbDlJSEqyJNbU1IPmo4f9Zxe2pSGnqrq+r6u+6v5r8un6YXa3nC9Wkw9/Teafbxf3kw//+mtyP/+6uLre/N3q+91s8mEyX81uJtPJ4upm86cvs8/zL7Plu8+3N5/mi6vV7XLyYzqZL77M/j35YH5MyQdsPmh1tVj1P8H++H06mS1W89V89vh9tn/4/nHxcPNptlx/xM8HXS3nqz9vZqv559ePmk7ubu/Xv3272HyD9RPf5enk+/p/Jr4P689Zf/xqeXv98dPsz6tv8/UvrH/q5Ukf1//8Zfvb95t/+GO+vF99BC/0bb5cPaz/5udXefyJd93mRe5nm2d8fH7N9Tfuuunk9m62vHr8VpO/rX/x9mF19yB79I/Hb7+Yff75/czmP1+Xs9nitanmXyYf3Ppn58vPD/PV9o9rs65/26I/bnd/fPrmnz182o9XP/LsGyv2jemenONP55xTuCfJ3GOG3RMRfzj1WjmuO9i/ZDe/9NpX//i1vlrOvuyavrw1vdkxvYmb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XhgN8zQfabLkpHz6iMk9rRnMcsUyaEF1eMZQHp8NflO0tGvPWdDCoTuILwRjOPXHjEeFYB5K5Ex1J5sQWU6oinFO8FQee3xYWAbGI8YLziXoPqFY3o65phhgkRKUHmqhRGD3g9sfZQIB/rZsU+i/njlicoA7pPw9ZglBxpUvyDxhF0k4+fV2yH3NOoRy4ROcoBB9VgGLIPHTDAicUftORtYBr1X1QYrasxXnm8tgPmE7qiCkxxaUPtqCijuBC8ZMa/eDq5HIYBZJkgOKai+owktg8dMFKlKKs+30DIJR6IkUwj4uhNuAFCU0b5DyDLTuMqxCHD/gBaxgrAN7ipfULB+g5Le2MlM4+s2TQCmyWihIgob45Xnmgg6eeideDZamWkqzzUO8N6IVnG4V+3kUaQaBxShEWU1UdYYrzzTgPNhLD48EWUD0LUnGoDcGd1Fci/W8ePIM0C/FvEULJnNrj3NeKC/iXjIiIaza88yIGIyuneKolHsypeSB2wGPyImSUaxq8++gAHj0y3MW3TiOHIMkBgldK+dJGPitecYeO9SwQ3jRP3HytcSPOQGvWjSJtG54dWnX4BLCd1nM6/SGUlxJsAeCrovYF6eM5LaDLwrB71w0zLvyjFxHHkGlIHREy0t8/4cE0eRZwKkebhliqirUnuegbtslAAz79Cx49gzwdOI8NMrX92Z82n+9d3sev0Ry/nnd3e317M+SXn3dHe6ie9D/wOtbNY3HNDW6QhRCPenKEPKTjbHWblpYicwjZdN/1ZuGngyFd6lyUE2x1l71AD6mFHAY9408zy+WLtlvMAySTa+WPt6CvxeBPOymef5utqDBu45cJYkm56q3TKZbxnmdTPPE3e1r6bMr7kX0fhU5YZJgNGgV2JY5nUy46B68Fj2AcM4ydxQ5YYpgtIy83qZkfA8eBd5QSG7iG5erN4yUWAZ0V2L1a8mzy+gMi++GUkZAh7uXnDIziJZeu1kphNYpohGGWpfTQkpE/4+ncxXs5tNSfD6YXa3nK+/wXTybba8375LzMnabEq3Rv0f/wdRA4G7
Feel free to test and give suggestions
(Also if someone is here who could explain to me those fancy displays i would greatly appreciate it)

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 2596
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: "Configurable" Digital Clock

Post by DaveMcW » Tue Feb 12, 2019 7:42 am

DrNye wrote:
Mon Feb 11, 2019 11:24 pm
(Also if someone is here who could explain to me those fancy displays i would greatly appreciate it)
You use 70x 1-bit signals to store the numbers, divided between 10 combinators.

The fancy way is to use 7x 10-bit signals, and store them in 1 combinator. Each bit position represents a different number 0-9. You use the >> operator to shift the bit you want to the far left, then the % 2 operator to read whether it is 0 or 1. This requires an understanding of binary.

(The really fancy way is use the << operator to shift the bit you want into the sign bit, and read positive vs negative. This requires an understanding of 32-bit signed integers.)

Post Reply

Return to “Combinator Creations”

Who is online

Users browsing this forum: No registered users and 3 guests