Membuat Kipas Otomatis Berdasarkan Suhu Berbasis Arduino || Sensor Suhu DHT-11

Sri Depi Lusianti
1 Feb 202306:19

Summary

TLDRThis video showcases a project on an automatic fan control system using Arduino Uno and a DHT 11 temperature sensor. Presenters Poppy Musyarofah and Sridevi Lusianti demonstrate the setup process, including connections of an LCD, relay, and fan to the Arduino board. The system is programmed to turn the fan on when the temperature exceeds 30 degrees Celsius and off when it's below. The video guides through the hardware assembly and coding steps, concluding with a test of the system's functionality in response to temperature changes.

Takeaways

  • πŸ“ The video presents a project on an automatic fan control system based on Arduino Uno and a temperature sensor (DHT 11).
  • πŸ”§ The main components required for the project include an Arduino Uno, an LCD with I2C, a 1-channel relay, a DHT 11 temperature sensor, jumper cables, a 12V fan, a 9V adapter, and a USB cable for PC connection.
  • πŸ”Œ The setup involves connecting the ground of the LCD to the Arduino's ground, the 5V of the LCD to the Arduino's 5V, and the SDA and SCL pins of the LCD to the A4 and A5 pins on the Arduino Uno, respectively.
  • πŸ”© The DHT 11 temperature sensor is connected to the Arduino Uno with its ground to the Arduino's ground and its VCC to the Arduino's 5V.
  • πŸ”„ The 1-channel relay is connected to pin 5 on the Arduino Uno, with its ground to the Arduino's ground and VCC to the Arduino's 5V.
  • 🌑️ The fan and the 9V adapter are connected such that the black (negative) wire of the fan is connected to the black (negative) wire of the adapter, and the red (positive) wire of the fan is connected to the COM terminal of the relay.
  • πŸ’» The coding process involves importing the necessary libraries and setting up pins for the fan, temperature sensor, and power supply.
  • πŸ“ˆ The fan is programmed to turn on when the temperature exceeds 30 degrees Celsius and to turn off when it is below 30 degrees Celsius.
  • πŸ–₯️ The LCD display is used to show the temperature and indicate whether the fan is on or off, with an initial display of 29 degrees Celsius.
  • πŸ”§ The demonstration includes heating the DHT 11 sensor to activate the fan and then cooling it to see the fan turn off as the temperature drops below the threshold.
  • πŸ”¬ The project serves as a practical example of using Arduino for home automation and temperature control.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is about showcasing the results of a project involving an automatic fan control system based on Arduino Uno and a temperature sensor (DHT 11).

  • Who are the presenters of the video?

    -The presenters of the video are Poppy musyarofah with NIM 4320706190143 and Sridevi lusianti with NIM 432076190170.

  • What is the purpose of using an Arduino Uno in this project?

    -The Arduino Uno is used as a microcontroller in the project to control the fan based on the temperature readings from the DHT 11 sensor.

  • What is the role of the LCD in the project setup?

    -The LCD is used to display the temperature and indicate whether the fan is on or off automatically based on the temperature readings.

  • What is the function of the 1-channel relay in the project?

    -The 1-channel relay is used to control the power supply to the fan, turning it on or off based on the temperature conditions set in the code.

  • What type of sensor is used to measure temperature in this project?

    -A DHT 11 sensor is used to measure the temperature in the project.

  • What is the significance of the jumper cables in the project setup?

    -Jumper cables are used to connect various components such as the LCD, sensor, relay, and fan to the Arduino Uno.

  • What is the voltage of the fan used in the project?

    -A 12V fan is used in the project.

  • How is the fan connected to the power source in the project?

    -The fan is connected to a 9V adapter which is then connected to the COM port of the relay to control the power supply.

  • What is the temperature threshold set in the code for the fan to turn on?

    -The fan turns on when the temperature goes above 30 degrees Celsius.

  • How can the fan be turned off according to the project setup?

    -The fan can be turned off by cooling the DHT 11 sensor below 30 degrees Celsius, which will trigger the relay to disconnect the power to the fan.

Outlines

00:00

πŸ› οΈ Introduction to the Automatic Fan Control System Project

The video script introduces a project on an automatic fan control system using Arduino Uno and a temperature sensor, the DHT 11. The presenters, Poppy Musyarofah and Sridevi Lusianti, provide their student identification numbers and begin by listing the required materials, including an Arduino Uno, an LCD display with I2C, a 1-channel relay, the DHT 11 temperature sensor, jumper cables, a 12V fan, a 9V adapter, and a USB cable for PC connection. They then proceed to demonstrate the wiring process for the LCD, temperature sensor, relay, fan, and adapter, ensuring secure connections to the Arduino Uno. The script also mentions the coding process, starting with importing the necessary libraries and setting up the pins for the fan, power, and temperature sensor on the Arduino Uno.

05:01

πŸ”§ Demonstration of the Automatic Fan Control System

In this paragraph, the script describes the functionality of the automatic fan control system. The fan will turn on when the temperature exceeds 30 degrees Celsius and turn off when it falls below this threshold. The script details the setup process, including connecting the USB to the PC to power the LCD, which displays the current temperature and indicates that the fan is set to operate automatically. The video then demonstrates the system's response to temperature changes by heating the DHT 11 sensor to activate the fan and cooling it to observe the fan turning off. The script concludes with an explanation of how to test the system's functionality by using a cold object to lower the temperature and verify if the fan turns off accordingly.

Mindmap

Keywords

πŸ’‘Arduino Uno

Arduino Uno is an open-source microcontroller board based on the ATmega328P microcontroller. It is widely used for building electronics projects due to its versatility and ease of use. In the context of the video, it serves as the central processing unit for the automatic fan control system, handling inputs from the temperature sensor and controlling the fan and LCD display.

πŸ’‘LCD with I2C

LCD with I2C refers to a Liquid Crystal Display module that communicates with the microcontroller using the Inter-Integrated Circuit (I2C) protocol. This protocol allows for multiple devices to be connected to the same two wires, simplifying the wiring and interfacing. In the video, it is used to display the temperature and the status of the fan.

πŸ’‘Relay 1 channel

A 1 channel relay is an electrical switch that can be controlled by a low voltage signal, typically from a microcontroller like the Arduino Uno. It is used to control high voltage or high current devices, such as the fan in this project. The relay is connected to the Arduino and is responsible for turning the fan on or off based on the temperature readings.

πŸ’‘DHT11

DHT11 is a type of temperature and humidity sensor module that can provide both temperature and humidity readings. In the video, the DHT11 is used to measure the ambient temperature, which is then used by the Arduino to decide whether to turn the fan on or off.

πŸ’‘Jumper cables

Jumper cables are used to connect various components in an electronic circuit. They come in male-to-male, female-to-female, and male-to-female varieties. In the script, jumper cables are essential for connecting the LCD, DHT11 sensor, relay, and fan to the Arduino Uno.

πŸ’‘Kipas Angin 12V

Kipas Angin 12V refers to a 12-volt electric fan. In the context of the video, it is the device that is controlled by the relay to turn on or off based on the temperature readings from the DHT11 sensor. The fan is part of the automatic temperature control system.

πŸ’‘Adaptor 9V

An adaptor 9V is a power supply device that converts AC voltage to a stable DC voltage of 9 volts. It is used to power the Arduino Uno and other components of the system. In the video, it is mentioned as part of the setup for the automatic fan control system.

πŸ’‘Cable USB

A USB cable is used to connect the Arduino Uno to a PC for programming and uploading the code that controls the fan and LCD display. It is a standard interface for data transfer and power supply in many electronic devices.

πŸ’‘Coding

Coding in this context refers to writing the software program that runs on the Arduino Uno, which controls the fan and LCD based on the temperature readings. The script mentions importing libraries and setting up the pins for the temperature sensor, fan, and LCD, which are essential steps in the coding process.

πŸ’‘Automatic Fan Control

Automatic Fan Control is the main theme of the video, where the system is designed to turn the fan on when the temperature exceeds a certain threshold (e.g., 30 degrees) and turn it off when the temperature is below this threshold. The system uses a combination of the Arduino Uno, DHT11 sensor, relay, and fan to achieve this functionality.

πŸ’‘Temperature Threshold

A temperature threshold is a specific temperature value that triggers a response from the system. In the video, the threshold is set at 30 degrees Celsius. If the temperature measured by the DHT11 sensor is above this threshold, the fan is activated to cool down the environment.

Highlights

Introduction of a project on an automatic fan control system based on Arduino Uno and DHT11 temperature sensor.

Presenters are Poppy Musyarofah with NIM 4320706190143 and Sridevi Lusianti with NIM 432076190170.

Arduino Uno is used as the microcontroller in the project.

An LCD with i2c is included in the project setup.

A 1-channel relay is used for the fan control.

DHT11 temperature sensor is employed for temperature measurement.

Jumper cables are necessary for connecting the components.

A 12V fan and a 9V adapter are part of the hardware setup.

A USB cable is used to connect the system to a PC.

Ground connections are made between the LCD and Arduino Uno.

5V connection is established from the Arduino Uno to the LCD.

SDA and SCL pins are connected between the LCD and Arduino Uno.

Ground and VCC connections are made for the DHT11 temperature sensor.

Relay connections are established for the fan control.

Fan and adapter connections are detailed for power supply.

Coding involves importing necessary libraries for the project.

Fan control logic is based on temperature readings from the DHT11 sensor.

Fan turns on when temperature exceeds 30 degrees Celsius.

Fan turns off when temperature is below 30 degrees Celsius.

Demonstration of the system's functionality with temperature adjustments.

Transcripts

play00:00

Assalamualaikum warahmatullahi

play00:02

wabarakatuh pada video kali ini kami

play00:04

akan memaparkan hasil Project mengenai

play00:06

sistem kendali kipas otomatis berbasis

play00:09

Arduino Uno dan sensor suhu di HT 11

play00:12

saya Poppy musyarofah dengan NIM

play00:15

4320706190143

play00:18

[Musik]

play00:22

dan rekan saya bernama Sridevi lusianti

play00:25

dengan NIM 432076190170

play00:31

Apa saja alat yang kita butuhkan yang

play00:33

pertama Arduino Uno sebagai alat

play00:36

mikrokontroler

play00:37

[Musik]

play00:42

yang kedua

play00:44

LCD dilengkapi dengan i2c

play00:48

[Musik]

play00:52

ketiga relay 1 channel

play00:55

[Musik]

play01:03

keempat sensor suhu dht 11

play01:05

[Musik]

play01:10

kabel jumper

play01:13

[Musik]

play01:16

jangan lupa kabel jumper yang Mel to

play01:21

female

play01:22

[Musik]

play01:28

keenam kipas angin 12v dan adaptor 9v

play01:36

yang terakhir kabel USB untuk

play01:38

menghubungkan ke PC

play01:41

Mari kita coba merangkai alat yang

play01:43

pertama ground di LCD

play01:48

[Musik]

play01:50

kita tancapkan ke ground pada Arduino

play01:54

Uno PCC di LCD kita tancapkan ke 5 volt

play01:58

pada Arduino Uno

play02:01

[Musik]

play02:04

SDA

play02:06

ke A4

play02:08

pada Arduino Uno

play02:11

scl di LCD kita tancapkan ke A5 di

play02:14

Arduino Uno

play02:16

[Musik]

play02:23

lalu yang kedua sensor suhu di hati 11

play02:26

ground di suhu kita tancapkan ke ground

play02:29

pada Arduino Uno

play02:32

dht di suhu kita tancapkan kedua pada

play02:35

Arduino Uno

play02:37

PCC di suhu kita tancapkan ketiga pada

play02:40

Arduino Uno

play02:44

yang ketiga relay 1 channel

play02:52

yang di relay kita tancapkan kelima pada

play02:56

Arduino Uno

play02:57

[Musik]

play03:02

ground di relay kita tancapkan ke ground

play03:05

pada Arduino Uno

play03:07

PCC di relay kita tancapkan ke 5 volt

play03:10

pada Arduino Uno

play03:12

[Musik]

play03:20

selanjutnya yang keempat kipas angin dan

play03:23

adaptor yang sudah dibelah menjadi dua

play03:30

kabel hitam kipas ke kabel hitam adaptor

play03:34

atau negatif ke negatif Kita lilitkan

play03:40

[Musik]

play03:42

kabel merah kipas atau yang positif ke

play03:46

ncd kita tancapkan

play03:50

[Musik]

play03:58

jangan lupa di obeng agar tidak mudah

play04:01

lepas

play04:02

[Musik]

play04:12

kabel merah adaptor atau yang positif

play04:15

kita tancapkan ke com di relay

play04:18

[Musik]

play04:27

jangan lupa di obeng juga

play04:32

kita lanjutkan ke codingan langkah

play04:35

pertama import dulu librarynya Langkah

play04:38

kedua angka 2 merupakan PIN bat pada

play04:40

Arduino Uno lalu in kipas sama dengan 4

play04:44

merupakan inputan dari relay in power =

play04:48

3 merupakan PIN PCC pada sensor Arduino

play04:52

Uno

play04:54

[Musik]

play05:01

jika suhu di atas 30 derajat maka kipas

play05:04

akan menyala

play05:05

[Musik]

play05:09

tetapi jika kipas di bawah 30Β° maka kita

play05:13

seakan mati

play05:15

lalu kita tancapkan saja USB ke PC

play05:22

maka LCD akan menyala dengan indikasi

play05:25

kipas otomatis yaitu suhu 29 derajat

play05:31

kita langsung coba Panaskan sensor suhu

play05:34

dhc 11

play05:36

maka kipas akan menyala dengan suhu di

play05:39

atas 30 derajat

play05:48

untuk mematikannya kita coba tancapkan

play05:50

dengan benda yang bersuhu dingin

play05:53

kita lihat apakah suhu akan menurun

play05:56

[Musik]

play06:00

jika suhu di bawah 30 derajat

play06:03

maka kipas akan mati

play06:05

[Musik]

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
ArduinoAutomationDIYFan ControlTemperature SensorDHT11I2C LCDRelay ModuleCoding ProjectElectronicsInnovation