Gaziantep University Department of Electrical and Electronics Engineering 1 Development of Monitoring Blood Bank Center Based PIC Microcontroller Using.

Slides:



Advertisements
Similar presentations
Applications of PICs Advantages/disadvantages Digital and analogue control Loops, sub-routines, scanning, counting and feedback Interrupts Problems with.
Advertisements

EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
EUT 1040 Lecture 10: Programmable Logic Controllers.
Railway Foundation Electronic, Electrical and Processor Engineering.
Railway Foundation Electronic, Electrical and Processor Engineering.
ASPPRATECH.
Microcontroller: Introduction
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Building an Application Server for Home Network based on Android Platform Yi-hsien Liao Supervised by : Dr. Chao-huang Wei Department of Electrical Engineering.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Edited by Mandar More Technical Manager, Ninad`s Research lab Ninad243.weebly.com MODERN OFFICE MANAGEMENT TOOL FOR SELECTIVE DATA.
2 Lines Electronics I 2 C Analyzer Ching-Yen Beh Robert S. Stookey Advisor: Dr. J. W. Bruce.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
EMBEDDED WEB SERVER. CONTENT: 1.ABSTRACT 2.INTRODUCTION TO EMBEDDED SYSTEMS 3.INTRODUCTION TO EMBEDDED WEB SERVER 4.BLOCK DIAGRAM 5.POER SUPPLY 6.COMPONENT.
Department of Electronic & Electrical Engineering Embedded system Aims: Introduction to: Hardware. Software Ideas for projects ? Robotics/Control/Sensors.
 Chasis / System cabinet  A plastic enclosure that contains most of the components of a computer (usually excluding the display, keyboard and mouse)
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Wireless Sensor Monitoring Group Members: Daniel Eke (COMPE) Brian Reilly (ECE) Steven Shih (ECE) Sponsored by:
1 SERIAL PORT INTERFACE FOR MICROCONTROLLER EMBEDDED INTO INTEGRATED POWER METER Mr. Borisav Jovanović, Prof.dr Predrag Petković, Prof.dr. Milunka Damnjanović,
Computer Architecture
Micro processor and Micro Controllers
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
HARDWARE INTERFACE FOR A 3-DOF SURGICAL ROBOT ARM Ahmet Atasoy 1, Mehmed Ozkan 2, Duygun Erol Barkana 3 1 Institute of Biomedical Engineering, Bogazici.
MICROPROCESSOR AND MICRO CONTROLLER
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
Microprocessors For a microprocessor to give a working microcomputer system, which can be used for control tasks, additional chips are necessary, e.g.
 Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics.
MICROOCESSORS AND MICROCONTROLLER:
July 18, UCSD - R.A. de Callafon Short Intro to Micro Processors and I/O functions of our Kinetic Sculpture Control Box Raymond de Callafon.
Lecture 7: Overview Microprocessors / microcontrollers.
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
Embedded Systems Introduction. Microprocessor building blocks 1. ALU (Arithmetic Logic Unit): The ALU is a sequential logic circuitry that is intended.
PROGRAMMABLE LOGIC CONTROLLER
Submitted by:.  Project overview  Block diagram  Power supply  Microcontroller  MAX232 & DB9 Connector  Relay  Relay driver  Software requirements.
Components of a typical full-featured microcontroller.
BLDC Motor Speed Control with RPM Display. Introduction BLDC Motor Speed Control with RPM Display  The main objective of this.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
8051 Microcontroller Tutorial and Architecture with Applications.
VEHICLE BACK UP ALARM DESIGN Student: Qi Zhou Mentor: Dr. Stanislaw Legowski.
SUBMITTED BY EDGEFX TEAM PORTABLE CODED WIRELESS MESSAGE COMMUNICATION BETWEEN TWO PARTIES SECRETLY WITH LCD DISPLAY.
Student Name USN NO Guide Name H.O.D Name Name Of The College & Dept.
TRANSMISSION LINE MULTIPLE FAULT DETECTION AND INDICATION TO EB
A Quick Start Guide to PIC16F877 microcontroller And Microchip Development Environment A Quick Start Guide to PIC16F877 microcontroller And Microchip Development.
BATCH MEMBERS R.ABHISHEK-08N41A0401 K.DHEERAJ REDDY-08N41A0412 S.RAJENDRA REDDY-08N41A0458 JYOTHISHMATHI COLLEGE OF ENGINEERING AND TECHNOLOGY,TURKAPALLY.
Lesson 1 PLC BASICS. PLC Definition  Programmable Logic Controllers are industrial computers that control machine and other applications.  PLC have.
Fan Assembly Driven by Magnetic Fields
Obstacle avoiding robot { pixel }
Scrolling LCD using Arduino.
AUTOMATIC TEMPERATURE CONTROLLED FAN USING 8051
Arduino Based Industrial appliances control system by decoding dual tone multi frequency signals on GSM / CDMA network. Submitted by:
ARDUINO BASED AUTOMATIC TEMPERATURE BASED FAN SPEED CONTROLLER
Home automation using Arduino & ‘PIR sensor’
Environment Temperature Monitor
Networking of Multiple street junction signals for better traffic management Submitted by:
Project Title EVM IN 8051 Under the Guidance of Submitted by.
SCADA for Remote Industrial Plant
PC Mouse operated Electrical Load Control Using VB Application
UNIT – Microcontroller.
SUBMITTED BY EDGEFX TEAM
Introduction to Microcontrollers and the Board of Education
‘SONAR’ using Arduino & ultrasonic distance sensor
RAILWAY TRACK SNAP NOTIFICATION
Why microcontrollers in embedded systems?
Introduction to Microprocessors and Microcontrollers
Introducing the PIC Mid-Range Family and the 16F84A
Manual Robotics ..
Course Code 114 Introduction to Computer Science
Presentation transcript:

Gaziantep University Department of Electrical and Electronics Engineering 1 Development of Monitoring Blood Bank Center Based PIC Microcontroller Using CAN Communication Prepared by : KAIWAN S. ISMAEL International Conference on Electrical and Microelectronics Systems

Human’s blood are divided in to three main components 1.Plasma 2.Red Blood Cell (RBC) 3.Platelet & White Blood Cell 2

Plasma Platelet RBC 20◦ _ 24 ◦ -18◦ _ -24 ◦ 1◦ _ 6 ◦ Each component of blood should be stored in different refrigerators because of the temperature limit’s range. Storing Of Blood Component 3

Due to the security of locations in the blood bank hall and difficulty of monitoring of big number of refrigerator separately, this work proposes a solution to setting and monitor all the blood bank refrigerators in one location. Refrigerators Inside Blood Bank Center PlasmaPlateletRBC 4

We designed the employed principles to monitor the blood centers by using MPLAB and C code. PIC microcontrollers are used to implement the hardware architecture of each node. The nodes that have a thermometer to read the temperatures in the blood centers, communicate with the display node through in implementing CAN bus system. Fig. 2 CAN Bus Block Diagram Fig. 1 CAN Bus Block Diagram 5

CAN Bus Introduction Controller Area Network (CAN) Originally developed by Robert Bosch for automobile in-vehicle network Multi-drop, Multi-master serial bus provides communication Between controllers, sensors, and actuators. Very reliable and robust, well proven technology(introduced mid 1980s) Inexpensive 6

CAN Bus Introduction CAN 2.0 A - Standard format CAN 2.0 B - Extended format ISO – – 2 =High Speed up to 1Mbps ISO – – 3 =Low Speed up to 125 Kbps 7

CAN Bus Introduction CAN Applications Automotive Military vehicles Industrial machinery Medical Systems Agricultural machinery Marine control and navigation Elevator control systems 8

CAN Bus Introduction CAN Characteristics All messages are broadcast Any node is allowed to broadcast a message Each message contains an ID that Identifies the source or content a identifies the source or content of a message Each receiver decides to process or ignore each message 9

CAN Bus Introduction CAN Characteristics Bus length/Bit rate tradeoff 1 M bit/sec 40 meters 500K bit/sec 100 meters 250K bit/sec 200 meters 125K bit/sec 500 meters 10

CAN Bus Introduction CAN Characteristics – Bit timing Local timing logic re-synchronizes with bus on each recessive to dominant transition 11

CAN Bus Introduction CAN Characteristics Network Size The maximum number of nodes is not specified Networks are limited by electrical loading,up to 64 nodes is normal 12

CAN Bus Introduction CAN Characteristics Network Size The maximum number of nodes is not specified Networks are limited by electrical loading,up to 64 nodes is normal 13

CAN Bus Introduction CAN Characteristics Bit field Standard CAN Standard CAN: 11-Bit Identifier Extended CAN Extended CAN: 29-Bit Identifier 14

Peripheral Interface Controller (PIC) internal memory Central Processing Unit (CPU) Read Only Memory (ROM) Random Access Memory(RAM) peripherals PIC microcontrollers ( Programmable Interface Controllers), are electronic circuits that can be programmed to carry out a vast range of tasks A microcontroller has 3 basic parts : digital I/O pins Analog to Digital Converters (ADC), Timers and counters 15

Peripheral Interface Controller (PIC) Application of PIC A microcontroller is a compact microcomputer designed to govern the operation of embedded systems in : Motor vehicles Robots Office machines Medical devices Telecommunications systems Alarm systems and fire detection Home security systems & Home automation systems 16

Peripheral Interface Controller (PIC) Benefits of the PIC Microcontroller Faster speed Lower cost Easier and quicker development 17

Program language ASSEMBLY language C language BASIC language 18

Why program PICs in C ? C is a portable language, requiring minimal modification when Transferring programs from one processor to another C programming in high-level language rather than assembler Allows programs to be developed much more rapidly Typically a program which takes a few weeks in assembler Can be written in C in a few days 19

PIC programming overview Write the code Compile the code Upload the code into a microcontroller 20

The hardware module is consisting of four main nodes, each node in different places and collects all refrigerator temperatures in one place. Also each node sends data to the bus. Our hardware is simulated in a one card and consist it the following : HARDWARE ARCHITECTURE 21 Blood Bank Center designed layout

1. PICF18458 PIC18F458 PIN diagram 22

2. MCP2561 Control Area Network (CAN) Transceiver: high-speed CAN, fault-tolerant device that serves as the interface between a CAN protocol controller and the physical bus including 5V requirements operate at speeds of 1 Mb/s CANH CANL 23

LM7805C Voltage Output +5V+9V Voltage Input GND VinVout 3.LM7805C VOLTAGE REGULATOR The operating voltage range of PIC18F458 is 2.0V to 5.5V. So LM7805C which is a +5.0V 1A voltage regulator, is used. It is a linear voltage regulator that produces a relatively constant output voltage of +5VDC 4.Temperature sensor LM35 The LM35 is an integrated circuit sensor that can be used to measure temperature with an electrical output proportional to the temperature (in C°) LM35 Temperature Sensor Voltage Regulator Circuit The LM35 does not require any external calibration 10mV per 1 °C LM35 is that it draws only 60 micro amps from its supply 24

The Implemented Algorithms This project is a four node CAN bus project, which are Display, Plasma, platelet, and RBC node The display node is consisting of a PIC18f458, a 4 MHz Oscillator, a transceiver MCP2561, 7channel Darlington Sink Driver ULN2003APG is connected to the PORTE of PIC, Buzzer, LED and an LCD is connected to the PIC via port D. All the components interface with each other and work based on a specified algorithm. Using C-Language that is compiled on MPLAB v.8.92 we have programmed the PIC. The PIC18f458 has one build in CAN module and CAN controller. This facilitates the CAN project because there is an internal interface between the CAN module and the CAN controller. The shows the circuit diagram of the Node. Display Node 25

Display Node Schematic Diagram 26

Flow Chart For CAN Based Display Node 27

The Implemented Algorithms This node has the following components: a PIC18f458, an LM35 temperature sensor, a 4 MHz Oscillator, and an MCP2561 transceiver. The temperature sensor is connected to the Analog to Digital Converter (ADC) which is a module inside the PIC through Port A (RA1). The temperature sensor continuously reads the actual temperature and sends the temperature as a voltage signal to ADC input pin which is RA1 in my case Red Blood Cell (RBC), Platelet and Plasma Node 28

RBC, Platelet and Plasma Node schematic diagram 29

Flow Chart for CAN Based RBC, Platelet and Plasma Node 30

Display node Platelet node RBC node Plasma node 31

32

33

Plasma nodeRBC nodePlatelet node Display node 34

35 The four nodes CAN bus system designed and implemented successfully and the data exchanges between all the four nodes. The PIC18f458 is used in each of the four nodes. The PIC18f458 that used in display node interfaced with an LM35 temperature sensor and the CAN bus. The node is read the temperature from the sensor and build a CAN package data and then put it on the can bus as well as the node read the data on the bus successfully. Another node has been designed in this project that connected to an LCD and has sent the data to show on the LCD successfully. The LCD (display) node could send and read the data on the bus perfectly, Also it turned on and off the LED and Buzzer successfully in case the temperature is greater or less than the limited range. conclusion

36 REFEERENCES [1]Texas Instrumeents, “Introductioon to the Conttroller Area Neetwork CAN),” Appliccation report, SLLOA101A–Auguust 2002–Revisedd July (CAN specificcation version 22.0 Robert Boschh GmbH, publisshed by copper hill Teechnologies Corpooration. [2] Steve Corriggan, “Introductioon to the Conttroller Area Neetwork”, pH Sensor byy Using PIC Microcontroller Unit (MCU)””IEEE Published byy Texas Instrumments Applicatio n Report, SLO A101A, August 2002––Revised July C.P.,pp ,2009. [4] U. Hashim, M. NN. Haron,” Desiggn of Digital Dispplay System for IISFET [5] Microchip technolog Inc, “High-Speed CAN Transceiver,” MCP2561/2, Device Document DS25167B, 2013 [6] Singh, S.A.J., Raviram, P., ShanthoshKumar, K., “Embedded Based Green House Monitoring System Using PIC Microcontroller’’ IEEE ICGCCEE, 2014, pp.1-4. [7] U. Hashim, M. N. Haron,” Design of Digital Display System for ISFET pH Sensor by Using PIC Microcontroller Unit (MCU)”IEEE C.P.,pp ,2009. [8] National Semiconductor, “LM35 Precision Centigrade Temperature Sensors Data sheet”, National Semiconductor Corporation, November2000. [9] Microchip Technology Inc, “28/40/44-Pin, Low-Power, High Performance Microcontrollers with XLP Technology,” PIC18(L)F2X/4XK22 Data Sheet, ISBN: , USA [10] Microchip Technology Inc, “Understanding Microchip’s CAN Module Bit Timing,” Document AN754, DS00754A, 2001.

37 Thank you