Phoenix ground station with Arduino
Works with the launch box to send valve control signals with protected logic
- One of the following mode will be ran during each void loop() call
PRE_ARM = 0b0000000; // Safe: all valves closed
ABORT = 0b0010101; // Abort: open all vent valves
ARMED = 0b1100000; // Armed: ready to launch, waiting trigger
LAUNCH = 0b1101010; // Launch: ignition/flight started
lng_pressure_mask = 0b1000000;
lox_pressure_mask = 0b0100000;
gn2_vent_mask = 0b0010000;
lng_flow_mask = 0b0001000;
lng_vent_mask = 0b0000100;
lox_flow_mask = 0b0000010;
lox_vent_mask = 0b0000001;
null_mask = 0b0000000;
Launch sequence has four stages \
- default state, nothing happens
- all valves closed
- lng_pressure open
- lox_pressure open
- open vent valves for all
- emergency break, abort the mission
- gn2_vent open
- lng_vent open
- lox_vent open
- after arm flow valve is opend
- open the flow valevs for both fuels
- lng_pressure open
- lox_pressure open
- lng_flow open
- lox_flow open
- rocket launching, no way back
- Abort (button): has highest priority, open vent valves for all
- Arm (switch): open/close arm flow valve
- Launch (button): open fuel 1&2 flow valves
- NOTE: The diagram is not up to date (only 6 digits) because we added a new switch. But the flow logic is correct.
- In fueling mode, all flow valves are locked in OFF mode
- all vent valves can be controlled by individual switch
- NOTE: GN2 Flow is now split into: LNG Pressure and LOX Pressure
- This mode is intended for testing valve openings before fueling
- All valves are free to be switched on and off
- Be very sure of what you are doing when using this mode
- NOTE: GN2 Flow is now split into: LNG Pressure and LOX Pressure
