Beruflich Dokumente
Kultur Dokumente
Chapter 1
INTRODUCTION
In terms of complexity embedded systems can range from very simple with a single
microcontroller chip, to very complex with multiple units, peripherals and networks
mounted inside a large chassis or enclosure.
Characteristics
User interfaces
Embedded systems range from no user interface at all - dedicated only to one task
- to full user interfaces similar to desktop operating systems in devices such as PDAs.
Simple systems
Simple embedded devices use buttons, LEDs, and small character- or digit-only
displays, often with a simple menu system.
CPU platform
There are many different CPU architectures used in embedded designs such as
ARM, MIPS, Cold fire/68k, PowerPC, x86, PIC, 8051, Atmel AVR, Renesas H8, SH,
V850, FR-V, M32R, Z80, Z8, etc. This in contrast to the desktop computer market, which
is currently limited to just a few competing architectures PC/104 and PC/104+ are a
typical base for small, low-volume embedded and rugged system design. These often use
DOS, Linux, NetBSD, or an embedded real-time operating system such as QNX or
VxWorks. A common configuration for very-high-volume embedded systems is the
system on a chip (SoC), an application-specific integrated circuit (ASIC), for which the
CPU core was purchased and added as part of the chip design. A related scheme is to use
a field-programmable gate array (FPGA), and program it with all the logic, including the
CPU.
Peripherals
Embedded Systems talk with the outside world via peripherals, such as:
Serial Communication Interfaces (SCI): RS-232, RS-422, RS-485 etc
Synchronous Serial Communication Interface: I2C, JTAG, SPI, SSC and ESSI
Universal Serial Bus (USB)
Networks: Controller Area Network, LonWorks, etc
Timers: PLL(s), Capture/Compare and Time Processing Units
Discrete IO: aka General Purpose Input Output (GPIO)
Tools
For systems using digital signal processing, developers may use a math
workbench such as MathCAD or Mathematical to simulate the mathematics.
Custom compilers and linkers may be used to improve optimization for the
particular hardware.
An embedded system may have its own special language or design tool, or add
enhancements to an existing language.
Debugging
As the complexity of embedded systems grows, higher level tools and operating
systems are migrating into machinery where it makes sense. For example, cell phones,
personal digital assistants and other consumer computers often need significant software
that is purchased or provided by a person other than the manufacturer of the electronics.
In these systems, an open programming environment such as Linux, NetBSD, OSGi or
Embedded Java is required so that the third-party software provider can sell to a large
market.
Introduction to project
Embedded systems are used in many applications inmedical field for controlling
various biomedical parameters,and monitoring biomedical signals. In this design, a
ARMprocessor is used for controlling the anesthesia machineautomatically, depending
upon the various biomedicalparameters such as body temperature, heart rate etc., Major
operations are performed to remove orreconstruct the infected parts in the human body.
Theseoperations lead to blood loss and pain. Therefore it isnecessary to arrest the pain
and the blood loss. Anesthesiaplays important role in the part of painkilling.
Hence,anesthesia is very essential in performing painless surgery.
1.2 METHODOLOGY
In the design, a ARM controller is used for controlling the anesthesia machine
automatically with continuous monitoring the various biomedical parameters such as
body temperature, heart rate, respiration rate etc., Major operations are performed to
remove orreconstruct the infected parts in the human body. Theseoperations lead to blood
loss and pain. Therefore it isnecessary to arrest the pain and the blood
loss.Anaesthesiaplays important role in the part of painkilling. Hence, anesthesia is very
1.5 CONCLUSION
The Automatic Anaesthesia injector using arm controller was designed and
implemented for safety purpose of the patient and reduce man power (anaesthetist). By
using various electrical circuits the bio-medical parameters can be found. The output of
the circuits is amplified by means of an amplifier and fed into an A/D converter. The
digitized signal is then fed into the input port of the microcontroller. The microcontroller
displays the parameters in digital value in the display device.when we enter the value
through the keypad then the DC motor rotates so teeth rack push the plunger of the
syringe attached to it.
Chapter 2
LITERATURE REVIEW
Major operations are performed to remove or reconstruct the infected parts in the
human body. These operations will lead to blood loss and pain. Therefore it is necessary
to arrest the pain and the blood loss. Anaesthesia plays an important role in the part of
painkilling .AAI can be defined as Automatic administration of anaesthesia based on the
bio-medical parameters of the patient, eliminating future side effects and the need for
an anaesthetists.Anaesthesia is very essential in performing painless surgery and so an
Automatic administration of Anaesthesia is needed for a successful surgery.
Connor S.B [1] proposed that infusion rates demanded of the infusion pump in
many computer-controlled drug delivery applications are made to change at intervals
much shorter than those encountered under routine clinical use.Many infusion pumps for
intravenous drug delivery are nowbeing manufactured with RS232 or RS485 serial
communications capability for monitoring, maintenance, or control purposes.Flow rate
accuracy of three commercially available drug infusion pumps with an internal or add-on
serial communications interfacewas tested under computer control. The three devices
examined were an Abbott Lifecare model 4P, an IMED Gemini PC-2 (channel A was
used), and an IVAC model 560 with an add-on serial interface module (IVAC CIM). The
infusion rates were restricted to be in the range 0-999 mL/h with a resolution of 1 mL/h.
According to the Food and Drug Administration, infusion pumps are considered
nowadays the most safety-critical medical device due to the nature of their operations and
associated risks. The design of these devices is still an open question and several
improvement initiatives are under research. However the released specifications of such
systems are not yet adapted to the current state-of-art systems architectural developments.
For example, in our regulatory research, we were not able to mention any project meeting
the views and viewpoints patterns for specification and documentation of system and
software architectures during the engineering process. This proposes a functional
specification of architecture for infusion pumps that can be realized through several
technological trends for these products in order to improve safety [2].
Rodrigues S.A [2] expressed his view that we validate our specification by
developing a prototype of an infusion pump that can be programmed through data
retrieved from a web service using a mobile application as a remote control and changing
the infusion parameters according to accuracy properties as a multi-channel device. Thus,
the main contribution of this paper can be presented as a distributed architecture for this
sort of device, allowing early integration with Electronic Health Records and Patient
Health Records for embedded systems domain implying in risk reductions during the
programming activity.
systems. This work has tried to make an easy and stout system for the monitoring of heart
beat [3].
Electrostatic Discharge (ESD) ascompared to the MOSFETs under the same operating
conditions.We have illustrated in the paper the designing and testing of thismotor driver
along with its performance evaluation.[5]
Our goal is henceforth to design a body sensornetwork for unobtrusive and highly
accurate profiling of body parameters over weeks in realistic environments. One example
application is monitoring the impact of sleep deprivation on periodic processes in
the human body known as circadian rhythms, which requires highly accurate profiling of
skin temperature across the human body over weeks with real-time feedback to a remote
medic [8]. We analyze the requirements on a body sensor network for such applications
and highlight the need for self-organizing behaviour such as adaptive sampling to ensure
energy efficiency and thus longevity, adaptive communication strategies, self-testing,
automatic compensation for environmental conditions, or automatic recording of a diary
of activities. As a first step towards this goal, we design and build a prototype of such a
non-invasive wearable wireless monitoring system for accurate body temperature
measurements and real-time feedback to the medic. Through the design, parameterization,
and calibration of an active measurement subsystem, we obtain an accuracy of 0.02C
over the typical body temperature range of 16-42C. We report results from two
preliminary trials regarding the impact of circadian rhythms and mental activity on
skin temperature, indicating that our tool could indeed become a valuable asset for
medical research.
Chapter 3
PROJECT IMPLEMENTATION
The Fig3.1 shows the Automatic Anaesthesia Injector using ARM
Controller. The block diagram consists of controller, temperature sensor, heart beat
sensor, motor, motor driver, display, keypad, syringe.
3.1.1 Microcontroller
The most commonly used type of all the sensors are those which
detect temperature or heat. These types of temperature sensor vary from simple ON/OFF
thermostatic devices which control a domestic hot water heating system to highly
sensitive semiconductor types that can control complex process control furnace plants.
We remember from our school science classes that the movement of molecules and atoms
produces heat (kinetic energy) and the greater the movement, the more heat that is
generated. Temperature Sensors measure the amount of heat energy or even coldness that
is generated by an object or system, allowing us to sense or detect any physical change
to that temperature producing either an analogue or digital output.
There are many different types of temperature Sensor available and all have different
characteristics depending upon their actual application. A Temperature Sensor consists of
two basic physical types:
Heart Beat can be measured based on optical power variation as light is scattered
or absorbed during its path through the blood as the heart beat changes. The heartbeat
sensor is based on the principle of photo phlethysmography. It measures the change in
volume of blood through any organ of the body which causes a change in the light
intensity through that organ (a vascular region). In case of applications where heart pulse
rate is to be monitored, the timing of the pulses is more important. The flow of blood
volume is decided by the rate of heart pulses and since light is absorbed by blood, the
signal pulses are equivalent to the heart beat pulses.
ADC are used virtually everywhere where ananalog signal has to be processed, stored,
ortransported in digital form.Some examples of ADC usage are digital voltmeters, cell
phone, thermocouples, anddigital oscilloscope.
A motor driver is a little current amplifier; the function of motor drivers is to take
a low-current control signal and then turn it into a higher-current signal that can drive a
motor.
3.1.7 DC motor
DC motors were the first type widely used, since they could be powered from
existing direct-current lighting power distribution systems. A DC motor's speed can be
controlled over a wide range, using either a variable supply voltage or by changing the
strength of current in its field windings. Small DC motors are used in tools, toys, and
appliances. The universal motor can operate on direct current but is a lightweight motor
used for portable power tools and appliances. Larger DC motors are used in propulsion of
electric vehicles, elevator and hoists, or in drives for steel rolling mills. The advent of
power electronics has made replacement of DC motors with AC motors possible in many
applications.
A syringe is a simple pump consisting of a plunger that fits tightly in a tube. The
plunger can be pulled and pushed along inside a cylindrical tube (called a barrel),
allowing the syringe to take in and expel a liquid or gas through an orifice at the open end
of the tube. The open end of the syringe may be fitted with a hypodermic needle, a
nozzle, or tubing to help direct the flow into and out of the barrel. Syringes are often used
to administer injections, insert intravenous drugs into the bloodstream.
3.1.9Keypadmodule
A keypad is a set of buttons arranged in a block or "pad" which usually bear
digits, symbols and usually a complete set of alphabetical letters. If it mostly contains
numbers then it can also be called a numeric keypad. Keypads are found on many
alphanumeric keyboards and on other devices such as calculators, push-buttontelephones,
combination locks, and digital door locks, which require mainly numeric input.
3.2 CONCLUSION
This chapter gives an overview of block diagram of Automatic Anaesthesia
Injector with components like microcontroller, temperature and heart beat sensors,
ADC(Analog to Digital Converter), LCD(Liquid Crystall Display), motor driver ,DC
motor, syringe, keypad used in the project. It gives brief working and importance of
microcontroller, temperature and heart beat sensors, ADC,LCD,motor driver ,DC motor,
keypad.
Chapter 4
ARCHITECTURAL IMPLEMENTATION
In this chapter of implementation we discuss the individual modules, their
working and their relation to the whole project. These individual modules include the
sensor technology including the temperature and smoke sensors, the communication
block including the buzzer giving indication to the persons inside the hall at the time of
danger and also the GSM technology to fetch the fire station help and medical care . Also
we have the pulse width modulation networks which are used for automatic control of fan
and light. Individual module description and their relation to the whole project working is
described below.
4.1 MICROCONTROLLER
Due to their tiny size and low power consumption, LPC2148 are ideal for
applications where miniaturization is a key requirement, such as access control and
pointof-sale. Serial communications interfaces ranging from a USB 2.0 Full-speed device,
multiple UARTs, SPI, SSP to I2C-bus and on-chip SRAM of 8 kB up to 40 kB, make
these devices very well suited for communication gateways and protocol converters, soft
modems, voice recognition and low end imaging, providing both large buffer size and
high processing power. Various 32-bit timers, single or dual 10-bit ADCs, 10-bit DAC,
PWM channels and 45 fast GPIO lines with up to nine edge or level sensitive external
interrupt are present.
4.1.2 Features
Crystal Oscillator
PLL
The PLL accepts an input clock frequency in the range of 10 MHz to 25 MHz.
The input frequency is multiplied up into the range of 10 MHz to 60 MHz with a Current
Controlled Oscillator (CCO). The multiplier can be an integer value from 1 to 32 (in
practice, the multiplier value cannot be higher than 6 on this family of microcontrollers
due to the upper frequency limit of the CPU).
The CCO operates in the range of 156 MHz to 320 MHz, so there is an additional
divider in the loop to keep the CCO within its frequency range while the PLL is providing
the desired output frequency. The output divider may be set to divide by 2, 4, 8, or 16 to
produce the output clock. Since the minimum output divider value is 2, it is insured that
the PLL output has a 50 % duty cycle.
The PLL is turned off and bypassed following a chip reset and may be enabled by
software. The program must configure and activate the PLL, wait for the PLL to Lock,
then connect to the PLL as a clock source. The PLL settling time is 100 msec.
Reset has two sources on the LPC2141/42/44/46/48: the RESET pin and
watchdog reset. The RESET pin is a Schmitt trigger input pin with an additional glitch
filter. Assertion of chip reset by any source starts the Wake-up Timer (see Wake-up
Timer description below), causing the internal chip reset to remain asserted until the
external reset is de-asserted, the oscillator is running, a fixed number of clocks have
passed, and the on-chip flash controller has completed its initialization.When the internal
reset is removed, the processor begins executing at address 0, which isthe reset vector.At
that point, all of the processor and peripheral registers have been initialized to
predetermined values.
The Wake-up Timer ensures that the oscillator and other analog functions required
for chip operation are fully functional before the processor is allowed to execute
instructions. This is important at power on, all types of reset, and whenever any of the
aforementioned functions are turned off for any reason. Since the oscillator and other
functions are turned off during Power-down mode, any wake-up of the processor from
Power-down mode makes use of the Wake-up Timer.
The Wake-up Timer monitors the crystal oscillator as the means of checking
whether it is safe to begin code execution. When power is applied to the chip, or some
event caused the chip to exit Power-down mode, some time is required for the oscillator
to produce a signal of sufficient amplitude to drive the clock logic. The amount of time
depends on many factors, including the rate of VDD ramp (in the case of power on), the
type of crystal and its electrical characteristics (if a quartz crystal is used), as well as any
other external circuitry (e.g. capacitors), and the characteristics of the oscillator itself
under the existing ambient conditions.
Code Security
The Memory Mapping Control alters the mapping of the interrupt vectors that
appearbeginning at address 0x0000 0000. Vectors may be mapped to the bottom of the
on-chip flash memory, or to the on-chip static RAM. This allows code running in
different memory spaces to have control of the interrupts.
Power Control
The LPC2141/42/44/46/48 supports two reduced power modes: Idle mode and
Power-down mode. In Idle mode, execution of instructions is suspended until either a
reset or interrupt occurs. Peripheral functions continue operation during idle mode and
may generate interrupts to cause the processor to resume execution. Idle mode eliminates
power used by the processor itself, memory systems and related controllers, and internal
buses.
In Power-down mode, the oscillator is shut down and the chip receives no internal
clocks. The processor state and registers, peripheral registers, and internal SRAM values
are preserved throughout Power-down mode and the logic levels of chip output pins
remain static. The Power-down mode can be terminated and normal operation resumed by
either a reset or certain specific interrupts that are able to function without clocks.
VPB BUS
The VPB divider determines the relationship between the processor clock (CCLK)
and the clock used by peripheral devices (PCLK). The VPB divider serves two purposes.
The first is to provide peripherals with the desired PCLK via VPB bus so that they can
operate at the speed chosen for the ARM processor. Because the VPB bus must work
properly at power-up (and its timing cannot be altered if it does not work since the VPB
divider control registers reside on the VPB bus), the default condition at reset is for the
VPB bus to run at 14 of the processor clock rate. The second purpose of the VPB divider
is to allow power savings when an application does not require any peripherals to run at
the full processor rate. Because the VPB divider is connected to the PLL output, the PLL
remains active (if it was running) during Idle mode.
Embedded ICE
Standard ARM Embedded ICE logic provides on-chip debug support. The
debugging of the target system requires a host computer running the debugger software
and an Embedded ICE protocol converter. Embedded ICE protocol converter converts the
remote debug protocol commands to the JTAG data needed to access the ARM core.
The ARM core has a Debug Communication Channel (DCC) function built-in.
The DCC allows a program running on the target to communicate with the host debugger
or another separate host without stopping the program flow or even entering the debug
state. The DCC is accessed as a co-processor 14 by the program running on the
ARM7TDMI-S core.
Real Monitor
Port 0 is a 32-bit I/O port with individual direction controls for each bit. Total of
31 pins of the port 0 can be used as a general purpose bidirectional digital I/Os while
p0.31 is output only pin. The operation of port 0 pins depends upon the pin function
selected via the pin connect block.
P0.0/TXD0/PWM1
P0.1/RXD0/PWM3/EINT0
P0.2/SCL0/CAP0.0
compliance)
P0.3/SDA0/MAT0.0/EINT1
compliance)
P0.4/SCK0/CAP0.1/AD0.6
SCK0 Serial clock for SPI0, SPI clock output from master or input to
slave
P0.5/MISO0/MAT0.1/AD0.7
MISO0 Master in slave OUT for SPI0, data input to SPI master or data
P0.6/MOSI0/CAP0.2/AD1.0
MOSI0 Master out slave in for SPI0, data output from SPI master or
P0.7/SSEL0/PWM2/EINT2
SSEL0 Slave select for SPI0, selects the SPI interface as a slave
P0.8/TXD1/PWM4/AD1.1
P0.9/RXD1/PWM6/EINT3
P0.10/RTS1/CAP1.0/AD1.2
P0.11/CTS1/CAP1.1/SCL1
only
compliance)
P0.12/DSR1/MAT1.0/AD1.3
only
P0.13/DTR1/ MAT1.1/AD1.4
P0.14/DCD1/EINT1/SDA1
chip boot loader to take over control of the part after reset
P0.15/RI1/ EINT2/AD1.5
only
P0.16/EINT0/MAT0.2/CAP0.2
P0.17/CAP1.2/ SCK1/MAT1.2
SCK1 Serial Clock for SSP, clock output from master or input to
slave
P0.19/MAT1.2/MOSI1/CAP1.2
MOSI1 Master out Slave In for SSP, data output from SSP master or
P0.20/MAT1.3/SSEL1/EINT3
SSEL1 Slave Select for SSP, selects the SSP interface as a slave
P0.21/PWM5/AD1.6/CAP1.3
P0.22/AD1.7/CAP0.0/MAT0.0
P0.23/VBUS
P0.28/AD0.1/CAP0.2/MAT0.2
P0.29/AD0.2/CAP0.3/MAT0.3
P0.30/AD0.3/EINT3/CAP0.0
Important: This is a digital output only pin, this pin MUST NOT be externally pulled
LOW when RESET pin is LOW or the JTAG port will be disabled P1.0 to P1.31 I/O Port
1: Port 1 is a 32-bit bidirectional I/O port with individual direction controls for each bit,
the operation of port 1 pins depends upon the pin function selected via the pin connect
block, pins 0 through 15 of port 1 are not available.
P1.16/TRACEPKT0
TRACEPKT0 Trace Packet, bit 0, standard I/O port with internal pull-up
P1.17/TRACEPKT1
TRACEPKT1 Trace Packet, bit 1, standard I/O port with internal pull-up
P1.18/TRACEPKT2
TRACEPKT2 Trace Packet, bit 2, standard I/O port with internal pull-up
P1.19/TRACEPKT3
TRACEPKT3 Trace Packet, bit 3, standard I/O port with internal pull-up
P1.20/TRACESYNC
pull-up
Note: LOW on this pin while RESET is LOW enables pins P1.25:16 to operate as Trace
port after reset
P1.21/PIPESTAT0
P1.21 General purpose input/output digital pin (GPIO)
PIPESTAT0 Pipeline Status, bit 0, standard I/O port with internal pull-up
P1.22/PIPESTAT1
PIPESTAT1 Pipeline Status, bit 1, standard I/O port with internal pull-up
P1.23/PIPESTAT2
PIPESTAT2 Pipeline Status, bit 2, standard I/O port with internal pull-up
P1.31/TRST
RESET External reset input: A LOW on this pin resets the device, causing I/O ports
and peripherals to take on their default states,and processor execution to begin at address
XTAL1: Input to the oscillator circuit and internal clock generator circuits
Ground: 0 V reference.
VSSA Analog ground: 0 V reference, this should nominally be the same voltage as
VSS, but should be isolated to minimize noise and error
VDD 23, 43, 51 I 3.3 V power supply: This is the power supply voltage for the core and
I/O ports.
VDDA 7 I Analog 3.3 V power supply: This should be nominally the same voltage as
VDD but should be isolated to minimize noise and error, this voltage is only used to power
the on-chip ADC(s) and DAC
VREF ADC reference voltage: This should be nominally less than or equal to the VDD
voltage but should be isolated to minimize noise and error, level on this Pin is used as a
reference for ADC(s) and DAC.
There are many types of power supply. Most are designed to convert high voltage
AC mains electricity to a suitable low voltage supply for electronic circuits and other
devices. A power supply can by broken down into a series of blocks, each of which
performs a particular function.
Each of the blocks of power supply as shown in Fig 4.3 is described in more detail below:
Transformer - steps down high voltage AC mains to low voltage AC.
Sasi Institute of Technology and Engineering Page 30
A Project Report on Automatic Anaesthesia Injector
4.3.1 Transformer
Transformers convert AC electricity from one voltage to another with little loss
of power. Transformers work only with AC and this is one of the reasons why mains
electricity is AC. Step-up transformers increase voltage, step down transformers reduce
voltage. Most power supplies use a step-down transformer to reduce the dangerously high
mains voltage (230V in UK) to a safer low voltage.
The input coil is called the primary and the output coil is called the secondary.
There is no electrical connection between the two coils; instead they are linked by an
alternating magnetic field created in the soft-iron core of the transformer. The two lines in
the middle of the circuit symbol represent the core. Transformers waste very little power
so the power out is (almost) equal to the power in. Note that as voltage is stepped down
current is stepped up.
A bridge rectifier can be made using four individual diodes, but it is also
available in special packages containing the four diodes required. It is called a full-wave
rectifier because it uses the entire AC wave (both positive and negative sections). 1.4V is
used up in the bridge rectifier because each diode uses 0.7V when conducting and there
are always two diodes conducting, as shown in the diagram below. Bridge rectifiers are
rated by the maximum current they can pass and the maximum reverse voltage they can
withstand (this must be at least three times the supply RMS voltage so the rectifier can
withstand the peak voltages). Alternate pairs of diodes conduct, changing over the
connections so the alternating directions of AC are converted to the one direction of DC.
4.3.3 Regulator
Voltage regulator ICs are available with fixed (typically 5, 12 and 15V) or
variable output voltages. They are also rated by the maximum current they can pass.
Negative voltage regulators are available, mainly for use in dual supplies. Most regulators
include some automatic protection from excessive current ('overload protection') and
overheating ('thermal protection').
Figure 4.5:Regulator
Many of the fixed voltage regulators ICs have 3 leads and look like power
transistors, such as the 7805 +5V 1A regulator shown on the right. They include a hole
for attaching a heat sink if necessary.
4.4 MAX-232
level is to be transformed to RS232 DB9 connector voltage level of the system. In short a
MAX 232 is nothing but a clamper circuit, the voltage level translation is done through
clamping circuit here diodes are inbuilt, whereas the capacitors are to be connected
externally .In order to connect micro controller to a modem or a pc to modem a serial port
is used. Serial is a very common protocol for device communication that is standard on
almost every PC.
When the terminal is turned on, after going through a self test, it sends out signal
DTR to indicate that it is ready for communication. If there is something wrong with the
COM port, this signal will not be activated. This is an active low signal and can be used
to inform the modem that the computer is alive and kicking. This is an output pin from
DTE and an input to the modem.
4.5.2 DSR (Data set ready)
When DCE is turned on and has gone through the self test, it asserts DSR to
indicate that it is ready to communicate. Thus it is an output from the modem and input to
the PC. This is an active low signal. If for any reason the modem cannot make a
connection to the telephone, this signal remains in active, indicating to the PC that it
cannot accept or send data.
When the DTE device has a byte to transmit, it asserts RTS to signal the modem
that it has a byte of data to transmit. RTS is an active low output from the DTE and an
input to the modem.
In response to RTS ,when the modem has room for storing the data it is receive,it
sends out signal CTS to the DTE to indicate that it can receive the data now. This input
signal to the DTE is used by the DTE to start transmission.
The modem asserts signal DCD to inform the DTE that a valid carrier has been
detected and that contact between it and the other modem is established. Therefore .DCD
is an output from the modem and an input the PC (DTE).
An output from the modem (DCE) and an input to a PC (DTE) indicate that the
telephone is ringing .It does on or off in synchronization with the ringing sound .Of the 6
handshake signals ,this is the least often used, due to the fact that modem take care of
answering the phone . However, if in a given system PC is in charge of answering the
phone, this signal is used.
4..1 Introduction
solution between them. An electric current passed through the liquid causes the crystals to
align so that light cannot pass through them.
While Vcc and Vss provide +5V and ground respectively, Vee is used for
controlling LCD contrast.
There are two very important registers inside the LCD. The RS pin is used for their
selection as follows.
a) If RS=0, the instruction command code register is selected, allowing the user to
send a command such as clear display, cursor at home, etc.,
b) If RS=1 the data register is selected, allowing the user to send data to be displayed
on the LCD.
R/W, read/write
R/W input allows the user to write information to the LCD or read information
from it. R/W=1 when reading; R/W=0 when writing.
EN, Enable
The enable pin is used by the LCD to latch information presented to its data pins.
When data is supplied to data pins, a high-to-low pulse must be applied to this pin in
order for the LCD to latch in the data present at the data pins. This pulse must be a
minimum of 450ns wide.
D0-D7
The 8-bit data pins, D0-D7, are used to send information to the LCD or read the
contents of the LCDs internal registers. To display letters and numbers, we send ASCII
codes for the letters A-Z, a-z, and numbers 0-9 to these pins while making RS=1.There
are also instruction command codes that can be sent to the LCD to clear the display or
force the cursor to the home position or blink the instruction command codes.
The Fig 4.10 depicts the interfacing diagram of LCD with ARM. In this LCD we
have 8 data bits, two power supply and two ground pins and finally three control pins for
controlling the operation of LCD. The three pins RS, R/W, EN pin which are the control
pins of LCD are connected to a voltage supply of 5 volts. From the 8 data lines present in
LCD only 4 data lines ranging from 7 to 10 will be connected to arm using the pins 27 to
30.The required data that is to be sent from the processor to the display unit will be sent
through these pins only. We use LCD display in our project to display the required
information like speed of the zone, speed limit with which the vehicle must travel in that
zone.
Enable Display/Cursor:
Shift Display:
Reading Data back is used in this application, which requires data to be moved
back and forth on the LCD. The "Busy Flag" is polled to determine whether the last
instruction that has been sent has completed processing.
4.7.1 Features
Typical Applications
Circuit Diagram
Working Principle
The circuit diagram is shown above in Fig 4.13. Briefly, there are two transistors
in the center of the drawing. One has ten times the emitter area of the other. This means it
has one tenth of the current density, since the same current is going through both
transistors. This causes a voltage across the resistor R1 that is proportional to the absolute
temperature, and is almost linear across the range we care about. The almost part is taken
care of by a special circuit that straightens out the slightly curved graph of voltage versus
temperature.
The amplifier at the top ensures that the voltage at the base of the left transistor
(Q1) is proportional to absolute temperature (PTAT) by comparing the output of the two
transistors.
The amp lifer at the right converts absolute temperature (measured in Kelvin) into
either Celsius or Celsius, depending on the part (LM34 or LM35). The little circle with
the "i" in it is a constant current source circuit. The integrated circuit has many transistors
in it -- two in the middle, some in each amplifier, some in the constant current source, and
some in the curvature compensation circuit. All of that is fit into the tiny package with
three leads.
by blood flow through finger at each pulse. A simple heart -beat transducer can be made
from an infrared LED and an infrared phototransistor. It works because skin acts as a
reflective surface for infrared light. The IR reflectivity of skin depends on the density of
blood in it. Blood density rises and falls with the pumping action of the heart. So the
intensity of infrared reflected by the skin (and thus transmitted to the phototransistor)
rises and falls with each heartbeat.
4.8.1 Features
1. Microcontroller based SMD design.
2. Heat beat indication by LED.
3. Instant output digital signal for directly connecting to microcontroller.
4. Compact Size.
5. Working Voltage +5V DC.
Applications
4.8.2 Specification
1. Parameter Value.
2. Operating Voltage +5V DC regulated.
3. Operating Current 100 mA.
4. Output Data Level 5V TTL level.
5. Heart Beat detection Indicated by LED and Output High Pulse.
6. Light source 660nm Super Red LED.
Board has 3-pin connector for using the sensor. Details are marked on PCB as
below.Pin Name Details
The sensor consists of a super bright red LED and light detector. The LED needs
to be super bright as the maximum light must pass spread in finger and detected by
detector. Now, when the heart pumps a pulse of blood through the blood vessels, the
finger becomes slightly more opaque and so less light reached the detector. With each
heart pulse the detector signal varies. This variation is converted to electrical pulse. This
signal is amplified and triggered through an amplifier which outputs +5V logic level
signal. The output signal is also indicated by a LED which blinks on each heart beat.
Fig4.16 SENSOR PRINCIPLE following figure shows signal of heart beat and sensor
signal output graph.
4.9.1 Features:
Wide supply-voltage range: 4.5V to 36V.
Separate input- logic supply.
Internal ESD protection.
Thermal shutdown.
High-Noise-Immunity input.
Functional Replacements for SGS L293 and SGS L293D.
Output current 1A per channel (600 mA for L293D).
Peak output current 2 A per channel (1.2 A for L293D).
Output clamp diodes for Inductive Transient Suppression(L293D).
Figure 4.18:L293D
4.9.2 Description
L293D is a dual H-bridge motor driver integrated circuit (IC). Motor drivers act as
current amplifiers since they take a low-current control signal and provide a higher-
current signal. This higher current signal is used to drive the motors. L293D contains two
inbuilt H-bridge driver circuits. In its common mode of operation, two DC motors can be
driven simultaneously, both in forward and reverse direction. The motor operations of
two motors can be controlled by input logic at pins 2 & 7 and 10 & 15. Input logic 00 or
11 will stop the corresponding motor. Logic 01 and 10 will rotate it in clockwise and
anticlockwise directions, respectively.
Enable pins 1 and 9 (corresponding to the two motors) must be high for motors
to start operating. When an enable input is high, the associated driver gets enabled. As a
result, the outputs become active and work in phase with their inputs. Similarly, when the
enable input is low, that driver is disabled, and their outputs are off and in the high-
impedance state.
4.10 DC MOTOR
A DC motor is an electric motor that runs on direct current (DC) electricity. In any
electric motor, operation is based on simple electromagnetism. A current-carrying
conductor generates a magnetic field; when this is then placed in an external magnetic
field, it will experience a force proportional to the current in the conductor, and to the
strength of the external magnetic field. As you are well aware of from playing with
magnets as a kid, opposite (North and South) polarities attract, while like polarities
(North and North, South and South) repel. The internal configuration of a DC motor is
designed to harness the magnetic interaction between a current-carrying conductor and an
external magnetic field to generate rotational motion.
Let's start by looking at a simple 2-pole DC electric motor (here red represents a
magnet or winding with a "North" polarization, while green represents a magnet or
Every DC motor has six basic parts -- axle, rotor (a.k.a., armature), stator,
commentator, field magnet(s), and brushes. In most common DC motors, the external
magnetic field is produced by high-strength permanent magnets1. The stator is the
stationary part of the motor -- this includes the motor casing, as well as two or more
permanent magnet pole pieces. The rotor rotates with respect to the stator. The rotor
consists of windings (generally on a core), the windings being electrically connected to
the commutator. The above diagram shows a common motor layout -- with the rotor
inside the stator (field) magnets.
The geometry of the brushes, commutator contacts, and rotor windings are such
that when power is applied, the polarities of the energized winding and the stator
magnet(s) are misaligned, and the rotor will rotate until it is almost aligned with the
stator's field magnets. As the rotor reaches alignment, the brushes move to the next
commutator contacts, and energize the next winding. Given our example two-pole motor,
the rotation reverses the direction of current through the rotor winding, leading to a "flip"
of the rotor's magnetic field, driving it to continue rotating.
In real life, though, DC motors will always have more than two poles (three is a
very common number). In particular, this avoids "dead spots" in the commutator. You can
imagine how with our example two-pole motor, if the rotor is exactly at the middle of its
rotation (perfectly aligned with the field magnets), it will get "stuck" there. Meanwhile,
with a two-pole motor, there is a moment where the commutator shorts out the power
supply (i.e., both brushes touch both commutator contacts simultaneously). This would be
bad for the power supply, waste energy, and damage motor components as well. Yet
another disadvantage of such a simple motor is that it would exhibit a high amount of
torque"ripple".So since most small DC motors are of a three-pole design, let's tinker with
the workings of one via an interactive animation.
You'll notice a few things from this -- namely, one pole is fully energized at a
time (but two others are "partially" energized). As each brush transitions from one
commutator contact to the next, one coil's field will rapidly collapse, as the next coil's
field will rapidly charge up (this occurs within a few microsecond). We'll see more about
the effects of this later, but in the meantime you can see that this is a direct result of the
coil windings' series.
4.11 SYRINGE
A syringe is a simple pump consisting of a plunger that fits tightly in a tube. The
plunger can be pulled and pushed along inside a cylindrical tube (called a barrel),
allowing the syringe to take in and expel a liquid or gas through an orifice at the open end
of the tube. The open end of the syringe may be fitted with a hypodermic needle, a
nozzle, or tubing to help direct the flow into and out of the barrel. Syringes are often used
to administer injections, insert intravenous drugs into the bloodstream, apply compounds
such as glue or lubricant, and measure liquids.
Sectors in the syringe and needle market include disposable and safety
syringes, injection pens, needleless injectors, insulin pumps, and specialty needles.[2]
Hypodermic syringes are used with hypodermic needles to injectliquid or gases into body
tissues, or to remove from the body. Injecting of air into a blood vessel is hazardous, as it
may cause an air embolism; preventing embolisms by removing air from the syringe is
one of the reasons for the familiar image of holding a hypodermic syringe pointing
upward, tapping it, and expelling a small amount of liquid before an injection into the
bloodstream.
sensor. The Vref pin is connected as one of the input of the heartbeat sensorand port 1.30
and port 1.31 pins is connected to input pins of motor driver (L293D).The output pins of
L293D are connected to the DC motor.
4.13 CONCLUSION
This chapter includes detailed information about interfacing of each and every
module present in the project with the micro controller .It also includes modules
specifications, pin description, working ,internal diagrams,complete schematic diagram of
automatic anaesthesia injector using arm controller.
Chapter 5
EXPERMENTAL RESULTS
In this chapter, the module of Automatic Anaesthesia Injector using ARM
Controller is implemented with its brief description and we give results which displays
on LCD based on the condition of the patient.
5.1 RESULTS
Click on the flash magic icon which is on the desktop of the personal computer .
Then the flash magic window is opened as shown in fig5.1.In that we have
choosen the device which is used in implementation (LPC2148).
Check whether the COM Port as COM 1, baud rate is 9600 and interface is
choosen as none(ISP).
Click on the Tools in menu bar.In that select terminal tool, the terminal settings
window is opened as shown in Fig 5.2then click on OK.
Click on start button
Then the flash magic window is opened for entering the output time slots and
quantity of medicine.
Now enter the AA in the input section.So,in the output section it displays to enter
slot 1 time and quantity of medicine.(we have to enter preferred time and quantity
in slot1).
Next in the same way slot2 is repeated.
The result of the machine as shown in Fig5.4 will be occurred according to the
time slots.
5.3 APPLICATIONS
This machine is also used to inject various complicated drugs which have to be
give in the prescribed time slots.
By interfacing IR detector we can also know the total amount of drug injected
into the patient body.
5.4 CONCLUSION
This chapter includes the steps involved for obtaining the results and physical
view with explanation of our project Automatic Anaesthesia Injector using ARM
Controller.
Future Scope
The bio-medical sensors like respiratory,pressures, position, skin can be included.
IR detector is also included in the system for monitoring the total anesthesia level
for the entire period of the surgery time.
Buzzer can also included to indicate when bio-medical parameters varies and
when insufficient anaesthesia in the syringe.
The level of anaesthesia can be controlled by controller based on variations in
bio-medical parameters.
BIBILOGRAPHY
[1] Connor, S.B. , Quill, T.J. , Jacobs, J.R. Accuracy of drug infusion pumps under
computer control Biomedical Engineering, IEEE Transactions on (Volume:39 , Issue:
9)
[2] Rodrigues, S.A., Freire, R.C.S. , Luciano, B.A. ,Barbosa, P.E.S. : Architectural
specification for infusion pumps and realization towards safety technological trends
Medical Measurements and Applications (MeMeA), 2014 IEEE International Symposium
on
[3] Arora, J. , Gagandeep , Singh, A. , Singh, N.P. : Heartbeat rate monitoring system by
pulse technique using HB sensor Information Communication and Embedded Systems
(ICICES), 2014 International Conference on
[4] Optimal DC motor design for constant voltage seek motionChiang, W.-W.
[5] A DC motor driver consisting of a single MOSFET with capability of speed and
direction controlG. Mulay; A. Yembarwar; S. RajePower Electronics (IICPE), 2014 IEEE
6th India International Conference on
[6] Sensorless speed/position control of brushed DC motorE. Afjei; A. Nadian
Ghomsheh; A. Karami
[7]Vaz, A. ,Ubarretxena, A. Zalbide, I. Pardo, D. : Full Passive UHF Tag With a
Temperature Sensor Suitable for Human Body Temperature Monitoring Circuits and
Systems II: Express Briefs, IEEE Transactions on (Volume:57 , Issue: 2 )
[10]https://depts.washington.edu/soslab/turbidostat/pmwiki/pmwiki.php?n=Construction
Manual.SyringePump Interconnection details of DC motor and plunger of syringe by
means of teeth rack.