#Tutorial on Construction of Timer Circuit by bearharry
1 messages · Page 1 of 1 (latest)
The tutorial will start writing tomorrow as I need to get the new farm for christmas done
Peek of part of the circuit
The Full circuit Diagram (fixed a missing cross circuit Thanks pointed out by @solid pike)
- Introduction
This is a Timer combining a 1s delay circuit, binary counter by @quaint ferry (https://www.youtube.com/watch?v=k6DIZvPfRys) and 7-segment display. You may also check the steam tutorial for basic logic gate (https://steamcommunity.com/sharedfiles/filedetails/?id=2782047683) by basicx to get a basic understanding on building a circuit.
Core Keeper's first every binary counter! Lamps at bottom indicate the current count (least significant bit on the right). I demonstrate, in order:
0:00 All lamps lit = count of 63.
0:04 One game-tick impulse generator component.
0:09 Astable Logic Circuit component.
0:18 Manual input binary counting.
00:41 Count reset function.
00:49 1 game-ti...
1.1 Power Range of Generator and extension of power
Since the circuit is large and complex, the normal range of generator (23) is not enough to use, you may extend the power by using a Logic Circuit and a generator as follow.
1.2 Rising Edge Circuit (From ZeroGravitas’ Design)
The rising edge circuit is used to detect the rising edge and emit a pulse once a rising edge is detected. It consist a logic circuit and two power stick. This is the core of the counter circuit and also used in retaining part to enable starting and stopping the counter.
(To be continued)
This is the full circuit I have redesigned to reduce the space take up by the display part after creative mode release.
Starter circuit
it consists of three parts, a rising edge filter, a latch circuit and delay loopback circuit
The rising edge filter ensure only one rising edge is generated when the pressure
plate is being pressed disregard the duration of it being pressed.
The Latch Circuit change its state every time a pulse is received / pressure plate is
pressed so that it is started / stopped.
The delay loopback circuit generate 1s pulse (1s On, 1s Off)
Binary Counter and Binary to Decimal Converter
The binary counter is basically the design of zerogravitas’, but added variation for
suiting the looping start at 6 / 10 instead of 8 and 16, there is two method on the
variation.
- Skipping, addition pulse is generated whenever the 21 or 22 bit is true (for the 10-counter)/ whenever the 21 bit is true (for the 6-counter), thus we will get the following conversion table.
From 0 to 9
From 0 to 5
- Resetting, reset is trigger whenever the counter reach 10 or 6 to reset all bit to zero, thus we will get the normal binary to decimal conversion table.
From 0 to 9
I have used some alteration to make the output location fits my need on the decimal to 7-segment converter, but it is mainly just a series of AND gate to link up the 2^0, 2^1, 2^2 and 2^3
From 0 to 5
Decimal to 7-segment converter
Series of OR Gate to tie up Input of 0 to 9
Froming a convertion table should helps in forming the converter circuit
Not Gate is used at the output to ensure the power range to each segment are uniform.
7-segment Digital Display
This Old design takes up 9Hx34W that hardly fit in the same screen
New design, thanks to @solid pike also involved the update that enable the cross circuit under wall allow the space take up reduced to 9Hx26W
The Reset circuit in the new design add a 3s extend delay to prevent the reset pulse being too fast and
produce error like the time need multiple reset input to reset to 00:00.
The circuit resume to latching on state after 3s of getting a input (filtered by rising edge filter) and give out signal after NOT Gate at output.
This Switch is used to reset the timer as the space left at the display area is limited.
This is the map file of the new design under creative mode if anyone want to investigate it, Hope there will be a way to properly export and import world under creative mode.