Electric–hydrogen hybrid microgrids integrating distributed renewables with electrolysers can efficiently convert dispersed renewables into hydrogen, meeting local electricity demands. However, intermittent and uncertain renewables together with sudden load changes can cause severe bus voltage fluctuations and degrade power quality, especially in off-grid microgrids. Furthermore, the electrolyser’s auxiliary units require stable AC power supply even during fault events, which most likely occur at AC–DC converters. To ensure stability during renewable/load fluctuations and converter faults, this paper proposes a fault-resilient coordinated voltage control scheme by combining PI with piecewise active disturbance rejection control to mitigate DC bus voltage fluctuations during transient disturbances and regulates AC-side fuel cells via control switching to stabilise AC voltage after the complete disconnection converter fault. The scheme is tested using a simulated kW-scale electric–hydrogen hybrid microgrid in various operating scenarios and compared with conventional methods that combine PI with PI or linear active disturbance rejection control. The simulation results show that the proposed control scheme improves DC bus voltage stability by 14% during transient renewable/load fluctuations via the incorporation of PADRC and enhance system resilience against AC–DC converter faults through the synergy of batteries and fuel cells, which construct the voltage (and frequency) of DC and AC buses, respectively.
Driven by global net-zero goals, the integrated electricity–hydrogen–ammonia system provides a pathway for coordinating renewable energy utilization with green chemical production. To address dynamic mismatch and control heterogeneity between electrical and chemical units, this paper presents a coupled multi-energy model and a multi-timescale scheduling strategy. First, nonlinear electrolyzer conversion, part-load ammonia auxiliary consumption and equipment degradation costs are incorporated into the hydrogen–electricity hybrid storage model. Then, a two-stage optimization architecture is designed: day-ahead mixed-integer programming for unit commitment, and intra-day CNN-LSTM dynamic rolling optimization. Finally, grid-connected and off-grid tests using normalized public load and photovoltaic profiles examine the coordinated operation of the system. Results show that all four grid-connected cases meet the daily ammonia delivery requirement of 200 kg, with operating margins ranging from −491.84 to 859.68 CNY/day. The three four-hour off-grid cases maintain ammonia production without load shedding under the tested conditions. These findings provide an operational reference for integrating renewable energy with green ammonia synthesis.