Temperature based Fan Speed Control Using Arduino and LM35 Sensor
HTML-код
- Опубликовано: 11 дек 2019
- Temperature based Fan Speed Control Using Arduino and LM35 Sensor
Code, Schematics and Proteus Simulation:- github.com/embeddedlab786/Tem...
Components Details () {
Solderless Breadboard:- marobotic.com/product/mb102-s...
Arduino Uno:- marobotic.com/product/arduino...
16×2 LCD Display:- marobotic.com/product/16x2-lc...
LM35 Temperature sensor:- marobotic.com/product/lm35-te...
IRFz44N Mosfet:- marobotic.com/product/irfz44n...
12v DC Fan:- marobotic.com/product/16011/
12v Buzzer:- marobotic.com/product/buzzer-...
100R Resistor:- marobotic.com/product/5-pc-10...
4.7k Resistor:- marobotic.com/product/4-7k-re...
1k Resistor:- marobotic.com/product/1k-resi...
10k Resistor:- marobotic.com/product/10k-res...
10uf capacitor:- marobotic.com/product/10uf-ca...
Male to Male Jumper Wires:- marobotic.com/product/male-to...
Battery 9v:- marobotic.com/product/9v-batt...
Battery clip:-marobotic.com/product/9v-batt...
}
We regularly uploads exciting videos like this
Suscribe us For More Videos
Muhammad Ansar
+923378655465
Visit My Website:- marobotic.com/projects/ - Хобби
Thanks very clear even I don't understand your language.
welcome
gracias por compartir tus conocimiento y lo que es mas los ejemplos de aplicacion con los cuales se aprende. mucho mas. gracias.
Assalamualaikum btother, even though i can't understand your languages but your content is helping me 🙏
ok bro
Thanks bro that's really clear to follow, but is it possible to add another second fan,, say a heat fan which will be triggered by the fall in temperatures.. And if it is possible which additional components will i need to buy besides the second fan
thank you very much, it helps me a lot!
You're welcome!
thank you so much, youre my savior
welcome
Awesome
Hi, Followed your circuit exactly except that I had an error in which the fan will not turn. There is a high pitch frequency coming from the fan but the fan is not moving. Able to advise how I can fix this. Suspect the PWM is needed, how was it setup on your end?
You will reach your subscribers bro
In Shaa Allah
👍👍👍
Bro..
1. Can LCD 16x2 display shows 4 parameters ? (temp , fand speed , fluid level ,vehicle speed )
2. Can we add fluid level sensor , speed detector to your project and modify it ?
3. how the code need to be change if we add above ?
Thank you
welcome
I am having a problem where the fan will not run unless it is at 100% (max temp) any ideas?
hi pro .. if have set = 20 (any number, besides temp mIN & tempmax)
how can we implement them?
5.42 what is that white part
hey listen when im trying to copy paste the code of the arduino itn not getting compile only the last two line of compli is occuring not the exact file location what to do now.can you help me through get out from this.please tell me fast i need yoiur help urgently
Why diode is used in reverse biased in connection with fan?
This is cool but has anyone found the same setup but using a servo that will move in degree to move a pot high power fan speed controller??
Now i'm trying to use freeRTOS library for the same exact project and i'm still facing problems.. do u have any tutorial for this 😥
Can i use dht11 module instead of lm35??
Sir aap ac fan ki speed ko ir remote se kese krte he video banao
ok
How convert that fan speed percentage into 1 2 3 4 5 speed
Bro I connect exactly like you in bread board but it can't work any remedy
ye arduino uno konsa usage karna he ?
bhai I want to turn it on using pir and control speed using lm35
when i compile "
Sketch uses 3572 bytes (11%) of program storage space. Maximum is 32256 bytes.
Global variables use 119 bytes (5%) of dynamic memory, leaving 1929 bytes for local variables. Maximum is 2048 bytes.
"
I am getting this message plz help!
Have you done something related to this issue?
Hi 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...
Let me check
Can the soldering gun touch the LM35 sensor?? or just need to above it?
yes
Can I know what is the function of the IRFZ44N Mosfet in this circuit?
MOSFET used for the fan speed control
can i ask st. I can't add code in proteus. It doesn't found link to add code in
Check for code Description
Bro can we use ds18b20 sensor instead of lm35
Pls reply me
Yes, but will have to code change
How we can use different temp different temp bro
I mean. If it is 30c the rpm is 600
What we will change
change this value
int tempMin = 30; // the temperature to start the fan
int tempMax = 50; // the maximum temperature when fan is at 100%
Which free
software can be used instead of ISIS Professional Proteus , cause that one is paid.
Sir agr i2c module display me use kare to code yahi rhe ga
code ma change krny pare gi
Hello, i've done create the circuit but after i uploaded the code and try it, it immediately start the fan to max speed and not display anything on lcd. Can you help me with that?
please Check your hardware
what hardware do u think is problem? is it lcd?
hello, thank you for the project. I made the same circuit and applied all the steps, but the lm35 does not react to the temperature. When I try to heat it with my finger, the temperature drops. What do you think could be the reason?
There are three different variants of LM35 available in a transistor package. LM35A, LM35C, and LM35D.
@@MuhammadAnsar hello which one did you use?
What is the purpose of capacitor to lm35 and resistors to buzzer and mosfet?
Capacitor used for the fluctuation control and MOSFET use the fan speed control
sir mera upload hoone ke baad bhi lcd screen pe output nhi show kar raha hai
what should i do?
please let me know!!!!!!!
please check your hardware
Can I use led in place of buzzer?
yes use this
Hello, can i all the name of your materials? . I need to buy them for my project but i dont know their name exactly. Thank you
Check the video description
i still can't find the arduino code in your link can you send it here?
github.com/embeddedlab786/Temperature-based-Fan-Speed-Control-.git
there is no code in that link!!!
I follow steps by steps inserting the components, but the LCD is not working and the fan also cannot run . Can u give me a help?
Let me know if I can help
@@MuhammadAnsar when I upload the code to it, the motor and the lcd can't run properly
Can I replace arduino by pic 16f887??
yes but change the code
Can I use 12V battery instead of 9V?
yes use this
hi how to modfy the code for i2c board thanks
ok bro
I want full circuit diagram and code pls hlp
Can I made this by connect exactly like you pls help
Why capacitor is used?
for fluctuation control
Piyara Bro Ap Sa 2 Question Karna Please Us Ka Answer Chata Hu Palha Sawal ye ha ka ap ko youtube sa paisa monthly milta han ya kafi time ka bad
bro mari google Adsense ki hi ni mili
@@MuhammadAnsar matlab
Jo Bi Ho Ap Best Ho Love You Allah Ap Ko Taraqiyan Da Ameen Agar ap ko help chahiya ho to mujha batana ap mera channel ko dakh kar batana ka ma content sahi dal raha hu
@@djproduction1029 thank you
Sum Ameeen
or Bro Allah ap ko bhi kamyab kr
@@MuhammadAnsar ameen
Bhai buzzer kam Nahi Kar Raha hai simulation ma
bro simulation ma buzzer kam ni krta bs pin high/low hoti hy
Hello can you please guide me in this project..??
yes
Apko kaise contact kr skta hu mai??. 🙏
Bhai ap me study kis chez ki hui hai
kuch khas ni bs matric ki hoi hy
@@MuhammadAnsar sai
THE THINGS IS THE CODE CANT BE DOWNLOADED... HOW IS THIS SUPPOSE TO HAPPEN??
github website link in the video description
@@MuhammadAnsar Down in Rar and open using appropriate file opener for the ino
Ap ne engineering ki hai?
ni bro experience hy
@@MuhammadAnsar ok
Can we use with alarm
yes bro
y
Iska coding kaise milega bhai? ...
check the video description
What changes should we do if use a LM335 instead of a LM35 sensor in the circuit
the formula in the code will have to be changed
Hi
yes
i need code
Check the description
Hi can you please copy the source code here in the comments please this project sounds really interesting. Thanks..
#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 buzzer = 13; // buzzer pin
int temp;
int tempMin = 30; // the temperature to start the fan
int tempMax = 50; // the maximum temperature when fan is at 100%
int fanSpeed;
int fanLCD;
void setup() {
pinMode(fan, OUTPUT);
pinMode(buzzer, OUTPUT);
pinMode(tempPin, INPUT);
lcd.begin(16,2);
lcd.setCursor(0,0);
lcd.print(" WELCOME To My ");
lcd.setCursor(0,1);
lcd.print("Channel RUclips");
delay(2000);
lcd.clear();
}
void loop() {
temp = readTemp(); // get the temperature
if((temp >= tempMin) && (temp tempMax) { // if temp is higher than tempMax
digitalWrite(fan, HIGH);
digitalWrite(buzzer, HIGH); // turn on buzzer
} else { // else turn of bubber
digitalWrite(buzzer, LOW);
}
lcd.setCursor(0,0);
lcd.print("Temperature:");
lcd.print(temp); // display the temperature
lcd.write(223);
lcd.print("C ");
lcd.setCursor(0,1); // move cursor to next line
lcd.print("Fan Speed:");
lcd.print(fanLCD); // display the fan speed
lcd.print("% ");
delay(200);
}
int readTemp() { // get the temperature and convert it to celsius
temp = analogRead(tempPin);
return temp * 0.48828125;
}
@@MuhammadAnsar is this the full source code, I haven't try it out yet because it my Arduino Uno havent arrived yet
sorry for my poor english
@@ewakowalska3261 Yes it's complete code
i am also like you in english
@@MuhammadAnsar thank you very much i will let you know whether it works thanks again
@@ewakowalska3261 Welcome
Hi sir, how can we calculate the PWM of this circuit??
Map value through
pls provide source code
Check the video description
Which software are u using to compile code?
Arduino IDE
Thank youuu
And for simulation???
@@varunr996 Proteus
@@MuhammadAnsar thank you so much bhaii
How much does it costs
almost 2k
@@MuhammadAnsar bro ill send you mail please check it
bhai costing kitni hogi
almost 3k
@@MuhammadAnsar arduino uno konsa usage karna he or kitne ka ayega
Fan starts only at 100% 50 degree celcious. Pls help
Use the only arduino pwm pins for fan
Whats Arduino PWM pin. Can u Please help more. I have connected as per diagram. But now LCD also not working only backlight and FAN not working at all. No display on LCD only backlight.
Changed Arduino, FET LM35 and LCD also. No display. Programmed Arduino also again. Using 9V /800 mA Adapter
@@saleelmali950 Were you able to fix this issue? I have the same problem!
@@MuhammadAnsar Thank you so much sir for the wonderful and helpful video.sir fan starts at 0%,499 degree.could you please help.we need fast reply sir please.we are doing as mini project.so please help sir.if possible please provide your mail.i will share my error to your mail.
Very well done!
But my buzzer in Proteus is not working even after the temp is above 50 C.
Rest all is fine.
Pls help
brother can you tell me the code for my project . ds18b20 temperature sensor , LCD 16×2 , i2c , 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 will try
@@MuhammadAnsar thank you , for replying but I forgot to mention that lcd is connected to i2c .
I checked your video but you used Somthing else then ds18b20 , I'm an automobile engineering student so I don't know coding so I guess you can help. 👍🏻
@@MuhammadAnsar sir any updates ???