Ks0123 keyestudio EASY plug LM35 Temperature Sensor Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
==EASY plug LM35 Temperature Sensor module==
[[image:ks0123图.jpg|thumb|600px|right|Keyestudio EASY plug LM35 Temperature Sensor ]]
<br>[[File:ks0123-1.png|500px|frameless|thumb]]<br>


==Introduction==
==Introduction==
LM35 Linear Temperature Sensor is based on semiconductor LM35 temperature sensor. It can be used to detect ambient air temperature. This sensor offers a functional range among 0 degree Celsius to 100 degree Celsius. Sensitivity is 10mV per degree Celsius. The output voltage is proportional to the temperature.<br>
It is based on semiconductor LM35 temperature sensor. <br>
Note: this module needs to be used together with EASY plug control board.<br>
A temperature sensor is exactly what it sounds like - a sensor used to measure ambient temperature. <br>
It is effective in the range between 0 degree Celsius and 100 degree Celsius. Sensitivity is 10mV per degree Celsius. <br>
The output voltage is proportional to the temperature.<br>
This module should be used together with EASY plug control board.<br>


<span style=color:red> '''Special Note:''' <br>
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module. </span><br>


==Specification==
<br>
* Interface: Easy plug
* Sensitivity: 10mV per degree Celcius
* Functional range: 0 degree Celsius to 100 degree Celsius
* Size: 38*20mm
* Weight: 5g


==Features==
* Connector: Easy plug
* Power supply: 5V
* Sensitivity: 10mV per degree Celsius
* Function range: 0℃ to 100℃
<br>


==Connection Diagram ==
==Technical Details==
<br>[[File:ks0123-2.png|500px|frameless|thumb]]<br>
* Dimensions: 38mm*20mm*18mm
* Weight: 4.6g


<br>
==Connect It Up==
Connect the EASY Plug LM35 temperature sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
<br>[[File:ks0123.jpg|500px|frameless|thumb]]<br>


==Sample Code==
==Upload the Code==
<pre>
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
void setup()
<br>[[File:ks0397 12.1.png|500px|frameless|thumb]]<br>
{
 
  Serial.begin(9600);//Set Baud Rate to 9600 bps
<br>
}
==What You Should See==
void loop()
<br>[[File:ks0397 12-1.png|600px|frameless|thumb]]<br>
{  int val;
<br>
  int dat;
Done uploading the code, open the serial monitor and set the baud rate to 9600, you should see the analog temperature value. 
  val=analogRead(0);//Connect LM35 on Analog 0
<br>[[File:ks0397 12-2.png|600px|frameless|thumb]]<br>
  dat=(500 * val) /1024;;
<br>
  Serial.print("Temp:"); //Display the temperature on Serial monitor
<br>
  Serial.print(dat);
 
  Serial.println("C");
==Extension Experiment 1==
  delay(500);
<br>
}
<span style=color:brown> <big>'''Temperature Controlled Light'''</big> </span><br>
</pre>
 
Complete the above experiment, you can get the analog temp. value. Want to try some different experiments. <br>
For instance, when the temperature reaches the setting value, turn on an LED. Let’s get started right now!<br>
 
'''Hookup Guide'''<br>
Connect the EASY Plug LM35 sensor and LED module to control board using RJ11 cables.
<br>[[File:LM35 灯.jpg|500px|frameless|thumb]]<br>
<br>
 
'''Example Code'''<br>
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
<br>[[File:ks0397 12.2.png|600px|frameless|thumb]]<br>
 
<br>
'''What You Should See'''<br>
Done uploading the code, when the temperature detected by LM35 sensor is greater than 19℃, external LED will be turned on.
<br>[[File:ks0397 12-4.png|500px|frameless|thumb]]<br>
 
<br>
<span style="color: red">'''Little Knowledge:'''</span> <br>
As we all known, different regions might exists different climate. So if the setting temp. value is too low or too high, cannot turn on the LED, you can change the value in the code shown below. <br>
<br>[[File:ks0397 12-5.png|500px|frameless|thumb]]<br>
 
 
<br>
 
==Extension Experiment 2==
 
<span style=color:brown> <big>'''Adding 4-digit LED Display'''</big></span> <br>
 
Next, how about adding a 4-digit LED display to show the temperature value. Let’s get started right now!
 
<br>
'''Hookup Guide'''<br>
Connect the EASY Plug LM35 sensor and 4-digit LED module to control board using RJ11 cables.
<br>[[File:LM35 数码管.jpg|600px|frameless|thumb]]<br>
 
<br>
'''Example Code'''<br>
Below is an example code.<br>
<br>[[File:ks0397 12.3.png|600px|frameless|thumb]]<br>
 
<br>
'''What You Should See'''<br>
<br>[[File:ks0397 12-6.png|600px|frameless|thumb]]<br>
 
Upload success, you should be able to see the temperature value is showed on the 4-digit LED display.
<br>[[File:ks0397 12-7.png|600px|frameless|thumb]]<br>
 
<br>
 
<br>


==Resources ==
==Resources ==


'''PDF'''
https://fs.keyestudio.com/KS0123


https://drive.google.com/open?id=1QP4EWzSG3VAbFtpxmHhkULljfKR8jmuV
 
<br>


==Buy from ==
==Buy from ==
*[https://www.keyestudio.com/newkeyestudio-easy-plug-lm35-temperature-sensor-module-for-arduino-steam-p0062-p0062.html  '''Official Website''' ]
*[https://www.aliexpress.com/store/product/New-Keyestudio-EASY-plug-LM35-Temperature-Sensor-module-for-Arduino/1452162_32642617587.html?spm=2114.12010612.8148356.15.360d4267C9zQMH  Shop on aliexpress ]


http://www.keyestudio.com/keyestudio-easy-plug-lm35-temperature-sensor-module-for-arduino.html


[[category:Module]]
[[category:EASY Plug]]

Latest revision as of 16:26, 7 January 2021

Keyestudio EASY plug LM35 Temperature Sensor

Introduction

It is based on semiconductor LM35 temperature sensor.
A temperature sensor is exactly what it sounds like - a sensor used to measure ambient temperature.
It is effective in the range between 0 degree Celsius and 100 degree Celsius. Sensitivity is 10mV per degree Celsius.
The output voltage is proportional to the temperature.
This module should be used together with EASY plug control board.

Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.


Features

  • Connector: Easy plug
  • Power supply: 5V
  • Sensitivity: 10mV per degree Celsius
  • Function range: 0℃ to 100℃


Technical Details

  • Dimensions: 38mm*20mm*18mm
  • Weight: 4.6g


Connect It Up

Connect the EASY Plug LM35 temperature sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb

Upload the Code

Below is an example code. Open or drag below code to Mixly Blocks and upload.

thumb


What You Should See


thumb

Done uploading the code, open the serial monitor and set the baud rate to 9600, you should see the analog temperature value.
thumb


Extension Experiment 1


Temperature Controlled Light

Complete the above experiment, you can get the analog temp. value. Want to try some different experiments.
For instance, when the temperature reaches the setting value, turn on an LED. Let’s get started right now!

Hookup Guide
Connect the EASY Plug LM35 sensor and LED module to control board using RJ11 cables.
thumb

Example Code
Below is an example code. Open or drag below code to Mixly Blocks and upload.

thumb


What You Should See
Done uploading the code, when the temperature detected by LM35 sensor is greater than 19℃, external LED will be turned on.
thumb


Little Knowledge:
As we all known, different regions might exists different climate. So if the setting temp. value is too low or too high, cannot turn on the LED, you can change the value in the code shown below.

thumb



Extension Experiment 2

Adding 4-digit LED Display

Next, how about adding a 4-digit LED display to show the temperature value. Let’s get started right now!


Hookup Guide
Connect the EASY Plug LM35 sensor and 4-digit LED module to control board using RJ11 cables.
thumb


Example Code
Below is an example code.

thumb


What You Should See

thumb

Upload success, you should be able to see the temperature value is showed on the 4-digit LED display.
thumb



Resources

https://fs.keyestudio.com/KS0123



Buy from