Skip to content

Commit 6bfc7c7

Browse files
committed
Tutorial content update
1 parent a0f5d15 commit 6bfc7c7

File tree

1 file changed

+21
-21
lines changed
  • content/hardware/07.opta/opta-family/opta/tutorials/13.energy-management-application-note

1 file changed

+21
-21
lines changed

content/hardware/07.opta/opta-family/opta/tutorials/13.energy-management-application-note/content.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 'Energy Management with Opta™'
3-
description: "This application note describes how to implement Opta™ for a domestic energy management system."
3+
description: "This application note explains how to use Opta™ for managing energy consumption in a domestic environment."
44
difficulty: intermediate
55
tags:
66
- Energy
@@ -48,7 +48,7 @@ Below is a visual representation of the intended application:
4848
- Opta™ PLC with RS-485 support: [Opta™ RS485](https://store.arduino.cc/products/opta-rs485), or [Opta™ WiFi](https://store.arduino.cc/products/opta-wifi) (x1)
4949
- [USB-C® cable](https://store.arduino.cc/products/usb-cable2in1-type-c) (x1)
5050
- 7M.24 Energy meter (x1)
51-
- Solar panel with respective system (Controller, battery, and inverter) or similar power system
51+
- Power source: e.g., solar panels with their respective system (controller, battery, and inverter)
5252
- Domestic appliances or devices of interest
5353
- RS-485 connection wire as recommended by the standard specification (x3):
5454
- STP/UTP 24-18AWG (Unterminated) 100-130 Ω rated
@@ -66,7 +66,7 @@ Below is a visual representation of the intended application:
6666

6767
### Setting Up the Arduino IDE
6868

69-
For this application note, ensure you have the latest version of the Arduino IDE, which is available for download [here](https://www.arduino.cc/en/software). Within the Arduino IDE, you need to install the **`Arduino Mbed OS Opta Boards`** core for Opta™ devices.
69+
For this application note, ensure you have the latest version of the Arduino IDE, available for download [here](https://www.arduino.cc/en/software). Within the Arduino IDE, you need to install the **`Arduino Mbed OS Opta Boards`** core for Opta™ devices.
7070

7171
To install this core, go to **Tools > Board > Boards Manager** or click the **Boards Manager** icon on the left side of the IDE.
7272

@@ -89,7 +89,7 @@ The Library Manager can be accessed using the **"Ctrl + Shift + I"** shortcut or
8989

9090
## Power Analyzer & Modbus RTU
9191

92-
A **power analyzer** or **energy meter** measures and analyzes electrical parameters in power systems, which is essential for monitoring energy efficiency, checking network performance, and diagnosing issues. By providing insights into voltage, current, power factor, and energy consumption, these devices help optimize load operation and reduce energy costs.
92+
A **power analyzer** or **energy meter** measures and analyzes electrical parameters in power systems, essential for monitoring energy efficiency, checking network performance, and diagnosing issues. By providing insights into voltage, current, power factor, and energy consumption, these devices help optimize load operation and reduce energy costs.
9393

9494
The **6M.Tx** series includes three single-phase power monitors for AC and DC systems, handling AC frequencies from 1 to 400 Hz and nominal currents from 50 to 300 A (up to 400 A for DC). They measure parameters like peak voltage (`Vpk`), peak current (`Ipk`), and Total Harmonic Distortion (`THD(U)`), which are important for assessing power quality. Data is accessible via Modbus RTU over RS-485, using 16-bit registers.
9595

@@ -99,45 +99,45 @@ It features a backlit LCD that shows real-time values like voltage (`V`), curren
9999

100100
The series provides real-time data logging and advanced diagnostics with a run-time counter for preventive maintenance activities. It includes an integrated Modbus RS485 interface for easy data integration into larger systems. The series boasts active energy accuracy **Class B** according to **EN 50470-3 (MID)** and reactive energy accuracy **Class 2** according to **EN 62053-23**.
101101

102-
For both series, measurements are available as 16-bit reads, with energy measurements as 32-bit values from two adjacent 16-bit registers. Note that all offsets are register offsets, not byte offsets, with Modbus addressing starting from 0.
102+
For both series, measurements are available as 16-bit reads, with energy measurements as 32-bit values from two adjacent 16-bit registers. **Note that all offsets are register offsets, not byte offsets, with Modbus addressing starting from 0**.
103103

104104
***For more details on the Modbus protocol, refer to the [__Arduino® & Modbus Protocol__](https://docs.arduino.cc/learn/communication/modbus/) tutorial and the [__ArduinoModbus__](https://github.com/arduino-libraries/ArduinoModbus) library. For practical implementation of Modbus RTU on Opta™, see the [__Getting Started with Modbus RTU on Opta™__](https://docs.arduino.cc/tutorials/opta/getting-started-with-modbus-rtu/) tutorial.***
105105

106106
## Hardware Setup Overview
107107

108-
The electrical connections of the intended application design are shown in the diagram below:
108+
This application note is focused on using the 7M.24 energy meter. The electrical connections for the intended application design are shown in the diagram below:
109109

110110
![Electrical connections of the application with the 7M.24 Energy Meter](assets/electrical_connections.png)
111111

112-
***To address the power demands and ensure reliable connections with the load, using cables that comply with appropriate electrical standards, such as ASTM B 258 standard, and can support up to __50 A__ of current is advisable. __Cables with a cross-sectional area ranging from 13.3 mm² to 21.2 mm², roughly equivalent to AWG 6-4, should be sufficient for 50 A of current.__***
112+
***To meet the power demands and ensure reliable connections with the load, using cables that comply with appropriate electrical standards, such as ASTM B 258 standard, and can support up to __50 A__ of current is advisable. __Cables with a cross-sectional area ranging from 13.3 mm² to 21.2 mm², roughly equivalent to AWG 6-4, should be sufficient for 50 A of current.__***
113113

114-
The Opta™ system will access real-time consumption details from the 7M.24 energy meter using the Modbus RTU over the RS-485 interface. Power from the solar panels undergoes multiple processes before it reaches the energy meter.
114+
The Opta™ system will access real-time consumption details from the 7M.24 energy meter using Modbus RTU over the RS-485 interface. Power from the solar panels undergoes multiple processes before it reaches the energy meter.
115115

116116
Household appliances can be managed using the Opta™ system's built-in relay functions. It is also worth noting that other power sources can replace the solar panels.
117117

118118
***The __6M.TA Energy Meter__ can be used instead of the 7M.24 energy meter, maintaining a similar overall setup as previously shown. For more details, please refer to the tutorial dedicated to __6M.TA Energy Meter__ [here](https://docs.arduino.cc/tutorials/opta/opta-6m-power-analyzer/).***
119119

120120
## Opta™ Energy Management Model Description
121121

122-
The main role of Opta™ is to efficiently handle power, using data from the energy meter linked to the solar panel as its basis. It fetches and processes data from the energy meter, estimating real-time consumption based on the meter's thresholds and the current power output of the solar panel.
122+
The main role of Opta™ is to manage power distribution as efficiently as possible, using data from the energy meter connected to the solar panel as its basis. It fetches and processes data from the energy meter, estimating real-time consumption based on the meter's thresholds and the current power supply of the solar panel.
123123

124124
For this application, we are using the __7M.24 energy meter__ model from Finder. You can access its datasheet [here](https://cdn.findernet.com/app/uploads/2021/09/20090052/Modbus-7M24-7M38_v2_30062021.pdf).
125125

126126
***For the __6M.TA Energy Meter__, refer to this document containing [communication protocol](https://cdn.findernet.com/app/uploads/Modbus_RS485_6MTx.pdf) information. For more details, please refer to the tutorial dedicated to __6M.TA Energy Meter__ [here](https://docs.arduino.cc/tutorials/opta/opta-6m-power-analyzer/).***
127127

128-
The __7M.24 energy meter__ communicates via the Modbus RTU on the RS-485 interface. The relay functions of Opta™ will operate the relevant household appliances. To gather data and oversee power allocation, Opta™ carries out the following steps:
128+
The __7M.24 energy meter__ communicates via the Modbus RTU on the RS-485 interface. The relay functions of Opta™ will control the relevant household appliances. To gather data and oversee power allocation, Opta™ carries out the following steps:
129129

130130
- Procure voltage and current readings from the energy meter.
131131
- Gather three types of power readings from the energy meter: _Active Power Total - Pt (`W`)_, _Reactive Power Total - Qt (`var`)_, and _Apparent Power Total - St (`VA`)_.
132132
- Organize the collected data on Voltage, Current, and Power (Active, Reactive, and Apparent) into various categories to represent the _Actual_, _Average_, _Maximum_, and _Minimum_ values of each.
133133
- Access the Energy Counter figures in _`Wh`_ and _`varh`_ units.
134134
- Distribute power optimally to regulate selected household appliances based on the user's energy profile.
135135

136-
While all these processes are handled by Opta™ locally, it is also connected to the Arduino Cloud through Wi-Fi®. This connection lets users view their energy usage and remotely control connected devices via the Arduino Cloud.
136+
While all these processes are managed by Opta™ locally, it is also connected to the Arduino Cloud through Wi-Fi®. This connection lets users view their energy usage and remotely control connected devices via the Arduino Cloud.
137137

138138
### Opta™ Energy Management with 7M.24 Example Code
139139

140-
The provided code showcases the capabilities of Opta™ as described earlier. It is worth noting that the Arduino Cloud generates some code functions during dashboard configuration. The files can be downloaded [here](assets/energy_management.zip) for immediate access to the full example. We will dive into key code components to explain how the example code works.
140+
The provided code showcases the capabilities of Opta™ as described earlier. It is worth noting that the Arduino Cloud generates some code functions during dashboard configuration. The files can be downloaded [here](assets/energy_management.zip) to access the complete example immediately. We will dive into key code components to explain how the example code works.
141141

142142
The code requires the inclusion of specific headers. These headers enable the RS-485 interface, the Modbus RTU protocol, the Arduino Cloud connection, and the scheduler. The scheduler oversees data exchange through the RS-485 interface using the Modbus RTU protocol. Moreover, it includes the parameters essential for stable communication and adhering to Modbus RTU standards.
143143

@@ -199,13 +199,13 @@ constexpr auto preDelayBR { bitduration * 9.6f * 3.5f * 1e6 };
199199
constexpr auto postDelayBR { bitduration * 9.6f * 3.5f * 1e6 };
200200
```
201201

202-
Configuring the user parameters correctly is vital to ensure appropriate system operation. Such parameters are:
202+
Configuring the user parameters correctly is important to ensure appropriate system operation. Such parameters are:
203203

204-
- `operation_safety_margin`: This is the safety margin multiplier factor. It is expressed in decimal format. For instance, to have a 20% safety buffer, the input should resemble `1.2`.
204+
- `operation_safety_margin`: This is the safety margin multiplier factor. It is expressed in decimal format. For instance, to have a 20% safety buffer, the input should be `1.2`.
205205

206206
- `estimated_max_power`: The anticipated maximum power (measured in Watts) under which the network will operate. It sets a benchmark average power based on user input and then compares it to the energy meter reading. This helps verify if the network is running in line with the desired electrical attributes set by the user.
207207

208-
- `estimated_max_energy`: Similar to `estimated_max_power`, this parameter marks the network's forecasted maximum active energy limit (in Wh). Its role is to ensure the network remains stable, delivering consistent power to the connected devices.
208+
- `estimated_max_energy`: Similar to `estimated_max_power`, this parameter characterizes the network's forecasted maximum active energy limit (in Wh). Its role is to ensure the network remains stable, delivering consistent power to the connected devices.
209209

210210
- `Device_X_Limiter`: This sets the maximum limit for a chosen parameter for devices 1 & 2. Its definition should align with that of the `Device_X_CompRef`.
211211

@@ -268,11 +268,11 @@ The function `energy_distro_ctrl()` uses energy meter data and user inputs from
268268

269269
This ensures that devices operate when energy consumption is within a range that is 10% below the maximum safe operation level. The `handleDevice()` function streamlines parameter adjustments and troubleshooting for each device state, facilitating desired relay activation.
270270

271-
The system will alert the user if the average power demand surpasses the predefined user profile threshold. This application note considers specific data from the devices used, serving as a proof of concept for this scenario.
271+
The system will warn the user if the average power demand surpasses the predefined user profile threshold. This application note considers specific data from the devices used, serving as a proof of concept for this scenario.
272272

273273
The `Device #1` is configured for low-power devices that need a consistent current or the existing power to switch on securely. Users also have the option to control it remotely.
274274

275-
The `Device #2` caters to devices with higher power demands. It will begin operations if the current or average power available meets the specified power requirement.
275+
The `Device #2` can be seen as a device with higher power demands. It will begin operations if the current or average power available meets the specified power requirement.
276276

277277
```arduino
278278
/**
@@ -412,7 +412,7 @@ void RTU_Setup(){
412412

413413
The provided functions are designed for data retrieval from a target device via the Modbus RTU protocol. Each function is designed to fetch specific data types from the device using distinct register addresses.
414414

415-
By indicating the device and the register address, these functions simplify accessing data from devices communicating through Modbus RTU. We will employ these functions to extract data from the 7M.24 energy meter.
415+
By indicating the device and the register address, these functions simplify accessing data from devices communicating through Modbus RTU. We will use these functions to extract data from the 7M.24 energy meter.
416416

417417
```arduino
418418
/**
@@ -685,15 +685,15 @@ Access the complete sketch used in the energy management design for Opta™ in c
685685

686686
## Conclusion
687687

688-
You have built an Opta™ energy manager adept at monitoring an electrical system, evaluating power availability and consumption, and remotely managing devices prioritized by power or energy via the Arduino Cloud.
688+
You have built an Opta™ energy manager to monitor an electrical system, evaluate power availability and consumption, and remotely manage devices prioritized by power or energy via the Arduino Cloud.
689689

690690
Opta™ can help manage the energetical balance in industrial environments: in this example, we have considered a scenario where machines can be operated opportunistically, based on power availability, over a 24/7 span, to improve the overall power efficiency.
691691

692-
This project can be adapted with a few tweaks, such as integrating different types of power sources, setting varied conditions for machinery operations, and adjusting power-related parameters. This flexibility allows for customized solutions, effectively addressing numerous scenarios and optimizing energy distribution.
692+
This project can be adapted with a few tweaks, such as integrating different power sources, setting varied conditions for machinery operations, and adjusting power-related parameters. This flexibility allows customized solutions, effectively addressing numerous scenarios and optimizing energy distribution.
693693

694694
## Next Steps
695695

696-
Setting up an energy management system at home or in an industrial setting can greatly minimize unneeded power usage. Delve into the potential of energy management by harnessing the Arduino Cloud to develop a more energy-conscious environment.
696+
Setting up an energy management system at home or in an industrial setting can greatly minimize unnecessary power usage. Dive into the potential of energy management by harnessing the Arduino Cloud to develop a more energy-conscious environment. The 6M.TA energy meter can also be used to meet demands as an alternative using a similar setup. For more details, please refer to the dedicated tutorial [here](https://docs.arduino.cc/tutorials/opta/opta-6m-power-analyzer/).
697697

698698
## Support
699699

0 commit comments

Comments
 (0)