0% found this document useful (0 votes)
216 views1 page

Sensar Temperatura Con LM34 y Arduino

The document provides instructions for an Arduino mini-project to build a temperature sensor with an LCD display. It describes using an LM34 temperature sensor which outputs a voltage corresponding to degrees Fahrenheit. An analog input on the Arduino reads this voltage and converts it to a temperature reading displayed on an LCD screen, whose wiring to Arduino pins is also explained. Code is provided to perform the temperature reading and display.

Uploaded by

saloka
Copyright
© Attribution Non-Commercial (BY-NC)
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)
216 views1 page

Sensar Temperatura Con LM34 y Arduino

The document provides instructions for an Arduino mini-project to build a temperature sensor with an LCD display. It describes using an LM34 temperature sensor which outputs a voltage corresponding to degrees Fahrenheit. An analog input on the Arduino reads this voltage and converts it to a temperature reading displayed on an LCD screen, whose wiring to Arduino pins is also explained. Code is provided to perform the temperature reading and display.

Uploaded by

saloka
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 1

ESE 205 Arduino Mini-project 1 The first optional mini-project (and we mean optional) will be constructing a temperature sensor

with an LCD display. Heres some info to get you started. You will be using the LM34 Fahrenheit temperature sensor. This is a 3-pin device with 5V and GND inputs and temperature output corresponding to the schematic to the right. The LM34 is designed to output 10 mV per degree Fahrenheit, so a reading of 0.73 V on the output pin means the temperature is 73F. In order to use this on your Arduino you will have to connect the 5V and GND pins to the corresponding buses on your Arduino, and wire the output pin to an analog input pin. To read the LM34, we use the analogRead(pinX) function. This will give you a value between 0 for GND and 1023 for 5V, because the analog pins on the Arduino are 10 bit (210 = 1024). To convert this into a real voltage reading, take the ratio of the reading to 1023, and multiply this by 5V like the equation below.

Vtrue =

Vana log Re ad 1023

(5)

In order to display the current temperature you will have to wire an LCD display to 6 digital output pins on your arduino as well as 5V and GND. Luckily for you, we are providing you with working code for this mini project. All you have to do is wire the LCD display and the LM34. In order to wire your LCD screen, see the datasheet at <www.mini-robot.com.mx/datasheets/JHD162A.pdf>. You will notice from the code that you will use the pins labeled VSS, VCC, VEE, RS, E, DB4-7, and LED+/-. Wire the pins according to the following assignments: LCD Arduino 1 GND 2 +5 3 GND 4 12 5 GND 6 11 7 8 9 10 11 7 12 8 13 9 14 10 15 +5 16 GND

Here is a picture of a final working project:

Good luck!

You might also like