• Aucun résultat trouvé

You will be using the LM34 Fahrenheit temperature sensor

N/A
N/A
Protected

Academic year: 2022

Partager "You will be using the LM34 Fahrenheit temperature sensor"

Copied!
1
0
0

Texte intégral

(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. Here’s 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 73°F. 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=Vanalog Read

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 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Arduino GND +5 GND 12 GND 11 - - - - 7 8 9 10 +5 GND

Here is a picture of a final working project:

Good luck!

Références

Documents relatifs

4 – In the case of color images such as MANDRILL.BMP image, we read the image file with the imread function then we compute the histogram plane by plane (there

Ifthe cursor cannot find what you ask it to , it will not move. Sometimes it leaps a certain di stance, then suddenly darts back and seems stuck. We call this cursor rebound. The

With a hole in this place /An diesem Ort ist ein Loch /Avec un trou ici /Con un agujero en este lugar /Con un foro in questo posto /Z otworem w tym miejscu. With a hole in this

Measures to suspend the Family Maintenance Act 1977 and to defer the coming into force of the Marital Property Act will be offered for your approval. You will be asked to approve

The Legislative Assembly will be asked to consider a bill amending The Medical Services Insurance Act to provide for certain optometric and chiropractic benefits and changing the

My Government commends 1973 to the people of Saskatchewan as a year to be celebrated, and my Government will use the occasion to give increased emphasis to the developing

You will be asked to approve further funds for the Saskatchewan Economic Development Corporation, which will permit that agency to make additional loans to major agricultural

My government has made repeated efforts to bring employees and employers to the bargaining table to reach a mutual agreement. However, neither the employers nor the employees have