Category:PCB Arduino

Group Administrators: 1 | Group Member: 81 | Group Threads: 86

Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects. About Arduino and Arduino Projects sharing are appreciated.

Thread Reply
Monitoring Temperature with Arduino Reply 2017-01-19 21:20:13
1K+ views
1 comments
474 likes

John Farrugia

Leave A Message

Follow

You can use an Arduino to monitor the air temperature by using an LM35 temperature sensor
The LM35 is an ideal temperature sensor for measuring ambient temperature. It provides a linear output proportional to the temperature, with 0 V corresponding to 0 degrees C and an output voltage change of 10 mV for each degree C change. LM35s are easier to use than thermistors and thermocouples because they are so linear and require no signal conditioning.
The output of an LM35 can be connected directly to a Arduino analog input. Because the Arduino analog-to-digital converter (ADC) has a resolution of 1024 bits, and the reference voltage is 5 V, the equation used to calculate the temperature from the ADC value is:
temp = ((5.0 * analogRead(TemperaturePin)) / 1024) * 100.0
To display the temperature, we will use a liquid crystal display (LCD).
Experiment
The purpose of this experiment to build a temperature monitor using an LM35, a 16x2 LCD, and an Arduino.
Hardware Required
  • 1 x Arduino Mega2560
  • 1 x LCD
  • 1 x 5 kohm potentiometer
  • 1 x breadboard
  • 1 x LM35 temperature sensor
  • 1 x 1k ohm resistor
  • Female connectors
  • jumper wires
Wiring Diagram
Circuit Diagram
Connect the components as shown in the figure above. A 1 kohm resistr is connected between the LM35 output and GND to limit the current without affecting the output voltage.
LCD Pins
The LCD is connected to the Arduino as shown below. The middle terminal of the potentiometer is connected to pin 3 of the LCD to change the brightness of the LCD backlight. The other two pins of the potentiometer are connected to 5 V and GND. Enable is connected to Arduino pin 9 of Arduino and RS is connected to Arduino pin 8. RW is connected to ground.
DB4-----> pin4
DB5----->pin5
DB6----->pin6
DB7----->pin7
RS----->pin8
EN----->pin9
474 likes
Statement: This post is only the personal view of the author and does not represent the opinions of ALLPCB.com.

Charles

Leave A Message

Follow

Thanks for marvelous posting.
ThreadReply