Skip to main content
HardwareX logoLink to HardwareX
. 2025 Mar 18;22:e00636. doi: 10.1016/j.ohx.2025.e00636

Flexible hardware for teaching and research in renewable energy and off-grid microgrids

Cristian Escudero-Quintero 1, Juan Pablo Guzman-Rodriguez 1, Juan Pablo Villegas-Ceballos 1,, Elkin Edilberto Henao-Bravo 1, Daniel Gonzalez-Montoya 1
PMCID: PMC11987643  PMID: 40226159

Abstract

Microgrids are an active research field due to their integration of renewable and non-renewable energy sources alongside energy storage systems to supply both DC and AC loads. While existing studies extensively explore hierarchical control structures, focusing on algorithm design and optimization, practical implementation remains challenging due to system complexity. This paper presents the development of a low-power microgrid hardware platform based on power converters and controllers, enabling experimental validation of the second and third levels of hierarchical control. The platform enables real-time energy management using FPPT algorithms while providing an intuitive graphical interface for data visualization and system monitoring. Experimental results confirm the system’s capability of dynamically managing energy flows, ensuring stable operation under varying load conditions. The system demonstrates reliable operation handling loads of up to 100 W, with scalability to 200 W, providing an effective tool for testing and research in microgrid control strategies.

Keywords: Control of switching converters, Power converters, Power electronics, Inverters, Renewable energy

Graphical abstract

graphic file with name ga1.jpg

Specifications table

Specifications table

Hardware name Flexible hardware for teaching and research in renewable energy and off-grid microgrids.

Subject area Engineering and material science
Educational tools and open source alternatives to existing infrastructure
General
Hardware type Electronics engineering and computer science
Closest commercial Solar Micro Inverter Development Kit
analog Solar MPPT DC/DC development Kit
Solar Development Kit with PMIC
MPC5775B/E Low-Cost BMS and Inverter Development Board
Open source license CERN Open Source License Permissive (CERN-OHL-P)
Cost of hardware Approximate hardware cost: 416.13 USD
Source file repository https://doi.org/10.17605/OSF.IO/PCMHW

1. Hardware in context

Microgrids constitute a dynamic and contemporary field of research, integrating various energy sources—both renewable and non-renewable to supply DC and AC loads. Some microgrids also incorporate energy storage devices to optimize the energy generated by renewable sources [1]. Additionally, they can operate either on-grid or off-grid, with off-grid systems being particularly relevant in areas where access to the main grid is limited or non-existent [2].

To ensure efficient and reliable operation, a three-level hierarchical control system is implemented in microgrids, with each level performing specific functions related to security, coordination, and efficiency [3]. The first level controls individual devices within the microgrid, such as inverters, regulators, and batteries, performing fine-tuning and local regulation to maintain stability and efficiency. The second level is responsible for local microgrid management, monitoring and adjusting power flow to meet demand by controlling the operation of generation, storage, and load devices. Finally, the third level oversees and coordinates the entire microgrid, ensuring proper grid operation while balancing resources and energy flows.

In the literature, extensive research covers various aspects of hierarchical control structures, focusing on designing and optimizing control algorithms for specific devices such as inverters, batteries, and storage systems. Moreover, adaptive control techniques have been developed to respond to variations in both demand and generation [4]. Likewise, the interaction between microgrids and the main grid is being studied to enhance operational efficiency.

Each of these studies requires validation of the proposed methodologies, techniques, or algorithms. However, due to the complexity of these systems, their practical application presents significant challenges. To address this, researchers validate their contributions through simulations. For example, [5] focuses on improving the efficiency of photovoltaic systems under partial shading conditions using a bio-inspired algorithm, while [6] explores energy management optimization in microgrids with storage, aiming to reduce costs and enhance system stability.

Moreover, validation through simulations on specialized platforms such as Hardware-in-the-Loop (HIL) has become a key tool to ensure the effectiveness of proposed algorithms and strategies before their implementation in real systems. In this regard, [7], [8] demonstrate the usefulness of HIL for evaluating control strategies in hybrid and islanded AC microgrids, respectively. Likewise, [9] employs real-time simulation with Typhoon HIL to test the control of a microgrid based on solar energy and battery storage. In contrast, [10] introduces the concept of a digital twin as an advanced tool for managing microgrids in autonomous vehicles.

Despite the accuracy of these methods to emulate the operation of systems in controlled environments, they often fail to cover all the complexities and nonlinearities of the real world. This limitation can lead to inaccuracies or the omission of relevant aspects, generating results that only partially reflect what happens in real situations [11]. In addition, the setup and development of these test environments often demand a significant amount of time and resources. Researchers must spend considerable effort to create accurate models and carry out complex simulations. Also, the results obtained in these controlled settings may not readily apply to larger situations or large-scale operating systems due to scalability or transferability limitations.

An adequate test scenario for evaluating algorithms and new power converters in a microgrid based on renewable energy sources is to perform tests in a real environment. However, given the risks and the high costs associated with this option, a more feasible alternative is to conduct the tests in a scaled system. In this context, it is essential to facilitate the interaction of the three levels of control, including the complexities inherent to the system and the variability inherent to renewable energy sources. In addition, testing should be run over realistic periods, ranging from hours to days, and specifically addressing the communication latencies between the different levels of the system.

In recent years, open-source hardware and software used in microgrids have gained significant relevance due to their flexibility, low cost, and adaptability in academic and research environments. [12] propose a consensus-based distributed hierarchical strategy for battery energy storage systems (BESS) in DC microgrids. This strategy employs an adaptive proportional consensus algorithm that efficiently allows state-of-charge (SOC) balancing and current sharing, improving microgrid stability and performance without needing a centralized controller. Similarly, [13] developed a low-cost, web-based SCADA system for a microgrid testbed. Using open platforms such as Arduino and Raspberry Pi, this system facilitates data acquisition and monitoring in hybrid microgrids that integrate solar, wind, and biomass sources and battery storage. This approach provides an economical and flexible solution for teaching and research, reducing the costs associated with commercial SCADA systems. In addition, [14] proposes an innovative multi-level architecture for automating and monitoring smart photovoltaic microgrids. The system uses the open Modbus TCP protocol to facilitate industrial and open-source equipment interoperability. The architecture has been experimentally validated in a photovoltaic microgrid, demonstrating its effectiveness in integrating diverse heterogeneous devices and systems.

Several commercial alternatives with flexible and modular structures adapt to different conversion schemes. The Solar Micro Inverter Development Kit [15] includes a flyback DC/DC converter with active clamping and an inverter that operates in both on-grid and off-grid modes, all digitally controlled by the TMS320F28035 Piccolo microcontroller; the platform is ideal for microinverters control research. The Solar MPPT DC/DC Development Kit [16] offers a two-phase boost converter with MPPT and an LLC resonant converter, complementing the Solar Inverter Kit [17], which offers a four-switch inverter controlled by the microcontroller TMS320F28035 Piccolo or F28M35H52C Concerto, and is suitable for central and string inverters. In addition, the Solar Explorer Development Kit serves as a low-voltage learning platform for solar application development.

On the other hand, the Solar Development Kit with PMIC from e-peas and supercapacitors from CAP-XX (DEV-EPEAS-CAPXX) [18] allows the integration of solar energy into electronic devices, using solar panels from PowerFilm and supercapacitors from CAP-XX. The MPC5775B/E Low-Cost BMS and Inverter Development Board [19] is designed for battery and inverter management, with 32-bit Power architecture MPC5775B/E microcontrollers and the MC3377x cell controller, being suitable for battery management, diesel engines, motorcycle engine control units and small motors. Finally, the PELab system includes an industrial-grade embedded controller with a dual-core ARM Cortex M7/M4 microcontroller and touch screen, offering flexible configurations for power electronics applications. Table 1 presents a summary of the hardware characteristics with capabilities and cost.

Table 1.

Microgrid test hardware comparison.

Hardware Power inputs Possibility to connect more sources Charger/discharger energy storage Inverter Cost (USD)
Solar Micro Inverter Development Kit 1 not not yes/ On-grid $996

Solar MPPT DC/DC Development Kit 1 not not yes/ On-grid $700

Solar DC/AC Inverter Kit, 1 not not yes/ On-grid Obsolete

Solar Explorer Development Kit 1 not yes yes/ On-grid Obsolete

Solar Development Kit con PMIC 1 not yes not $80

MPC5775B/E Low-Cost BMS and Inverter Development Board 1 yes yes not $279

Proposed Hardware 2 yes yes yes/ Off-grid $416.13

2. Hardware description

The system design follows the usability and simplicity principles to facilitate its use in educational spaces, allowing students and teachers to interact with its different components without requiring advanced technical knowledge in hardware implementation. The user interface is intuitive and graphical through Simulink, providing real-time visualizations of variables of interest for the application. Additionally, the developers designed the interface and controls to guide users step by step in configuring and operating the system, enabling the creation of an easy-to-use interface in educational environments.

The hardware design simplifies physical connections between the different modules. Each element includes connection diagrams, allowing users to generate configurations that lead to new control and energy management strategies. In terms of software, the system integrates an interface that enables users to interact with the data and control the system through Simulink blocks, which is especially useful in academic contexts where the goal is to explain renewable energy principles and microgrid control.

Looking to observe the behavior of a DC microgrid operating with different control techniques and management algorithms under controlled conditions, this work proposes the development of low-power hardware based on power converters to carry out experimental tests. The basic architecture of the microgrid is formed by two power ports driven by their respective DC/DC converter, which are connected through a DC bus where DC loads or additional sources can be connected. An off-grid inverter is also available to feed the AC loads as shown in Fig. 1. The system also has a communication network to transmit the measured variables, which are sent from two microcontrollers, called Slave 1 and Slave 2, to a third microcontroller, called Master. The Master device interacts with a PC through USB serial communication for monitoring and management. For Fig. 1 the dotted lines represent the signal communication network, and the solid line represents power and measured signals.

Fig. 1.

Fig. 1

Proposed microgrid topology.

2.1. DC bus description

The DC bus is the main connection node of the microgrid; therefore, for simple connection of the hardware elements, a pair of copper bars are the physical DC bus voltage; for this work, the DC bus voltage is 36 V, but 48 V can be selected as well. DC bus bars can support 30A. These bus bars allow the interconnection of DC/DC converters, DC loads, inverter input, and other DC equipment, ensuring a secure connection and low resistance to minimize power losses in the system.

An electronic board was developed to measure the input and output currents on the DC bus, i.e., the currents delivered by the sources and their converters or consumed by the loads and their converters. The current measurement uses the hall effect sensor ACS712-30, which allows measuring currents in a range of 30A to 30A. This board requires a supply voltage of 5 V for proper operation; the schematic of the measurement board is presented in Fig. 2.

Fig. 2.

Fig. 2

DC bus current sensor board.

2.2. Power modules and instrumentation

This stage has two power input and output ports, each managed by a bi-directional boost converter. Each power input can operate from 5 V to 100 V and a maximum of 5.2A. IRF3710 MOSFETs, 22μF capacitors for input and output, and 330μH inductors were used to construct the Boost converters, inductors, and capacitors were calculated to operate within the defined range and maintain low voltage and current ripple. Each power input is equipped with instrumentation circuitry, including voltage regulators, drivers, and other essential components to ensure proper operation; the power and instrumentation modules are presented in Fig. 3, Fig. 4, Fig. 5.

Fig. 3.

Fig. 3

First power converter module.

Fig. 4.

Fig. 4

Second power converter module.

Fig. 5.

Fig. 5

Instrumentation for power converter modules.

The power circuitry also features an enable circuit for each converter, allowing all converters to be turned on and off simultaneously via the 555 integrated circuit (IC). This design enables the board to operate safely in several renewable energy applications because it allows the proper connections and disconnections before turning on/off the power modules. In addition, each power circuit on the board features voltage and current measurements on capacitors and inductors, which is achieved with ACS712 optocoupled sensors and the ACPL-C87A-00E, ensuring accurate and safe measurements. The converters’ signals are captured and sent to an Arduino DUE microcontroller (Slave 1). In this same device, the controllers for each converter are implemented. For the connection between the power converter board and the microcontroller, the coupling board shown in Fig. 6 is used, which uses a header connector that connects the signals measured on the power board and the control signals (PWM’s) from the terminals of the Slave 1.

Fig. 6.

Fig. 6

Coupling board for Slave 1 and power converter modules.

2.3. DC/DC buck converter and power inverter for AC loads

A commercial modified waveform inverter, rated at 1000W, powers the AC loads. The inverter’s input voltage is 12 V, providing an output of 100V240V RMS, with an efficiency of 90% and a frequency of 60Hz. This inverter is suitable for many household and electronic loads but is not ideal for sensitive equipment, high-power motors, or medical equipment.

A Buck converter allows the coupling of the inverter with the DC bus, the converter shown in Fig. 7 adjusts its output voltage to the level required for the inverter. Additionally, this implementation allows measuring the power delivered to the inverter and disconnecting it from the DC bus when desired. With an inverter that handles a voltage range similar to that of the DC bus voltage, the buck converter is not required for the coupling, simplifying the system. This design ensures that power needs can be met efficiently and safely despite the limitations of modified wave inverters regarding compatibility with sensitive equipment.

Fig. 7.

Fig. 7

Buck converter and instrumentation.

Additionally, a electronic board that allows optocoupling voltage signals for measurement and control of the converter is implemented. Therefore, the differential voltage sensor ACNT-H87B-000E reads the voltage at the output of the Buck converter. On the other hand, the HCPL-3120 optocoupler is used to isolate the control signal coming from Slave 2. Fig. 8 shows the previously described electronic board with its respective conditioning circuits.

Fig. 8.

Fig. 8

Sensing and optocoupling electronic board.

Slave 2 measures DC voltage vdclink and current idclink at the connection point located at the output of the buck converter and input of the inverter. Also, Slave 2 performs a control for the voltage at the output of the buck converter to ensure proper operation and maintain the integrity of the inverter due to its working specifications; in this sense, the variable vdclink helps to regulate the voltage using a PI controller. In addition, the variables idclink and vdclink flow to the Master through the communication system to determine the power consumption by the AC loads connected to the inverter.

2.4. Communication system

In order to obtain power measurements from the test bench and analyze its performance, a communication system has been implemented to collect data from each of the elements connected to the microgrid. This system uses a half-duplex master–slave communication architecture. Measurements and communication interfaces allow continuous monitoring of the power generated and consumed as well as the current and voltages of the microgrid. The communication system requires a master device to request and receive data from the Slave devices. With the information collected, the behavior of the different elements connected to the microgrid is graphically presented. Additionally, the Master sends the collected data to a central processor that can visualize, process, and make decisions based on the collected information.

The data acquisition system uses the RS485 protocol, operating at 115200 bps and readily accommodating additional devices. Its differential signaling, which requires only two communication lines and supports cable lengths up to 1200 m, makes it widely used in industrial applications.

To implement this topology with the microcontroller Arduino DUE, it is necessary to use the IC MAX485, which converts UART data to RS485. The schematic of the ICs and their respective conditioning circuits are shown in Fig. 9. Additionally, since UART communication is asynchronous, a protocol was designed to establish synchronous communication from the Master to each of the slaves. This procedure was implemented at both hardware and software levels using an enabling pin that allows changing the mode from transmit to receive. The two Slave devices were programmed using the Arduino IDE software, while the Master was programmed using Simulink.

Fig. 9.

Fig. 9

Communication system.

2.5. Power management system

The Power Management System (PMS) is designed to provide a graphical interface that facilitates the observation and recording of power generation and consumption variables. In the Fig. 1 it can be seen that Slave 1 takes the power parameters from the converters connected to power ports PP1 and PP2. Slave 2 collects power data from the inverter and DC loads. According to the above, the data collected and observed under the PMS are PP1 voltage (vpp1), PP1 current (ipp1), PP2 voltage (vpp2), PP2 current (ipp2), DC link voltage (vdclink), DC link current (idclink), and current of the loads (iload1, iload2).

Fig. 10 illustrates the system’s communication process using two finite-state machines (FSM). The first state machine (SM1) manages the master’s data reception and transmission. The second state machine (SM2) defines the sequence of information exchange between the master and the slave devices.

Fig. 10.

Fig. 10

Finite State Machine.

The SM1 state machine consists of five main states and a standby state. Its behavior is described as follows:

  • StateS1:
    • Enables communication from slave 1 master.
  • StateS2:
    • Enables communication from slave 2 master.
  • StateS3:
    • Once data from both slaves has been received, the management algorithm is executed.
    • The transition between S1S2 and S2S3 occurs when the SM2 state machine has completed a cycle and entered state S4.
  • TransitionS3S4:
    • Before transitioning to state S4, the system must compute the reference values and activate the flag_management signal, which indicates that the management algorithm has been completed.
    • The transition occurs when at least 15 s have elapsed and the flag is set.
  • StatesS4andS5:
    • S4: Enables communication from master slave 1.
    • S5: Enables communication from master slave 2.
    • Once both transmissions have been completed, the system enters a standby state for 15 s before restarting at state S1. During this period, the system operates using the reference values provided by the management system.

The SM2 state machine consists of three main states and three standby states. Its operation is described as follows:

  • StateS1:
    • Requests data from the master to the selected slave.
    • If the SM1 state machine is in state S3 (management algorithm) or in standby, a transition to state S4 occurs, where the system waits for 100 ms.
    • Otherwise, if SM1 is in states S1,S2,S4, or S5, the system enters a waiting state for 100 ms before transitioning to the next state, S2.
  • StateS2:
    • Handles the reception of data from the slave devices.
    • If no response is received after 200 ms, the system transitions to state S3, where the master reattempts data requests to the slaves.
    • Subsequently, the system enters another waiting state of 100 ms before proceeding.
  • TransitionS2S4:
    • Once the responses from the slaves are received, the system transitions from state S2 to state S4.
    • After 100 ms, the system returns to state S1 to restart the cycle.

Fig. 11 illustrates the platform’s monitoring interface for power generation and consumption. The upper left section displays real-time graphs of key parameters acquired by the Master, including panel power, battery power, battery SOC behavior, and power consumption of AC and DC loads. The upper right section indicates the current battery charge percentage. Additionally, the interface presents the loads’ current on/off status, which the PMS controls. Finally, the lower section provides data on energy consumption and generation. The Software/Master directory of the online repository contains the Simulink block code.

Fig. 11.

Fig. 11

Dashboard interface.

3. Design files summary

The design files are available in the online repository [20] (see Table 2).

Table 2.

Summary of all design files.

Desing file name File type Open source license Location of the file
Master(.brd)(.sch) Fusion360, Fig. 9 PCB desing CERN-OHL-P Hardware/Master
SL1PCCoupler(.brd)(.sch) Fusion360, Fig. 6 PCB desing CERN-OHL-P Hardware/SL1PCCoupler
Instrumentation1(.brd)(.sch) Fusion360, Fig. 2 PCB desing CERN-OHL-P Hardware/Instrumentation1
BuckConverter(.brd)(.sch) Fusion360, Fig. 7 PCB desing CERN-OHL-P Hardware/BuckConverter
PowerConverters(.brd)(.sch) Fusion360, Fig. 3, 4, y 5 PCB desing CERN-OHL-P Hardware/PowerConverters
Instrumentation2(.brd)(.sch) Fusion360, Fig. 8 CERN-OHL-P Hardware/Instrumentation2
Base assembly(.f3d) Fusion360, Fig. 12(a) 3D design CERN-OHL-P Hardware/Case Assembly
Front side assembly(.f3z) Fusion360, Fig. 12(b) 3D design CERN-OHL-P Hardware/Case Assembly
Rear side assembly(.f3z) Fusion360, Fig. 13(a) 3D design CERN-OHL-P Hardware/Case Assembly
Left side assembly(.f3d) Fusion360, Fig. 13(b) 3D design CERN-OHL-P Hardware/Case Assembly
Right side assembly(.f3d) Fusion360, Fig. 14(a) 3D design CERN-OHL-P Hardware/Case Assembly
Shell side assembly(.f3z) Fusion360, Fig. 14(b) 3D design CERN-OHL-P Hardware/Case Assembly
Intermediate platform assembly(.f3d) Fusion360, Fig. 15(a) 3D design CERN-OHL-P Hardware/Case Assembly
Intermediate platform installing(.f3d) Fusion360, Fig. 15(b) 3D design CERN-OHL-P Hardware/Case Assembly

Fig. 12.

Fig. 12

Base and Front side assembly.

Fig. 13.

Fig. 13

Rear Side and Left Side assembly.

Fig. 14.

Fig. 14

Right Side assembly and Shell Case assembly.

Fig. 15.

Fig. 15

Intermediate platform assembly and installing.

4. Bill of materials summary

The BOM of the PCBs implemented in the microgrid can be found in the repository. The files are presented in the Section 3 (see Table 3).

Table 3.

List of BOM and prices.

Module File type Cost (USD) Location of the file
BOM_Master.xlsx Fig. 9 BOM 78.81 Hardware/Master
BOM_Instrumentation1.xlsx Fig. 2 BOM 13.35 Hardware/Instrumentation1
BOM_Instrumentation2.xlsx Fig. 8 BOM 17.41 Hardware/Instrumentation2
BOM_BuckConverter.xlsx Fig. 7 BOM 82.43 Hardware/BuckConverter
BOM_PowerConverters.xlsx Fig. 3 BOM 121.75 Hardware/PowerConverters
BOM_SL1PCCoupler.xlsx Fig. 6 BOM 49.11 Hardware/SL1PCCoupler
BOM_HardwareCase.xlsx Fig. 17(a) BOM 53.27 Hardware/Case Assembly

TOTAL 416.13

Fig. 17.

Fig. 17

Hardware 3D model and real hardware assembled.

5. Build instructions

For the hardware construction, it is necessary to build the PCBs presented in Fig. 3, Fig. 4, Fig. 4 from the Gerber files, the designs are presented in schematic (.sch) and board (.brd) files. Any PCB design software can import, edit, and update these files if required. Additionally, the hardware case parts presented in [20] must be cut out. Once these elements are available, proceed to assemble the hardware according to the following steps:

  • Step 1. Base assembly: Using the SL1PCCoupler board, attach the Slave 1 and the Power Converter circuit. On the baseboard (Fig. 3), fit the circuits using threaded standoff and screws, preferably plastic, as shown in the Fig. 12(a).

  • Step 2. Front Side assembly: On the Front Side (Fig. 12(b)), install the USB ports for programming the Arduino and the jack for the power supply.

  • Step 3. Rear Side assembly: Install the terminals for power inputs 1 and 2 and the two fans on the Rear Side as shown in the Fig. 13(a).

  • Step 4. Left Side assembly: On the Left Side, for the power supply of the Instrumentation and Sensor electronic board belonging to the Power Converter circuit, connect three jack terminals and one screw terminal block as shown in Fig. 13(b).

  • Step 5. Right Side assembly: On the inner side of the Right Side, install the DC bus bar vertically using two jack terminal blocks. With another two jack terminals, install the Instrumentation1 circuit internally connected to the negative DC bus bar. Install the inverter output connectors, the on/off switch, and the LED indicator on this side. Fig. 14(a) shows the final result of the assembly.

  • Step 6. Shell Case assembly: Adapt the CornerSupports on the Base and install the Rear, Left, and Right Sides. Using the corresponding wires, connect all the instrumentation power input and power supply terminals; connect the positive power outputs of the Power Converter circuit to the positive DC bus bar and the negative outputs to the Instrumentation1 circuit. Fig. 14(b) shows the assembled case.

  • Step 7. Intermediate platform assembly: On the intermediate platform, install the inverter, the BuckConverter, the Instrumentation2 circuit, the Slave 2, and Master microcontrollers as shown in the Fig. 15(a). Install the intermediate platform on top of the Shell Case as shown in Fig. 15(b).

The connection of the boards is shown in Fig. 16. The red and black lines indicate the connections corresponding to the power stage. The orange lines indicate the data acquired by the Instrumentation1 and Instrumentation2 electronic boards and transmitted to Slave 1 and Slave 2. Finally, the blue lines represent the connections of the communication system between the Master and the two Slaves.

Fig. 16.

Fig. 16

Electronic boards connections.

Once the boards and devices are connected, place the box’s top cover, finalizing the hardware assembly as shown in Figs. Fig. 17, Fig. 17 for the 3D model and the actual hardware assembled in detail.

The platform supports various input and output connections with varying voltage and current levels, as detailed in Table 4. These connections provide AC load outputs, instrumentation power supplies for the power modules—maintained at +15V, −15V, and GND by the employed regulators—power supply interfaces for storage or generation systems, and USB ports for data transfer to various microcontrollers along with their dedicated power supplies. This architecture accommodates a wide range of energy sources, ensuring compatibility with diverse loads and power components, while the specified limits help prevent system overloads and maintain operational stability.

Table 4.

Table of input/output ports and electrical characteristics.

Ports Direction Symbol Voltage level Current level
Power supply
instrumentation
IN PSI +15, −15 V GND 0.5 A
USB IN USB 1,2,3 5 V 0.5 A
Power jack IN PJ 5 V 0.5 A
Power DC input 1 IN/OUTb, c +P1, −P1 15–25 V 5 A
Power DC input 2 IN/OUTb, c +P2, −P2 15–25 V 5 A
Load DC 1 OUT/INa, b L1+, L1− 36–40 V 5 A
Load DC 2 OUT/INa, b L2+, L2− 36–40 V 5 A
Load AC 1 OUTb LAC1 100–240 RMS 8 A
Load AC 2 OUTb LAC2 100–240 RMS 8 A
a

Allows connection of load and bidirectional sources.

b

Manipulable port.

c

Allows connection of bidirectional sources.

6. Operation instructions

The equipment composing the microgrid hardware plays a fundamental role in its operation, so it is essential to establish operating instructions that allow the microgrid to be fully functional. First, it is crucial to have a controller designed for the power converters on the platform, this ensures a stable operation of the system and the management of the parameters of the microgrid for the desired operating specifications. Secondly, it is essential to properly turn on and off the equipment that composes the microgrid to avoid the instrumentation and control systems. The following is a step-by-step guide to putting the microgrid into correct and safe operation.

A proper power-on and power-off procedure ensures that the power and communication system operates safely. Fig. 18 illustrates the correct power-on sequence, which users must follow to ensure all components receive power and function correctly.

Fig. 18.

Fig. 18

Power-on protocol.

To initiate the startup process, users must first activate the communication system, which initializes the Simulink interface for data transfer and system monitoring. Next, they power the instrumentation devices to ensure accurate data acquisition. Once the instrumentation operates correctly, they connect the system to the power generation ports, which distribute electrical power and enable controlled energy integration. Activating the power module platform ensures the proper functioning of the system’s power modules. Subsequently, turning on the power inverter converts DC to AC, allowing load integration. Finally, users connect and supply power to the AC and DC loads. Once all components receive power, they must review the recorded parameters in the communication system to verify system stability and proper operation before proceeding with further tasks.

A specific sequence must be followed to safely shut down the system, as illustrated in Fig. 19. The shutdown process begins by turning off the power inverter and deactivating the power module platform to prevent further energy generation or extraction, effectively interrupting the power flow from the DER. Next, the power supply to the instrumentation ports is disconnected to ensure that measurement devices are safely powered down. Finally, the communication system is deactivated to complete the shutdown process. Before concluding, verifying that the current flow is completely interrupted is essential to confirm that the system has been safely powered off. This protocol ensures that the system operates safely during the power-up and shutdown phases, preventing damage to components and enhancing overall performance.

Fig. 19.

Fig. 19

Power-off protocol.

7. Validation and characterization

The presented hardware allows exploring different test scenario alternatives, such as those presented in the Fig. 20. The first scenario (see Fig. 20(a)) proposes the use of two solar panels or arrays as distributed generation sources, through which distributed maximum power point tracking (DMPPT) strategies can be explored. The second scenario (see Fig. 20(b)) proposes to include another type of source, such as a wind generator with rectifier, through which it is possible to test Maximum Power Point Tracking (MPPT) techniques and obtain generation conditions dependent on different variable than solar radiation. The third scenario proposes using an energy storage system such as a battery, by which it is possible to have an energy backup for periods in which the photovoltaic generation is lower than the demand of the loads. In this case, the battery converter must operate bi-directionally to allow charging and discharging of the battery (see Fig. 20(c)). Finally, the fourth scenario proposes using a hybrid battery-ultracapacitor storage system, for which it is possible to connect on the DC bus another controlled power source that charges the storage elements as seen in Fig. 20(d).

Fig. 20.

Fig. 20

Test scenario alternatives.

The third scenario was selected to validate the hardware performance, as shown in more detail in the sample control strategies for each source and load in Fig. 21. The figure illustrates the structure of the controllers, which are programmed in Slave 1 and Slave 2. These slave devices communicate with the master, transmitting the measured variables and receiving control actions and reference values. The reference values may vary depending on the programmed strategy. The PMS processes the data received from the slaves. If an active management strategy is in place, the PMS executes it, displays the data on the dashboard, and sends the reference values defined by the management algorithm. Otherwise, the system displays the received variables on the dashboard.

Fig. 21.

Fig. 21

Scenery for testing the proposed hardware.

For the PV panel, a PI control regulates the PV voltage to the value defined by the Perturb and Observe (P&O) MPPT algorithm. The MPPT algorithm requires measuring the PV current and PV voltage to calculate the voltage reference for the voltage controller. For the voltage control, the parameters are Kp=0.006561/V, Ki=0.009691/Vs and the sampling time ts=0.1ms; and for the P&O algorithm, the perturbation voltage is ΔV=0.5V and the perturbation time is tp=2ms.

For the battery, a cascade control loop regulates the bus voltage at vbus=36V. The measurements required for this control are battery current and bus voltage. The parameters for the internal current control are Kp=0.000491/A, Ki=0.087241/As and the sampling time ts=2ms; while for the voltage control the parameters are Kp=0.085A/V, Ki=0.00066A/Vs and ts=10ms.

A buck converter is responsible for supplying power to the inverter; it reduces the 36 V from the DC bus to 12 V for the input of the inverter; also, a PI voltage control regulates the voltage at the inverter input. The inverter feeds the AC loads with a 120VRMS. The parameters of the voltage controller for the buck converter are Kp=0.7451/V, Ki=0.006191/Vs and ts=1ms.

Slave 1 runs the PV panel and battery controllers, Slave 2 runs the voltage control for the inverter input. All measurement data are sent via the communication protocol to the Master and displayed on the Dashboard.

7.1. Testbench description

For validation experiments, the testbench construction requires power sources, storage elements, and loads shown in Fig. 22 and detailed next:

Fig. 22.

Fig. 22

Testbench for the proposed hardware testing.

  • PV Emulator Chroma 62000H DC voltage source to emulates power and current curves for PV panels at several irradiance and temperature conditions. The software Solar Array allows programming the DC source.

  • Battery bank The battery bank uses a series of two batteries FL1223GS with 12 V of nominal voltage and 2.3Ah of nominal capacity as the storage element connected to the bidirectional power converter.

  • DC Load Chroma 63600 Programmable DC load with 500mA required current.

  • AC Load No-linear load using twenty LED bulbs of 7W.

In addition to the above devices, a power supply feeds the instrumentation and control devices for the power converters. An oscilloscope measures the testbench’s different current and voltage waveforms. The PV Emulator is configured with a standard irradiance of 1000W/m2, a temperature of 25°C, a maximum power of 50W, a fill factor of 0.75 and a voltage temperature coefficient of 0.38%. To test the hardware in different operating conditions, the two scenarios below allow the validation when the PV source does not supply power, and the batteries feed the loads; on the contrary, the PV panel supplies power to loads, and excess goes to the batteries.

7.2. Test case 1: Stability under low PV generation and load transients

The PV generator is set to deliver 4% of the maximum power for the first validation test. The battery, its converter, and controller maintain the bus voltage at 36 V and supply the power required by the loads. The AC and DC loads are turned on and off to observe the microgrid’s stability and behavior against changes in power consumption.

Fig. 23 shows the PV panel voltage and current, the battery current, and the DC bus voltage; the PV generator delivers approximately 1.8W, which is lower than the power demanded by the loads, so the energy storage system must supply the remaining power, thus changes in the current value are observed between a range of 0.3A and 3.2A, which corresponds to a range of power delivered from the battery between 7.2W and 76.8W. In addition, the stability in the DC bus voltage against the changes generated by the connection and disconnection of loads allows verifying that the control and the converter connected to the battery guarantee a stable operation against possible disturbances.

Fig. 23.

Fig. 23

Low PV power and batteries feeding changing loads.

7.3. Test case 2: Dynamic PV generation reduction and battery response under sequential load variations

For the second validation test, the PV generator supplies 90% of peak power and changes to 75% at 5.2s. Again, the loads turn on and off sequentially to observe the behavior of the energy storage system. Fig. 24 show the PV voltage and current, the battery current, and the DC bus voltage parameters. The figure shows that the PV panel generates approximately 44.2W; then, the generation is substantially reduced to 32W and remains around that value. In both scenarios, the MPPT control is active, which allows the converter to deliver the maximum power value generated by the PV panel.

Fig. 24.

Fig. 24

Changes on PV power and the loads.

On the other hand, the battery current is initially negative since the power generation exceeds the demand; therefore, the battery starts to charge. However, as the loads increase, the battery discharges to supply the missing power. In addition, the battery current increases as the power generation decreases, demonstrating the microgrid’s stability. Finally, the DC bus voltage is stable despite disturbances presented in both power demand and generation, which reaffirms the microgrid’s control and stability.

7.4. Test case 3:

Power Management Strategy - Hierarchical control

This subsection presents the energy management strategy implemented in the proposed platform, which allows for managing the generation and consumption of energy between renewable sources, storage systems, and connected loads. This hierarchical strategy guarantees the system’s stable operation, prioritizing the use of renewable energy and managing the SOC of the batteries to maximize the autonomy and stability of the microgrid.

The management algorithm balances generation and demand while considering the system’s operating conditions. This approach enables the system to decide when to activate the MPPT and FPPT (Fixed Point Power Tracking) algorithm, control the energy flow to or from the batteries, and manage critical loads by disconnecting them when necessary.

Fig. 25 illustrates the flow chart of the energy management strategy implemented in the platform. This diagram represents the hierarchical control logic balancing energy generation, storage, and consumption. The process starts with updating key energy parameters, including PV power Ppv, battery power Pbat, DC and AC load powers PDCload,PACload, battery SOC and PV system generated power Ppv. The first decision node evaluates whether the SoC is within the operating range (20% SoC 90%). If so, the MPPT algorithm is enabled, and FPPT is disabled, maximizing solar energy harvesting. If SoC exceeds 90%, control focuses on distributing the generated energy. The system compares the available PV power with the total load demand (DC and AC). If Ppv is higher than the total demand, FPPT is activated with a reduced operating point Vpvref=VpvΔV to avoid battery overcharging. Otherwise, if Ppv cannot cover demand, the system can perform load shedding by turning off DC and AC loads to maintain operational stability.

Fig. 25.

Fig. 25

Flowchart of the energy management strategy.

Fig. 26 displays the parameters that the graphical interface collects, including Ppv, Pbat, and the power consumed by the AC and DC loads. The system implements a load profile to analyze battery performance. The AC and DC loads in this profile initially consume approximately 40 W. At minute 13, power consumption significantly increases to 120 W. In response, the battery adjusts its behavior, supplies the required power, and discharges.

Fig. 26.

Fig. 26

Experimental validation of the energy management algorithm during dynamic load conditions.

The middle plot of Fig. 26 reflects this dynamic by showing the battery’s SOC. Initially, the panel generates surplus energy, which charges the battery and gradually increases the SOC from approximately 72% to 81%. When power demand rises, the battery discharges to compensate for the additional load. As a result, the SOC steadily declines after minute 13, reaching about 73%.

The bottom plot displays the PV panel voltage throughout the experiment. It remains relatively stable around 18–20 V, indicating that the MPPT algorithm maintains the panel near its optimal operating point despite fluctuations in power demand. This stability ensures efficient energy harvesting from the PV source, even during dynamic load conditions.

Fig. 27 presents a new scenario where the system starts with an initial SoC of 85%. The PV generator delivers its peak power, approximately 80 W, while the system maintains a constant consumption profile of about 55 W. The PMS allows battery charge and discharge within the 20% to 90% range.

Fig. 27.

Fig. 27

Experimental validation of the MPPT to FPPT transition.

As shown in Fig. 27, the battery is initially charging due to the surplus energy from the PV generator. Once the SoC reaches the upper allowed limit (90%), the PMS instructs Slave 1 to deactivate the MPPT algorithm and switch to FPPT. To execute this transition, the Master controller sends a voltage reference to Slave 1, which then adjusts the PV panel voltage to reduce power generation progressively. This process ensures that the battery is not overcharged and prevents energy wastage.

The top plot in Fig. 27 illustrates this transition, where the Ppv (blue line) decreases gradually after minute 13, corresponding to the activation of the FPPT. Meanwhile, the battery power (Pbat, red line) also decreases, indicating reduced charging current, eventually stabilizing around 0 W as the PV output aligns with the load demand.

The middle plot displays the SoC evolution, where the battery continues to charge even after reaching 90%, peaking at 92% due to the gradual nature of the FPPT regulation. This slight overcharge highlights the smooth control process, which avoids abrupt transitions that could destabilize the system.

The bottom plot shows the PV panel voltage behavior. Initially, the voltage remains around the maximum power point under MPPT control. After the switch to FPPT, the voltage increases as the system reduces the PV output, eventually settling at a higher voltage level that limits power generation to match the load demand.

Fig. 28 shows how the system behaves under a high-load demand scenario. In this case, the PV panel continues delivering its maximum power of approximately 80 W. In comparison, the system establishes a load profile of around 105 W. This imbalance forces the battery to supply the additional 25 W required to meet the total demand.

Fig. 28.

Fig. 28

System response under high-load demand.

The top plot of Fig. 28 shows that the Pbat begins discharging to compensate for the power deficit. As a result, the middle plot illustrates a continuous decline in the battery’s SOC. The SOC steadily decreases until it reaches the lower allowable limit of 20%, marked by the red reference line. When the system reaches this critical threshold, the PMS activates a protective mechanism to preserve battery health and maintain system stability. Specifically, the PMS deactivates AC and DC loads to reduce total power demand. The top plot marks this event with the annotation ’Load OFF,’ showing a significant drop in Pload and a return of Pbat to nearly 0 W as the PV panel takes over the reduced load.

After the system disconnects the load, the battery recharges using the PV panel’s surplus energy. The middle plot reflects this recovery phase, showing a gradual increase in SOC after minute 10 as it moves away from the critical 20% threshold. The bottom plot displays the PV panel voltage, which remains relatively stable around 18–20 V throughout the process, ensuring consistent energy production. The MPPT algorithm maintains the PV panel’s optimal operating point, even during dynamic load and battery charging conditions.

8. Conclusions

This paper proposes the development of low-power microgrid hardware based on power converters and controllers to carry out the experimental test for the second and third levels of the hierarchical control structure for microgrids. Validations show the system can operate up to 200W of PV panels and loads. Also, the hardware uses low-cost elements and control boards, making the proposed hardware cheaper than commercial hardware with similar specifications.

CRediT authorship contribution statement

Cristian Escudero-Quintero: Writing – original draft, Visualization, Validation, Software. Juan Pablo Guzman-Rodriguez: Writing – original draft, Validation, Software, Investigation. Juan Pablo Villegas-Ceballos: Writing – review & editing, Validation, Software, Methodology, Investigation, Conceptualization. Elkin Edilberto Henao-Bravo: Writing – original draft, Methodology, Conceptualization. Daniel Gonzalez-Montoya: Project administration, Methodology, Funding acquisition, Conceptualization.

Ethics statements

The authors declare that this study did not involve any human subjects or animal experiments; therefore, no ethical approval was required.

Declaration of competing interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Acknowledgments

Funding: This work was supported by Minciencias, Universidad Nacional de Colombia, Universidad del Valle, and Institución Universitaria ITM under the research project “Estrategias de dimensionamiento, planeación y gestión inteligente de energía partir de la integración y la optimización de las fuentes no convencionales, los sistemas de almacenamiento y cargas eléctricas, que permitan la generación de soluciones energéticas confiables para los territorios urbanos y rurales de Colombia”, (Minciencias code 71148), which belongs to the research program “Estrategias para el desarrollo de sistemas energéticos sostenibles, confiables, eficientes y accesibles para el futuro de Colombia”, (Minciencias code 1150-852-70378, ITM code RC 80740-178-2021-1).

Biographies

graphic file with name fx1.jpg

Cristian Escudero-Quintero: He received his degree in electronic engineering from the Institución Universitaria ITM (Colombia) in 2021. His research interests include power converters, DC microgrids, power flow control, and renewable energies. He is pursuing a Master in Industrial Automation and Control at the Instituto Tecnologico Metropolitano (Colombia). He has worked on several research studies as a Research Collaborator with the Engineering Department of the Instituto Tecnologico Metropolitano, Medellin, Colombia.

graphic file with name fx2.jpg

Juan Pablo Guzman-Rodriguez: He received a degree in Electronic Automation from the Institución Universitaria ITM (2023) and is pursuing a Bachelor’s in Electronic Engineering at the same institution. His research interests focus on power electronics, renewable energy, and energy management. He has participated in energy conversion systems and sustainable technologies projects, aiming to develop efficient and innovative energy solutions.

graphic file with name fx3.jpg

Juan Pablo Villegas-Ceballos: Electronic Engineer and Master in Automation and Industrial Control from the Institución Universitaria ITM. He is pursuing a Ph.D. in Power Electronics. He is an adjunct professor at ITM and leads the research laboratory on Electronics and Renewable Energy. He has extensive experience developing control strategies for power converters, with applications in microgrids, photovoltaic generation, and energy storage systems.

graphic file with name fx4.jpg

Elkin Edilberto Henao-Bravo has a Ph.D. in Engineering Automation, an MSC. in electrical engineering, and a BS in Electronic Engineering. He has over 10 years of experience as a professor in power electronics, control systems, and circuit theory. He also has over five years of experience as a Researcher focusing on power converters for PV systems and battery chargers/dischargers.

graphic file with name fx5.jpg

Daniel Gonzalez-Montoya: Control Engineer from the Universidad Nacional of Colombia, Medellin, with Master and Ph.D. degrees in Automatic Engineering with an emphasis on Renewable Energies from the Universidad Nacional of Colombia. His work areas are focused on the design of energy generation systems with renewable sources, Smart Grids, Intelligent systems for energy optimization and electric transport systems.

Contributor Information

Cristian Escudero-Quintero, Email: cristianescudero200038@correo.itm.edu.co.

Juan Pablo Guzman-Rodriguez, Email: juanguzman300450@correo.itm.edu.co.

Juan Pablo Villegas-Ceballos, Email: juanvillegas@itm.edu.co.

Elkin Edilberto Henao-Bravo, Email: elkinhenao@itm.edu.co.

Daniel Gonzalez-Montoya, Email: danielgonzalez@itm.edu.co.

References

  • 1.Uddin M., Mo H., Dong D., Elsawah S., Zhu J., Guerrero J.M. Microgrids: A review, outstanding issues and future trends. Energy Strat. Rev. 2023;49 doi: 10.1016/j.esr.2023.101127. [DOI] [Google Scholar]
  • 2.Garzón-Hidalgo J.D., Saavedra-Montes A.J. Una metodología de diseño de micro redes para zonas no interconectadas de Colombia. TecnoLógicas. 2017;20:39–53. doi: 10.22430/22565337.687. [DOI] [Google Scholar]
  • 3.Shan Y., Ma L., Yu X. Hierarchical control and economic optimization of microgrids considering the randomness of power generation and load demand. Energies. 2023;16:5503. doi: 10.3390/en16145503. [DOI] [Google Scholar]
  • 4.Mousavizade M., Bai F., Garmabdari R., Sanjari M., Taghizadeh F., Mahmoudian A., Lu J. Adaptive control of V2gs in islanded microgrids incorporating EV owner expectations. Appl. Energy. 2023;341 doi: 10.1016/j.apenergy.2023.121118. [DOI] [Google Scholar]
  • 5.Roslan M., Hannan M., Ker P., Muttaqi K., Mahlia T. Optimization algorithms for energy storage integrated microgrid performance enhancement. J. Energy Storage. 2021;43 doi: 10.1016/j.est.2021.103182. [DOI] [Google Scholar]
  • 6.Alshareef M.J. An effective falcon optimization algorithm based MPPT under partial shaded photovoltaic systems. IEEE Access. 2022;10:131345–131360. doi: 10.1109/ACCESS.2022.3226654. [DOI] [Google Scholar]
  • 7.Bagudai S.K., Ray O., Samantaray S. Evaluation of control strategies within hybrid DC/AC microgrids using typhoon HIL. 2019 8th International Conference on Power Systems; ICPS; IEEE; 2019. pp. 1–6. [DOI] [Google Scholar]
  • 8.Nigam S., Ajala O., Domínguez-García A.D., Sauer P.W. Controller hardware in the loop testing of microgrid secondary frequency control schemes. Electr. Power Syst. Res. 2021;190 doi: 10.1016/j.epsr.2020.106757. [DOI] [Google Scholar]
  • 9.Sharma S., Pradhan R., Jena P. IEEE; 2022. AC microgrid control using PV and battery in typhoon HIL; pp. 1–7. [DOI] [Google Scholar]
  • 10.Kumar M.G.V., Karunakaran S., Chandre S., Godi R.K., Manirajkumar P., Balaram A. Implementation of microgrid digital twin system for unmanned vehicles with cloud computing techniques. SN Comput. Sci. 2023;4:566. doi: 10.1007/s42979-023-01986-9. [DOI] [Google Scholar]
  • 11.Bazmohammadi N., Madary A., Vasquez J.C., Mohammadi H.B., Khan B., Wu Y., Guerrero J.M. Microgrid digital twins: Concepts, applications, and future trends. IEEE Access. 2022;10:2284–2302. doi: 10.1109/ACCESS.2021.3138990. [DOI] [Google Scholar]
  • 12.Lahmer A., Chang J.-W., Park S., Jeong H., Chae S. Consensus-based adaptive distributed hierarchical control of battery energy storage systems in a DC microgrid. J. Energy Storage. 2024;97 [Google Scholar]
  • 13.Vargas-Salgado C., Aguila-Leon J., Chiñas-Palacios C., Hurtado-Perez E. Low-cost web-based supervisory control and data acquisition system for a microgrid testbed: A case study in design and implementation for academic and research applications. Heliyon. 2019;5 doi: 10.1016/j.heliyon.2019.e02474. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.González I., Calderón A.J., Portalo J.M. Innovative multi-layered architecture for heterogeneous automation and monitoring systems: Application case of a photovoltaic smart microgrid. Sustainability. 2021;13:2234. [Google Scholar]
  • 15.. Texas Instruments, Solar Micro Inverter Development Kit.
  • 16.Texas Instruments I. 2024. Solar MPPT DC/DC development kit. [Google Scholar]
  • 17.T. Instruments, Solar DC/AC Inverter Kit.
  • 18.. POWERFILM, Solar Development Kit with e-peas PMIC and CAP-XX Supercapacitors (DEV-EPEAS-CAPXX), URL https://www.powerfilmsolar.com/products/development-kits/solar-development-kit-with-e-peas-pmic-cap-xx-supercapacitors.
  • 19.. NXP, MPC5775B/E low-cost BMS and Inverter Development Board.
  • 20.Quintero C.E., Rodriguez J.P.G., Ceballos J.P.V., Bravo E.E.H., Montoya D.G. 2024. Flexible hardware for teaching and research in renewable energy and off-grid microgrids. URL. [DOI] [Google Scholar]

Articles from HardwareX are provided here courtesy of Elsevier

RESOURCES