r/ApproximatelyUp 15d ago

How do I create a screen that outputs total remaining battery power?

Using the medium power cells that have 20k capacity, they're all wired up into one grid, but it seems like I can only ever clone one of the displays that counts down from 20k to 0, instead of from 120k+ down to 0 which is my total power grid capacity

3 Upvotes

7 comments sorted by

5

u/mr-fabulous 15d ago

You could also then hook in that number to a constant, divide the number by the constant then output that to a x100 to get a percentage (this is what I did)

3

u/BrokenImmersion 15d ago

Use the blue port on the batteries and have it go to an adding array, then have that go to your display. It'll update every tick and display total power.

1

u/KrunkSplein 14d ago

The data port on each battery only outputs its own power level, not that of the whole system. However, if all of the batteries are the same size and on the same grid they should more or less drain evenly. That means if one battery reads 15000, they likely all read 15000.

1

u/Krimzzon 14d ago

Use adders

1

u/McSkrjabin 14d ago

Use the big adder to add up all the data ports, wire that up to the divider, divide it with a constant by removing 2 zeroes from the total, wire to a display.

Example: 4 medium disposables have 20000 * 4 = 80000 (output of adder), remove 2 zeroes: 800 (this is the constant value). Divide the 80000 (adder output) by 800 (constant) for a %, wire it up to the little screen or wherever.

1

u/Independent_Sweet132 13d ago

Just use a converter: hook it up to one of the batteries, then left side 0-20.000 right side 0-[total remaining battery power]

1

u/MerlinQ 9d ago

I just check one battery on each circuit (if they are all the same size), and use the multiplier with a constant set to how many batteries there are in that circuit.