Professional Documents
Culture Documents
MICRO-CONTROLLER BASED
MULTITASKING & MONITORING SYSTEM
G.H.Raisoni Polytechnic
Submitted by
Nitin R. Koche Nikhil R. kumbhare
Anant V. Barapatre Pavan K. Lode
Certificate
This is to certify that Nitin R. Koche , a student of IIIrd year of the course
“ELECTRONICS & TELECOMMUNICATIONS” , have successfully completed the project
work as prescribed by Maharashtra State Board of Technical Education, Mumbai, for the
subject Entrepreneurship Development and Project , during the session 2010-11.
And I have guided him for the said work from time to time and I have found him to be
satisfactorily progressive.
The following students were associated with him in this project work proportionately.
1) Nikhil R. Kumbhare
2) Anant V. Barapatre
3) Pavan K. Lode
The said work has been assessed by me and I am satisfied as the project work lives up to the
expectations of the M.S.B.T.E.
This work is the partial fulfillment of the requirement for the award of diploma in electronics
& Telecommunication Engineering of Maharashtra State Board of Technical Education,
Mumbai.
Submission
I , Nitin Koche Roll no./Seat no./______________ , is a student of G.H.Raisioni
Polytechnic IIIrd year of the course Electronics & telecommunication , humbly submit that I
have completed the said work from time to time as a part of project work as prescribed by
Maharashtra State Board of Technical Education, Mumbai for the subject Entrepreneurship
Development and Project as prescribed in the report by my own skills and study for the
academic session 2010-11 as per the instruction/guidance of Miss. E. A. Darokar
And that the following students were associated with me for this work, however
quantum of my contribution has been approved by the teacher
And that, I have not the report or its any appreciable part from any other literature in
contravention of the academic ethic.
Last but not least I would like to thank my parents for their immense
cooperation, all my friends and non teaching staffs of Electronics &
Telecommunication Department for their timely suggestions during
preparation of my dissertation, without which would have been difficult to
present it in such a small span of time.
Index
Sr.No. Title Page No.
1 Abstract
2 Introduction
3 Block Diagram
4 Circuit Diagram
5 Component Details
6 Programming
7 Planning
8 Designing
9 PCB Layout
10 Testing
11 Application
12 Costing
13 Conclusion
14 Future Scope
15 Bibliography
ABSTRACT
The main idea behind the project is that, this kind of project can
be used practically in every “Electronics controller units” Because of
its portability, Simplicity, and easy handling. Overall it’s a project
that can be “Multi-tasking Controller Unit” which provide multi
tasking facility at one time and also ‘Monitoring’ overall function
which can be operated by the system.
The Project can make the things better for the Industrial,
Electronics, Measuring and Controlling purposes.
First up all switch the power ‘ON’. The switch is connected to P1.1 of micro-
controller AT89s52
Initially when power ‘ON’ the circuit, the microcontroller AT89S52 scans all
the interfaces one by one. First of all microcontrollers sends address to ADC IC, then
after the ADC sends the data captured by attached sensors one by one.
As our ADC have four channels inputs, the microcontroller sends address one
by one to all the channels of ADC. After sending last channel data by ADC to
microcontroller, the ADC sends “acknowledgement” data to stop communication
between microcontroller and ADC.
Same working will also be done for temperature sensing & controller, And
also for Voltages. When there is a rise of temperature beyond the pre-programmed
levels in microcontroller than LED will glow & buzzer will produce sound.
After that microcontroller checks the 2 bits of level sensors and shows the
level on LCD i.e. ‘FULL’ or ‘EMPTY’. When the level is empty microcontroller gives
the Alarm.
CIRCUIT DIAGRAM
Main Circuit
A – LM35 Thermister
B – Level
C – Voltage
D – Potentiometer
Sensor Circuits
LM 35 Thermister
RPM Sensor
Power Circuit
Voltage Circuit
D1 1N1183
R2 1k c
Voltage N2
C1 100
R1 10k
50V to 280V N1
N3 R3 100
P1 5k
Components Details
Microcontroller AT89s52
Features
• Compatible with MCS-51® Products
• 8K Bytes of In-System Programmable (ISP) Flash Memory
– Endurance: 1000 Write/Erase Cycles
• 4.0V to 5.5V Operating Range
• Fully Static Operation: 0 Hz to 33 MHz
• Three-level Program Memory Lock
• 256 x 8-bit Internal RAM
• 32 Programmable I/O Lines
• Three 16-bit Timer/Counters
• Eight Interrupt Sources
• Full Duplex UART Serial Channel
• Low-power Idle and Power-down Modes
• Interrupt Recovery from Power-down Mode
• Watchdog Timer
• Dual Data Pointer
• Power-off Flag
Description
The AT89S52 is a low-power, high-performance CMOS 8-bit microcontroller
with 8K bytes of in-system programmable Flash memory. The device is
manufactured using Atmel’s high-density nonvolatile memory technology and is
compatible with the industry-standard 80C51 instruction set and pinout. The on-
chip Flash allows the program memory to be reprogrammed in-system or by a
conventional nonvolatile memory programmer.
In addition, the AT89S52 is designed with static logic for operation down to
zero frequency and supports two software selectable power saving modes. The Idle
Mode stops the CPU while allowing the RAM, timer/counters, serial port, and
interrupt system to continue functioning. The Power-down
Power down mode saves the RAM
contents but freezes the oscillator, disabling all other chip functions until the next
interrupt or hardware reset.
Pin Configuration
Block Diagram
Pin Description
VCC
Supply voltage.
GND
Ground.
Port 0
Port 0 is an 8-bit open drain bidirectional I/O port. As an output port, each pin can
sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as
high impedance inputs. Port 0 can also be configured to be the multiplexed low
order address/data bus during accesses to external Program and data memory. In
this mode, P0 has internal pull-ups. Port 0 also receives the code bytes during Flash
programming and outputs the code bytes during program verification. External
pull-ups are required during program verification.
Port 1
Port 1 is an 8-bit bidirectional I/O port with internal pullups.The Port 1 output
buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins, they
are pulled high by the internal pullups and can be used as inputs. As inputs, Port 1
pins that are externally being pulled low will source current (IIL) because of the
internal pullups. In addition, P1.0 and P1.1 can be configured to be the
timer/counter 2 external count input (P1.0/T2) and the timer/counter 2 trigger
input (P1.1/T2EX), respectively, as shown in the following table. Port 1 also receives
the low-order address bytes during Flash programming and verification.
Port 2
Port 2 is an 8-bit bidirectional I/O port with internal pullups.The Port 2 output
buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins, they
are pulled high by the internal pullups and can be used as inputs. As inputs, Port 2
pins that are externally being pulled low will source current (IIL) because of the
internal pullups. Port 2 emits the high-order address byte during fetches from
external program memory and during accesses to external data memory that uses
16-bit addresses (MOVX @ DPTR). In this application, Port 2 uses strong internal
pullups when emitting 1s. During accesses to external data memory that uses 8-bit
addresses (MOVX @ RI), Port 2 emits the contents of the P2 Special Function
Register. Port 2 also receives the high-order address bits and some control signals
during Flash programming and verification.
Port 3
Port 3 is an 8-bit bidirectional I/O port with internal pullups. The Port 3 output
buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins, they
are pulled high by the internal pullups and can be used as inputs. As inputs, Port 3
pins that are externally being pulled low will source current (IIL) because of the
pullups. Port 3 also serves the functions of various special features of the AT89S52,
as shown in the following table. Port 3 also receives some control signals for Flash
programming and verification.
RST
Reset input. A high on this pin for two machine cycles while the oscillator is running
resets the device. This pin drives High for 96 oscillator periods after the Watchdog
times out. The DISRTO bit in SFR AUXR (address 8EH) can be used to disable this
feature. In the default state of bit DISRTO, the RESET HIGH out feature is
enabled.
ALE/PROG
Address Latch Enable (ALE) is an output pulse for latching the low byte of the
address during accesses to external memory. This pin is also the program pulse input
(PROG) during Flash programming. In normal operation, ALE is emitted at a
constant rate of 1/6 the oscillator frequency and may be used for external timing or
clocking purposes. Note, however, that one ALE pulse is skipped during each access
to external data memory. If desired, ALE operation can be disabled by setting bit 0
of SFR location 8EH. With the bit set, ALE is active only during a MOVX or
MOVC instruction. Otherwise, the pin is weakly pulled high. Setting the ALE-
disable bit has n effect if the microcontroller is in external execution mode.
PSEN
Program Store Enable (PSEN) is the read strobe to external program memory.
When the AT89S52 is executing code from external program memory, PSEN is
activated twice each machine cycle, except that two PSEN activations are skipped
during each access to external data memory.
EA/VPP
External Access Enable. EA must be strapped to GND in order to enable the device
to fetch code from external program Memory locations starting at 0000H up to
FFFFH. Note, however, that if lock bit 1 is programmed, EA will be internally
latched on reset. EA should be strapped to VCC for internal program executions.
This pin also receives the 12-volt programming enable voltage (VPP) during Flash
programming.
XTAL1
Input to the inverting oscillator amplifier and input to the internal clock operating
circuit.
XTAL2
Output from the inverting oscillator amplifier.
Table of AT 89s52 SFR Map and Reset value
0F8H 0FFH
0F0H B 0F7H
00000000
0E8H 0EFH
0D8H 0DFH
0C0H 0C7H
0B8H IP 0BFH
XX000000
0B0H P3 0B7H
11111111
0A8H IE 0AFH
0X000000
90H P1 97H
11111111
1 FEATURE
• Single power supply
• Operating supply voltage 2.5 V to 6 V
• Low standby current
• Serial input/output via I2C-bus
• Address by 3 hardware address pins
• Sampling rate given by I2C-bus speed
• 4 analog inputs programmable as single-ended or
• differential inputs
• Auto-incremented channel selection
• Analog voltage range from VSS to VDD
• On-chip track and hold circuit
• 8-bit successive approximation A/D conversion
• Multiplying DAC with one analog output.
2 APPLICATIONS
3 GENERAL DESCRIPTIONS
4 ORDERING INFORMATION
TYPE PACKAGE
NUMBER
NAME DESCRIPTION VERSION
PCA8591P DIP16 plastic dual in-line
line package; 16 leads (300 mil); long SOT38-1
PCA8591T SO16 body
plastic small outline package; 16 leads; body width 7.5 SOT162-1
mm
5 PIN CONFIGURATIONS
A/D conversion
After a Power-on
on reset condition the first byte read is a hexadecimal
adecimal 80. The
protocol of an I2C-bus
bus read cycle is shown in The maximum A/D conversion rate is
given by the actual speed of the I2C-bus.
I2C
HIGH-VOLTAGE,
VOLTAGE, HIGH-CURRENT
HIGH CURRENT
DARLINGTON ARRAYS
Featuring continuous load current ratings to 500 mA for each of the drivers,
the Series ULN28xxA/LW and ULQ28xxA/LW high voltage, high-current high
Darlington arrays are ideally suited
sui for interfacing between low-level
level logic circuitry
and multiple peripheral power loads. Typical power loads totaling over 260 W (350
mA x 8, 95 V) can be controlled at an appropriate duty cycle depending on ambient
temperature and number of drivers turned
turned on simultaneously. Typical loads include
relays, solenoids, stepping motors, magnetic print hammers, multiplexed LED and
incandescent displays, and heaters. All devices feature open-collector
open collector outputs with
integral clamp diodes.
All devices are pinned with outputs opposite inputs to facilitate ease of circuit
board layout. Prefix ‘ULN’ devices are rated for operation
operation over the temperature
range of -20°C to +85°C;C; prefix ‘ULQ’ devices are rated for operation to -40°C.
Pin Configuration
ABSOLUTE MAXIMUM RATINGS
Power Dissipation, PD
(one Darlington pair) .................. 1.0 W
(Total package)..................... See Graph
PARTIAL SCHEMATICS
ALLOWABLE PACKAGE POWER DISSIPATION IN WATTS
FEATURES
MECHANICAL DATA
ELECTRICAL SPECIFICATIONS
FEATURES
Unique 1–WireTM interface requires only one port pin for communication
Multidrop capability simplifies distributed temperature sensing applications
Requires no external components • Can be powered from data line
Zero standby power required
Measures temperatures from –55°C to +125°C in 0.5°C increments. Fahrenheit
equivalent is –67°F to +257°F in 0.9°F increments
Temperature is read as a 9–bit digital value. • Converts temperature to digital
word in 200 ms (typ.)
User–definable, nonvolatile temperature alarm settings
Alarm search command identifies and addresses devices whose temperature is
outside of programmed limits (temperature alarm condition)
Applications include thermostatic controls, industrial systems, consumer
products, thermometers, or any thermally sensitive system
PIN ASSIGNMENT
• GND – Ground
• DQ – Data In/Out
• NC – No Connect
DESCRIPTION
Information is sent to/from the DS1820 over a 1–Wire interface, so that only one
wire (and ground) needs to be connected from a central microprocessor to a
DS1820. Power for reading, writing, and performing temperature conversions can
be derived from the data line itself with no need for an external power source.
Because each DS1820 contains a unique silicon serial number, multiple DS1820s
can exist on the same 1–Wire bus. This allows for placing temperature sensors in
many different places. Applications where this feature is useful include HVAC
environmental controls, sensing temperatures inside buildings, equipment or
machinery, and in process monitoring and control.
TEMPERATURE/DATA RELATIONSHIPS
When a metal object moves into the inductive proximity sensor’s field of
detection, Eddy circuits build up in the metallic object, magnetically push back, and
finally reduce the Inductive sensor’s own oscillation field. The sensor’s detection
circuit monitors the oscillator’s strength and triggers an output from the output
circuitry when the oscillator becomes reduced to a sufficient level.
KA78XX/KA78XXA
3-Terminal 1A Positive Voltage Regulator
Features
• Output Current up to 1A
• Output Voltages of 5, 6, 8, 9, 10, 12, 15, 18, 24V
• Thermal Overload Protection
• Short Circuit Protection
• Output Transistor Safe Operating Area Protection
Description
$regfile = "805252.DAT"
$romstart = &H500
$crystal = 12000000
Lcd = 16 * 4
Lcdpin = Pin , Db4 = P0.4 , Db5 = P0.5
Lcdpin = Pin , Db6 = P0.6 , Db7 = P0.7
Lcdpin = Pin , E = P0.2 , Rs = P0.0
Rw Alias P0.1
Out1 Alias P2.4
Out2 Alias P2.5
Out3 Alias P2.6
Out4 Alias P2.7
Config Scl = P3.6
Config Sda = P3.7
Dim A As Single
Dim Channel As Byte
Dim Adc_value As Byte
Dim T2 As Byte
Dim T3 As String * 5
Dim H1 As Byte
Dim H2 As Byte
Dim H3 As Byte
Dim T1 As Byte
Dim V1 As Integer 'Single
Dim V0 As Integer 'Single
Dim Temp As Integer 'Single
Dim Strout As String * 3
Dim Setpoint As Byte
Lcdinit
Cls
Upperline
Lcd "Project by"
Secondline
Lcd " NITIN , NIKHIL "
Thirdline
Lcd " ANANT , PAVAN "
Cursor Off
delays 1
Cls
Do
Deflcdchar 0 , 12 , 18 , 18 , 12 , 32 , 32 , 32 , 32
Call Read_adc1(1)
H1 = Adc_value1
Call Read_adc1(2)
H2 = Adc_value2
Call Read_adc1(3)
H3 = Adc_value3
If H3 > 100 Then
H3 = "full"
Else
H3 = "empty"
End If
Upperline
Lcd " SET=" ; H2 ; " " ;
Upperline
Lcd "temp=" ; H1 ;
Call Read_adc(2)
T1 = Adc_value1
'Lcd "T" ; T1 ;
Call Read_adc(0)
T2 = Adc_value2
Lowerline
Lcd " SET=" ; T2 ; " "
Lowerline
Lcd "T=" ; Strout ; Chr(0) ; "C "
Cursor Off
delays 1
A=A+1
If A > 3 Then
A=0
Goto Prog2
End If
Loop
End
prg2:
Rw = 0
Led1 = 1
Led2 = 1
Lcdinit
Cls
Do
Debounce Up , 0 , Run
thrdline
Lcd "RPM= ";t0; "rpsec=";D;
Waitms 1
Loop
Run:
Wait 15
Goto Startt
Return
Startt:
A=1
D=0
Do
c=c+1
Debounce Up , 0 , Run1
D=D+1
If A = 1 Then
C=D
End If
Upperline
Lcd "Sens=" ; A ; " RPM=" ; C ; " "
Lowerline
Lcd "D=" ; D ; " "
Waitms 1
if c>500 then
goto main
end if
Loop
****************************END********************************
PLANNING
The project planning includes following steps:
First Step:
In this part, circuit layout is drawn on the paper with the proper
Component size and measurement this part help to make a PCB of
project.
After drawing circuit diagram, this circuit layout design PCB layout
in Coral Draw software and Print on ‘stressive paper’.
This stressing print copy on copper clad by “Screen Printing
Method”.
Copper clad is dipped into the FeCL3 solution for about half &
hour.
After paths were visible we made holes using drill machine.
MOUNTING OF COMPONETS
In this process all the tracks were checked with the help of
multimeter for continuity.
Components were placed on PCB & soldered perfectly.
After completion of soldering testing was done.
Layout Planning:
The layout of PCB has to incorporate all the information on the board before
one can produce to the art work preparation. This planning procedure
depends upon many factors.
Layout Scale
Depending upon the accuracy, the art work should be at 1.1 or2.1 or 4.1
scales accordingly the size of the art work will be equal to four times of design
of actual PCB.
Layout Procedure
The important rule is to prepare overhead every PCB layout from component
side. The large once are placed first and space in between in filled with
smaller ones. The entire component is placed in possible if they have to be
replaced.
Layout Sketch
The end product of the layout designing is pencil sketched component and
conductor driving which is called layout sketch, which contains all the
relevant information for preparation of artwork.
RPM Measurement.
Overflow controller
Rs. 7,500/-
CONCLUSION
On the basis of the project report “Microcontroller Based
Multitasking and monitoring system”. We can say that the
project is successfully operating with desire result and we can
conclude the following:
www.nationalsemicodutor.com.