BC7003 - ShadowJonathan/ByteCart GitHub Wiki
Abstract
The BC7003 sign is a sign that counts the number of redstone pulses provided as input and compares it to the number of carts passing on it.
A comparison is made every time a cart passes on it or a redstone pulse is detected, and the state is updated.
The output depends on the result of the comparison:
- state 1: if #pulses > #carts, output signal is high and a timer start/reset to zero.
- state 2: if #pulses = # carts, output signal is low.
- state 3: if #pulses < #carts, output signal is low and both counters are reset to zero.
When the timer of state 1 reaches a timeout (set to 15s), the state goes to state 3.
Function
This sign is placed under the rail, and can operate with a BC7002 sign to detect when a portion of railroad is not free of carts, thus delivering a high signal.
Wiring:
Input 1 is a redstone dust on the top of the block directly on the left or the right of the sign.
Output 1 is a lever put 2 blocks behind the sign, at the same level.
Usage
BC7003 sign is internally used in BC9001 when anti-collision system is implemented. It can be used in locations where there is a need to detect a free portion of track.
Syntax
Line #1 : Free
Line #2 : [BC7003]
Line #3 : Free
Line #4 : Free
Example
In this example a BC7002 and a BC7003 signs are use together. We simulate a cart passing on the BC7002, and after on the BC7003.
When there is no cart, all levers are off.
When there is a cart between the 2 signs, the lever behind the BC7003 sign is on.
When the cart leaves the space between the 2 signs, the lever is off again.