Would it be possible to add a Max voltage (12V) option by adding an additional wire from the negative terminal of the battery to the negative terminal of the motor with a switch in the wire? I want to have the option to turn it fully to max manually if needed (for quick ventilation)
Hey brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , arduino UNO & fan , all connected . As the temperature rises , fan goes fast or Start rotating and if temperature goes low , fan slows or stops down...
I tried connecting as shown in the video but LCD won't light up. Are there any other connections for LCD because there are connections for two wires (blue and red) which can be seen in pictures but not in diagram. Please answer.
Cool project 👍🏼 Had a question: Is it also possible to connect a 5 volt fan ? 🤔 Would the display also work with 5 volts? 🤔 What would I have to change in the wiring diagram ? 🤔
Super project :-) short question can I also connect 2 fans ? Is it true that I have to supply the Arduino with 12 volts is not too much for the "Uno" ?
@@HowtoElectronics Ok thanks, does it have then no effect on the performance (speed) of the fan if only 9 volts although it has 12 volts ? Can I also connect 2 fans ?
@@HowtoElectronics it says above (The current requirement is high) that the Arudino Uno board should go down to 9 volts so that the voltage is not too high ? Unfortunately I am not an electronic engineer so I have to ask ;-)
Hi can you use any volt for the transistor as long as its 10 micro f, and I keep getting this error when im uploading it on the arduino ,Sketch uses 4350 bytes (13%) of program storage space. Maximum is 32256 bytes. Global variables use 246 bytes (12%) of dynamic memory, leaving 1802 bytes for local variables. Maximum is 2048 byte, please help
Sir, pls help me. Fan starts and runs only for 1 Second and stops. I tried by changing program by min temp as 20 degree Celsius, no use geting same. Whats the problem pls help me.
Hello, I would be doing this project and just wondering if i need to download any additional libraries (LM35 & LCD) on Arduino in order for the codes to work?
Sir the only thing is working is the led, but unfortunately nothing else is working i checked the connections and tried another arduino but nothing worked can you please help me
#include LiquidCrystal lcd(2,3,4,5,6,7); int tempPin = A0; // the output pin of LM35 int fan = 11; // the pin where fan is int led = 8; // led pin int temp; int tempMin = 30; // the temperature to start the fan 0% int tempMax = 60; // the maximum temperature when fan is at 100% int fanSpeed; int fanLCD; void setup() { pinMode(fan, OUTPUT); pinMode(led, OUTPUT); pinMode(tempPin, INPUT); lcd.begin(16,2); Serial.begin(9600); } void loop() { temp = readTemp(); // get the temperature Serial.print( temp ); if(temp < tempMin) // if temp is lower than minimum temp { fanSpeed = 0; // fan is not spinning analogWrite(fan, fanSpeed); fanLCD=0; digitalWrite(fan, LOW); } if((temp >= tempMin) && (temp tempMax) // if temp is higher than tempMax { digitalWrite(led, HIGH); // turn on led } else // else turn of led { digitalWrite(led, LOW); } lcd.print("TEMP: "); lcd.print(temp); // display the temperature lcd.print("C "); lcd.setCursor(0,1); // move cursor to next line lcd.print("FANS: "); lcd.print(fanLCD); // display the fan speed lcd.print("%"); delay(200); lcd.clear(); } int readTemp() { // get the temperature and convert it to celsius temp = analogRead(tempPin); return temp * 0.48828125; }
Hi sir, i want to ask a question. Is the temp X 0.48828125 is a fixed formula? Is there explanation on how you get that formula? i googled it but no explanation about it. Hopefully you can respond my comment asap. Thanks
We are converting the analog output voltage given by LM35 into 10 bit resolution. Check the LM35 Datasheet for change in temp value according to analog voltage.
#include LiquidCrystal lcd(2,3,4,5,6,7); int tempPin = A0; // the output pin of LM35 int fan = 11; // the pin where fan is int led = 8; // led pin int temp; int tempMin = 30; // the temperature to start the fan 0% int tempMax = 60; // the maximum temperature when fan is at 100% int fanSpeed; int fanLCD;
void loop() { temp = readTemp(); // get the temperature Serial.print( temp ); if(temp < tempMin) // if temp is lower than minimum temp { fanSpeed = 0; // fan is not spinning analogWrite(fan, fanSpeed); fanLCD=0; digitalWrite(fan, LOW); } if((temp >= tempMin) && (temp tempMax) // if temp is higher than tempMax { digitalWrite(led, HIGH); // turn on led } else // else turn of led { digitalWrite(led, LOW); }
lcd.print("TEMP: "); lcd.print(temp); // display the temperature lcd.print("C "); lcd.setCursor(0,1); // move cursor to next line lcd.print("FANS: "); lcd.print(fanLCD); // display the fan speed lcd.print("%"); delay(200); lcd.clear(); }
int readTemp() { // get the temperature and convert it to celsius temp = analogRead(tempPin); return temp * 0.48828125; }
hello sir, i have a few questions. would be really Grateful if you could just answer it briefly : 1) if i use a dsb18b20 sensor instead of lm35 what specific changes need to be made for the current setup? 2)is it possible to use this setup to drive a peltier(TEC) instead of a fan to keep temp at a low level? 3)also will it be possible to run a peltier and a fan at the same time using this controller (using a single power source)? Thank you.
1. See the example code of DS18B20.And just add DS18B20 Code in the main code. 2. You can set up peltier with it, but peltier requires a lot of power. So be careful regarding the power source 3. Peltier and fan can be run at the same time not an issue..
Hey brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , arduino UNO & fan , all connected . As the temperature rises , fan goes fast or Start rotating and if temperature goes low , fan slows or stops down...
The output volts of this circuit is just around 5v, which means if you are running a 12v fan the speed is half its capacity even at 100% fan speed.
Hello, is it possible if you could show the LCD inputs? (e.g: VSS, VDD, D0, D1…etc). I've tried this, but the LCD wont light up.
U r a life saver, thanks alot for ur video, my final semester is giving me headache, ur video really helps
Can I use 10uf 63v capacitor for this?
It has been a very good work, I will try to allocate a place in my project.
Would it be possible to add a Max voltage (12V) option by adding an additional wire from the negative terminal of the battery to the negative terminal of the motor with a switch in the wire? I want to have the option to turn it fully to max manually if needed (for quick ventilation)
Looking great... thanks for Sharing
Hey brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , arduino UNO & fan , all connected .
As the temperature rises , fan goes fast or Start rotating and if temperature goes low , fan slows or stops down...
Thanks buddy....it was very helpful
What should i change in the program if i want start my dc fan in 20 degree celcius temparature? Or min temp = 20
Good day! Do you have a the same circuitry but using keypad shield v2? Thanks
I tried connecting as shown in the video but LCD won't light up. Are there any other connections for LCD because there are connections for two wires (blue and red) which can be seen in pictures but not in diagram. Please answer.
Cool project 👍🏼
Had a question: Is it also possible to connect a 5 volt fan ? 🤔
Would the display also work with 5 volts? 🤔
What would I have to change in the wiring diagram ? 🤔
Hello does this also working for a 120v - 220v Inline duct ventilator for houses?
does it matter, if i solder all small components, or put everything in breadboard
?
Fan ki speed control krne ke liye pwm method use kri hai?????
Super project :-) short question can I also connect 2 fans ? Is it true that I have to supply the Arduino with 12 volts is not too much for the "Uno" ?
Use 9v, 2A adapter.
The current requirement is high
@@HowtoElectronics Ok thanks, does it have then no effect on the performance (speed) of the fan if only 9 volts although it has 12 volts ?
Can I also connect 2 fans ?
Use 12V,2A Adapter it will have no affect on speed. Yes you can connect multiple fan as well.
@@HowtoElectronics it says above (The current requirement is high) that the Arudino Uno board should go down to 9 volts so that the voltage is not too high ? Unfortunately I am not an electronic engineer so I have to ask ;-)
can i use stand fan on this project?
would it work if i wanted to remove the lcd ?Thank you
Nice project.. Can i have your circuit diagram or your simulation diagram please
hello sir, how to make this whole simulation on screen, pls answer sir would be really grateful.
Hiii how to give heat to the ??
why multiplying fanspeed by 1.5 exactly? thanks in advance.
Hi can you use any volt for the transistor as long as its 10 micro f, and I keep getting this error when im uploading it on the arduino ,Sketch uses 4350 bytes (13%) of program storage space. Maximum is 32256 bytes.
Global variables use 246 bytes (12%) of dynamic memory, leaving 1802 bytes for local variables. Maximum is 2048 byte, please help
I need to use the DHT11 sensor for this please kindly help with the cording
Methmal Rosa what help do you need?
After simulating the circuit on proteus 8, the LCD doesn't display anything
Same
Can I change the temperature sensor with the other type of sensor.i will try it this one into my egg incubator.
You can use other sensor too.
Bhai me dht 11sensor use kru to chalega aur and capacitor 10Marco farad vala 9volt ka Laina hai ki?????
10uf more than 16V. Lower value capacitor will tear out due to excessive voltage.
@@HowtoElectronics please answer the my question, dht 11 sensor use kr sakte hai par????
@@HowtoElectronics our muje actual fan ki speed kaise control kru triac use kru sir??????
DHT11 is not a good choice for this application. Rather use DS18B20.
@@HowtoElectronics but why I can't use of dht 11 sensor ???
I will be glag if you can use this setup to use two lm35 to control two fans showing the two temperatures and the two fan speed on the screen.
If temperature min is 30. The fan speed couldn't go 0 instead of that it should run at 50% of speed. How can i do that?
Could you help me...
Nice project 👍
Thanks bro for supporting all the time
Hello ,did your wiring diagram not right, cause i have try to do it but its not working
sir make this project but it is not working ....plz help me sir
Can we use it for AC fan...
No
Hey,
Where should i add the wiring on the arduino for a rotation motor for my incubator??
Mahsa Barani in the main loop
worked for me thank you
Can I talk to you on this project?? I'm also working on it. And I've done the same as mentionedin the video. But mine isn't working....
@@mushfiqurrahman4548 mine not working, do you have a clearer circuit diagram?
Can I use more than one fan to control?
Is there a proteus diagram for this I need it pls
Please did he provide you with the proteus diagram
So nice video sir. Can i get 1 small project ??
Does controlling the fan with PWM cause motor noise?
What type of motor used
Sir, pls help me.
Fan starts and runs only for 1 Second and stops.
I tried by changing program by min temp as 20 degree Celsius, no use geting same.
Whats the problem pls help me.
sir can I used ac bulb drimmer in fan output through the optocupler
You might not use with this circuit. You need some additional control circuit like triac BT136 with opto coupler MOC3021.
How to control room fan extending this project. Plz make a video on that
Thanks for sharing such an Awesome project. Code is not available at the given link , please send me the link where I can get the code.
Thanks
Code is already in the description. Use computer to see code. Code is invisible in mobile view.
@@HowtoElectronics Ok, Thanks
Sir please tell me how to connect LCD to bread board and clear picture of circuit please sir
sandeep vadali which lcd display do you have?
Can we use another NPN transistor for this without using 2N2222 ?
Yes you can
Hi teacher. How can we add code, if we want to use four potantiometer(for PIDcontrol) kp, kı, kd and desired
Can I use 9v hw or ew battery instead of 12v.
If I use 9v, it effects on fan speed or not?
Pls reply
yes if fan is 12v
sir can we use lm393 or lm339 instead of lm35 for the same exp
You cant LM393 is a comparator IC not a sensor.
@@HowtoElectronicsok sir thank you sir
Hello, I would be doing this project and just wondering if i need to download any additional libraries (LM35 & LCD) on Arduino in order for the codes to work?
No any additional libraries
@@HowtoElectronics are you able to show the LCD input connections? (e.g VSS, D1, D2.. etc)
Supply vcc to pin 2, 15
Supply GND to 1,3,5,16
Connect Arduino pins to LCD pin 4,6,11,12,13,14
Did you did this project?
Which ardinuo version should I use for the program to work ?? Plzzz help me
Any version will work. Try with the latest one.
@@HowtoElectronics hi sir, can i change LM35 sensor to MQ5 gas sensor?? and use this coding. can it work sir????
Yes u can
@@HowtoElectronics thanks sir
Sir the only thing is working is the led, but unfortunately nothing else is working i checked the connections and tried another arduino but nothing worked can you please help me
The link that you've given in the description isn't opening. I need the code
#include LiquidCrystal lcd(2,3,4,5,6,7); int tempPin = A0; // the output pin of LM35 int fan = 11; // the pin where fan is int led = 8; // led pin int temp; int tempMin = 30; // the temperature to start the fan 0% int tempMax = 60; // the maximum temperature when fan is at 100% int fanSpeed; int fanLCD; void setup() { pinMode(fan, OUTPUT); pinMode(led, OUTPUT); pinMode(tempPin, INPUT); lcd.begin(16,2); Serial.begin(9600); } void loop() { temp = readTemp(); // get the temperature Serial.print( temp ); if(temp < tempMin) // if temp is lower than minimum temp { fanSpeed = 0; // fan is not spinning analogWrite(fan, fanSpeed); fanLCD=0; digitalWrite(fan, LOW); } if((temp >= tempMin) && (temp tempMax) // if temp is higher than tempMax { digitalWrite(led, HIGH); // turn on led } else // else turn of led { digitalWrite(led, LOW); } lcd.print("TEMP: "); lcd.print(temp); // display the temperature lcd.print("C "); lcd.setCursor(0,1); // move cursor to next line lcd.print("FANS: "); lcd.print(fanLCD); // display the fan speed lcd.print("%"); delay(200); lcd.clear(); } int readTemp() { // get the temperature and convert it to celsius temp = analogRead(tempPin); return temp * 0.48828125; }
Hi sir, i want to ask a question. Is the temp X 0.48828125 is a fixed formula? Is there explanation on how you get that formula? i googled it but no explanation about it. Hopefully you can respond my comment asap. Thanks
We are converting the analog output voltage given by LM35 into 10 bit resolution.
Check the LM35 Datasheet for change in temp value according to analog voltage.
@@HowtoElectronics ohh okayy thanks. It is very helpful
Is the code is working?
Sir how we have to connect the lcd pins 2,3,4,5etc...its confusing in breadboard pls answer
There is. Circuit diagram for that.
Check that diagram
Sir all connections are done . but the temperature is decrease when heating the temperature sensor what is the worng ??? Plz help me sir
sir, Can you share new circuit diagram
bro you giving your link in the decrisption is not working...plz check it and tell me coding of this project...
#include
LiquidCrystal lcd(2,3,4,5,6,7);
int tempPin = A0; // the output pin of LM35
int fan = 11; // the pin where fan is
int led = 8; // led pin
int temp;
int tempMin = 30; // the temperature to start the fan 0%
int tempMax = 60; // the maximum temperature when fan is at 100%
int fanSpeed;
int fanLCD;
void setup() {
pinMode(fan, OUTPUT);
pinMode(led, OUTPUT);
pinMode(tempPin, INPUT);
lcd.begin(16,2);
Serial.begin(9600);
}
void loop()
{
temp = readTemp(); // get the temperature
Serial.print( temp );
if(temp < tempMin) // if temp is lower than minimum temp
{
fanSpeed = 0; // fan is not spinning
analogWrite(fan, fanSpeed);
fanLCD=0;
digitalWrite(fan, LOW);
}
if((temp >= tempMin) && (temp tempMax) // if temp is higher than tempMax
{
digitalWrite(led, HIGH); // turn on led
}
else // else turn of led
{
digitalWrite(led, LOW);
}
lcd.print("TEMP: ");
lcd.print(temp); // display the temperature
lcd.print("C ");
lcd.setCursor(0,1); // move cursor to next line
lcd.print("FANS: ");
lcd.print(fanLCD); // display the fan speed
lcd.print("%");
delay(200);
lcd.clear();
}
int readTemp() { // get the temperature and convert it to celsius
temp = analogRead(tempPin);
return temp * 0.48828125;
}
This coding doesn't work, I found out. That there was something missing and I found it
@@joeldenzel8724 what is it
Hi sir can i use 9v battery? Please answer it thx
Yes u can
@@HowtoElectronics sir is it work if i connect the whole circuit with soldering? Last question thx
Yes it will
Thx a lot
Can you show the circuit diagram where capacitors diodes and resistors are connected to breadboard without the wires
Visit the link in description. Circuit diagram is already there
I only want a clear image of the hardware as to where we can connect the diodes on breadboard
My LCD display is not showing help me
Use 10k pot at pin 3 of LCD and adjust the contrast.
Plz sir, can u upload the tinkercad link too?
Can i use Arduino Nano for this project?
Suhaan Sheikh yes, very easily
great job brother
Bhai fan rotate nhi Ho rha hai!!!!
hello sir, i have a few questions. would be really Grateful if you could just answer it briefly :
1) if i use a dsb18b20 sensor instead of lm35 what specific changes need to be made for the current setup?
2)is it possible to use this setup to drive a peltier(TEC) instead of a fan to keep temp at a low level?
3)also will it be possible to run a peltier and a fan at the same time using this controller (using a single power source)?
Thank you.
1. See the example code of DS18B20.And just add DS18B20 Code in the main code.
2. You can set up peltier with it, but peltier requires a lot of power. So be careful regarding the power source
3. Peltier and fan can be run at the same time not an issue..
@@HowtoElectronics thanks for the valuable feedback.
@@HowtoElectronics i can use 1k2 resistor instead of 1k resistor
HELP........Bro i connected exactly the same, i've got LCD display /*TEMP*/ but fan is not giving output.
Same here
Same here.
Same here
Analogread was not declared error in program how can fix it
It's case sensitive. So it has to be "analogRead()"
Bro can i use dc motor instead of Fan...? Please answer
Yes u can
@@HowtoElectronics of same volts mean 12 v motor have to use?
9 to 18 volt motor.
Thanks Bro❤
Block diagram where
can i use 2222a diode
Yes
How To Electronics tq sir but i have one more question, for what the jumper wire red and blue on the your lcd
lcd is not displaying anything...how can i fix it
other circuit is good and working
Chcek lcd connection with Arduino
Sir please send me clear photo of circuit and please tell me how to connect LCD to bread board
The clear Circuit is given in link in description, visit the link and follow the circuit. And connect exactly the same as shown in photo.
How can i do the same with MAXX6675 thermocouple instead of the LM35 ? PLS HELP
Yes it will work the same way.
Can i use stand fan? Or any fan?
Why my lcd is not working
Great
Who can explain for me, what is 32 and 255. And why fanSpeed = 1.5 * fanSpeed
Nice project
Fan are not rotate????
Hii can I get report on this
Full petu bro
Can we operate this at 230V?
😍
lcd kush bi show nhi kr rhi or fan bi control nhi ho rha
can i want your coding
don't know why my lcd not working
Brother during compilation it showing warning liquid crystal i2-c how to fix it
Check the library. You might be using i2c library or simple 16 pin lcd library.
@@HowtoElectronics only liquid crystal hedderfile enough brother
can i upload code other computer
WARNING: Category 'Display, Hangul' in library LiquidCrystal_I2C_Hangul is not valid. Setting to 'Uncategorized it showing like this brother
Use other PC to upload code.
Sir. How will it be use to an ac fan?
Using opto coupler MOC3021 and triac IC like BT136.
@@HowtoElectronics How will i connect it sir? Please make a video for an ac fan using that circuit. That will be very useful.
Can someone give me the code please
www.how2electronics.com/temperature-based-fan-speed-control-monitoring-with-arduino/
@@HowtoElectronics thanks. But i couldn't find it in this link
Program code
Link in the description
Lcd is not showing any think
And Fan is working perfact
The LCD Connection diagram is updated.
akya apka wattsapp no mil skta hai kush pushna hai iske bare mai
Please tell brother
Hey brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , arduino UNO & fan , all connected .
As the temperature rises , fan goes fast or Start rotating and if temperature goes low , fan slows or stops down...