Browsed by
Category: Products

How to Install and use Rapid SCADA on Touchberry Pi and BananaTouch

How to Install and use Rapid SCADA on Touchberry Pi and BananaTouch

On this post is showed how to install Rapid SCADA on a Touchberry B3 PI 10.1″, BananaTouch Octacore M3 10.1″, BananaTouch M64 10.1″ and TouchBerry Pi B3 7″ IN/OUT.

These products use an official Raspberry Pi 3 or an official Banana Pi products. These products have installed a Linux Debian Jessie. So,on this post we will see how to install Rapid SCADA on this OS. Rapid SCADA is free, open source, full featured SCADA software. 

This post is divided for three section: how to install Rapid SCADA,  how to configure Rapid SCADA and how to displayed on the Touch.

Read More Read More

RS-485 TEST ON M-DUINO PLUS

RS-485 TEST ON M-DUINO PLUS

In this post it is showed how to test the RS-485 on M-Duino PLUS version.

The first thing that you need to know is that the  RS-485 PLUS version have full and half duplex communication. Controlling the dip switch you must select if you want to work on full or half duplex. There is internally installed a half duplex Max485 and Max485 transmitter. If you are working on full duplex you will use the Max485 half duplex to receive data and Max485 transmitter to send the data.

If you are working half duplex or full duplex the mapping is:

Read More Read More

Ethernet test on M-Duinos PLUS version

Ethernet test on M-Duinos PLUS version

In this post it is showed how to test Ethernet communication on M-Duino PLUS version

It’s necessary to install Arduino Ethernet2 library. See more infromation about Ethernet library functions on Arduino Reference.

Connecting an M-Duino to a router through Ethernet and uploading the test sketch, the M-Duino is able to complete the test.  

Next is showed the code:

Read More Read More

RS-232 Test on M-Duino PLUS

RS-232 Test on M-Duino PLUS

In this post it is showed how to test the RS-232 M-Duino PLUS version.

Connecting an M-Duino with other equipment through RS-232. On the code is showed that you must send a 0xA5 thought RS-232 to complete this test.

Next is showed the code:

/////////////////////////////////////////////////////////////////////////////
void setup() {
  Serial.begin(9600L);
  Serial.println("mduino-plus test RS-232 started");
  Serial2.begin(9600L);
}
/////////////////////////////////////////////////////////////////////////////
void loop() {
  while (Serial2.available()) {
    Serial2.read();
  }
  Serial2.write(0xa5);
  
  delay(50);
  
  if (Serial2.read() == 0xa5) {
    Serial.println("RS232 (Serial2) OK");
  } else {
    Serial.println("RS232 (Serial2) FAIL");
  }
  
  delay(1000);
}

M-Duino 21/42/58 PLUS version Mapping

M-Duino 21/42/58 PLUS version Mapping

On this post it is showed the M-Duino mapping pin of the PLUS version. On the future, using our boards it won’t be necessary to know the mapping. But until the boards are not updated it is necessary to know it for programming the M-Duino PLUS version

M-Duino PLUS 21/42/58 Comunication Area:

Base (common unit)
A Zone
M-DUINO Connector Arduino Pin Function
SCL 21 I2C/SS
SDA 20 I2C/SS
RX0 1 RX0/SS
TX0 0 TX0/SS
RX1 19 RX1/SS
TX1 18 TX1/SS
RX 17 RX2(serial 2)
TX 16 TX2(serial 2)
Z- RS485
Y+ RS485
B- RS485
A+ RS485
PIN3 3 Arduino Pin/ Select SPI
50 SO 50 SPI
51 SI 51 SPI
52 SCK 52 SPI
RESET RESET SPI
Vin 5 Vin 5 SPI
PIN2 2 Arduino Pin / Select SPI
GND GND
GND GND
24 Vdc    
Base (common unit)
A Zone
M-DUINO Connection Arduino Pin Function
AREF AREF Arduino PIN
IOREF2 IOREF2 Arduino PIN
IOREF1 IOREF1 Arduino PIN
7  Vdc 7  Vdc
GND GND GND
3.3 Vdc 3.3 Vdc Arduino PIN
GND GND GND
5 Vdc 5 Vdc
GND GND GND

 

M-Duino PLUS 21/42/58

Base (common unit)
M-DUINO Connection Arduino Pin Function
GND GND GND
A.0.7* 6 Analog OUT
A.0.6* 5 Analog OUT
A.0.5* 4 Analog OUT
Q/Vdc External Isolated Out Vdc
24 Vdc External Isolated Out GND
Q.0.7 6 Digital Out/PWM Out
Q.0.6 5 Digital Out/PWM Out
Q.0.5 4 Digital Out/PWM Out
Q.0.4 40 Digital Out
Q.0.3 39 Digital Out
Q.0.2 38 Digital Out
Q.0.1 37 Digital Out
Q.0.0 36 Digital Out
Base (common unit)
M-DUINO Connection Arduino Pin Function 2
I 0.12 A5 Analog/Digital In
I 0.11 A4 Analog/Digital In
I 0.10 A3 Analog/Digital In
I 0.9 A2 Analog/Digital In
I 0.8 A1 Analog/Digital In
I 0.7 A0 Analog/Digital In
(-) I0.6/INT1 NC GND I0.6
I0.6/INT1 3 Interrupt 1 In
(-) I0.5/INT0 NC GND I0.5
I0.5/INT0 2 Interrupt 0 In
(-) I0.4 NC GND I0.4
I0.4 26 Digital Input
(-) I0.3 NC GND I0.3
I0.3 25 Digital Input
(-) I0.2 NC GND I0.2
I0.2 24 Digital Input
(-) I0.1 NC GND I0.1
I0.1 23 Digital Input
(-) I0.0 NC GND I0.0
I0.0 22 Digital Input

 

M-Duino PLUS 42/58

Base (common unit)
M-DUINO Connection Arduino Pin Function 2
I 1.12 A11 Analog/Digital In
I 1.11 A10 Analog/Digital In
I 1.10 A9 Analog/Digital In
I 1.9 A8 Analog/Digital In
I 1.8 A7 Analog/Digital In
I 1.7 A6 Analog/Digital In
(-) I1.6/INT4 NC GND I1.6
I1.6/INT4 19 Interrupt 1 In
(-) I1.5/INT5 NC GND I1.5
I1.5/INT5 18 Interrupt 0 In
(-) I1.4 NC GND I1.4
I1.4 31 Digital Input
(-) I1.3 NC GND I1.3
I1.3 30 Digital Input
(-) I1.2 NC GND I1.2
I1.2 29 Digital Input
(-) I1.1 NC GND I1.1
I1.1 28 Digital Input
(-) I1.0 NC GND I1.0
I1.0 27 Digital Input

Base (common unit)

M-DUINO Connection Arduino Pin Function
GND GND GND
A.1.7* 7 Analog OUT
A.1.6* 9 Analog OUT
A.1.5* 8 Analog OUT
Q/Vdc External Isolated Out Vdc
COM (-) External Isolated Out GND
Q.1.7 7 Digital Out/PWM Out
Q.1.6 9 Digital Out/PWM Out
Q.1.5 8 Digital Out/PWM Out
Q.1.4 45 Digital Out
Q.1.3 44 Digital Out
Q.1.2 43 Digital Out
Q.1.1 42 Digital Out
Q.1.0 41 Digital Out

 

M-Duino PLUS 58

Base (common unit)
M-DUINO Connection Arduino Pin Function 2
I 2.12
I 2.11
I 2.10 A15 Analog/Digital In
I 2.9 A14 Analog/Digital In
I 2.8 A13 Analog/Digital In
I 2.7 A12 Analog/Digital In
(-) I2.6/INT2 NC GND I2.6
I2.6/INT2 21 Interrupt 2 In
(-) I2.5/INT3 NC GND I2.5
I2.5/INT3 20 Interrupt 3 In
(-) I2.4
I2.4
(-) I2.3 NC GND I2.3
I2.3 35 Digital Input
(-) I2.2 NC GND I2.2
I2.2 34 Digital Input
(-) I2.1 NC GND I2.1
I2.1 33 Digital Input
(-) I2.0 NC GND I2.0
I2.0 32 Digital Input
Base (common unit)
M-DUINO Connection Arduino Pin Function
GND GND GND
A.2.7*
A.2.6* 13 Analog OUT
A.2.5* 12 Analog OUT
Q/Vdc External Isolated Out Vdc
COM (-) External Isolated Out GND
A.2.7
A.2.6 13 Digital Out/PWM Out
A.2.5 12 Digital Out/PWM Out
A.2.4
A.2.3 49 Digital Out
A.2.2 48 Digital Out
A.2.1 47 Digital Out
A.2.0 53 Digital Out
TCP Server on Touchberry Pi 3 with Node.js

TCP Server on Touchberry Pi 3 with Node.js

On this post it showed how to implement a TCP server on Touchberry Pi 3

The requirements of this post is just a Touchberry Pi with internet connection.

To get the Node.js JavaScript interpreter we need to install the command cURL on our Linux.

cURL command is  very useful for HTTP/S requests. To get the cURL we just need to type on the Linux Terminal:

sudo apt-get install curl

Read More Read More

How to install screensaver on Touchberry Pi

How to install screensaver on Touchberry Pi

On this post is showed how to install a screensaver for a Touchberry Pi. 

First, uncomment the line “@xscreensaver -no-splash” (removing #) from /home/pi/.config/lxsession/LXDE-pi/autostart.

Second, follow these steps:

  • Open the Touchberry Pi
  • Make sure there is internet connection
  • Open the terminal and type:
sudo apt-get update
sudo apt-get install xscreensaver
  • Wait to finish the installation process.
  • Close the terminal
  • After installation, perform a search in the Dash for Screensaver. Launch the Screensaver utility and use it to configure XScreenSaver and select your screensaver settings.

 

 

See also:

HOW TO USE AN RTC (REAL TIME CLOCK) ON TOUCHBERRY B3 PI,

HOW TO CREATE USD LINUX TO TOUCHBERRY PI3 AND HUMMTOUCH,

SIMPLECOMM LIBRARY TO SEND DATA THROUGH ANY ARDUINO STREAM,

CREATE A NEW TOUCHBERRY PI B3 SD CARD,

PLC- HUMMTOUCH RS485/RS232