Temperature based Fan Speed Control Using Arduino and LM35 Sensor

แชร์
ฝัง
  • เผยแพร่เมื่อ 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/
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 152

  • @adadmohamedcherif192
    @adadmohamedcherif192 4 ปีที่แล้ว +6

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

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

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

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

  • @shinypotato7204
    @shinypotato7204 4 ปีที่แล้ว +1

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

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

  • @marcadhy5344
    @marcadhy5344 2 ปีที่แล้ว +1

    thank you very much, it helps me a lot!

  • @nhacmenuoi9101
    @nhacmenuoi9101 3 ปีที่แล้ว

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

  • @ronaldjamora899
    @ronaldjamora899 3 ปีที่แล้ว +2

    thank you so much, youre my savior

  • @aneessaifi3882
    @aneessaifi3882 4 ปีที่แล้ว +2

    Awesome

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

  • @DarkCovering
    @DarkCovering 3 ปีที่แล้ว +1

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

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

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

  • @imanetaa1340
    @imanetaa1340 3 ปีที่แล้ว +1

    👍👍👍

  • @rahulkumar-xu9rv
    @rahulkumar-xu9rv 3 หลายเดือนก่อน +1

    5.42 what is that white part

  • @walidmeguehout85
    @walidmeguehout85 2 ปีที่แล้ว +1

    Thank you

  • @VISHNU_61_VIKI
    @VISHNU_61_VIKI 2 ปีที่แล้ว +1

    You will reach your subscribers bro

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

  • @supriyabheemagani7214
    @supriyabheemagani7214 4 ปีที่แล้ว

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

  • @nivedmutnal6203
    @nivedmutnal6203 3 ปีที่แล้ว

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

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

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

  • @user-sc6wk2fi8r
    @user-sc6wk2fi8r ปีที่แล้ว +1

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

  • @dharshant1082
    @dharshant1082 3 ปีที่แล้ว +1

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

    • @MuhammadAnsar
      @MuhammadAnsar  3 ปีที่แล้ว +1

      Yes, but will have to code change

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

  • @HomeAutomationTECH
    @HomeAutomationTECH 4 ปีที่แล้ว +1

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

  • @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 7 หลายเดือนก่อน

      Have you done something related to this issue?

  • @tanbingjiat5480
    @tanbingjiat5480 ปีที่แล้ว +1

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

    • @MuhammadAnsar
      @MuhammadAnsar  ปีที่แล้ว

      MOSFET used for the fan speed control

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

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

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

  • @huongp1nguyen348
    @huongp1nguyen348 4 ปีที่แล้ว +1

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

  • @abhishek.k_
    @abhishek.k_ ปีที่แล้ว +1

    Can I use led in place of buzzer?

  • @aamirjawadwala4335
    @aamirjawadwala4335 3 ปีที่แล้ว

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

  • @zurterusszyvirsylorrend.in1565
    @zurterusszyvirsylorrend.in1565 2 ปีที่แล้ว +1

    Can I use 12V battery instead of 9V?

  • @user-km1vj8uq6e
    @user-km1vj8uq6e 5 หลายเดือนก่อน

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

    • @MuhammadAnsar
      @MuhammadAnsar  5 หลายเดือนก่อน

      code ma change krny pare gi

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

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

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

  • @segarsockalingam8526
    @segarsockalingam8526 3 ปีที่แล้ว +1

    hi how to modfy the code for i2c board thanks

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

  • @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 TH-cam");
      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

  • @veerkunwarsingh9632
    @veerkunwarsingh9632 ปีที่แล้ว +1

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

  • @khalidsulaiman5424
    @khalidsulaiman5424 6 หลายเดือนก่อน

    there is no code in that link!!!

  • @varunr996
    @varunr996 3 ปีที่แล้ว

    Which software are u using to compile code?

    • @MuhammadAnsar
      @MuhammadAnsar  3 ปีที่แล้ว

      Arduino IDE

    • @varunr996
      @varunr996 3 ปีที่แล้ว

      Thank youuu

    • @varunr996
      @varunr996 3 ปีที่แล้ว +1

      And for simulation???

    • @MuhammadAnsar
      @MuhammadAnsar  3 ปีที่แล้ว +1

      @@varunr996 Proteus

    • @varunr996
      @varunr996 3 ปีที่แล้ว +1

      @@MuhammadAnsar thank you so much bhaii

  • @dishadevadiga8502
    @dishadevadiga8502 2 ปีที่แล้ว +1

    Why capacitor is used?

  • @gokulrathod46
    @gokulrathod46 4 ปีที่แล้ว +1

    Can we use with alarm

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

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

    • @Labibatuabubakar4
      @Labibatuabubakar4 2 ปีที่แล้ว

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

  • @tanbingjiat7741
    @tanbingjiat7741 ปีที่แล้ว +1

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

  • @y_xdgaming3592
    @y_xdgaming3592 4 ปีที่แล้ว +1

    Bhai ap me study kis chez ki hui hai

  • @schrodinger1988
    @schrodinger1988 7 หลายเดือนก่อน

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

    • @MuhammadAnsar
      @MuhammadAnsar  7 หลายเดือนก่อน

      the formula in the code will have to be changed

  • @y_xdgaming3592
    @y_xdgaming3592 4 ปีที่แล้ว +1

    Ap ne engineering ki hai?

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

  • @veerkunwarsingh9632
    @veerkunwarsingh9632 2 ปีที่แล้ว +1

    Iska coding kaise milega bhai? ...

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

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

  • @jattalokesh9691
    @jattalokesh9691 4 ปีที่แล้ว +1

    i need code

  • @jyaniharshil5585
    @jyaniharshil5585 2 ปีที่แล้ว +1

    Hi

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

  • @pavanipilli6176
    @pavanipilli6176 3 ปีที่แล้ว +1

    pls provide source code

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