Memuat
Memuat
A solar panel, boost converter, 400 V DC bus and 20 kWh battery serve a village load for 24 hours.
0 views
A DC microgrid for a village: a 7.1 kW solar panel with an explicit diode equation, a Perturb and Observe maximum power point tracker, an averaged boost converter, a 400 V DC bus held by a 20 kWh battery, a daily load with a critical-load limiter, and a dump load when the battery is full. Irradiance is a clear-sky curve multiplied by passing clouds.

A clear-sky curve is read from a time-of-day lookup, then multiplied by a cloud factor made from Sine, Step and a cloud-edge filter.
The panel current comes from an explicit diode equation; the voltage Vpv is the state of an Integrator.
Two Integrators represent the input capacitor and the inductor; the duty cycle sets the current reaching the bus.
The duty step direction follows the sign of the power change; at night the duty is reset to its initial value.
A PI holds the bus at 400 V through battery power limited by the SOC; surplus power is absorbed by the dump load.
A daily load profile plus ripple; an SOC relay cuts the load to 40 percent below 15 percent SOC and restores it above 30 percent.
System
A 7.1 kW PV (Voc 200 V, Isc 48 A), a 5 mH boost, a 400 V bus with a 5 mF capacitor, a 20 kWh battery and a peak load of about 3.2 kW.
Scenario
One full day compressed: 1 simulated second equals 30 minutes, so 48 s equals 24 hours, with two thick-cloud events.
Note: Simulation time is compressed (1 second = 30 minutes) so a full day runs quickly; the converter is an averaged model, not a switching model.
Simulink model microgrid_surya_baterai.slx (standard block diagram); Builder script buat_model.m and runner jalankan.m; Result plots grafik_microgrid (PNG) and metrik.json; Step-by-step PDF guide (coming soon, sent once finished); Video tutorial on building the model (coming soon); Requires MATLAB and Simulink (built in R2025b); the slh.m builder helper is included.
Yes. The .slx model opens in MATLAB with Simulink (built in R2025b; use the same or a newer release). Project 09 also needs the Communications Toolbox. The package includes the builder script and the runner, so you can also rebuild the model and rerun the plots yourself.
Yes. Parameters are kept in the Model Workspace, so you can change values such as gains, capacities and profiles and rerun the simulation. If you would like us to adapt or extend the model for you, message us on WhatsApp.
The project costs US$24. Use the "Buy via WhatsApp" button on this page; the project files are delivered after payment is confirmed.
Found a problem or have a suggestion for this project? Tell us on WhatsApp
Back to MATLAB Simulink portfolio