Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

Mullematsch

Heavy Wire Battery Switching

Recommended Posts

Mullematsch    219

Does anyone have a battery switching design for heavy wire which does not get stuck all the time?

I have been using this from Saturnus and it gets stuck frequently. 

5d4d736e80fdb_PowerSwitchMagicHeavyCable.png.2919a4c85720fbf50d34d57cca153d4a.png5d4d737174998_PowerSwitchMagicHeavyCable-1.png.b4524999d80f4baa73217862b59edd6b.png

Interestingly enough the above design only gets stuck if my solar panel battery bank is empty but I still have power in my other battery bank + control unit.

It's really weird, I am not sure how much of it breaking is my wonky power system or the design itself. 

I'll add the save if anyone wants to play around with it in my world. 

hovel2 .sav

 

Share this post


Link to post
Share on other sites
mathmanican    2,319
4 hours ago, Mullematsch said:

battery switching ... which does not get stuck all the time

I have yet to see one. Each time one is posted, it later is shown to be broken. Does resetting it every day with a clock fix the issue, at least once a day? 

Share this post


Link to post
Share on other sites
Mullematsch    219

The design for conductive wire works great for me. Just using two not gates of one smart battery and it only gets stuck if you reload the world mid switching.

The one for heavy watt wire is giving me the trouble. I am not sure if it's the design itself or if I am making some other mistake with the way I got it set up. 

5 hours ago, mathmanican said:

I have yet to see one. Each time one is posted, it later is shown to be broken. Does resetting it every day with a clock fix the issue, at least once a day? 

Clock works but obviously not ideal. Should also be able to use switch design - transformers (5) - battery - transformers (5) - output 

Use the battery in the middle to detect if it is stuck and reset it. Was hoping there is a consistent design out there. 

 

Share this post


Link to post
Share on other sites
Sheo    16

Got two builds, depending on what you need. For powerplant two completly load 40k batteries, or another build to keep your consumers up without interuptions which can be loaded by simple 1k wires w/o overloading. Using both in every game. No need of heavy wires all over the base, just one single 1k wire to keep every consumer up.

Share this post


Link to post
Share on other sites
Mullematsch    219
1 hour ago, Sheo said:

Got two builds, depending on what you need. For powerplant two completly load 40k batteries, or another build to keep your consumers up without interuptions which can be loaded by simple 1k wires w/o overloading. Using both in every game. No need of heavy wires all over the base, just one single 1k wire to keep every consumer up.

Please post both, always like to see different designs.

I am (like you) using a normal wire as the mainline for all power. I take power of that wire with the standard 2 batteries, 2 not gates to a conductive wire design. I have been trying to use heavy wire for all the aquatuners (8) and all the electrolyzers + pumps for 50 dups. That is the design which is giving me trouble. 

 

So 1kw main line - heavy wire switch design - 20kw output to aquatuners / oxygen production. 

Share this post


Link to post
Share on other sites
nakomaru    1,415
1 hour ago, Mullematsch said:

So 1kw main line - heavy wire switch design - 20kw output to aquatuners / oxygen production. 

Then why did you say:

10 hours ago, Mullematsch said:

switch design - transformers (5) - battery - transformers (5) - output 

I see no need for these additional transformers or double switch. 

Do what you've always done but just put heavi-watt instead.

Here I used @flapee's automation circuit.

gif.gif.c41a500299b8bb46d4e0f080d1db12ee.gif

Share this post


Link to post
Share on other sites
Mullematsch    219
1 hour ago, nakomaru said:

Then why did you say:

I see no need for these additional transformers or double switch. 

Do what you've always done but just put heavi-watt instead.

Here I used @flapee's automation circuit.

gif.gif.c41a500299b8bb46d4e0f080d1db12ee.gif

Thanks - I'll test it tomorrow and report back. Might also just be an issue with all the dups, late game plus super speed.

Five transformers so that those would not be the bottleneck. And the transformers in general to push the power into the battery(ies) and use the automation output to detect if the design got stuck. Just a ghetto way to get the design potentially working - probably better in that case to just use a clock to reset it every 30 seconds. That's not my normal setup, just brainstorming how to fix it if all those battery switch designs get stuck with heavy watt wire. 

Share this post


Link to post
Share on other sites
nakomaru    1,415

For what it's worth, I tested this design with power outages and it is able to reboot fine. Please try this design with no transformers. Only use transformers on your generator side to give your main line more wattage. You can use 10 to support 40kW bursts etc.

Flapee's automation design may indeed fix the reload bug, but it's very hard to test especially as I've never experienced it. The "unnecessary" OR gate might be holding on to the bit state of the middle wire during reload.

Share this post


Link to post
Share on other sites
abud    474

May I ask, what function of OR gate in the right?

I can see the left OR is to force it evaluated after battery output signal evaluation complete. I'm wrong about this?

Edit: and to be evaluated at the same time as NOT gate

Share this post


Link to post
Share on other sites
Mullematsch    219
1 minute ago, nakomaru said:

For what it's worth, I tested this design with power outages and it is able to reboot fine. Please try this design with no transformers. Only use transformers on your generator side to give your main line more wattage. You can use 10 to support 40kW bursts etc.

Flapee's automation design may indeed fix the reload bug, but it's very hard to test especially as I've never experienced it. The "unnecessary" OR gate might be holding on to the bit state of the middle wire.

 

Forum coming in clutch again. Not getting stuck, looking great. 

I am curious how you guys deal with the the issue that transformers eventually become the bottleneck. 

Can't have more than five or you damage the wire, however you mentioned having 10, how do you set that up? 

If you have 2x generators - batteries - transformers -> mainline, then you can't use one central control unit to turn on/off all generators.

 

Also does anyone know how the game decides where to take the power from if twice you have transformers feeding the mainline? 

This here being input one for mainline, which bit messy sorry :D, but lets say coal, solar, natural gas. (Pic 1)

image.thumb.png.a4c9d0dceda6dec74ddab09057ce7411.png

Then you have something similar with coal, petroleum generators. Again transformers connected to the mainline. (Pic 2)

image.thumb.png.7a4dfa012b995c6e95f5407a0527228f.png

Is the power draw split evenly?  Do you waste power this way? 

 

Actually, bit of a ramble here but thinking about this:

Pics are my set up mostly (bit here added in debug for testing). Control unit are the smart batteries in picture one. Those turn on all the generators, also the petroleum and coal of Picture 2:

image.thumb.png.f0ff90c5aaf3139e447f745486c41f96.png

Now if Coal or Petroleum kicks in it fills up battery bank two and thus not the control unit. However if the battery bank 2 is (half) full, you can use a smart battery output to turn off the transformers of the control unit -> mainline. 

image.thumb.png.adc042cc55f5bed095917d0a2f9348bd.png

image.thumb.png.8aef216c4c5fd1e4a7372f97db23e407.png

I guess this still does not allow you to detect if the five transformers can then keep up with all power usage on the mainline... Especially if you are producing more than 20kw on the wire. The batteries would not lose charge but you would still have power issues. That is the last problem I am trying to work out currently. 

 

Share this post


Link to post
Share on other sites
flapee    70
30 minutes ago, abud said:

May I ask, what function of OR gate in the right?

I can see the left OR is to force it evaluated after battery output signal evaluation complete. I'm wrong about this?

Edit: and to be evaluated at the same time as NOT gate

Yep, left OR is indeed used for exact timing with NOT gate, the output of unused right OR gate can be used to turn on/off the generators

Share this post


Link to post
Share on other sites
snoozer    111

I noticed a bug when building a powershutoff. If you build a powershutoff first and an automationwire afterwards the ps turns off, if you build it the other way around the ps stays active, despite the red automation wire, until a signalchange happens. I wonder if that's the reason why switching batteries sometimes get stuck on load.

ps.thumb.jpg.070c6d3b6b17dd20afba9bf8eda6f1c7.jpg

Share this post


Link to post
Share on other sites
nakomaru    1,415
1 hour ago, Mullematsch said:

Can't have more than five or you damage the wire, however you mentioned having 10, how do you set that up? 

You must be overthinking this.

Here's 5.

Spoiler

one.thumb.png.16f74f8e2d1284c3db20763451b5c34d.png

Here's another 5.

Spoiler

one.thumb.png.16f74f8e2d1284c3db20763451b5c34d.png

Here's another 5 from the solar array.

Spoiler

three.thumb.png.b32002cbb4d3e0129f309fe74bb2fabf.png

That's a 60kW main line now.

I don't know how the game picks transformer drain order. It seems kind of related to build order but probably not. Or probably not after reload.

Share this post


Link to post
Share on other sites
Mullematsch    219
4 minutes ago, nakomaru said:

You must be overthinking this.

Probably... but if you set it up this way, you can't use automation of a central control unit for all different power sources right?

Lets say you want to use solar first. Then if smart batteries are below x hydrogen -> coal -> petroleum. The way I usually do that is generators - control unit - transformers - main line. 

If the transformers are the bottleneck though, you can't just double this design or the smart battery logic won't work. I always need to feed all power into the control unit and then the transformers are the problem. 

Transformers in bold to indicate its always the same five - control unit to mainline. 

Share this post


Link to post
Share on other sites
nakomaru    1,415
13 minutes ago, Mullematsch said:

Probably... but if you set it up this way, you can't use automation of a central control unit for all different power sources right?

If you want more than 20kW on the main line you cannot precisely control which station gets used.

If you are happy with 20kW on the main line, you can use automation from your solar array to disconnect the substations from the main line, and enable them when the solar batteries get lower. Tier 1 controls tier 2, tier 2 controls tier 3.

Or a 40kW compromise: always petrol and solar. if petrol is out, connect the hydrogen substation, or whatever.

Or if transformers are consumed in round robin style, only connect 1 transformer to your coal gen, 20 from solar, 10 to your petrols, 5 to your hydrogen. Something like that could balance your preferred consumption. (I'm not sure if it's round robin.)

Share this post


Link to post
Share on other sites
Mullematsch    219
3 minutes ago, nakomaru said:

If you want more than 20kW on the main line you cannot precisely control which station gets used.

If you are happy with 20kW on the main line, you can use automation from your solar array to disconnect the substations from the main line, and enable them when the solar batteries get lower. Tier 1 controls tier 2, tier 2 controls tier 3.

Or a 40kW compromise: always petrol and solar. if petrol is out, connect the hydrogen substation, or whatever.

Yeah, that is what I was thinking as well. 

I have just been wondering if there is a way to have unlimited power mainline plus all power sources controlled via smart batteries of a central control unit. 

So I am assuming with your setup, you detect if you solar bank gets low and use that turn on other transformers? Guess instead of smart battery logic for each power source it might be better to have all generators activate (after solar) and then set conditions to always have hydrogen / natural gas above x, only use coal if petroleum below x etc.. 

Share this post


Link to post
Share on other sites
nakomaru    1,415

@Mullematsch Actually, now that I'm looking closely, it actually does seem like it's transformer build order. I rebuilt them on a hunch a long time ago, and currently my solar transformers are jumping around and consuming power. My NG transformers which I build after are just idle.

6 minutes ago, Mullematsch said:

So I am assuming with your setup, you detect if you solar bank gets low and use that turn on other transformers?

I don't use automation to disable my NG station cause this was working out.

This is reasonable to do if you are happy with 20kW or solar+20kW like above. I would use a battery from the solar array to turn off a switch at my NG station. Be sure if you do this you do not disable the transformers, but disable a power switch between the transformers and the main line. Otherwise you will destroy 20000J each time they turn off.

The batteries at each station will control the generators themselves.

Share this post


Link to post
Share on other sites
Mullematsch    219
5 minutes ago, nakomaru said:

@Mullematsch Actually, now that I'm looking closely, it actually does seem like it's transformer build order. I rebuilt them on a hunch a long time ago, and currently my solar transformers are jumping around and consuming power. My NG transformers which I build after are just idle.

I don't use automation to disable my NG station cause this was working out.

This is reasonable to do if you are happy with 20kW or solar+20kW like above. I would use a battery from the solar array to turn off a switch at my NG station. Be sure if you do this you do not disable the transformers, but disable a power switch between the transformers and the main line. Otherwise you will destroy 20000J each time they turn off.

Maybe there is hidden code prioritizing solar power over other sources. Not sure but I have seen the same before.

Also it is actually kinda possible to have mainline above 20kw plus using a central smart battery control station.

This is how I have set it up before and seemed to work well:

Solar + Generators ( minus whatever turns on last (let's say natural gas)) - control unit - transformers - mainline

Then control unit would be your smart batteries:

Battery 1: Turn on Hydrogen if below 85

Battery 2: Turn on Coal if below 65 

...

...

Last Battery: Lowest setting (below 20) connect to natural gas (whatever turns on last) and those generators could be directly on the mainline. They would only kick in if the control unit is emptyish and not able to keep up = power is required. 

The generators would also only be active until the batteries start filling up again.

With that setup, it is possible that you have all the resources (coal, Hydrogen, petroleum) but the transformers cannot keep up and that then turns on the natural gas power but it will supply over the 20kw at least.

Nice talk btw :D

Share this post


Link to post
Share on other sites
nakomaru    1,415

Ten seconds of my NG gens:

ng.gif.eb622eeb818db37fb4270468b0cc583c.gif

Ten seconds of my solar gens:

solar.gif.14c04740b9eafc24f4b6d54b049d39be.gif

Lots more activity on my solar. I do not think it has anything to do with the generator, but the build order or other hidden arbitrary ordering (X/Y position etc).

I prefer to separate the stations and keep a higher maximum wattage even if it means I waste gas, which apparently I don't.

Share this post


Link to post
Share on other sites
Mullematsch    219
1 minute ago, nakomaru said:

Ten seconds of my NG gens:

ng.gif.eb622eeb818db37fb4270468b0cc583c.gif

Ten seconds of my solar gens:

solar.gif.14c04740b9eafc24f4b6d54b049d39be.gif

Lots more activity on my solar. I do not think it has anything to do with the generator, but the build order or other hidden arbitrary ordering (X/Y position etc).

Hmm. If someone could figure out how that happens and how to reliably reproduce it, that would fix the control unit + unlimited power on main line issue. Are those transformers the highest in your world? Most left/right? Anything else special about them? Dead dupe there or I don't know :D 

Share this post


Link to post
Share on other sites
nakomaru    1,415

They are top right, and NG is middle left. I deconstructed them all and rebuilt the solar ones first once expanding to solar.

Share this post


Link to post
Share on other sites
abud    474
1 hour ago, Mullematsch said:

Lets say you want to use solar first. Then if smart batteries are below x hydrogen -> coal -> petroleum.

Control unit in unlimited kw line probably impossible, but we can put control unit in 20kw line. For example 2 control unit, each control unit serving some consumer line.

Spoiler

Screenshot_128.thumb.png.2dbc1411ff89057bfbcf62d0ae85ad32.png

Screenshot_130.thumb.png.e541e864c4cf9618bf92291ec8b500cb.pngScreenshot_129.thumb.png.3545964ab567d29601d71079115fe894.png

 

 

Share this post


Link to post
Share on other sites