Machine Monitoring System On Cloud Using Raspberry Pi and IoT
Machine Monitoring System On Cloud Using Raspberry Pi and IoT
ON
Guided By Submitted By
Dr. A.S. Bhalchandra Amit R. Rana
Machine Monitoring on Cloud using Raspberry
pi and IoT
sponsored by
Devgiri Forgings Pvt Ltd
Wireless Production Line Counter
Machine Intelligence System
st using Rpi
Commissioned on 1 March 2016
Wifi
Raspberry Pi Dongle
VGA
Raspberry Pi GPIO MOnitor
Opto-coupled
Keyboard Mouse Wifi-Dongle
Input Card
Opto
coupler
8-Inputs
Display Driver using Shift
register and Current Diving UC
4 – Digit Seven
Segment DIsplay
Literature Review
Literature Review
Machine Monitoring
• Video Surveillance System
• SCADA System
• Human Machine Interface System
• Proprietary Cloud platforms by Allen
Bradley and SIEMENS
• Commercial IoT platform e.g. ALTIZON
DATONIS[1]
• Goodyear tyres, Aurangabad uses AB
secure server for production monitoring,
CCTV / Video Survilliance
• By far the most preferred solution for video
Surveillance
• Standard Wired Installation with a recording
Unit
• Costs a Minimum of 10000 Rupee with 7000
extra for each camera
• Heavy installation
• Large Power Consumption
• Regular Maintenance
• Production can’t be
SCADA System
• For the desired results use of SCADA systems
is an option
• Requires use of at least one Master Computer
• Can analyze large data through industry
standard protocol and secure communication
• Suitable for substantially large setup
• Costly Solution
• Not suitable for 1-5 machine
• Internet connectivity is further costly [3]
HMI Systems
• Using an HMI with Every machine to send data
to internet is an option
• HMI is a general purpose Large Screen Based
Device
• Inputs and outputs can be
programmed
• Uses standard industry protocols
• Cheaper, but not suitable for current
requirements [4]
ALTIZON
• Pune based startup Company ALTIZON has
made a product DATONIS
• This is Raspberry Pi based System
• Can be used to connect anything to cloud
• Suitable for any kind of machine and almost
every industrial protocol
• Priced moderately at around 30000/- rupee
for single installation with monthly 3000/- for
cloud platform [5]
Literature Survey
ThingWorx IoT & Machine
Learning
• USA based ThingWorx have developed an IoT
software platform
• Can be used with Raspberry pi and galileo
boards
• Open C-Language SDK available
• Online Compose, things and
business process management[7]
Allen-Bradley
• The Connected Enterprise product line by
Rockwell Automation
• Proprietary Products
• Secure Cloud Server
• Facilities like remote programming/debuging
• Remote Installations
• Very Costly [6]
Literature Review: Production Line
Counters
AUTONICS
• Autonics D1SC Units
• 7-Segment Display
• 12-24v Operation
• Memory Retention
• Various Options in Display No
• Input via Sensor and RS232[9]
Comparison of Wifi 802.11
standards
Feature 802.11 b 802.11 g 802.11 n
Range 35 m 38 m 70 m
USB Mouse
Output from Raspberry Pi
CNC Computer System
VGA Monitor
LVT847 Opto
coupler 4 Wifi
Inputs Transceiver
LIMIT
Sensors SD Card +5V Power Supply
SWITCH
Raspberry Pi
System Hardware
• 8-Optocoupled Inputs
• Inputs Coming from CNC and Sensors
• Active Internet Connection through Wifi
• Color VGA Monitors
• Keyboard and Mouse
• Fully operational at only 5V 1A power supply
System Software
• Raspberry pi running Raspbian Operating
system
• Python Development Environment
• GPIO libraries for Python Installed
• HTTP Lib for Python
• SMTP lib for Python
• Midori / Opera / Epiphany for Frontend
• Python programming language
System Flow Chart
A
YES
Make All GPIO inputs any
excepti Throw Exception Message
on??
Start Infinite Loop
NO
Sleep 5 Sec
Machine Monitoring Software Use
Flow
• User of CNC Machine Logs onto the Cloud
Panel using browser
• Operator Selects Machine
• Operator Selects Parts
• Enters the details of job
• If operator wishes to take any break, he has to
enter it in DOWNTIMEs
• While stopping work, operator has to enter
the total no of rejections
Wi-fi
• We are using Wifi for taking advantage of the
existing wifi infrastructure.
• There are many vendors manufacturing wi-fi
USB dongles
• We are using 150 Mbps TL-WN721N Wireless
N USB adapter
• 802.11 n compatible router and adapter gives
maximum range
• Further Range depends upon the Router
Transmit Power [14]
Specifications
• Operating Voltages
– Raspberry Pi +5v
– Motion sensor +5v
– Camera Module +3.3v
– Wi-fi Router +9v
– Relay Coil Voltage +12v
• Overall Current less than 1 A
• Relay Coil Current 100mA
• Wi-fi Normal Range: 50-70 feet
• Motion sensor detection Range 20-30 feet
Performance Analysis
IoT based
Production Counter
Work Flow
• Developed 2 Different Systems Connected to
Cloud
• Production Line Counter
– Microcontroller based system
– Production counter as well as data posting
• Machine Monitoring System
– Raspberry Pi Computer based system
– Data posting to cloud from various machine parts
Performance Analysis
Production Counter
• Display Features
• Wireless Features
• General Purpose Input Features
• Memory Backup Features
• Count Reset
• Overall Stability of System
Production Counter Software
Algorithm
• Power On, make all the required ports go
output/input as required
• Check for EEPROM, if some non-zero data is
present, read in variables
• Shift Data according to display to print this
value
• Continuously Check for Inputs
i. If sensor input is detected, increment count, send
wireless WORD, save count to EEPROM
ii.If one of 8-bit input is detected, send wireless
WORD
Performance Analysis
Production Counter (cont)
• LED Display Current Vs Series Resistor
• Vf = 6.3volts – 4.8v
• Forward Current If = 20mA
• Supply Voltage : 12v
• Ideal Resistor Value :
(Vs – Vf) / If = (12-6.4) / 20 = 285 Ohm
Selected Value : 220 Ohm
Performance Analysis
Production Counter (cont)
• Wireless Communication
• Secure Wireless Communication
• Immune to Industrial Noise and Harsh Environment
• No interference caused due to external supplies in
xbee
• Very Low wireless Latency as good as wire
replacement
• Covers Wide Area
Performance Analysis
Production Counter (cont)
Zigbee Compared to Other technologies
LOW ENERGY Zigbee NFC WIFI LOW
Bluetooth POWER
Frequency in 2402-2482 868-0.8,902- 13.56 2400-5400
MHz 928, 2402-
2482
Channels 3 16 1 3
Modulation GFSK QPSK ASK 64QAM
Max Data Rate 1 MBPS 250kbps 424kpbs 54 MBPS
Range 10 meter 100+ meters 10 CM 30 meters
Power Profile Days Months Months Hours
Complexity Complex Simple Simple Complex
Nodes/Master 7 65000 1+1 Variable 100
Extendibility No Yes No Yes
Performance Analysis
Production Counter (cont)
• MICROCONTROLLER
8051 AVR atmega32 PIC18F452
AT89S51
Architecture 8-bit CISC 8-bit RISC 8-bit-RISC
On Chip 4KB / 128 bytes 32KB / 2Kb 32KB/1.5KB
Flash/RAM
Speed Up o 33MHz Up to 16 MHz 1-T Upto 40MHz 4-T
12-T States States states
EEPROM NO YES 1KB YES 256 Bytes
On-Chip I2C No Yes Yes
Full Duplex UART No Yes Yes
ISP Facility YES YES YES
On-Chip ADC No YES YES
Performance Analysis
Production Counter (cont)
• MICROCONTROLLERs
• Comparison shows Both Atmega32 and
PIC18F452 are suitable for requirement
• Previous Attempt on atmega32 resulted in
Noisy performance
• Shift to PIC18F452 provided smoother
performance as compared to Atmega
Performance Analysis
Production Counter (cont)
• MICROCONTROLLER Performance Comparison
With Atmega32 With PIC18F452
Frequency of Accidental Several Times in a day Close to zero
Resets
Interference Loss of Frequent Rare
Wireless Word
Display Flickering Display flickers with Heavy Smoother Performance
units switchin
Falls Counting Up By 100’s of counts, Zero
frequent
EEPROM Corruption Within 3 Months No problems for 2 Years
EEPROM Write Cycles 100,000 Write Cycles 10,00,000 Write Cycles
Allowed
Over all System Stability Non Acceptable Acceptable
Possible Reason Bad Quality Semiconductor -
Performance Analysis
Production Counter (cont)
• Seven Segment Display Interfacing
Using Multiplexed Using Shift Registers
Complexity of Design More Complex Relatively Simple
Complexity in More Complex Relatively Simple
programming
Stability in Harsh Frequency Reset Smooth Operation
Environment, Furnaces, Causes Issues, Display throughout
Vibrations and High Flickering Many times
Temperatures
Power Consumption Low Relatively High
Display brightness / Less More
viewing clarity
Performance Analysis
Production Counter (cont)
• Zigbee Comparison
• We’use used xbee
Parameter Xbee Xbee Pro
Line of Sight Range 100 meter 1.6 KM
Out of site range 30 meter 300 meter
Transmit current 45mA 250mA
Addressing and SAME SAME
network features
Footprint Small Large
Price per unit 1100/- INR 2500/- INR
Performance Analysis
Production Counter (cont)
• Input Comparison
Sensor Type Allowed Voltage Actuation Denounce Response
Time
Limit Switch 12v Automatic HIGH 1 sec
Snitcher 24v Automatic HIGH 1 sec
Paddle Switch 24v Manual HIGH 2 sec
Pusher 24v Automatic Medium 1 sec
Sensor 24v Automatic LOW 500 ms
Performance Analysis
Production Counter (cont)
• Different Voltage Levels