We consider a micro-grid with renewable energy sources. The intermittency of productions and the desynchronization between production and consumption are solved by a hydrogen storage unit. The system consists of a photovoltaic generator, a wind turbine, an electrolyser, a fuel cell, a storage tank in the form of hydrogen (MgH2). DC-DC (Boost) and DC-DC bidirectional converters (Buck-Boost) as well as DC-AC and AC-DC (wind turbine) converters provide connection to the DC bus and the network. Hydrogen storage ensures continuity of supplies for demand. The study is positioned within the framework of the territorial energy transition program set up by in Comoros.