BC7001 - ShadowJonathan/ByteCart GitHub Wiki
Abstract
The BC7001 sign is a sign that helps to start and stop a group of carts.
Function
This sign is placed under the rail, and can operate on carts passing over it. It acts as a state machine.
Wiring:
Input 1 is a redstone wire on the right or left block of the sign.
Input 2 is the detection of a cart passing at the vertical of the sign (on/off).
Output 1 is a lever put behind the sign, at the same level.
Output 2 is a start/stop order given to the cart passing at the vertical of the sign. Start order is either a passing state, or , if a cart is stopped at the vertical of the sign, it is started.
State machine description:
When input 1 is on and input 2 is either on or off, output 1 is on and output 2 is in start state. => the machine is in PASS state.
When input 1 is off and input 2 is off, output 1 is on, output 2 is in stop state. => the machine is in WAIT state.
When Input 1 is off and input 2 is on, output 1 is off and output 2 is in stop state => the machine is in STOP state.
The cinematic is PASS -> WAIT -> STOP -> PASS if a cart passes over it during WAIT state.
It is PASS -> WAIT -> PASS if no cart is detected during WAIT state.
It is basically the operating mode of a red light on a road, where input 1 is the command of the red light.
Usage
BC7001 sign must be placed under a rail in the flow direction of the carts. The real interest is to chain several BC7001 signs, connecting the output lever to the input wire of the next BC7001.
When the input of the first BC7001 is off, the first cart will stop on it, the second cart will stop on the second sign, and so on.
When the input is on, all carts are starting with a delay of 0.2s between each.
This is useful to build a simple "train" station.
Syntax
Line #1 : Free
Line #2 : [BC7001]
Line #3 : Free
Line #4 : Free
Example
These pictures show 2 BC7001 chained. The track must cover the signs and the levers. The lever on the right is the command of the red light, plugged to the first BC7001. A cart arriving from where the image was taken will stop on the first BC7001 if light is red, a second cart will stop on the next BC7001. When light is green, the 2 carts start.
Light is red, waiting for carts:
One cart stops. It powers off the lever behind it to "activate" the second sign:
A second cart stops since the redstone next to the second sign is not powered. If there was a lever behind the sign, it would power off it as well to transmit the signal to a third sign:
The light is green. All levers are on and all the carts leave:
When the lever on the right is powered off, we go back to step 1.