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
dat...
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
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying this summary from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller percivalnyawose. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy this summary for R99,00. You're not tied to anything after your purchase.