| Literature DB >> 35694326 |
Maximiliano Aguilar1, Sebastián Riffo1, Antonio Veliz1, Catalina González-Castaño2, Carlos Restrepo1.
Abstract
This work presents the design process of an RT Box interface for control systems in microgrid applications. The control card allows implementing different controls and communication systems for microgrids in a physical environment, facilitating the development of robust control systems facing inherent adverse scenarios such as delays, loss of information packets, failures of partial or permanent communication and noise in signal overflows, among others. In addition, it permits the generation of programming resources and behavioral antecedents, helpful information for future users of the control card interface. The Plecs RT Box is a device that will enable a real-time simulation of different power electronics applications as can be a microgrid system. The built-in control card in this project is suitable as a complementary element of the RT Box, extending the capacity of this device to emulate a microgrid but testing real communication protocol between the microcontrollers that compose each of the distributed generation units (DGU). Tests were conducted to probe the communication protocols working correctly in a microgrid context, recreating real application scenarios.Entities:
Keywords: Communication control card interface; Microgrid; Open-source; RT Box
Year: 2022 PMID: 35694326 PMCID: PMC9184748 DOI: 10.1016/j.ohx.2022.e00322
Source DB: PubMed Journal: HardwareX ISSN: 2468-0672
Fig. 1Microgrid with 5 distributed generations units (4 solar and 1 wind), 3 constant power loads and 7 linear loads. Every distributed generations units and constant power loads have a power converter so they can be controlled. The proposed work uses microcontrollers to create communications between the agents while the microgrid distribution, loads and power converters are implemented in a RT-Box 1 from Plecs.
Fig. 2Communication transmission of a microgrid with 4 DGUs under a 150 Hz bandwith periodic communication for centralized secondary controller and 4 distributed topologies, average, consensus, event-triggered and self-triggered [6].
Fig. 3Representation of the total set of elements that make up the interface.
Fig. 4Board top view. (a) Power circuit. (b) Analog input circuit. (c) Digital signals circuit. (d) Control and communication ESP32 micro-controllers. (e) ESP32 communication intermediary micro-controller. (f) Raspberry PI 4 B. (g) USB/ RS232 converter.
Fig. 5Power circuit. It consists of an over-voltage protection circuit and a 3.3 V voltage regulator circuit.
Fig. 6ADC protection circuit of ESP32 micro-controllers, analog inputs.
Fig. 7Control and communication micro-controller with its complementary elements. (a) EPS32 Devkit V1 Micro-controller, (b) Micro-controller power switch, (c) Decoupling capacitors, (d) Programmable LEDs from the micro-controller, (e) Available GPIO pins, programmable from micro-controller, (f) Micro-controller UART_0 pins, available to load programs to the micro-controller, (g) MCP2515 module for CAN Bus communication.
Fig. 8ESP32 standard connection diagram for control and communication.
Fig. 9Top view 9th communication intermediary ESP32 micro-controller: (a) EPS32 Devkit V1 Micro-controller, (b) Micro-controller power switch, (c) Decoupling capacitors, (d) Available GPIO pins, programmable from micro-controller, (e) Micro-controller UART _0 pins, available for uploading programs to the micro-controller, (f) Programmable LEDs from the micro-controller, (g) ESP32-Raspberry PI UART Switch, (h) CAN Bus direct access, (i) I2C Bus direct access.
Fig. 10Raspberry PI top view: (a) Raspberry PI 4, (b) Raspberry PI GPIO Pin Header.
Fig. 11Connection diagram ESP32 communication intermediary and Raspberry Pi connection.
RT Box card bill of materials summary.
| Designator | Component | Number | Cost per | Total | Digikey | Material | |
|---|---|---|---|---|---|---|---|
| unit | cost | part | type | ||||
| USD | USD | number | |||||
| C1, C3, C5, C6, C8, C10, C15, C16, C20, C21, C25, C26, C30, C31, C35, C36, C40, C41, C48, C49, C50, C51, C52, C53, C54, C55, C56, C57, C58, C59 | Capacitor, 0.1 | 30 | 0.47 | 9.96 | 399-C3, 18C104, K5R5T, ATR-ND | Ceramic | |
| C7, C12, C17, C22, C27, C32, C37, C42, C45 | Capacitor, 10 | 11 | 0.55 | 6.05 | 478–107, 53–1-ND | Tantalum | |
| C9, C13, C18, C23, C28, C33, C38, C43, C46 | Capacitor, 100 | 9 | 0.41 | 3.69 | 493–125, 70–1-ND | Electrolytic | |
| C2, C11, C14, C19, C24, C29, C34, C44, C47 | Capacitor, 1 | 9 | 0.71 | 6.39 | EF1105-ND | Polyester | |
| C4 | Capacitor, 1 | 1 | 0.3 | 0.3 | 2368-MLR4, 73K50-ND | Polyester | |
| R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R24, R25, R26, R27, R28, R29, R30, R31 | Resistor, 330 | 29 | 0.02 | 0.77 | CF14JT33, 0RCT-ND | Carbon Film | |
| R1 | Resistor, 330 | 1 | 0.1 | 0.1 | CF12JT33, 0RCT-ND | Carbon Film | |
| R2 | Resistor, 560 | 1 | 0.1 | 0.1 | S560H, CT-ND | Carbon Film | |
| -POWER+ | TERM, BLOCK 2P, HORIZON, 2.54MM, PCB | 1 | 1.11 | 1.11 | 732–69121, 09100, 02-ND |
RT Box card bill of materials summary (continued).
| Designator | Component | Number | Cost per | Total | Digikey | Material | ||
|---|---|---|---|---|---|---|---|---|
| unit | cost | part | type | |||||
| USD | USD | number | ||||||
| Z5.1 | Zener Diode, 5.1 V, 500 mW | 1 | 0.09 | 0.09 | 2156-1N5, 993D-ND | |||
| DIGITAL_PORT | 37-pin D-Sub, Stacked | 1 | 10.73 | 10.73 | AE109, 67-ND | |||
| ANALOG_PORT | 37-pin D-Sub, Male | 1 | 1.45 | 1.45 | AE109, 88-ND | |||
| D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16 | DIODE, ARRAY, SCHOTTKY 30 V | 16 | 0.22 | 0.22 | 2156-BAT, 54S-ND | |||
| BOARD1, BOARD2, BOARD3, BOARD4, BOARD5, BOARD6, BOARD7, BOARD8, BOARD9 | ESP32, WROOM, DEVKIT, V1 30 pin | 9 | 10 | 90 | ||||
| FUSE | Fuse glass, 2.5 A | 1 | 1.76 | 1.76 | 283–50, 72-ND | |||
| FT232BL | RS232-USB | 1 | 5.90 | 5.90 | FT232BL | |||
| MCP2515 Can Bus Interface Module | 9 | 5.95 | 53.55 | |||||
| Raspberry pi 4B - 8gb | 1 | 75.00 | 75.00 |
Fig. 12Electronic card without components.
Fig. 13Electronic card in soldering process, top view.
Fig. 14Design view in Eagle software.
Fig. 15CAM Processor panel view.
Fig. 16Including the ESP32 file in Arduino IDE.
Fig. 17Installing ESP32 on Arduino IDE.
Fig. 18Selecting board model.
Fig. 19Uploading program.
Fig. 20Button to be pressed on the micro-controller to load programs.
Fig. 21Introduction video to the RT Box microgrid control interface. Link: https://data.mendeley.com/datasets/mj6mx8d5c5/11.
Fig. 22I2C communication protocol operation video. Link: https://data.mendeley.com/datasets/mj6mx8d5c5/11.
Fig. 23ESPNOW communication protocol operation video. Link: https://data.mendeley.com/datasets/mj6mx8d5c5/11.
Fig. 24CAN communication protocol operation video. Link: https://data.mendeley.com/datasets/mj6mx8d5c5/11.
Fig. 25Bluetooth communication protocol operation video. Link: https://data.mendeley.com/datasets/mj6mx8d5c5/11.
Fig. 27Results with 5 DGUs and 3 constant power loads with a communication delay of 1000 ms. At 1 s the secondary control is activated. At 10 s there is a change in power of the constant power loads. Finally, at second 15, packets losses of 80 % are included.
Fig. 26Control law used in the distributed secondary controller based on consensus and average voltage.
| RT Box Microgrid Control Interface. | ||
| Electrical engineering and computer science. | ||
| HIL uGrid DSP Interface from Typhoon HIL. | ||
| CERN Open Hardware License (OHL) | ||
| https://data.mendeley.com/datasets/mj6mx8d5c5/11 |
| Features | Proposed RT Box card | HIL uGrid DSP Interface | |
| Microgrid system | |||
| Maximum number of converters | 8 | 3 | |
| Allows to study communication delays | |||
| Allows to study packet losses | |||
| Communication protocols between microcontrollers | |||
| Bluetooth | |||
| ESP-NOW | |||
| CAN BUS | |||
| I2C | |||
| Possibility of including new protocols | |||
| Microcontroller | ESP32 devkit v1 | TMDSCNCD28027 | |
| Cores | Dual | Single | |
| Frequency (MHz) | 240 | 60 | |
| Flash memory (KB) | 4000 | 64 | |
| RAM (KB) | 512 | 12 | |
| ADC resolution | 12-bit | 12-bit | |
| Cost per unit (USD) | 9 | 49 | |
| Total price (USD) | 300 | 4100 | |
| Design filename | File type File type | Open Source licence | Location of the file |
|---|---|---|---|
| Schematic.sch | Schematic | CC BY 4.0 | https://data.mendeley.com/datasets/mj6mx8d5c5/11 |
| Board.brd | Layout | CC BY 4.0 | https://data.mendeley.com/datasets/mj6mx8d5c5/11 |
| Libraries.lbr | Library | CC BY 4.0 | https://data.mendeley.com/datasets/mj6mx8d5c5/11 |
| microgrid_gerber.zip | Gerber | CC BY 4.0 | https://data.mendeley.com/datasets/mj6mx8d5c5/11 |
| ESP32 file folder | .ino files | CC BY 4.0 | https://data.mendeley.com/datasets/mj6mx8d5c5/11 |
| MATLAB file folder | .m files | CC BY 4.0 | https://data.mendeley.com/datasets/mj6mx8d5c5/11 |
| Raspberry PI file folder | Python | CC BY 4.0 | https://data.mendeley.com/datasets/mj6mx8d5c5/11 |
| PCB explanation and demonstration | MP4 | CC BY 4.0 | https://data.mendeley.com/datasets/mj6mx8d5c5/11 |