diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ble.png b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ble.png deleted file mode 100644 index 72b72116f8..0000000000 Binary files a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ble.png and /dev/null differ diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ble.svg b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ble.svg new file mode 100644 index 0000000000..680ec162f4 --- /dev/null +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ble.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ethernet.png b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ethernet.png deleted file mode 100644 index ddfcd9355d..0000000000 Binary files a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ethernet.png and /dev/null differ diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ethernet.svg b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ethernet.svg new file mode 100644 index 0000000000..336ec1148c --- /dev/null +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-ethernet.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-wifi.png b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-wifi.png deleted file mode 100644 index 1fa52e33ff..0000000000 Binary files a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-wifi.png and /dev/null differ diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-wifi.svg b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-wifi.svg new file mode 100644 index 0000000000..184ec1b84e --- /dev/null +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/assets/opta-wifi.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/content.md b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/content.md index 9601401b9c..721675aa5b 100644 --- a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/content.md +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started-connectivity/content.md @@ -51,7 +51,7 @@ Then we need to install the appropriate core for the Arduino Opta™. Go to **To The files necessary for using the Wi-Fi® on the Arduino Opta™ are included in the core. To try it out, we can go to **File > Examples**, and under **Examples for Opta**, we can find the **WiFi** section. Inside there is an example sketch called **WiFiWebClient**. Open this example sketch and fill out the Wi-Fi® details in the **arduino_secrets.h** tab. Once uploaded, the sketch will make the Arduino Opta® connect to the desired website defined within `char server[] = "example.com";` variable. If the connection is successful, it will then print the website's HTML content to the serial monitor. If the sketch ran successfully, the output should look like the image below. -![Running Wi-Fi® sketch on the Arduino Opta™ in the Arduino IDE](assets/opta-wifi.png) +![Running Wi-Fi® sketch on the Arduino Opta™ in the Arduino IDE](assets/opta-wifi.svg) If you want to take a deeper look at the features that the **WiFi** library has to offer, [take a look at the API Wi-Fi® reference page](https://www.arduino.cc/reference/en/libraries/wifi/). @@ -59,7 +59,7 @@ If you want to take a deeper look at the features that the **WiFi** library has The Arduino Opta™ has an RJ45 ethernet port with a LED that will indicate the status of the connected cable. The files necessary for using Ethernet with the Arduino Opta™ are included in the core. To try it out, we can go to **File > Examples** and under **Examples for Opta** we can find the **Ethernet** section. Inside there is an example sketch called **WebClient**. Connect the Ethernet cable to the Arduino Opta™ and upload the example using the USB-C® cable. This example will function the same way as the one mentioned in the Wi-Fi® section. The device will connect to the website defined in the sketch and print the website's HTML content in the serial monitor. If the sketch ran successfully, the output should look like the image below. -![Running the Ethernet sketch on the Arduino Opta™ in the Arduino IDE](assets/opta-ethernet.png) +![Running the Ethernet sketch on the Arduino Opta™ in the Arduino IDE](assets/opta-ethernet.svg) If you want to take a deeper look at the features that the **Ethernet** library has to offer, [take a look at the API Ethernet reference page](https://www.arduino.cc/reference/en/libraries/ethernet/). @@ -71,7 +71,7 @@ The Arduino Opta™ can be configured to use Modbus TCP protocol, which runs a M To use the Bluetooth® Low Energy feature, you will need to download the **ArduinoBLE** library in the Arduino IDE. Go into the **library manager** and search for **ArduinoBLE**. if you can't find it, try sorting by official libraries published by Arduino. Once the ArduinoBLE library is installed, let's try and run a simple example that scans for other Bluetooth® devices within range. The sketch will print the addresses of near devices as well as the local name and the advertised service UUIDs, if present. The example can be found under **File > Examples > ArduinoBLE > Central**, the sketch is called **Scan**. When the sketch is running on the Opta™, the output on the serial monitor should look something like the image below. -![Bluetooth® sketch running on the Opta™](assets/opta-ble.png) +![Bluetooth® sketch running on the Opta™](assets/opta-ble.svg) If you want to take a deeper look at the features that the **ArduinoBLE** library has to offer, [take a look at the API BLE reference page](https://www.arduino.cc/reference/en/libraries/arduinoble/). diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-analog-inputs.png b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-analog-inputs.png deleted file mode 100644 index 6868e418e0..0000000000 Binary files a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-analog-inputs.png and /dev/null differ diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-analog-inputs.svg b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-analog-inputs.svg new file mode 100644 index 0000000000..b2efac5949 --- /dev/null +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-analog-inputs.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-clean-contact.png b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-clean-contact.png deleted file mode 100644 index eca51df3f6..0000000000 Binary files a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-clean-contact.png and /dev/null differ diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-clean-contact.svg b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-clean-contact.svg new file mode 100644 index 0000000000..b97b99392d --- /dev/null +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-clean-contact.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-LED.png b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-LED.png deleted file mode 100644 index 6be67421d7..0000000000 Binary files a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-LED.png and /dev/null differ diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-LED.svg b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-LED.svg new file mode 100644 index 0000000000..d88d888a06 --- /dev/null +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-LED.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-button.png b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-button.png deleted file mode 100644 index 8c287e874a..0000000000 Binary files a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-button.png and /dev/null differ diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-button.svg b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-button.svg new file mode 100644 index 0000000000..9c2f04acb9 --- /dev/null +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device-button.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device.png b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device.png deleted file mode 100644 index b637a3f525..0000000000 Binary files a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device.png and /dev/null differ diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device.svg b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device.svg new file mode 100644 index 0000000000..e395b12581 --- /dev/null +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-device.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-out-relays.png b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-out-relays.png deleted file mode 100644 index 8d70530d86..0000000000 Binary files a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-out-relays.png and /dev/null differ diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-out-relays.svg b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-out-relays.svg new file mode 100644 index 0000000000..3bcb8f994a --- /dev/null +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-out-relays.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-voltage-pins.png b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-voltage-pins.png deleted file mode 100644 index 9cc4cccca8..0000000000 Binary files a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-voltage-pins.png and /dev/null differ diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-voltage-pins.svg b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-voltage-pins.svg new file mode 100644 index 0000000000..46ca612881 --- /dev/null +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/assets/opta-voltage-pins.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/content.md b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/content.md index 47cad64611..28c745f450 100644 --- a/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/content.md +++ b/content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/content.md @@ -21,7 +21,7 @@ hardware: Opta™ is a robust micro PLC solution with many engaging features. In this tutorial we will go through the setup of Opta™ with the Arduino IDE and explain how to use its basic features, showing through examples how to program the LEDs on the device, how to use the programmable button, as well as controlling its inputs and outputs. -![The Arduino Opta™](assets/opta-device.png) +![The Arduino Opta™](assets/opta-device.svg) ## Goals @@ -55,7 +55,7 @@ Now you are ready to upload sketches to the Opta™ via the Arduino IDE. Once the IDE and the core are installed, let's warm up by uploading a first sketch to your Opta™. We will be using a modified version of the classical Arduino blink sketch to put your device to work and test if everything is set properly. Let's create a simple blink sketch that will blink the four STATUS LEDs on the Opta™, highlighted in the image below. -![The blinking STATUS LEDs on the Opta™](assets/opta-device-LED.png) +![The blinking STATUS LEDs on the Opta™](assets/opta-device-LED.svg) All the STATUS LEDs on the device are defined in the core of the PLC. Hereafter you can see the correspondence between each of them as identified in the core and their labeling on the front panel of the product: @@ -106,7 +106,7 @@ void loop() { Opta™ has a programmable button, shown in the image below and identified as USER. It can be programmed using the Arduino IDE to fit your needs. To show how simple is to use it, let's create a sketch and program the button as a trigger to modify the status of the STATUS LEDs. -![The button and STATUS LEDs that will light up on the Opta™](assets/opta-device-button.png) +![The button and STATUS LEDs that will light up on the Opta™](assets/opta-device-button.svg) The button is defined in the core as `BTN_USER`: 'HIGH' as default (not pressed), and 'LOW' when pressed. The new sketch will turn the STATUS LEDs on one by one when the button is pressed and then start over when all the lights have been turned on. Below you can find the entire sketch, where a simple [Switch (case) Statement](https://www.arduino.cc/reference/en/language/structure/control-structure/switchcase/) is used, and an image highlighting where the USER button is located on the device. @@ -178,7 +178,7 @@ Once the sketch is uploaded, you can see that an additional LED is turned on eac Opta™ has 4 relay outputs, consisting of 4 electromechanical relays NO (SPST) with a capacity of 10A at 250V AC (considering a resistive load). They are identified as OUTPUTS and located on the bottom of Opta™ as shown in the image below. -![Out relays on the Opta™](assets/opta-out-relays.png) +![Out relays on the Opta™](assets/opta-out-relays.svg) The coils of each relay correspond to pins D0 to D3 as follows: @@ -195,14 +195,14 @@ This way, when the contact is closed by the logic set in the programming, the po The “clean” contact also allows carrying a different power system or type of load for each output contact, being possible to control multiple devices or signals that use different voltage levels. -![Clean contact on the Opta™](assets/opta-clean-contact.png) +![Clean contact on the Opta™](assets/opta-clean-contact.svg) Let's run a simple sketch to test the output relays on Opta™: in this sketch all the 4 relays are closing and reopening their contacts and, after each relay's cycle, a led will be turned on to provide visual feedback. To activate the relays and run this sketch, you need to provide energy to Opta™ with a voltage from 12 to 24 V DC by connecting it to a proper power supply. Opta™ has dedicated terminals for power supply located in the upper part of Opta™ and next to the inputs. They are duplicated to help the user to connect the power supply and any common part to the input terminals but they have the same potential (upon polarity). -![Connect these pins to drive the relays on the Opta™](assets/opta-voltage-pins.png) +![Connect these pins to drive the relays on the Opta™](assets/opta-voltage-pins.svg) ***These terminals are polarized, it is therefore mandatory to strictly respect the power supply polarity by connecting the positive connector of the power supply to "+" and the negative to "-".*** @@ -279,7 +279,7 @@ The 8 input pins can be used as digital (having the logical values of LOW or HIG * To use them as digital inputs, add the Arduino command `pinMode(pinName, INPUT);` inside the `setup()`. * To use them as analog inputs, add the command `analogReadResolution();` with the bit resolution that you want to use. -![Analog inputs on the Opta™](assets/opta-analog-inputs.png) +![Analog inputs on the Opta™](assets/opta-analog-inputs.svg) Now let's try a sketch that will read the analog inputs on the Opta™. The inputs can operate in a range between 0 and 10V. The maximum voltage managed by the microcontroller is 3V. This maximum voltage is important to calculate the voltage of the input using it in conjunction with the resolution factor of the ADCs. That resolution can be selected inside the program within a range between 12 bits (4095) and 16 bits (65535).