Pages

Wednesday 12 December 2018

RDL 4-20ma module with Raspberry pi

RDL 4-20ma module with Raspberry pi

Step1: Initially do all I2C settings in raspberry pi and check address where module is connected
Command: I2cdetect –y 1
By default ADS115 is detected in address48
Step2: Install Adafruit ads1115 library in raspberry pi
Commands:
1.     sudo apt-get install build-essential python-dev python-smbus git
2.     cd ~
4.     cd Adafruit_Python_ADS1x15
5.     sudo python setup.py install

Step3: Next installing python packages for asd1115
Commands:
1.     sudo apt-get install build-essential python-dev python-smbus python-pip
2.     sudo pip install adafruit-ads1x15

Step4: Executing simple example program
1.     cd ~/Adafruit_Python_ADS1x15/examples
2.     nano simpletest.py   // This program reads vales from all the channels
3.     sudo python simpletest.py  // this command runs the code

We can observe that raspberry pi reading values from each channel
Now connecting potentiometer to one of the channel and reading values


Indino 4.0

Indino 4.0

1.     Introduction

Indino 4.0 series defines a new way of transforming factories into smart/intelligent factories for efficient and easy remote monitoring operational status of facilities such as on/off status, pressure and temperature. Indino 4.0 supporting for wide range of industrial protocols like Modbus, MQTT, JSON, RESTful,TCP/UDP , SNMP protocol ,which makes the monitoring and solution integration, easier than ever for IT engineers through open source APIs,.
The base board on Atmega2560 controller with BLE and WiFi having processor ESP32 -32-bit LX6 processor -200 MIPS supporting OTA, having on board capabilities like 8MByte Embedded Flash, 256KByte FRAM, SDcard -32GB, USB , RS232 , RS485 ,PWDT , 12 channel 24 V opto isolated IO supported for wet and dry connection ,RTC , RDL Expansion bus for add on modules expanding the IO needs and DC to DC converter support for 12 to 36V input DC supply .





2.     Features


Processor: Tensilica Xtensa 32-bit LX6 microprocessor



·  Clock frequency: up to 240 MHz ,up to 600 DMIPS
·  ROM: 448 KB SRAM: 520 KB
Co controller *:
ATmega 2560, 16MHz, FLASH 256KB/STM32

Digital IO
24v 8x Isolated interrupt Enabled digital input
24v 4x Isolated Digital output  / PWM
AC Isolation: 3750VRMS
Contacts supported: DRY / WET

Wired Connectivity 
   RS485 MODBUS ,  RS232 & USB
   RDL expansion bus
                           
Memory 
    FRAM 25KB , SD CARD 32GB
                           
RTC
Built-in RTC for me stamped data logging

Wireless connectivity:
·  Wi-Fi: 802.11 b/g/n/e/i (802.11n @ 2.4 GHz up to 150 Mbit/s)
·  Bluetooth: v4.2 BR/EDR and Bluetooth Low Energy (BLE)
Protocol
·         TCP-IP, UDP, SNMP, MODBUS, FTP, RESTFULL, JSON&MQTT
Security:
·  IEEE 802.11  security features : WFA, WPA/WPA2 and WAPI
·  Secure boot / Flash encryption
·  1024-bit OTP, up to 768-bit for customers
·  Cryptographic hardware acceleration: AES, SHA-2, RSA, ECC & random number generator (RNG)
·   
Enclosure : 
IP 20
mounting  :Wall  / DIN Rail
Dimension :108 x 41.2 x 20
*Co Controller information is given in product information page 

3.     Benefits

Indino 4.0 can used to build the custom industrial solution for monitoring and controlling PLC and SCADA , HMI , VFD , Motors , servo , Valves , energy meter , actuators , relays , encoder , rfid and finger print readers , industrial sensors and many more with below mentioned operational benefits .
·         Improved productivity.
·          Reduced downtime.
·          Maximized asset utilization.
·          Tracking trends for real-time marketing.
·         Enhanced situational awareness.
·          Sensor-driven decision analytics.
·          Instantaneous control and response in complex autonomous systems

4.     Applications

This product used for many industrial applications like
 ● Production and process Management
 ● Utilities Management
 ● Condition Management
 ● Environment Management
 ● Industrial Smart grid
 ● Leakage detection
 ● Cold storage Management
 ● District metering
 ● Water treatment
 ● Generator Management
 ● Green House.
 ● Warning message in case of calamities.
 ● Remote system management

5.     Block Diagram

6.     Pin-out

Digital :
Indino Digital Pinout
Digital IO
PIN NO
FUNCTION
FUNCTION
D0
2
RX0
FTO
D1
3
TX0
FTO
D2
6
INT
IO Expander Intrupt
D3
7


FRC pin 1
D4
1
PWM
Opto Output
D5
5
PWM
Opto Output
D6
15

RS485 RE/DE
D7
16
PWM
Opto Output
D8
17


FRC pin 3
D9
18

SD CS
D10
23


FRC pin 10
D11
24

SRAM CS
D12
25
PWM
Opto Output
D13
26

STAT LED
D14
64
TX3
GSM/XBEE
D15
63
RX3
GSM/XBEE
D16
13
TX2
RS485
D17
12
RX2
RS485
D18
46
TX1
MAX232
D19
45
RX1
MAX232
D20
44
SDA
RTC/FRAM/IO expander
FRC pin 5
D21
43
SCL
RTC/FRAM/IO expander
FRC pin 6
D22
78

PIC
D23
77

PIC
D32
58

IO Expander RST
D36
54

XBEE RST
D37
53

XBEE SLEEP
D40
52

DTR
D41
51

PWR KEY
D46
39

MIC P
D49
35

FLT LED
D50
22
MISO
SD / FLASH
FRC pin 7
D51
21
MOSI
SD / FLASH
FRC pin 8
D52
20
SCK
SD / FLASH
FRC pin 9
D53
19
SS

FRC pin 4






Analog:
Indino Analog Pinout
Digital IO
PIN NO
FUNCTION
FUNCTION
D0
2
RX0
FTO
D1
3
TX0
FTO
D2
6
INT
External INT
D3
7


FRC pin 1
D4
1
PWM
Opto Output
D5
5
PWM
Opto Output
D6
15
PWM
Opto Output
D7
16
PWM
Opto Output
D9
18

RS482 RE/DE
D10
23


FRC pin 10
D11
24

SD CS
D12
25

FLASH CS
D13
26

STAT LED
D14
64
TX3

FRC pin 4
D15
63
RX3

FRC pin 3
D16
13
TX2
RS485
D17
12
RX2
RS485
D18
46
TX1
MAX232
D19
45
RX1
MAX232
D20
44
SDA
RTC/FRAM/IO expander
FRC pin 5
D21
43
SCL
RTC/FRAM/IO expander
FRC pin 6
D22
78

PIC
D23
77

PIC
D33
57

MAX31865 CS
D34
56

MAX31855-IC4 CS
D35
55

MAX31855-IC2 CS
D36
54

MAX31865 DRDY
D37
53

SELECT ADC/4-20mA
D38
50

SELECT ADC/4-20mA
D40
52

SELECT ADC/4-20mA
D41
51

SELECT ADC/4-20mA
D49
35

FLT LED
D50
22
MISO
SD / FLASH/RTD
FRC pin 7
D51
21
MOSI
SD / FLASH
FRC pin 8
D52
20
SCK
SD / FLASH
FRC pin 9


Pins
Functionality
D0, D1
Serial Pins. To which either FT232 can be connected or a MAX232 can be connected.
D2
RDL Bus chip select Pin
D3
RDL chip select  or slave select pin
D4
GSM power key (Software Switch). High-to-Low on this pin powers ON the GSM.
D5
RS485 select (control) pin for serial communication.
D6 – D8, D30 – D35
Left open to the user and can be configured either as an input or output.
D9
Reset pin for Ethernet
D10
Chip select or slave select pin for Ethernet
D12, D13
LED pins which could be programmed for status indication as required.
TX3,  RX3
RS485 serial communication
TX2, RX2
GSM serial communication
TX1, RX1
Can either be connected to RD485 or XBEE for serial communication
SCL, SDA
Can be connected to I2C based RTC, FRAM, DAC and RDL bus
D22 – D29
Control pins to select ADC as a 0-10V Voltage reading channel or 4-20mA Current reading channel.
D36
XBEE reset pin
D37, D38
Digital input pins
D39
Chip select or slave select pin for Flash
D40 – D45
Digital input pins                               
D46 – D49
Digital Output pins
MISO, MOSI, SCK
SPI pins to where number of devices could be connected
SS
Chip select or slave select pin for SD Card
A0 – A2
Analog Input Pins left open to the user
A8, A9, A10, A15
Analog Input Pins which could be configured (using pins d22-d29) to read either voltage or current.
A11 – A14
Analog Input Pins left open to the user

7.     Programming IDE

The hardware supports various Open Source Programming IDE including Arduino IDE, Atmel Studio and Arduino Compatible Compiler for LabView. For more information on this follow “Open Source Programming IDE” section of the following link.

8.     Product Specification

8.1.          Digital Input

Specification
o   Channels: 8
o   Input Voltage: 0-24V
-          Logic High: >11V
-          Logic Low: <3V
o   Isolation : 3750 VRMS
o   Supports Inverted DI Status
o   Supported Connection: Dry and Wet both
o   Maximum Frequency : 200Hz-38kHz
Functional Diagram


Application Wiring

Use Case

8.2.         Digital Output

Specification
o   Channels: 3
o   Open Collector
o   Isolation : 3750 VRMS
o   Absolute maximum voltage - 35V, Current - 100mA
o   Cut-Off Frequency : 10KHz
Functional Diagram  
Application:


Application Wiring

8.3.          SD Card

Specification
o   SPI Serial Interface
o   Supports Fat File system

Functional Diagram 
Example Code
You may look into the following link for example on SD Card.

8.4.         RTC

Specification
o   DS1307 with I2C Serial Interface
o   Counts Seconds, Minutes, Hours, Date, Month, Day, and Year with Leap-Year Compensation.
o    56-Byte, Battery-Backed, NV RAM for Data Storage
o   Consumes <500nA in Battery Backup Mode with Oscillator Running 

Functional Diagram

Example Code
You may look into the following link for example code on RTC.

8.5.         FRAM

FRAM is specifically used for applications such as production counting, production rejection where variable subjected to continuous write cycle
Specification
o   MB85RC256V, I2C compatible with Bit configuration : 32,768 words × 8 bits
o   Operating frequency : 1 MHz (Max)
o   Read/write endurance : 1012 times / byte
o   Number of write cycles: 100 Trillion times
o   Operating power supply voltage : 2.7V to 5.5V, current 200 μA 
o   Data Retention: 10 years (+85°C), 95 years (+55°C), over 200 years (+35°C).

Functional Diagram
Example Code
You may look into the following link for example on RTC

8.6. PWDT (Physical Watch Dog Timer)
External physical watchdog is connected along with inbuilt watchdog timer.
There are many instances where we need to set watch dog time for more than 8 seconds (typically bulk file upload takes in minutes).  As inbuilt WDT is limited to maximum of 8Sec, we have gone a step further to support watch dog time up to 3 minutes.
If you do not required PWDT then we can disable it by disabling Enable pin
Note: User must program PWDT to refresh before the timer (3 min) expires.
Specification
o   PWDT supports up to 3minutes.
o   PIC12F1840 used for PWDT
o   Refresh time : 1 pulse in every 3 minutes
o   Operating temperature range: –40 to 125 °C 

Functional Diagram
Example Code
You may look into the following link for examples on watchdog timer.
https://folk.uio.no/jeanra/Microelectronics/ArduinoWatchdog.html

8.7 Flash

Flash is specifically  used for embedded server.
·         Family of SpiFlash  memories
·         Highest performance serial flash
·         Efficient “Continuous  Read “ OPI mode
·         Low power and wide Temperature range
·         Flexible architecture with 4KB sectors
·         Advanced security feature
·         Space Efficient packaging
Functional Diagram
Example Code
You may look into the following link for example on how to use flash.

8.8.          ESP32

 This is Add-On pluggable module. One among ESP32 is comes with the product. For more details on this, look into Order Information Table.

This is specifically used for wireless connectivity with existing infrastructure.
Functional Diagram
Use Case
Interfacing Industrial Data Logger with Wi-Fi (ESP32)
Example Code
You may look into the following link for examples on esp8266.

8.9.          RS485 Modbus

o   Modbus is an Industrial standard serial communication protocol.
o   Open protocol
o   Information is stored in the Slave device in four different tables.
Two tables store on/off discrete values (coils) and two store numerical values (registers). The coils and registers each have a read-only table and read-write table.
o   Each table has 9999 values.
Each coil or contact is 1 bit and assigned a data address between
0000-270E.
Each register is 1 word = 16 bits = 2 bytes and also has data address between 
0000 and 270E.
o   Supported Functions are
-          Coils
-          Discrete inputs
-          Input Registers
-          Holding Registers.
Specification
o   LTC485 IC.
o   Supports slave address up to 32.
o   Supports Modbus protocol with RTU and ASCII formats.
o   Configurable baud rate from 4800 to 115200.
o   Configurable packet format (data bits, parity bit, stop bits)


 Functional Diagram

Use Case   

Example Code
You may look into the following link for examples on Modbus examples.

8.10.          RS232/FT232/Program

Used for programming the board. When in user mode, the port could be used for data communication.data communication.
Functional Diagram
Example Code
You may look into the following link for examples on FT232/MAX232 serial communication.

8.11.          Status LED Display

Status LED’s can be programmed as per used needs for visual indication of an event.
Functional Diagram
Example Code
You may look into the following link for more details on programming LED pins.

8.12.          RDL Bus

Specification
o   Extend I/O pins for communicating with external devices.
o   Extends SPI pins, I2C pins, UART pins and Digital I/O pins.
Functional Diagram
Application Wiring

     9. Mounting and Mechanical Dimensions 




10. Order Information Table