Skip to Content
All case studies

Case study · Greenhouse · M-Duino 57R

A radio node in each room. One PLC acts where it is needed.

Low-power Open Mote nodes, a Panel PC and an Arduino based PLC.

4values per node: humidity, temperature, pressure and brightness
2.4 GHzradio from the nodes to the gateway, with the free Contiki software
< 50 µAconsumption of the Open Mote, as the case gives it
12relay outputs in the scheme: 3 for each of the 4 rooms

A greenhouse with several rooms has several climates. A value that is wrong in one room says nothing about the next one.

So the case puts a radio node in each room and one PLC in the main room.

This case describes how a customer monitors and controls a greenhouse with Open Mote radio nodes, an Industrial Shields Panel PC and an M-Duino 57R I/Os PLUS. It does not name the customer. The hardware, the readings, the radio and the layout come from the case, its text and its scheme. The values in the panels are examples, not data from the greenhouse.

The challenge

Know the climate of every room, and act only where a value is wrong.

The greenhouse has a main room and other rooms. The customer wanted to read several sensors in each room, to see all the data in one place and to start the actuators of the room where a value is not wanted. The sensors had to talk to the terminal without wires, so the nodes can go wherever they suit the room.

01

One climate per room

Each room has its own Open Mote with a sensor board for humidity, temperature, pressure and brightness. The data of one room is kept apart from the others.

02

Nodes where they fit

The radio link lets you place the nodes throughout the greenhouse. All of them send to a single Open Mote that works as the gateway.

03

Low power

The case gives a consumption of less than 50 µA for the Open Mote, which is why it can work for a long time on its own.

04

One screen for all

The gateway node plugs into the USB port of the Panel PC. The data of every room ends up on one screen.

Radio for the readings, wires for the loads

The nodes only carry small readings by radio. The fans, valves and pumps are wired to the relay outputs of the PLC in the main room. The case does not publish results or figures.

How it works

Three jobs: read every room, check the values, act in the right room.

Each panel shows one job. Press the buttons. The panels are illustrative simulations: the rooms, the four readings, the radio and the three relays per room come from the case, but the values, the ranges and which relay answers which value are examples, not data from the greenhouse.

Job 1 · Read every room

Four values per room, sent by radio.

In each room an Open Mote with its sensor board reads humidity, temperature, pressure and brightness. It sends the values on 2.4 GHz, with the free Contiki software, to the gateway node in the main room. Pick a room and watch its messages.

  • One Open Mote and one sensor board per room
  • Radio on 2.4 GHz, Contiki
  • One Open Mote as the gateway
Room 1Room 2Room 3GatewayUSB to the Panel PC
Humidity0
Temperature0
Pressure0
Brightness0
READSEND 2.4 GHzGATEWAY GOT IT

Radio messages (example)

    Illustrative simulation. Example values, not data from the greenhouse. One message every few seconds, faster than in the real greenhouse. The case does not publish the reading interval or the values. The units are examples.

    Job 2 · Check the values

    The Panel PC sees every room and spots the wrong value.

    The gateway node sits on the USB port of the Panel PC. In the scheme of the case the Panel PC runs Node-RED and a Mosquitto MQTT broker. It shows the data and, when a value from a room is not wanted, it notifies the PLC over the Ethernet cable. Move the sliders.

    • Gateway node on USB
    • Node-RED and Mosquitto MQTT on the Panel PC
    • Ethernet from the Panel PC to the PLC
    Panel PCEthernetM-Duino 57R
    72
    22
    Room0
    Decision0
    IN RANGEUNWANTED VALUEPLC NOTIFIED

    Panel PC events (example)

      Illustrative simulation. Example values, not data from the greenhouse. The case says that the PLC is notified when a value sent by a node is unwanted. It does not publish the ranges. In this example: humidity from 60 to 85 %RH and temperature from 15 to 28 °C. Set yours for your crop.

      Job 3 · Act in the right room

      Only the room with the problem gets its actuators on.

      The M-Duino 57R I/Os PLUS in the main room has the actuators wired to its relay outputs. When it gets a notice, it switches the actuators of the room where the unwanted value was detected. The other rooms stay as they are. Press the buttons.

      • Actuators on the relay outputs
      • 3 relays per room in the scheme: fan, valve, pump
      • The other rooms do not change
      MAIN ROOM123ROOM 1123ROOM 2123ROOM 31231 Fan · 2 Valve · 3 Pump
      Relays on0
      Rooms acting0
      Relays in the scheme0
      Last command0

      M-Duino events (example)

        Illustrative simulation. Example values, not data from the greenhouse. The scheme of the case gives 3 relay outputs to each of the 4 rooms, with a fan, a valve and a pump. Which relay answers which value is an example: the case does not publish its rules.

        System architecture

        How do you control several greenhouse rooms with wireless sensors?

        Put one radio node with its sensors in each room, and one receiver, the PLC and the screen in the main room. In this case each room has an Open Mote with a sensor board for humidity, temperature, pressure and brightness. The nodes send their values on 2.4 GHz to an Open Mote that works as the gateway, plugged into the USB port of an Industrial Shields Panel PC. The Panel PC shows the data and, when a value is not wanted, notifies an M-Duino 57R I/Os PLUS over Ethernet. The PLC switches the actuators of that room on its relay outputs.

        Greenhouse3 rooms, one node eachRoom 1Open Motesensor boardRoom 2Open Motesensor boardRoom 3Open Motesensor boardRadio 2.4 GHzContikiMain roomGateway Open Moteon USBUSBPanel PCNode-RED · Mosquitto MQTTEthernetM-Duino 57Rrelay outputsFan · valve · pump3 relays per roomLayout from the scheme of the case. Today the PLC is sold as the M-DUINO ETHERNET PLC ARDUINO 57R.Open Mote · Room 1, 2, 3sensor boardRadio 2.4 GHzGateway Open Moteon USBUSBPanel PCNode-RED · Mosquitto MQTTEthernetM-Duino 57Rrelay outputsFan · valve · pump3 relays per roomLayout from the scheme of the case. Todaythe PLC is sold as the M-DUINO ETHERNETPLC ARDUINO 57R.
        Radio, 2.4 GHzUSB and EthernetM-Duino relay outputs
        Signals and data
        SignalBetweenTypePurpose
        Room climateBetweenSensor board → Open MoteTypeHumidity, temperature, pressure, brightnessPurposeOne sensor board on the Open Mote of each room
        Room readingsBetweenOpen Mote of each room → gatewayTypeRadio, 2.4 GHz, ContikiPurposeSends the values of the room to the main room
        Collected dataBetweenGateway Open Mote → Panel PCTypeUSBPurposeAll the rooms reach the Panel PC
        MonitoringBetweenPanel PC → userTypeNode-RED, Mosquitto MQTTPurposeShows the data of every room; software from the scheme of the case
        NoticeBetweenPanel PC → M-DuinoTypeEthernetPurposeSent when a value from a room is not wanted
        ActuatorsBetweenM-Duino → each roomType3 relay outputs per roomPurposeFan, valve and pump in the scheme of the case

        Why it works

        Small readings by radio, power where it is needed.

        No sensor cables across the rooms

        The radio link means the nodes can go wherever they suit each room. Moving a node does not mean pulling a new cable.

        Low power in the nodes

        With less than 50 µA of consumption, as the case gives it, the Open Mote can work for a long time on its own.

        One gateway, one screen

        All the rooms meet in one gateway node and one Panel PC. One place to see the whole greenhouse.

        Open software on the Panel PC

        Node-RED and a Mosquitto MQTT broker run on the Panel PC in the scheme. See a Node-RED MQTT concentrator and a central Mosquitto MQTT broker.

        Relays for real loads

        The actuators are wired to the relay outputs of the M-Duino, which can switch loads directly. The M-Duino 57R has 23 relays, and the scheme uses 12.

        Programmed with free tools

        The PLC is programmed with the Arduino IDE. The rules of each room are code that you can read and change.

        From the original case

        The scheme and the sensor board of the case.

        Scheme of a greenhouse with a main room and three rooms, Open Mote radio nodes, a gateway on a Panel PC with Node-RED and Mosquitto, an Ethernet cable to an M-Duino and three relay outputs per room
        The main room with the gateway, the Panel PC and the M-Duino, and three rooms with a node each (scheme of the original case)
        OpenMote B sensor board with humidity, temperature, pressure and brightness sensors
        The sensor board of the Open Mote: humidity, temperature, pressure and brightness (product photo, not the installation)

        The case does not publish photos of the installation.

        Hardware

        The PLC and the Panel PC of today. The nodes of the case.

        M-DUINO ETHERNET PLC ARDUINO 57R, industrial PLC based on Arduino Mega with 23 relay outputs

        M-DUINO ETHERNET PLC ARDUINO 57R

        The case names the M-Duino 57R I/Os PLUS. Today this PLC is sold as the M-DUINO ETHERNET PLC ARDUINO 57R. It sits in the main room and drives the actuators of every room.

        Role in this design
        Gets the notices of the Panel PC and switches the actuators of each room
        Inputs
        18: 12 analog or digital (0-10 V), 6 digital optoisolated
        Outputs
        31: 23 relays (230 Vac 4 A, resistive), 8 analog, digital or PWM (0-10 V)
        Comms
        Ethernet (RJ45), RS-485, RS-232, TTL, I2C, SPI
        Power supply
        12 to 24 Vdc
        Mounting
        DIN rail TS35, IP20
        TouchBerry Pi Panel PC 10.1 inch with Raspberry Pi 4

        Panel PC with Raspberry Pi

        An Industrial Shields Panel PC takes the gateway node on USB, shows the data of every room and notifies the PLC over Ethernet.

        Role in this design
        Gateway on USB, monitoring, notice to the PLC
        Software in the scheme
        Node-RED, Mosquitto MQTT broker
        Links
        USB to the gateway node, Ethernet to the PLC

        The case does not publish the exact Panel PC model. The image shows the TouchBerry Pi Panel PC 10.1" FLEX.

        OpenMote B radio board with a USB connector and two antenna connectors

        OpenMote B (image from the original case)

        One Open Mote with a sensor board in each room, and one more on the USB port of the Panel PC as the gateway.

        Sensors
        Sensor board with humidity, temperature, pressure and brightness
        Inputs
        Digital and analog, for other sensors
        Radio
        2.4 GHz antenna, free Contiki software
        Consumption
        Less than 50 µA, as the case gives it

        OpenMote is no longer in the Industrial Shields catalogue. The pattern still applies: low-power radio nodes, one receiver, a Panel PC and a PLC with relays. Tell us your rooms and we will propose the nodes and the radio.

        Questions about this case

        How do you monitor several greenhouse rooms without sensor cables?

        With one radio node in each room. In this case each room has an Open Mote with a sensor board that sends its values on 2.4 GHz to a gateway node in the main room. The gateway is plugged into a Panel PC by USB, so the data of every room is on one screen.

        What does each node measure in this case?

        Humidity, temperature, pressure and brightness, with the Open Mote sensor board. The Open Mote also has digital and analog inputs for other sensors.

        How does a value from a room reach the PLC?

        The node sends it by radio to the gateway node. The gateway passes it to the Panel PC over USB. If the value is not wanted, the Panel PC notifies the M-Duino over Ethernet, and the PLC switches the actuators of that room.

        Which actuators does the PLC switch?

        The actuators are wired to the relay outputs of the M-Duino. The scheme of the case gives 3 relay outputs to each of the 4 rooms, with a fan, a valve and a pump. The case does not publish the rules that link each value to each relay.

        Can I build this today?

        Yes. The PLC of the case is sold today as the M-DUINO ETHERNET PLC ARDUINO 57R, and the Panel PCs with Raspberry Pi are in the catalogue. OpenMote is no longer in the catalogue, so tell us your rooms and your variables and we will propose the radio nodes and the gateway.

        How is this case different from the other greenhouse case?

        In the other greenhouse case two M-Duino PLCs read wired sensors on an I2C bus and control humidity, CO2, temperature and lights. Here the sensors are wireless: one radio node per room, a gateway on a Panel PC and one PLC with relays for all the rooms.

        Download the case study

        4-page PDF with the challenge, the logic, the architecture and the hardware. No form required.

        Rooms with different climates?

        Tell us your rooms and your variables. An engineer will answer.

        Tell us how many rooms or zones you have, what you want to measure in each one, which actuators you need to switch and where the data must go. We will propose the sensors, the radio, the PLC and the screen.

        • You get an answer from our technical team
        • Sensors, radio, PLC and Panel PC for your greenhouse
        • Arduino, ESP32 or Raspberry Pi based PLCs