Skip to Content
Using LEDs, LCDs and GLCDs in Microcontroller Projects
book

Using LEDs, LCDs and GLCDs in Microcontroller Projects

by Dogan Ibrahim
November 2012
Intermediate to advanced
496 pages
12h 2m
English
Wiley
Content preview from Using LEDs, LCDs and GLCDs in Microcontroller Projects

11.7 PROJECT 11.7 – Temperature and Pressure Display

This project is about the design of a microcontroller based device to measure the ambient temperature and the pressure and to display them on a 2 × 16 LCD. The temperature will be displayed on the first row and the pressure on the second row. The display is in floating point format as follows:

img

There are many analogue and digital temperature sensors available. The one used in this project is the LM35DZ integrated circuit analogue temperature sensor. This is a small 3-pin sensor, where one of the pins is connected to +V, the other one to GND, and the third one is the output pin. The output voltage is proportional to temperature and is given by

(11.1) equation

Thus, for example, at 10°C the output voltage is 100 mV, at 25°C the output voltage is 250 mV, and so on.

The ambient pressure sensor used in this project is the MPX4115A. This sensor generates an analogue voltage proportional to the ambient pressure. The device is available either in a 6-pin or an 8-pin package.

The pin configuration of a 6-pin sensor is:

Pin Description
1 Output voltage
2 Ground
3 +5 V supply
4–6 not used

and for an 8-pin sensor:

Pin Description
1 not used
2 +5 V supply
3 Ground
4 Output voltage
5–8 not used

Figure 11.25 shows pictures ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Practical AVR Microcontrollers: Games, Gadgets, and Home Automation with the Microcontroller Used in Arduino

Practical AVR Microcontrollers: Games, Gadgets, and Home Automation with the Microcontroller Used in Arduino

Alan Trevennor

Publisher Resources

ISBN: 9781118361030Purchase book