Arduino Opta Hands-On: A Budget Industrial PLC That Also Runs Arduino Sketches

Open on YouTube ↗
Overview

Arduino has released a product that looks like it belongs in a factory control cabinet. The Arduino Opta is a PLC (Programmable Logic Controller) in the Arduino Pro line, co-developed with the relay manufacturer Finder. The presenter wanted to know whether an Arduino-branded device could work as a real industrial controller. He describes the Opta as a bridge between hobby Arduinos and industrial PLCs. In the video he examines the hardware and the model lineup, then runs three demos: one as a plain Arduino, one as a ladder-logic PLC, and one combining the two.

8 min read
1:31

Why PLCs Exist: Replacing Relay Sequence Control

Before looking at the device, the presenter explains what a PLC replaced. Factory automation used to rely on relay sequence control, where large numbers of relays were physically wired together to implement the control logic. He lists several problems with that approach:

  • Changing the control behavior meant rewiring, which took a lot of time.
  • Relays are consumable parts and need frequent maintenance.
  • They draw a fair amount of power.
  • The relays themselves are physically large.

PLCs moved that control logic into software. The ladder diagrams once used to design relay circuits are now written as programs running on the PLC. The PLC evaluates the logic, and depending on whether a signal is on or off, it opens or closes relay contacts that switch high-power loads. In his summary, the PLC handles the complex control and the relay handles switching power on and off.

2:59

The Hardware and Its Ports

The presenter says the Opta is essentially a PLC despite the Arduino name, and it can be used in three ways:

  1. As an Arduino, with sketches uploaded from the Arduino IDE.
  2. As a PLC, with ladder programs written in the Arduino PLC IDE.
  3. As a combination of both, with ladder logic and sketches working together for more advanced control.

The benefits he highlights are access to Arduino libraries and a development environment that is ready to use from the start.

He then goes through the built-in ports:

  • Power: 12V to 24V input, the same range as a standard industrial PLC.
  • Inputs: combined digital/analog. Analog inputs accept up to 10V; digital inputs are 24V. The analog inputs measure voltage only, not current, so current-loop sensors require a separately sold expansion module.
  • Outputs: four mechanical relays rated 250V AC, 10A. He thinks these can handle most loads as long as motor inrush current is accounted for.

He adds a caution about the relays. PLCs are expensive, and mechanical relays wear out, so for switching high-power loads such as motors he would put an external contactor between the Opta and the load. He considers the I/O count a bare minimum, but enough for small projects.

4:39

Model Variants and Pricing

Opta comes in three tiers, and all of them have I/O ports, a USB port for programming, and an Ethernet port:

  • Opta Lite: the entry model.
  • Middle tier: adds RS-485.
  • Opta WiFi: the top model, which adds Wi-Fi and Bluetooth.

The presenter bought the WiFi model. He has no current plans to use wireless, but chose the version that can do everything. By his figures, the Lite costs 25,000 yen and the WiFi model 33,000 yen, both before tax. He thinks the Lite can do almost everything unless you need wireless features, such as reading PLC variables over Wi-Fi or pushing sketches remotely.

5:30

Expansion Modules

Up to five expansion modules can be chained to the right of the main unit. Each module has an identifying number printed on it, but the presenter found the numbers too small to read easily. He covers three modules:

  • Digital expansion with mechanical relays: 16 programmable inputs and 8 mechanical relay outputs. He suggests it for cases where the Opta's built-in channel count isn't enough.
  • Digital expansion with solid-state relays: also 16 programmable inputs, with 8 solid-state relay outputs rated 24V, 2A. He recommends it for fast switching at low voltage.
  • Analog expansion: 6 programmable inputs, 2 programmable outputs, and 4 PWM channels. Inputs and outputs can each be set to voltage or current mode, which the base unit cannot do. He points to this module for sensors and actuators that don't work with the main unit's voltage-only I/O.
7:10

Demo 1: Using the Opta as a Plain Arduino

The test setup was meant to resemble typical factory automation equipment. It included the Opta, a switching hub, a DC power supply, and a Patlite-style warning light that communicates over Ethernet.

First, the presenter wrote a sketch in the Arduino IDE and uploaded it over USB-C. The sketch makes an output blink at 0.25-second intervals while a button is held. It mostly worked, but he admits he wrote the code hastily and it had glitches:

  • Depending on when the button was pressed, the light sometimes didn't start right away.
  • Sometimes it kept blinking after the button was released.

He attributes these problems to the delay() function blocking the program. He concludes that for this kind of behavior, it may be better to use the Opta as a PLC.

8:17

Demo 2: Ladder Logic in the Arduino PLC IDE

Next he wrote a ladder program in the Arduino PLC IDE, which is a separate download. Using all of the IDE's features normally requires a paid license, but the Opta comes with a license built in, so everything is available from the start. He points out that this means the prices he quoted earlier include the license.

His ladder diagram has an input contact and an output coil. Inputs can be mapped to the programmable input terminals or to the user button on the Opta. Coils can be mapped to the built-in indicator LEDs or the built-in mechanical relays, among other things. He used the user button as the input and added a timer that passes its signal through only after the input has been held continuously for at least one second. The output lights an indicator LED and closes one of the built-in relays.

In the demo, holding the user button for one second makes the relay click audibly and the LED light up. To confirm the relay could actually carry a load, he wired an incandescent bulb to it. The bulb lit one second after the button was pressed and went out as soon as the button was released. (He noted that the bulb gets quite hot and warned viewers to be careful.) He found that the Opta behaves very much like a real PLC.

10:40

Demo 3: Combining Ladder Logic and an Arduino Sketch

The last demo shares data between a ladder program and a sketch. In the ladder, a pushbutton on an input port sets a variable named in1 to 1, and that value is passed to the sketch. This requires extra configuration: every variable used by both the ladder and the sketch must be declared as a shared variable. The sketch reads which button was pressed and lights the matching lamp on the warning light over Ethernet.

He ran into one problem. If a code comment contains full-width (Japanese) characters, the build fails. He believes it compiled successfully but got an error at the upload step, and he warns Japanese users to watch out for this.

In the working demo, each button press makes the corresponding lamp on the warning light turn on instantly. The light connects to the PLC by LAN cable through the switching hub. He describes the response as smooth. It also handled several buttons pressed at once and rapid random presses.

He then suggests a more practical version of the same setup: connect a sensor's output to a PLC input, and when the reading exceeds a threshold, send a signal to a relay to stop a machine and turn on a warning light. He also sees value in being able to talk to other Ethernet devices through the switching hub.

12:18

Verdict

The presenter says he expected an Arduino-branded PLC to be somewhat limited, but found it to be a solid product. He recommends it for small control systems and educational use. He considers the pricing a good value: 25,000 yen for the Lite with Ethernet and 33,000 yen for the Wi-Fi model. He contrasts this with other manufacturers' PLCs, where the software is often sold separately and the hardware can be hard for individuals to buy. For that reason, he sees products that make PLCs easier to try as especially valuable.