• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 16 pages
Other

Digital Thermometer with Alarm and Logger

Document preview thumbnail
Preview 3 out of 16 pages

Since the invention of microcontrollers, the production of “smart” electronic devices has since rose drastically. These microcontrollers are put inside a system and act as a brain to control a singular function in a device. This is accomplished by using its central processor to interpret data received from its I/O peripherals. The microcontroller's temporary data is saved in its data memory, where the processor accesses it and decodes and applies the incoming data using instructions stored in its program memory. It then communicates and takes the appropriate action using its I/O peripherals. The microcontroller used in this whole project is PIC16F690. This report consists of two projects. In project 3, digital thermometer with data logger is built while on project 4 is an addition of a feature to project 3 whereby an audio alarm is added. Project 3 which consists of two parts, Part 1 requires us to build a thermometer that will display the ambient temperature on a 2 digit, seven segment display then part 2 was to implement a temperature logger store a temperature value every time the user presses the ‘store’ button. Project 4 operated based on two modes: “run” mode which continuously displays the current temperature and “Set threshold” which allows the user to set the threshold temperature level and sound the alarm when temperature goes higher than this set threshold

Content preview

PHASE 2 REPORT:

PROJECT 1- Digital Thermometer with logger
PROJECT 2- Digital Thermometer with Alarm




1|Page

,Abstract
Since the invention of microcontrollers, the production of “smart” electronic devices has since
rose drastically. These microcontrollers are put inside a system and act as a brain to control a
singular function in a device. This is accomplished by using its central processor to interpret
data received from its I/O peripherals. The microcontroller's temporary data is saved in its data
memory, where the processor accesses it and decodes and applies the incoming data using
instructions stored in its program memory. It then communicates and takes the appropriate
action using its I/O peripherals [4]. The microcontroller used in this whole project is
PIC16F690.


This phase 2 report consists of two projects. In project 3, digital thermometer with data logger
is built while on project 4 is an addition of a feature to project 3 whereby an audio alarm is
added. Project 3 which consists of two parts, Part 1 requires us to build a thermometer that will
display the ambient temperature on a 2 digit, seven segment display then part 2 was to
implement a temperature logger store a temperature value every time the user presses the ‘store’
button. Project 4 operated based on two modes: “run” mode which continuously displays the
current temperature and “Set threshold” which allows the user to set the threshold temperature
level and sound the alarm when temperature goes higher than this set threshold.


The project was designed and simulated on proteus software. Since on Proteus software the
buzzer wouldn’t emit sound, a red LED was connected in series with the buzzer as to evident
that it works, the LED emitted a light whenever the temperature values exceeded the set
threshold and thus to show the buzzer works. After simulation and analysis of results, many of
the required specifications of phase 2 were met, only one was fell short.




2|Page

, Table of Contents
Project 3: Digital Thermometer with logger .......................................................................................................... 5
1. Introduction (for project 3) ............................................................................................................................... 5
1.2 Problem definition ...................................................................................................................................... 5
1.3 Proposed solution ........................................................................................................................................ 5
2. Solution approach ............................................................................................................................................. 5
2.1 Block diagram of the system ....................................................................................................................... 6
2.1.1 Components used ................................................................................................................................. 6
2.2 Flow diagram of the system ......................................................................................................................... 6
2.3 Simulation Implementation details ............................................................................................................. 9
3. Testing ............................................................................................................................................................ 10
3.1 Test cases .................................................................................................................................................. 10
3.2 Code performance ..................................................................................................................................... 11
Project 4: Digital Thermometer with Alarm ........................................................................................................ 11
4 Introduction (for project 4) .............................................................................................................................. 11
4.1 Problem definition .................................................................................................................................... 11
5 Solution Approach ........................................................................................................................................... 11
5.1 Block diagram of the system..................................................................................................................... 12
5.2 Software design and Flow diagrams ......................................................................................................... 13
Interrupt subroutine ..................................................................................................................................... 13
Timer 0 operation ........................................................................................................................................ 14
Timer 2 operation ........................................................................................................................................ 14
5.3 Hardware Simulation ................................................................................................................................ 14
5.3.1 Saving and retrieving data to EEPROM Data memory ..................................................................... 14
5.3.2 Setting the bounds .............................................................................................................................. 14
6 Conclusion ....................................................................................................................................................... 15
6.1 Time taken ........................................................................................................................................... 15
6.2 Lessons learnt ...................................................................................................................................... 15
7 References ........................................................................................................................................................ 16
8 Appendix............................................................................................................. Error! Bookmark not defined.
Appendix A: The Digital thermometer................................................................ Error! Bookmark not defined.
Appendix B:The digital thermometer with an audio alarm ................................ Error! Bookmark not defined.


Figure 1:The block diagram of digital thermometer ............................................................................... 6
Figure 2:The Flow diagram for the system ............................................................................................. 7

3|Page

Document information

Uploaded on
September 6, 2022
Number of pages
16
Written in
2022/2023
Type
Other
Person
Unknown
R99,00

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
1
Followers
1
Items
7
Last sold
3 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions