Arduino : Using "LM-35" a Termo Sensor Module

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@sikul·
0.000 HBD
Arduino : Using "LM-35" a Termo Sensor Module
#### What Will I Learn?
- You will learn to use Sensor Termo (LM 35) Sensor 
- You will learn how to integrate the Termo  sensor with the arduino uno board.
- You will learn how to make simple termometer with termo (LM 35) sensor

#### Requirements
##### Hardware
- Arduino Uno

![Arduino.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518277301/dmbcpxuqmiksznkltwtg.png)
- LM-35 Module

![LM-35i.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518440709/kvjmnuyxksima1c6tviu.png)
-  Liquid Crystal LCD ( 16 x 2 )

![LCD.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518355107/dohyuk6koyhzlx2h9m0o.png)
- Breadboard

![BreadBoard copy.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518277248/tkuxywpjirtpjai1xuge.png)
- Jumper Wires Male To Male

![jumper wires male to male copi.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518277514/czptaupl8wfrxcoci1yy.png)
- USB type A to B cable

![USB Printer copy.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518277862/spqakhutz56sv5ra1vxe.png)
- Personal Computer (Laptop)

![Komputer copy.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518277101/iito1jk0hrknc78ad977.png)

##### Software
- Arduino IDE

![Arduino_IDE.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518355747/e6widomljje27kvmzf56.png)

##### Knowledge
- Electronics and Robotics Basic
#### Difficulty
- Basic

##### Project Introduction
- This project uses a temperatur sensor (LM-35) Module that is controlled by an arduino uno board. The LM-35 Module connect to analog pin as reader input termperatur and LCD connected to arduino uno board serves as Output viewer media. 


##### Component Description
**Arduino Uno** - is a Atmega32-based microcontroller board. Having many digital and analog pins, the arduino can be easily programmed via a computer or laptop with USB and is designed to facilitate electronic users in various fields. As open source he comes with 2 products namely Hardware Arduino Board and Arduino IDE software.


**LM-35 Module**  - LM35 is a sensor that can be used to measure temperature with output that is proportional to temperature (° C). Often used because it is more accurate than thermistor and easily combined with arduino board. The low price is also a major factor in the use of this tool. LM-35 has 3 pins "V (+)", "GND (-)" and signal (S).

#### Tutorial Contents

##### Step 1 : Prepare All Parts
You can buy from online store or directly to the Electronics Shop
![3.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518443831/bcwfnmuraf4tgdi8xkqw.png)

##### Step 2 : Build Circuit Architecture
![Termometer.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518444171/xlcvwyuia33tewbyy49a.png)


- Connect the "GND" of the arduino uno board to "VSS"  LCD and "V(+)" LM-35. 
- Connect the "5V" of the arduino uno board to "VDD" LCD and "GND(-)" LM-35 . 

**Pin Connect LCD**
- Connect the "pin number 7" of the arduino uno board to "RS" LCD. 
- Connect the "pin number 6" of the arduino uno board to "E" LCD. 
- Connect the "pin number 5" of the arduino uno board to "DB(4)" LCD. 
- Connect the "pin number 4" of the arduino uno board to "DB(5)" LCD. 
- Connect the "pin number 3" of the arduino uno board to "DB(6)" LCD. 
- Connect the "pin number 2" of the arduino uno board to "DB(7)" LCD. 

**Pin Connect LM-53**
- Connect the "Analog Number 0" of the arduino uno board to "Singnal" LM-35. 

##### Step 3 : Programing

- Connect Arduino to the computer with USB . 
- Open the Arduino IDE  > Chose your Board Type 
![IDE.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518282215/dbhjjmartyvv00x8nou3.png)

Copy the code below and paste it into your own sketch in the arduino software.
- **Simple thermometer**
```C+
#include <LiquidCrystal.h> // include library for LCD

LiquidCrystal lcd(7, 6, 5, 4, 3, 2); // pin to LCD
int potPin = 0; // select the input pin for the LM35
float suhu = 0;
long val = 0;

void setup()
{
Serial.begin(9600); 
lcd.begin(16, 2); // set up the LCD's number of rows and columns
}

void loop()
{
val = analogRead(potPin); // read the value from the sensor
suhu = (5.0 * val * 100.0)/1024.0; // convert to Celcius
lcd.clear(); // clear LCD screen
lcd.setCursor(0,0); // set text to LCD row 1
lcd.print("current temp. "); // some text to add meaning to the numbers
lcd.setCursor(0,1); // set text to LCD row 2
lcd.print((long)suhu); // writing temperature value
lcd.print(" deg.C");
delay(1000);
}
```

After Copy the codes, click the "Verify button" to save and compile the sketch. This will also check for any errors in the program.

![ide_1.3.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518446396/oeahbrgbnbwuwn9uzrxr.png)


If no errors is found , now you can click "Upload button" to start installing the program into the arduino uno board.

![ide_2.3.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1518446375/toon5zmnezwylw9rxegg.png)



<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@sikul/arduino-using-lm-35-a-termo-sensor-module">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍 , , , , ,