Skip to content

Commit 4d11695

Browse files
committed
Application note content post-review update
1 parent c7813b3 commit 4d11695

File tree

1 file changed

+14
-10
lines changed
  • content/hardware/07.opta/opta-family/opta/tutorials/18.smart-compressor-app-note

1 file changed

+14
-10
lines changed

content/hardware/07.opta/opta-family/opta/tutorials/18.smart-compressor-app-note/content.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ hardware:
1717

1818
Upgrade your industrial compressor with smart capabilities and connect it to the Arduino Cloud for advanced condition monitoring using the Opta™ micro PLC.
1919

20-
![Project Thumbnail](assets/thumbnail.png)
20+
![](assets/thumbnail.png)
2121

2222
This affordable solution provides real-time remote data access, behavioral diagnostics, predictive maintenance, and efficient device management. It helps you maximize uptime, lower operational costs, and extend the lifespan of your equipment.
2323

@@ -33,7 +33,7 @@ The goal of this application note is to showcase the capabilities of Opta PLC in
3333

3434
## Hardware and Software Requirements
3535

36-
![Hardware Image](assets/material.png)
36+
![Hardwares Used](assets/material.png)
3737

3838
### Hardware Requirements
3939

@@ -45,14 +45,14 @@ The goal of this application note is to showcase the capabilities of Opta PLC in
4545
- RTD to 0-10 V converter (x1)
4646
- Pressure transmitter 0-10 V (x1)
4747
- Power Relay 24 V (Optional x1)
48-
- Wiring Cable 18AWG
48+
- 18 AWG Wiring Cable
4949
- [USB Type-C® Cable](https://store.arduino.cc/products/usb-cable2in1-type-c) (x1)
5050
- [Micro-USB cable](https://store.arduino.cc/products/usb-2-0-cable-type-a-micro) (x1)
5151

5252
### Software Requirements
5353

5454
- [Arduino IDE 2](https://www.arduino.cc/en/software) or [Arduino Cloud Editor](https://create.arduino.cc/editor)
55-
- The [Compressor Monitor sketches for Opta and Nicla Sense ME]()
55+
- The [Compressor Monitor sketches for Opta and Nicla Sense ME](assets/Opta_Nicla_Codes.zip)
5656
- The [Arduino Create Agent](https://cloud.arduino.cc/download-agent/) to provision the Opta WiFi on the Arduino Cloud.
5757
- The [**Arduino Cloud**](https://cloud.arduino.cc/). If you do not have an account, you can create one for free inside [**cloud.arduino.cc**](https://cloud.arduino.cc/home/?get-started=true).
5858

@@ -130,9 +130,9 @@ Let's go through some important code sections to make this application fully ope
130130

131131
- `ArduinoBLE.h` enables support for Bluetooth® Low Energy (BLE) communication. Install it by searching for it in the Library Manager.
132132
- `Ethernet.h` enables Ethernet support for Modbus TCP communication.
133-
- `ArduinoModbus.h` and `ArduinoRS485.h` manage the Modbus TCP protocol. Search for them in the Library Manager to install them.
134-
- `ArduinoIoTCloud.h` enables Arduino Cloud integration. Search for it in the Library Manager to install it.
135-
- `Arduino_ConnectionHandler.h` manages the board's internet connectivity. Search for it in the Library Manager to install it.
133+
- `ArduinoModbus.h` and `ArduinoRS485.h` manage the Modbus TCP protocol. Search for **ArduinoModbus** and **ArduinoRS485** in the Library Manager to install them.
134+
- `ArduinoIoTCloud.h` enables Arduino Cloud integration. Search for **ArduinoIoTCloud** in the Library Manager to install it.
135+
- `Arduino_ConnectionHandler.h` manages the board's internet connectivity. Search for **Arduino_ConnectionHandler** in the Library Manager to install it.
136136

137137
There is a header included in the project code for the Arduino Cloud configuration:
138138

@@ -222,6 +222,7 @@ void setup() {
222222
EthernetInit();
223223
}
224224
```
225+
225226
In the `loop()` function, the Wi-Fi® and BLE connections and sensor readings are continuously verified.
226227

227228
```arduino
@@ -294,6 +295,7 @@ To convert the Opta's ADC raw readings into voltage, the following method can be
294295
```arduino
295296
Voltage = analogRead(<Input>) * (3.3 / 4095.0) / 0.30337;
296297
```
298+
297299
***The formula above is derived from Opta's analog input frontend circuit.***
298300

299301
```arduino
@@ -369,6 +371,7 @@ void ModbusSend() {
369371
}
370372
}
371373
```
374+
372375
There are other functions in the main code listed below:
373376

374377
- `EthernetInit()`: Initializes the Ethernet connection for Modbus TCP communication.
@@ -379,13 +382,14 @@ There are other functions in the main code listed below:
379382
***You can download the complete code from [here](assets/Opta_Nicla_Codes.zip).***
380383

381384
### Nicla Sense ME Code
385+
382386
You can download the code for the Nicla Sense ME [here](assets/Opta_Nicla_Codes.zip).
383387

384388
Let's go through some important code sections to make this application fully operational, starting with the required libraries:
385389

386390
- `Nicla_System.h` adds support for the Nicla core and extended functionalities for power management.
387-
- `ArduinoBLE.h` enables support for Bluetooth® Low Energy (BLE) communication. Install it by searching for it in the Library Manager.
388-
- `Arduino_BHY2.h` provides the APIs for Nicla Sense ME board sensors.
391+
- `ArduinoBLE.h` enables support for Bluetooth® Low Energy (BLE) communication. Install it by searching for **ArduinoBLE** in the Library Manager.
392+
- `Arduino_BHY2.h` provides the APIs for Nicla Sense ME board sensors. Search for **Arduino_BHY2** in the Library Manager to install it.
389393

390394
Initial settings are defined by specifying accelerometer samples, sampling frequency, sensor object, and time control variables.
391395

@@ -415,7 +419,7 @@ unsigned long microseconds;
415419
long previousMillis = 0; // last time the vibration level was checked, in ms
416420
```
417421

418-
The Bluetooth® Low Energy services and characteristics are standardized for this specific application. The service is defined as `Immediate alert (1802)`, ideal for notifying anomalous vibration events, and an `alert level characteristic (2A06)`. These have specific and standardized Bluetooth® Low Energy UUIDs.
422+
The Bluetooth® Low Energy services and characteristics are standardized for this specific application. The service is defined as `Immediate Alert (1802)`, ideal for notifying anomalous vibration events, and an `Alert Level Characteristic (2A06)`. These have specific and standardized Bluetooth® Low Energy UUIDs.
419423

420424
In the `setup()` function, the different board peripherals are initialized, including:
421425

0 commit comments

Comments
 (0)