Switch off radar when accumulators are decreasing
Posted: Fri Mar 24, 2017 3:22 pm
A power switch can easily be used to switch when accumulators hit a threshold, say 50% but I wanted to only switch the radars off at different thresholds depending on whether the accumulators are increasing/decreasing.
Power at 50 and decreasing - switch off
Power at 10 and increasing - switch on
Here's the circuit to detect increase/decrease hooked up
What happens on which tick is important, labelled t0 and t1 for the first and second ticks.
1) Starts with the accumulator charge A or more precisely A(t0)
2) Arithmetic combinator converts the A signal into a B signal and delays it by one tick => B(t0) = A(t0)
3) Two deciders, Green=A>B and Red=A<B, are performing A(t1) > B(t0) and A(t1) < B(t0) and by comparing values from two different ticks can figure out if the signal is increasing or decreasing.
4) SR latch (binary only) stores the green 1 signal with red as reset (Green=Green>Red)
5) A=Green*40, could be either 40 (meaning A increasing) or 0 (A decreasing)
6) Power switch takes A from (5), adds it to A from (1) and compares to 50 for power switching.
Non functional green/red lights at bottom left
Not labelled:
Radars at bottom of screen
SmartDisplay Mod
Power at 50 and decreasing - switch off
Power at 10 and increasing - switch on
Here's the circuit to detect increase/decrease hooked up
What happens on which tick is important, labelled t0 and t1 for the first and second ticks.
1) Starts with the accumulator charge A or more precisely A(t0)
2) Arithmetic combinator converts the A signal into a B signal and delays it by one tick => B(t0) = A(t0)
3) Two deciders, Green=A>B and Red=A<B, are performing A(t1) > B(t0) and A(t1) < B(t0) and by comparing values from two different ticks can figure out if the signal is increasing or decreasing.
4) SR latch (binary only) stores the green 1 signal with red as reset (Green=Green>Red)
5) A=Green*40, could be either 40 (meaning A increasing) or 0 (A decreasing)
6) Power switch takes A from (5), adds it to A from (1) and compares to 50 for power switching.
Non functional green/red lights at bottom left
Not labelled:
Radars at bottom of screen
SmartDisplay Mod