5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



EASY PLUG Super Starter Kit For Arduino Project 12: Analog Temperature

Posted by Fiona Su on

Overview
In this circuit, you will learn how to integrate the temperature sensor with your EASY Plug control board, and display the analog temperature on the serial monitor.
Component Required
  • EASY plug control board*1
  • EASY plug LM35 Temperature Sensor *1
  • EASY plug LED module *1
  • EASY plug 4-digit LED Display Module*1
  • RJ11 cable*1
  • USB cable*1
Component Introduction

Keyestudio EASY plug LM35 Temperature Sensor
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.
  • Power supply: 5V
  • Sensitivity: 10mV per degree Celsius
  • Function range: 0℃ to 100℃

Connect It Up
Connect the EASY Plug LM35 temperature to control board using an RJ11 cable.

thumb

Upload the Code
Below is an example code.

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.

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

All Tutorial

 Buy here>>EASY PLUG Super Starter Kit For Arduino STEM EDU

0 comments

Leave a comment

Please note, comments must be approved before they are published