mNo edit summary |
mNo edit summary |
||
(20 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
<br />'''''Warning: Automatic reactors that use microcontroller need you to know lua pilot''''' |
|||
Automatic reactor is a contraption you can make which basically regulates the reactor on it's own so you can place it in your base or ship and don't have to worry about babysitting it. |
|||
''It is recommended to use delay wire auto reactors'' |
|||
<gallery> |
|||
<h2></h2> |
|||
File:Automaticreactor.PNG |
|||
File:Automaticreactors.PNG |
|||
</gallery> |
|||
Automatic Reactor is a term used for [[Reactor|reactors]] which are regulated through mechanisms rather than the player. They are necessary for feasible multi-reactor power systems. |
|||
== Delay Wire Auto Reactor == |
|||
[[File:Delay wire autoreactor.png|thumb|350x350px|A working delay wire autoreactor they have many types u can even do line with tons of autoreactors or try use polysilicon frequency]] |
|||
Depending on how cautious you want to be, you might want to place the reactor far away from your base, or really close to you in your ship, because if something goes wrong, you can always delete the reactor to avoid meltdown. |
|||
<br /> |
|||
Delay wire reactors are easiest and cheapest |
|||
=== '''Temperature''' === |
|||
Place your temperature sensor on top of a polysilicon, make sure both objects connect to the reactor. Make two. |
|||
For first you need make temperature control, put 2 temperature sensors on reactor and put polysilicon on them both. After config left one to 0:1000 and its polysilicon be deactivate, and on right one put 1000:inf and dont change polysilicon mode. |
|||
Similarly to a manual reactor, one polysilicon set to '''mode 0''' will increase heat and another one set to '''mode 1''' will decrease heat. |
|||
[[File:Scheme of delay wire autoreactor.png|thumb|Scheme of delay wire autoreactor red is transformer black is delay wire gray is dispencer orange is trigger wire green is flip flop poly and yellow is reactor]] |
|||
For your '''mode 0''' temperature sensor, you should set the ratio to 20:1000 so the reactor can heat up on it's own. |
|||
For your '''mode 1''' temperature sensor, you should set the ratio to 1001:10000 to prevent meltdown |
|||
Additionally, put a mode 2 polysilicon along with a button so you can manually eject fuel from the reactor. |
|||
Delay wire reactors use 1 delay wire with delay 200, 4 delay wires connected to flip flop poly with config 1-4, |
|||
You can also set custom ratio on temperature sensors. |
|||
<br /> |
|||
1 delay wire with delay 9, |
|||
and one with delay 4. |
|||
== Microcontroller Auto Refuel Reactor == |
|||
There are two mechanisms per reactor, one for managing temperature, the other for dispensing uranium when it runs out. Rod control is achieved through temperature sensors, which read the reactor's temperature when attached to it, and sends signals when it moves out of range. When used with polysilicons, the signals can be used to lower or raise the control rods. |
|||
A sensor set to 0:1000 that sends signals through a blue polysilicon (Mode 1) will lower the rods when the temperature is between 0F and 1000F, increasing temperature. The opposite can be done with a pink polysilicon (Mode 0) and a 1000:1230 temperature range, which will raise them when the temperature is between 1000F and 1230F, therefore decreasing the temperature. The reactor will explode at 1200F, so the pink polysilicon is absolutely necessary.[[File:AutomaticReactor2.png|right|171x171px]]Additionally, you can place a Mode 2 (Flip-Flop) polysilicon to eject Uranium/NuclearWaste. |
|||
To refill a reactor automatically, here's a few steps. |
|||
# Firstly, get a microcontroller and put it on the Reactor. |
|||
# Get a [[Port|port]] (Configure PortID to 1) and attach it to the Reactor. This has to also be attached to the microcontroller. |
|||
# Get a [[Dispenser|dispenser]] and attach it to another port (Configure PortID to 2) above the Reactor. |
|||
# Get another port and configure it to PortID 3, then attach a Flip-Flop polysilicon to it, touching the Reactor. |
|||
# Put the script below into the microcontroller and power it. |
|||
# Keep it mind, that you have to turn the microcontroller on, obviously. For this you should use a [[Transformer|transformer]] with an Activate polysilicon to turn it on everytime you rejoin. Transformers have to be powered in order to work. |
|||
The code will use port ID 1 to read the reactor's fuel status, port ID 2 to control the dispenser and port ID 3 to eject [[NuclearWaste|nuclear waste]]. |
|||
⚫ | |||
--How much fuel is left in the reactor before the microcontroller ejects it. |
|||
--Change this to control when you want to refuel (0 to 1) (Recommeded is 0.2 to 0.5) |
|||
local eject_treshold = 0.25 |
|||
=== '''Refueling''' === |
|||
[[File:New refuel.PNG|center|206x206px]] |
|||
⚫ | |||
local reactor = GetPartFromPort(1, "Reactor") |
local reactor = GetPartFromPort(1, "Reactor") |
||
local dispenser = GetPartFromPort(2, "Dispenser") |
local dispenser = GetPartFromPort(2, "Dispenser") |
||
while wait() do |
while wait() do |
||
local fuel = reactor:GetFuel() |
|||
for i=1, #fuel do |
|||
if fuel[i] <= eject_treshold then |
|||
-- Don't eject when there's no fuel in there |
|||
dispenser:Trigger() |
|||
if fuel[i] ~= 0 then |
|||
wait(1) |
|||
TriggerPort(3) -- Eject fuel |
|||
dispenser:Trigger() |
|||
end |
|||
dispenser:Dispense() -- Dispense fresh fuel |
|||
⚫ | |||
wait(1) |
|||
⚫ | |||
end |
|||
end |
end |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
Note: Microcontrollers have to be powered to function. |
|||
You just have to put a microcontroller with ports connecting to one dispenser and the reactor. Adjust dispenser's port id to 2. Put the code in micro and it should work |
|||
<br /> |
|||
=== '''Finishing off''' === |
|||
All you need to do now is place a bin on the back of the reactor so it collects nuclear waste, an uranium bin for the dispensers, and a pipe connecting to water and steam containers |
|||
[[Category:Tutorials]] |
[[Category:Tutorials]] |
Latest revision as of 12:54, 23 September 2023
Warning: Automatic reactors that use microcontroller need you to know lua pilot
It is recommended to use delay wire auto reactors
Automatic Reactor is a term used for reactors which are regulated through mechanisms rather than the player. They are necessary for feasible multi-reactor power systems.
Delay Wire Auto Reactor[edit | hide all | hide | edit source]
Delay wire reactors are easiest and cheapest
For first you need make temperature control, put 2 temperature sensors on reactor and put polysilicon on them both. After config left one to 0:1000 and its polysilicon be deactivate, and on right one put 1000:inf and dont change polysilicon mode.
Delay wire reactors use 1 delay wire with delay 200, 4 delay wires connected to flip flop poly with config 1-4,
1 delay wire with delay 9,
and one with delay 4.
Microcontroller Auto Refuel Reactor[edit | hide | edit source]
There are two mechanisms per reactor, one for managing temperature, the other for dispensing uranium when it runs out. Rod control is achieved through temperature sensors, which read the reactor's temperature when attached to it, and sends signals when it moves out of range. When used with polysilicons, the signals can be used to lower or raise the control rods.
A sensor set to 0:1000 that sends signals through a blue polysilicon (Mode 1) will lower the rods when the temperature is between 0F and 1000F, increasing temperature. The opposite can be done with a pink polysilicon (Mode 0) and a 1000:1230 temperature range, which will raise them when the temperature is between 1000F and 1230F, therefore decreasing the temperature. The reactor will explode at 1200F, so the pink polysilicon is absolutely necessary.
Additionally, you can place a Mode 2 (Flip-Flop) polysilicon to eject Uranium/NuclearWaste.
To refill a reactor automatically, here's a few steps.
- Firstly, get a microcontroller and put it on the Reactor.
- Get a port (Configure PortID to 1) and attach it to the Reactor. This has to also be attached to the microcontroller.
- Get a dispenser and attach it to another port (Configure PortID to 2) above the Reactor.
- Get another port and configure it to PortID 3, then attach a Flip-Flop polysilicon to it, touching the Reactor.
- Put the script below into the microcontroller and power it.
- Keep it mind, that you have to turn the microcontroller on, obviously. For this you should use a transformer with an Activate polysilicon to turn it on everytime you rejoin. Transformers have to be powered in order to work.
The code will use port ID 1 to read the reactor's fuel status, port ID 2 to control the dispenser and port ID 3 to eject nuclear waste.
--How much fuel is left in the reactor before the microcontroller ejects it.
--Change this to control when you want to refuel (0 to 1) (Recommeded is 0.2 to 0.5)
local eject_treshold = 0.25
local reactor = GetPartFromPort(1, "Reactor")
local dispenser = GetPartFromPort(2, "Dispenser")
while wait() do
local fuel = reactor:GetFuel()
for i=1, #fuel do
if fuel[i] <= eject_treshold then
-- Don't eject when there's no fuel in there
if fuel[i] ~= 0 then
TriggerPort(3) -- Eject fuel
end
dispenser:Dispense() -- Dispense fresh fuel
wait(1)
end
end
end
Note: Microcontrollers have to be powered to function.