0% found this document useful (0 votes)
19 views13 pages

Module 2: Design of Embedded Systems

The document describes the design of an embedded system to monitor room temperature. It involves selecting a temperature sensor, interfacing it with a microcontroller using an ADC, displaying the temperature on 7-segment displays, and implementing software with interrupts to periodically read the sensor values and display the average temperature.

Uploaded by

RRSS2023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views13 pages

Module 2: Design of Embedded Systems

The document describes the design of an embedded system to monitor room temperature. It involves selecting a temperature sensor, interfacing it with a microcontroller using an ADC, displaying the temperature on 7-segment displays, and implementing software with interrupts to periodically read the sensor values and display the average temperature.

Uploaded by

RRSS2023
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Module 2 : Design of

Embedded Systems
Room Temperature Monitoring

K.R.Anupama
System Design
Temperature Sensor

Example 1
The System Design process

Requirements Every step


Analyze

Top Down Refine


Specifications
Approach Verify

Architecture

Components

Sys Integration
User Requirements

• Design a System that senses the temperature in a


room and displays them on 2, 7-segment displays
Specifications

If so do, we display
Will multiple
What is the size of an average/ or per
sensors be
the room ? temperature
required ?
sensor ?

What is the
Display in Resolution of
interval at which
temperature in 0 C temperature
the temperature
or F scale ? sensing ?
should be sensed ?
Step1: Select the Temperature Sensor

• Sensors for sensing room


temperature are different from the
ones which are used for sensing
atmospheric temperature
• ATS2000A
• Temperature range 32 F – 150 F
• Voltage i/p 5-30V – DC Regulated
• Typical Voltage -12 V DC 1.5 mA
• Four –pin connector
• Wall mountable
• How many –size of room
• 6 sensors
PINOUT OF SENSOR

PIN SIGNAL Input/ Scale Description


Output Factor
1 +V INPUT N/A Voltage referenced to the COM
terminal
(+5Vdc min to +30Vdc max )
2 T10 OUTPUT 10.0mV/°F Temperature Signal (direct reading)

3 T20 OUTPUT 19.6mV/°F Temperature Signal (scaled for 8-bit


ADC)
4 COM INPUT N/A Common (power supply & ADC
common
Step 2 : How to interface Sensor to system

• No of analog i/ps- 2
• 8-channel ADC
• Size of ADC
• Resolution of sensor
• 19.6mv /F
• 8-bit
• 0808 – 8 channel, 8-bit ADC
Step 3: Output Interface

2 seven segment displays

O/P Numeric or Alpha-Numeric

Common Anode display


Step 4: Interfacing to
Microcontroller

Sensor 1
Sensor 2
Ports ADC
(8-bit)

Clock - 1 sec interrupt


(RTI)
Step 5: Software

A B
Main

Start Conversion Convert to oC


Branch to end for sensor
of IVT Display Temp
Wait for
Int Wait for
Initialize clock,
ports, ADC 2 min INT
All
N sensors
A read
Y ISR1 ISR2
Find average
SOC (S1-S6) Read ADC
B

IRET IRET
Step 5: Software - ISR

A
ISR 1
N ISR2
All
Start Conversion sensors
for sensor read Read ADC
Y
Enable INT Find average
IRET
Wait for Convert to oC
Int
Display Temp
A
IRET

You might also like