DesignSpark Electrical Logolinkedin
  • Brought to you by
  • RS Components
  • Allied Electronics

April 6, 2016 15:49

Follow

Remote control of an HVAC system via Arduino based PLC

This project, developed by Opiron Electronics, has the scope to make a basic control system with an interface that will enable to activate an HVAC system remotely with the Ardbox Relay (885-0917) PLC and the Touchberry Pi (885-0932) HMI from IndustrialShields.

HVAC systems usually have an available contactor for relay connection. Connecting the relay to an Ardbox Relay PLC, and the PLC to the Touchberry Pi, allows to control climate conditions remotely.

title

Hardware and communication

Hardware:

  • Ardbox Relay PLC: This is an 18 digital inputs / outputs Arduino based PLC that offers the possibility of communication between two computers using I2C.

 

  • Touchberry PI 10.1″: The Touchberry Pi is a 10.1″ panel PC designed to work in industrial environments and based on the popular Raspberry Pi.

 

The two devices are connected via the I2C communication. The main advantage of this protocol is the flexibility; it allows to easily connecting up to 128 slaves to the Touchberry Pi.

title

 

 

Software and code

SCADA

Code is provide by myscadatechnologies; it is open source available to be tested on Raspberry Pi (which is Touchberry Pi processor). From the communication point of view, I2C needs one Master. The other device will be the slave. The Ardbox PLC Relay will be the slave and the Touchberry Pi the master.

Ardbox PLC code (ArduinO IDE)

Download the code

Touchberry Pi configuration

STEP 1

Anable the I2C module on the PI.

STEP 2

As root edit /etc/modprobe.d/raspi-blacklist.conf and comment out the line blacklisting i2c-bcm2708

$ cat /etc/modprobe.d/raspi-blacklist.conf # blacklist spi and i2c by default (many users don't need them) blacklist spi-bcm2708 #blacklist i2c-bcm2708

STEP 3

Add i2c-dev to the /etc/modules file so it’s loaded on boot:

# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. # Parameters can be specified after the module name. snd-bcm2835ipv6 i2c-dev

STEP 4

Install i2c-tools:

$ sudo apt-get install i2c-tools $ sudo adduser pi i2c

STEP 5

Reboot the Touchberry Pi.

Key Benefits of the Opirion solution:

Scalable system: ThIs system allows to connect multiple devices to the Touchberry Pi
Open Sourcebased: This feature means big flexibility, big availability of resources on the internet in case of failures or change implementations, etc.
Remote control: Control climate conditions through an HMI panel

Know more about Ardbox and M-DUINO PLCs

arduino based plc from industrial shields

Use Arduino based PLC by Industrial Shields

arduino based plc industrial application case study

Know more about Touchberry PI panel PC

Remote Desktop Client for Raspberry PI IoT now available

Not sure about using Arduino and Raspberry PI based hardware in the industrial enviroments? read this post

 

RS Components has not written a bio yet…

April 6, 2016 15:49

Follow