8000 [PC-1859] Compressor Monitoring and Control Application Note by ArduinoBot · Pull Request #2108 · arduino/docs-content · GitHub
[go: up one dir, main page]

Skip to content

[PC-1859] Compressor Monitoring and Control Application Note #2108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 65 commits into from
Sep 11, 2024
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
1ce9526
Structure
mcmchris Jul 22, 2024
9699e69
Structure 2
mcmchris Jul 22, 2024
d230fc8
Materials
mcmchris Aug 1, 2024
868b20b
software req
mcmchris Aug 1, 2024
a27c93d
Opta Code
mcmchris Aug 1, 2024
603ba21
Opta Code
mcmchris Aug 2, 2024
a5a25ab
Opta code completed
mcmchris Aug 2, 2024
bc86464
images started
mcmchris Aug 2, 2024
4be9336
images adding
mcmchris Aug 5, 2024
8b079f9
animation added
mcmchris Aug 5, 2024
261bb72
images update
mcmchris Aug 6, 2024
22b9e18
Images added
mcmchris Aug 6, 2024
c7918d6
Images added
mcmchris Aug 6, 2024
fa9064f
codes added
mcmchris Aug 6, 2024
17bfe3d
note added
mcmchris Aug 6, 2024
5eee8b5
Minor content linter patch
TaddyHC Aug 7, 2024
27ebb84
Minor content linter patch
TaddyHC Aug 7, 2024
81bf4b6
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
74fa2f3
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
3aacbac
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
231e21b
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
1db5e48
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
d654a6f
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
960aaac
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
8346af4
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
82b209b
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
05f1249
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
48d47de
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
868c2d1
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
7f8d801
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
d603424
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
34d0665
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
2f230d8
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
6834ad8
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
344dc98
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
b4e1355
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
e6e4b1b
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
e0c7e57
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
4c4986c
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
924cb94
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
2a6a6cb
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
f9c622d
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
849feca
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
d33af0c
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
0a31352
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
402e6bc
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
4cd298e
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
f0f6756
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
3759f9a
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
400fd0e
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
ebdc072
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
abeddb1
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
86b1ec8
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
da92b0d
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
c7813b3
Update content/hardware/07.opta/opta-family/opta/tutorials/18.smart-c…
TaddyHC Aug 8, 2024
4d11695
Application note content post-review update
TaddyHC Aug 8, 2024
4829106
Application note content linter patch
TaddyHC Aug 8, 2024
012fadc
App note title trademark update
TaddyHC Aug 8, 2024
666c0c4
Small typo, added Air word for SEO and description reasons
jcarolinares Aug 8, 2024
4a33835
New thumbnail 8000
mcmchris Aug 8, 2024
b79f75b
sketch in soft requirements
mcmchris Aug 8, 2024
e61523b
Zaki review applied
mcmchris Aug 22, 2024
deaee76
Typo
mcmchris Aug 22, 2024
9fcd998
diagram added
mcmchris Aug 23, 2024
7b708b9
typo
mcmchris Aug 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Opta Code
  • Loading branch information
mcmchris committed Aug 2, 2024
commit 603ba218b50a68a6014bf511a3523f67d9d7a4b4
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,64 @@ You can download the code for the Opta PLC [here]().

Let's go through some important code sections to make this application fully operative; starting with the required libraries:

- ArduinoBLE.h
- Ethernet.h
- ArduinoModbus.h and ArduinoRS485.h
- ArduinoIoTCloud.h
- Arduino_ConnectionHandler.h
- `ArduinoBLE.h` enables the support for Bluetooth® Low Energy (BLE) communication, install it by searching for it on the Library Manager.
- `Ethernet.h` enables the Ethernet support for the Modbus TCP communication.
- `ArduinoModbus.h` and `ArduinoRS485.h` manage the Modbus TCP protocol, install them by searching for them on the Library Manager.
- `ArduinoIoTCloud.h` enable the Arduino Cloud integration, install it by searching for it on the Library Manager.
- `Arduino_ConnectionHandler.h` manages the internet connectivity for the board, install it by searching for it on the Library Manager.

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

- thingProperties.h
- `thingProperties.h` includes the WiFi credentials and Arduino Cloud configuration.

```arduino
#include "thingProperties.h"
#include <ArduinoBLE.h>

// For Modbus TCP
#include <Ethernet.h>
#include <ArduinoRS485.h> // ArduinoModbus depends on the ArduinoRS485 library
#include <ArduinoModbus.h>

// Ethernet + Modbus objects
EthernetClient ethClient;
ModbusTCPClient modbusTCPClient(ethClient);

IPAddress server(10, 0, 0, 227); // update with the IP Address of your Modbus server

#define DEBUG false

// Anomalies thresholds
#define CURRENT_LIMIT 12 // in Amps
#define PRESSURE_LIMIT 8 // in Bar
#define TEMP_LIMIT 85 // in Celsius

// Sensor inputs
#define C_SENSOR A0
#define T_SENSOR A1
#define P_SENSOR A2

#define GRID_V 120.0 // replace this value with the Grid AC voltage

float P_I3 = 0; // variable to store pressure (Bar)
float T_I2 = 0; // variable to store temperature (C)
float C_I1 = 0; // variable to st 7CE6 ore current (A)

byte AlertValue = 0; // last alert value received.

bool control_once = 1; // flow control variable

unsigned long previousMillis = 0; // will store last time readings were done
const long interval = 1000; // interval at which to repeat readings
```

In the `setup()` function the different board peripherals are initiated including:

- Serial communication
- LEDs and relay outputs
- ADC configuration
- Arduino Cloud properties
### Nicla Sense ME Code

### Arduino Cloud Dashboard

Expand Down
0