Temperature based Fan Speed Control Using Arduino and LM35 Sensor

Sdílet
Vložit
  • čas přidán 26. 08. 2024
  • Temperature based Fan Speed Control Using Arduino and LM35 Sensor
    Code, Schematics and Proteus Simulation:- github.com/emb...
    Components Details () {
    Solderless Breadboard:- marobotic.com/...
    Arduino Uno:- marobotic.com/...
    16×2 LCD Display:- marobotic.com/...
    LM35 Temperature sensor:- marobotic.com/...
    IRFz44N Mosfet:- marobotic.com/...
    12v DC Fan:- marobotic.com/...
    12v Buzzer:- marobotic.com/...
    100R Resistor:- marobotic.com/...
    4.7k Resistor:- marobotic.com/...
    1k Resistor:- marobotic.com/...
    10k Resistor:- marobotic.com/...
    10uf capacitor:- marobotic.com/...
    Male to Male Jumper Wires:- marobotic.com/...
    Battery 9v:- marobotic.com/...
    Battery clip:-marobotic.com/...
    }
    We regularly uploads exciting videos like this
    Suscribe us For More Videos
    Muhammad Ansar
    +923378655465
    Visit My Website:- marobotic.com/...

Komentáře • 154

  • @adadmohamedcherif192
    @adadmohamedcherif192 Před 4 lety +6

    Thanks very clear even I don't understand your language.

  • @gauravdabholkarstudent2846

    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

  • @sGod666
    @sGod666 Před 6 měsíci +1

    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?

  • @rahulkumar-xu9rv
    @rahulkumar-xu9rv Před 5 měsíci +1

    5.42 what is that white part

  • @shinypotato7204
    @shinypotato7204 Před 4 lety +1

    Assalamualaikum btother, even though i can't understand your languages but your content is helping me 🙏

  • @jaimevasconez8219
    @jaimevasconez8219 Před 2 lety

    gracias por compartir tus conocimiento y lo que es mas los ejemplos de aplicacion con los cuales se aprende. mucho mas. gracias.

  • @trizzlingtech02
    @trizzlingtech02 Před 10 dny

    bro pls help, im having ds18b20 temp sensor, how can i do the same?

  • @neshansamarasena7741
    @neshansamarasena7741 Před 2 lety

    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 ?

  • @DomanaxTV
    @DomanaxTV Před 3 lety +1

    I am having a problem where the fan will not run unless it is at 100% (max temp) any ideas?

  • @dishadevadiga8502
    @dishadevadiga8502 Před 2 lety +1

    Why diode is used in reverse biased in connection with fan?

  • @imanetaa1340
    @imanetaa1340 Před 3 lety +1

    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 😥

  • @Chems7308
    @Chems7308 Před 2 měsíci

    Can i use dht11 module instead of lm35??

  • @VISHNU_61_VIKI
    @VISHNU_61_VIKI Před 2 lety +1

    You will reach your subscribers bro

  • @ronaldjamora899
    @ronaldjamora899 Před 3 lety +2

    thank you so much, youre my savior

  • @_Nadeemshaikh
    @_Nadeemshaikh Před 3 lety

    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

  • @marcadhy5344
    @marcadhy5344 Před 2 lety +1

    thank you very much, it helps me a lot!

  • @sharjeelahmed823
    @sharjeelahmed823 Před 2 lety +1

    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!

  • @jyaniharshil5585
    @jyaniharshil5585 Před 2 lety +1

    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...

  • @janukanipun9179
    @janukanipun9179 Před 3 lety +2

    How we can use different temp different temp bro
    I mean. If it is 30c the rpm is 600
    What we will change

    • @MuhammadAnsar
      @MuhammadAnsar  Před 3 lety

      change this value
      int tempMin = 30; // the temperature to start the fan
      int tempMax = 50; // the maximum temperature when fan is at 100%

  • @user-sc6wk2fi8r
    @user-sc6wk2fi8r Před 2 lety +1

    Can the soldering gun touch the LM35 sensor?? or just need to above it?

  • @nhacmenuoi9101
    @nhacmenuoi9101 Před 3 lety

    hi pro .. if have set = 20 (any number, besides temp mIN & tempmax)
    how can we implement them?

  • @aneessaifi3882
    @aneessaifi3882 Před 4 lety +2

    Awesome

  • @HomeAutomationTECH
    @HomeAutomationTECH Před 4 lety +1

    Sir aap ac fan ki speed ko ir remote se kese krte he video banao

  • @tanbingjiat5480
    @tanbingjiat5480 Před rokem +1

    What is the purpose of capacitor to lm35 and resistors to buzzer and mosfet?

    • @MuhammadAnsar
      @MuhammadAnsar  Před rokem

      Capacitor used for the fluctuation control and MOSFET use the fan speed control

  • @tanbingjiat5480
    @tanbingjiat5480 Před 2 lety +1

    Can I know what is the function of the IRFZ44N Mosfet in this circuit?

  • @MrEdjob
    @MrEdjob Před 3 lety

    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??

  • @nazmisaat1446
    @nazmisaat1446 Před 2 lety +1

    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?

  • @tanbingjiat5480
    @tanbingjiat5480 Před 2 lety +1

    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?

    • @MuhammadAnsar
      @MuhammadAnsar  Před 2 lety

      Let me know if I can help

    • @tanbingjiat5480
      @tanbingjiat5480 Před 2 lety

      @@MuhammadAnsar when I upload the code to it, the motor and the lcd can't run properly

  • @abhishek.k_
    @abhishek.k_ Před rokem +1

    Can I use led in place of buzzer?

  • @arunchandb2173
    @arunchandb2173 Před 3 lety

    Bro I connect exactly like you in bread board but it can't work any remedy

  • @nivedmutnal6203
    @nivedmutnal6203 Před 3 lety

    bhai I want to turn it on using pir and control speed using lm35

  • @walidmeguehout85
    @walidmeguehout85 Před 2 lety +1

    Thank you

  • @huongp1nguyen348
    @huongp1nguyen348 Před 4 lety +1

    can i ask st. I can't add code in proteus. It doesn't found link to add code in

  • @dharshant1082
    @dharshant1082 Před 3 lety +1

    Bro can we use ds18b20 sensor instead of lm35
    Pls reply me

  • @H_N_0109
    @H_N_0109 Před rokem

    ye arduino uno konsa usage karna he ?

  • @zurterusszyvirsylorrend.in1565

    Can I use 12V battery instead of 9V?

  • @KhalidKhan-pm1ov
    @KhalidKhan-pm1ov Před rokem +1

    sir mera upload hoone ke baad bhi lcd screen pe output nhi show kar raha hai
    what should i do?
    please let me know!!!!!!!

  • @user-km1vj8uq6e
    @user-km1vj8uq6e Před 8 měsíci

    Sir agr i2c module display me use kare to code yahi rhe ga

  • @emrahkaya3095
    @emrahkaya3095 Před rokem

    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?

    • @MuhammadAnsar
      @MuhammadAnsar  Před rokem

      There are three different variants of LM35 available in a transistor package. LM35A, LM35C, and LM35D.

    • @emrahkaya3095
      @emrahkaya3095 Před rokem

      @@MuhammadAnsar hello which one did you use?

  • @khalidsulaiman5424
    @khalidsulaiman5424 Před 8 měsíci

    there is no code in that link!!!

  • @NamNguyen-vg1sn
    @NamNguyen-vg1sn Před 3 lety +1

    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

  • @ngoile876
    @ngoile876 Před 3 lety +1

    Can I replace arduino by pic 16f887??

  • @husseinmatar865
    @husseinmatar865 Před 4 lety +1

    i still can't find the arduino code in your link can you send it here?

    • @MuhammadAnsar
      @MuhammadAnsar  Před 4 lety

      github.com/embeddedlab786/Temperature-based-Fan-Speed-Control-.git

  • @djproduction1029
    @djproduction1029 Před 4 lety +1

    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

    • @MuhammadAnsar
      @MuhammadAnsar  Před 4 lety

      bro mari google Adsense ki hi ni mili

    • @djproduction1029
      @djproduction1029 Před 4 lety +1

      @@MuhammadAnsar matlab

    • @djproduction1029
      @djproduction1029 Před 4 lety +1

      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

    • @MuhammadAnsar
      @MuhammadAnsar  Před 4 lety +1

      @@djproduction1029 thank you
      Sum Ameeen
      or Bro Allah ap ko bhi kamyab kr

    • @djproduction1029
      @djproduction1029 Před 4 lety +1

      @@MuhammadAnsar ameen

  • @supriyabheemagani7214
    @supriyabheemagani7214 Před 4 lety

    How convert that fan speed percentage into 1 2 3 4 5 speed

  • @segarsockalingam8526
    @segarsockalingam8526 Před 3 lety +1

    hi how to modfy the code for i2c board thanks

  • @imanetaa1340
    @imanetaa1340 Před 3 lety +1

    👍👍👍

  • @dishadevadiga8502
    @dishadevadiga8502 Před 2 lety +1

    Why capacitor is used?

  • @zahinariff9523
    @zahinariff9523 Před 2 lety +1

    THE THINGS IS THE CODE CANT BE DOWNLOADED... HOW IS THIS SUPPOSE TO HAPPEN??

    • @MuhammadAnsar
      @MuhammadAnsar  Před 2 lety

      github website link in the video description

    • @lawalmohammed83
      @lawalmohammed83 Před 2 lety

      @@MuhammadAnsar Down in Rar and open using appropriate file opener for the ino

  • @ewakowalska3261
    @ewakowalska3261 Před 2 lety +1

    Hi can you please copy the source code here in the comments please this project sounds really interesting. Thanks..

    • @MuhammadAnsar
      @MuhammadAnsar  Před 2 lety +2

      #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 CZcams");
      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;
      }

    • @ewakowalska3261
      @ewakowalska3261 Před 2 lety +1

      @@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

    • @MuhammadAnsar
      @MuhammadAnsar  Před 2 lety +1

      @@ewakowalska3261 Yes it's complete code
      i am also like you in english

    • @ewakowalska3261
      @ewakowalska3261 Před 2 lety +1

      @@MuhammadAnsar thank you very much i will let you know whether it works thanks again

    • @MuhammadAnsar
      @MuhammadAnsar  Před 2 lety

      @@ewakowalska3261 Welcome

  • @veerkunwarsingh9632
    @veerkunwarsingh9632 Před 2 lety +1

    Hello can you please guide me in this project..??

  • @aamirjawadwala4335
    @aamirjawadwala4335 Před 4 lety

    Which free
    software can be used instead of ISIS Professional Proteus , cause that one is paid.

  • @schrodinger1988
    @schrodinger1988 Před 9 měsíci

    What changes should we do if use a LM335 instead of a LM35 sensor in the circuit

    • @MuhammadAnsar
      @MuhammadAnsar  Před 9 měsíci

      the formula in the code will have to be changed

  • @gokulrathod46
    @gokulrathod46 Před 4 lety +1

    Can we use with alarm

  • @siricroft3111
    @siricroft3111 Před 3 lety +1

    Bhai buzzer kam Nahi Kar Raha hai simulation ma

    • @MuhammadAnsar
      @MuhammadAnsar  Před 3 lety

      bro simulation ma buzzer kam ni krta bs pin high/low hoti hy

  • @saleelmali950
    @saleelmali950 Před 3 lety +1

    Fan starts only at 100% 50 degree celcious. Pls help

    • @MuhammadAnsar
      @MuhammadAnsar  Před 3 lety

      Use the only arduino pwm pins for fan

    • @saleelmali950
      @saleelmali950 Před 3 lety

      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.

    • @saleelmali950
      @saleelmali950 Před 3 lety

      Changed Arduino, FET LM35 and LCD also. No display. Programmed Arduino also again. Using 9V /800 mA Adapter

    • @DomanaxTV
      @DomanaxTV Před 3 lety

      @@saleelmali950 Were you able to fix this issue? I have the same problem!

    • @205bhuvaneswari9
      @205bhuvaneswari9 Před 2 lety +1

      @@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.

  • @varadha304
    @varadha304 Před 3 lety +1

    How much does it costs

  • @veerkunwarsingh9632
    @veerkunwarsingh9632 Před 2 lety +1

    Iska coding kaise milega bhai? ...

  • @arunchandb2173
    @arunchandb2173 Před 3 lety

    I want full circuit diagram and code pls hlp

    • @arunchandb2173
      @arunchandb2173 Před 3 lety

      Can I made this by connect exactly like you pls help

  • @jattalokesh9691
    @jattalokesh9691 Před 4 lety +1

    i need code

  • @tanbingjiat7741
    @tanbingjiat7741 Před rokem +1

    Hi sir, how can we calculate the PWM of this circuit??

  • @y_xdgaming3592
    @y_xdgaming3592 Před 4 lety +1

    Bhai ap me study kis chez ki hui hai

  • @y_xdgaming3592
    @y_xdgaming3592 Před 4 lety +1

    Ap ne engineering ki hai?

  • @pavanipilli6176
    @pavanipilli6176 Před 3 lety +1

    pls provide source code

  • @H_N_0109
    @H_N_0109 Před rokem

    bhai costing kitni hogi

    • @MuhammadAnsar
      @MuhammadAnsar  Před rokem

      almost 3k

    • @H_N_0109
      @H_N_0109 Před rokem

      @@MuhammadAnsar arduino uno konsa usage karna he or kitne ka ayega

  • @jyaniharshil5585
    @jyaniharshil5585 Před 2 lety +1

    Hi

  • @varunr996
    @varunr996 Před 3 lety

    Which software are u using to compile code?

  • @victorchiumbe4597
    @victorchiumbe4597 Před 3 lety +1

    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

  • @jyaniharshil5585
    @jyaniharshil5585 Před 2 lety +1

    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...

    • @MuhammadAnsar
      @MuhammadAnsar  Před 2 lety +1

      i will try

    • @jyaniharshil5585
      @jyaniharshil5585 Před 2 lety

      @@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. 👍🏻

    • @jyaniharshil5585
      @jyaniharshil5585 Před 2 lety

      @@MuhammadAnsar sir any updates ???