UbiMakerMaka Hernandez
Published © CC BY-NC-SA

Connect Your Siemens SIMATIC IOT2000 to Ubidots + NodeRED

Launch or retrofit your industrial and automation applications with Siemens and Ubidots.

IntermediateProtip3 hours10,014
Connect Your Siemens SIMATIC IOT2000 to Ubidots + NodeRED

Things used in this project

Hardware components

Ethernet cable
×1
SD Card
×1
24V/14.6A Power Supply
OpenBuilds 24V/14.6A Power Supply
×1
Siemens SIMATIC IOT 2000
×1
Arduino UNO
Arduino UNO
×1
Arduino Grove Shield
×1
RS485 Shield for Arduino
×1

Story

Read more

Code

Code snippet #25

Plain text
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wired interfaces
auto eth0
iface eth0 inet static
        address 192.168.200.1
        netmask 255.255.255.0

auto eth1
iface eth1 inet dhcp

Code snippet #26

Plain text
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wired interfaces
auto eth0
iface eth0 inet static
        address 192.168.200.1
        netmask 255.255.255.0

auto eth1
iface eth1 inet dhcp

Code snippet #27

Plain text
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wired interfaces
auto eth0
iface eth0 inet dhcp

Code snippet #28

Plain text
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wired interfaces
auto eth0
iface eth0 inet dhcp

Code snippet #29

Plain text
#include <SoftwareSerial.h>

int sensor = A0;

SoftwareSerial mySerial(3,2);

void setup() {
  mySerial.begin (9600);
  Serial.begin(9600);
  pinMode(sensor, INPUT);
}
 
void loop() {
  int sensor_value = analogRead(sensor);
  mySerial.println (sensor_value);
  Serial.println(sensor_value);
  delay(1000);
}  

Code snippet #30

Plain text
#include <SoftwareSerial.h>

int sensor = A0;

SoftwareSerial mySerial(3,2);

void setup() {
  mySerial.begin (9600);
  Serial.begin(9600);
  pinMode(sensor, INPUT);
}
 
void loop() {
  int sensor_value = analogRead(sensor);
  mySerial.println (sensor_value);
  Serial.println(sensor_value);
  delay(1000);
}  

Code snippet #33

Plain text
src iotdk-all http://iotdk.intel.com/repos/2.0/iotdk/all

src iotdk-i586 http://iotdk.intel.com/repos/2.0/iotdk/i586

src iotdk-quark http://iotdk.intel.com/repos/2.0/iotdk/quark

src iotdk-x86 http://iotdk.intel.com/repos/2.0/iotdk/x86

Code snippet #34

Plain text
src iotdk-all http://iotdk.intel.com/repos/2.0/iotdk/all

src iotdk-i586 http://iotdk.intel.com/repos/2.0/iotdk/i586

src iotdk-quark http://iotdk.intel.com/repos/2.0/iotdk/quark

src iotdk-x86 http://iotdk.intel.com/repos/2.0/iotdk/x86

Code snippet #35

Plain text
arch i586 12

arch quark 13

arch x86 14

Code snippet #36

Plain text
arch i586 12

arch quark 13

arch x86 14

Credits

UbiMaker
53 projects • 232 followers
Maker @ ubidots.com
Maka Hernandez
29 projects • 124 followers

Comments