This system includes an Arduino board and a temperature sensor. A temperature sensor will sense the temperature and automatically switch the fan on or off.

How to Automate a temperature-dependent fan using Arduino?

As we now know what we are going to do, let’s collect some more information to start working on our project.

Step 1: Gathering the Components

The best approach to start any project is to make a list of all the components at the start and a good plan to work on it. The following are the components that we are going to use in this project.

Step 2: Studying the Components

Now, as we know what components we are going to use, let us move one step ahead and study the working of these components briefly. Arduino nano is a microcontroller board that is used to control or carry out different tasks in a circuit. A, C Code is needed to tell the microcontroller board how and what operations to perform. Arduino Nano has exactly the same functionality as Arduino Uno but in quite a small size. the microcontroller on the Arduino Nano board is ATmega328p. We can also use Arduino UNO for implementing the project. DHT11 is a temperature and humidity sensor. Its temperature range is 0 to 50-degree Celsius. It is a low cost and an efficient sensor that gives high stability. To measure the temperature it has a built-in thermistor. It also measures the humidity but in this project, we don’t need to measure humidity. A relay module is a switching device that takes input from Arduino and switches accordingly. It operates in two modes, Normally Open (NO) and Normally Closed (NC).

Step 3: Assembling the circuit

Now let us move ahead and assemble the circuit. Connect the Vcc and ground pin of the DHT11 sensor to the 5V and ground of the Arduino nano. Connect the output pin of the DHT11 sensor to the Pin2 and the IN pin of the relay module to the Pin3 of the Arduino. Power up the relay module through Arduino and connect the positive wire of the fan in the NO pin of the relay module. I am using breadboard here but you can also use Veroboard. If you use a Veroboard make sure that you solder the female headers on the board to insert the Arduino nano board and the DHT sensor in it. And don’t forget to carry out a continuity test to check if any connection is short. There is one thing very important that must be kept in mind that the DHT sensor should be close to the device that is to be cooled by the fan.

Step 4: Getting started with Arduino

If you are not already familiar with the Arduino IDE, don’t worry, you are explained how to use Arduino IDE below. You can download the code from Here

Step 5: Code

The code for the DHT11 sensor is really simple but here is some explanation of the code. 2. void setup() is a function that is used to set the pins as INPUT or OUTPUT. It also sets the baud rate of the Arduino. Baud rate is the communication speed of the microcontroller board. 3. void loop() is a function that runs again and again in a cycle. In this function, we are reading the data from the output pin of DHT11 and switching the relay on or off at a certain temperature level.

Similar Applications

We are using this temperature sensor for the switching of a fan for electrical devices. It can also be used for other purposes, some of its applications are as follows. Now as you have learned how to automate the fan to cool down your electrical devices, you can now start working on this project and you can also use this DHT sensor in other applications.

How To Make An Automated Fan To Prevent Electronic Devices From Heating  - 24How To Make An Automated Fan To Prevent Electronic Devices From Heating  - 82How To Make An Automated Fan To Prevent Electronic Devices From Heating  - 60How To Make An Automated Fan To Prevent Electronic Devices From Heating  - 71How To Make An Automated Fan To Prevent Electronic Devices From Heating  - 86How To Make An Automated Fan To Prevent Electronic Devices From Heating  - 27