"Build a Temperature-Based Fan Controller with Arduino Uno | Cool Projects"

 

"Build a Temperature-Based Fan Controller with Arduino Uno | Cool Projects"


hi what's up guys welcome back to another brand new , so in this  I will be showing you how you can create temperature based fan speed controller so with the help of this controller you can automatically adjust the fan speed based on the temperature in your room so without wasting any time let's get started for making this project I have used Arduino Uno 16 into two LCD display i2c module breadboard l298 motor driver some jumper wires DC motor with fan temperature sensor and USB cable

moving towards the connection part firstly take your breadboard LCD display and i2c module now connect LCD display to the breadboard then connect i2c module to the breadboard take your Arduino and then connect jumper wires to the i2c module [Music] after that connect ground of i2c module to the ground pin of Arduino ,connect VCC of i2c module to the 5 volt pin of Arduino or vnpin of Arduino SDA pin will be connected to the pin A4 of Arduino and SCI build pin will be connected to A5 pin of Arduino

take breadboard and connect temperature sensor to it temperature sensor has 3 pin s s for signal middle pin is for 5 volt and last pin is foreground as you can see this aspin will be connected to the digital 7 of Arduino and last pin minus pin will be connected to the ground pin of Arduino and middle pin will be connected to the 5 volt pin off Arduino foreign to the digital pin 7 of Arduino and then connect VCC and ground pin to the breadboard line now take two jumper wires and connect those jumper wires to the negative pin

and positive pin of breadboard and then connect those pin to the VCC and ground pin of Arduino now take your motor driver and then connect jumper wires to the pin Ena which is enable pin in1 in2 of motor driver [Music] foreign foreign USB cable connect the positive wire of USB cable to the 12 volt pin of motor driver after that take one wire and then connect that wire to the negative pin negative wire of USB cable now connect this wire to the ground pin of motor driver, now after that connect one wire to the 5

volt pin of motor driver,now connect 5V pin of motor driver to the to the positive line of breadboard and connect ground wire to the ground line of breadboard now connect Ena pin off motor driver to the pin 9 of Arduino an in one to the pin 10 of Arduino and in tool to the pin 11 of Arduino if you are using i2c module then you have to check the address of that module so upload this code to your Arduino board I have given the link of this code in description you can download it from there

after uploading the code open serial monitor and then you will see the address of i2c module for mine it is 0x3f so copy this code and paste in Notepad now open the second program which I have given in the description after that change the address in the program [Music] now upload the code to your Arduino board now take your DC motor fan and then connect it to the motor driver after connecting the motor plug in your Rd node to your laptop and connect USB cable to the charger or you can connect it to the power bank

as you can see as the temperature increases motor speed also increases if you like the video then do like and subscribe my channel for more amazing videos like this thank you for watching

code link 1 : here 

Follow the connection instructions step-by-step:

Post a Comment

Previous Post Next Post