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/
  • ХоббиХобби

Комментарии • 153

  • @adadmohamedcherif192
    @adadmohamedcherif192 4 года назад +6

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

  • @jaimevasconez8219
    @jaimevasconez8219 2 года назад

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

  • @shinypotato7204
    @shinypotato7204 4 года назад +1

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

  • @victorchiumbe4597
    @victorchiumbe4597 3 года назад +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

  • @marcadhy5344
    @marcadhy5344 2 года назад +1

    thank you very much, it helps me a lot!

  • @ronaldjamora899
    @ronaldjamora899 3 года назад +2

    thank you so much, youre my savior

  • @aneessaifi3882
    @aneessaifi3882 4 года назад +2

    Awesome

  • @sGod666
    @sGod666 4 месяца назад +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?

  • @VISHNU_61_VIKI
    @VISHNU_61_VIKI 2 года назад +1

    You will reach your subscribers bro

  • @imanetaa1340
    @imanetaa1340 3 года назад +1

    👍👍👍

  • @neshansamarasena7741
    @neshansamarasena7741 2 года назад

    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 ?

  • @walidmeguehout85
    @walidmeguehout85 2 года назад +1

    Thank you

  • @DarkCovering
    @DarkCovering 3 года назад +1

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

  • @nhacmenuoi9101
    @nhacmenuoi9101 3 года назад

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

  • @rahulkumar-xu9rv
    @rahulkumar-xu9rv 4 месяца назад +1

    5.42 what is that white part

  • @_Nadeemshaikh
    @_Nadeemshaikh 3 года назад

    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

  • @dishadevadiga8502
    @dishadevadiga8502 2 года назад +1

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

  • @MrEdjob
    @MrEdjob 2 года назад

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

  • @imanetaa1340
    @imanetaa1340 3 года назад +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 21 день назад

    Can i use dht11 module instead of lm35??

  • @HomeAutomationTECH
    @HomeAutomationTECH 4 года назад +1

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

  • @supriyabheemagani7214
    @supriyabheemagani7214 4 года назад

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

  • @arunchandb2173
    @arunchandb2173 3 года назад

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

  • @H_N_0109
    @H_N_0109 Год назад

    ye arduino uno konsa usage karna he ?

  • @nivedmutnal6203
    @nivedmutnal6203 3 года назад

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

  • @sharjeelahmed823
    @sharjeelahmed823 2 года назад +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!

    • @vaishnaviwani3885
      @vaishnaviwani3885 8 месяцев назад

      Have you done something related to this issue?

  • @jyaniharshil5585
    @jyaniharshil5585 2 года назад +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...

  • @user-sc6wk2fi8r
    @user-sc6wk2fi8r Год назад +1

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

  • @tanbingjiat5480
    @tanbingjiat5480 Год назад +1

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

  • @huongp1nguyen348
    @huongp1nguyen348 4 года назад +1

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

  • @dharshant1082
    @dharshant1082 3 года назад +1

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

  • @janukanipun9179
    @janukanipun9179 3 года назад +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  3 года назад

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

  • @aamirjawadwala4335
    @aamirjawadwala4335 3 года назад

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

  • @user-km1vj8uq6e
    @user-km1vj8uq6e 6 месяцев назад

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

  • @nazmisaat1446
    @nazmisaat1446 2 года назад +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?

    • @MuhammadAnsar
      @MuhammadAnsar  2 года назад +1

      please Check your hardware

    • @nazmisaat1446
      @nazmisaat1446 2 года назад

      what hardware do u think is problem? is it lcd?

  • @emrahkaya3095
    @emrahkaya3095 Год назад

    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  Год назад

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

    • @emrahkaya3095
      @emrahkaya3095 Год назад

      @@MuhammadAnsar hello which one did you use?

  • @tanbingjiat5480
    @tanbingjiat5480 Год назад +1

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

    • @MuhammadAnsar
      @MuhammadAnsar  Год назад

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

  • @KhalidKhan-pm1ov
    @KhalidKhan-pm1ov Год назад +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!!!!!!!

  • @abhishek.k_
    @abhishek.k_ Год назад +1

    Can I use led in place of buzzer?

  • @NamNguyen-vg1sn
    @NamNguyen-vg1sn 3 года назад +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

  • @husseinmatar865
    @husseinmatar865 4 года назад +1

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

    • @MuhammadAnsar
      @MuhammadAnsar  4 года назад

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

  • @khalidsulaiman5424
    @khalidsulaiman5424 7 месяцев назад

    there is no code in that link!!!

  • @tanbingjiat5480
    @tanbingjiat5480 Год назад +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  Год назад

      Let me know if I can help

    • @tanbingjiat5480
      @tanbingjiat5480 Год назад

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

  • @ngoile876
    @ngoile876 3 года назад +1

    Can I replace arduino by pic 16f887??

  • @zurterusszyvirsylorrend.in1565
    @zurterusszyvirsylorrend.in1565 2 года назад +1

    Can I use 12V battery instead of 9V?

  • @segarsockalingam8526
    @segarsockalingam8526 3 года назад +1

    hi how to modfy the code for i2c board thanks

  • @arunchandb2173
    @arunchandb2173 3 года назад

    I want full circuit diagram and code pls hlp

    • @arunchandb2173
      @arunchandb2173 3 года назад

      Can I made this by connect exactly like you pls help

  • @dishadevadiga8502
    @dishadevadiga8502 2 года назад +1

    Why capacitor is used?

  • @djproduction1029
    @djproduction1029 4 года назад +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  4 года назад

      bro mari google Adsense ki hi ni mili

    • @djproduction1029
      @djproduction1029 4 года назад +1

      @@MuhammadAnsar matlab

    • @djproduction1029
      @djproduction1029 4 года назад +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  4 года назад +1

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

    • @djproduction1029
      @djproduction1029 4 года назад +1

      @@MuhammadAnsar ameen

  • @siricroft3111
    @siricroft3111 3 года назад +1

    Bhai buzzer kam Nahi Kar Raha hai simulation ma

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад

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

  • @veerkunwarsingh9632
    @veerkunwarsingh9632 2 года назад +1

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

  • @y_xdgaming3592
    @y_xdgaming3592 4 года назад +1

    Bhai ap me study kis chez ki hui hai

  • @zahinariff9523
    @zahinariff9523 2 года назад +1

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

    • @MuhammadAnsar
      @MuhammadAnsar  2 года назад

      github website link in the video description

    • @lawalmohammed83
      @lawalmohammed83 2 года назад

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

  • @y_xdgaming3592
    @y_xdgaming3592 4 года назад +1

    Ap ne engineering ki hai?

  • @gokulrathod46
    @gokulrathod46 4 года назад +1

    Can we use with alarm

  • @veerkunwarsingh9632
    @veerkunwarsingh9632 2 года назад +1

    Iska coding kaise milega bhai? ...

  • @schrodinger1988
    @schrodinger1988 8 месяцев назад

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

    • @MuhammadAnsar
      @MuhammadAnsar  8 месяцев назад

      the formula in the code will have to be changed

  • @jyaniharshil5585
    @jyaniharshil5585 2 года назад +1

    Hi

  • @jattalokesh9691
    @jattalokesh9691 4 года назад +1

    i need code

  • @ewakowalska3261
    @ewakowalska3261 2 года назад +1

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

    • @MuhammadAnsar
      @MuhammadAnsar  2 года назад +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 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;
      }

    • @ewakowalska3261
      @ewakowalska3261 2 года назад +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  2 года назад +1

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

    • @ewakowalska3261
      @ewakowalska3261 2 года назад +1

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

    • @MuhammadAnsar
      @MuhammadAnsar  2 года назад

      @@ewakowalska3261 Welcome

  • @tanbingjiat7741
    @tanbingjiat7741 Год назад +1

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

  • @pavanipilli6176
    @pavanipilli6176 3 года назад +1

    pls provide source code

  • @varunr996
    @varunr996 3 года назад

    Which software are u using to compile code?

  • @varadha304
    @varadha304 3 года назад +1

    How much does it costs

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад

      almost 2k

    • @varadha304
      @varadha304 3 года назад

      @@MuhammadAnsar bro ill send you mail please check it

  • @H_N_0109
    @H_N_0109 Год назад

    bhai costing kitni hogi

    • @MuhammadAnsar
      @MuhammadAnsar  Год назад

      almost 3k

    • @H_N_0109
      @H_N_0109 Год назад

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

  • @saleelmali950
    @saleelmali950 3 года назад +1

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

    • @MuhammadAnsar
      @MuhammadAnsar  3 года назад

      Use the only arduino pwm pins for fan

    • @saleelmali950
      @saleelmali950 3 года назад

      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 3 года назад

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

    • @DarkCovering
      @DarkCovering 3 года назад

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

    • @205bhuvaneswari9
      @205bhuvaneswari9 2 года назад +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.

  • @gauravdabholkarstudent2846
    @gauravdabholkarstudent2846 2 года назад +2

    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

  • @jyaniharshil5585
    @jyaniharshil5585 2 года назад +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  2 года назад +1

      i will try

    • @jyaniharshil5585
      @jyaniharshil5585 2 года назад

      @@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 2 года назад

      @@MuhammadAnsar sir any updates ???