Fan Speed (RPM) Measurement using IR Sensor and Arduino || Tachometer

Поделиться
HTML-код
  • Опубликовано: 31 янв 2019
  • In this project we have designed Digital Tachometer using IR Sensor with Arduino for measuring the number of rotations of rotating Motor in RPM. Simply we have interfaced IR sensor module with Arduino and 16*2 LCD module for display. The IR sensor module consists of IR Transmitter & Receiver in a single pair that can work a Digital Tachometer for speed measurement of any rotating object.
    Tachometer is a RPM counter which counts the no. of rotation per minute. There are two types of tachometer one mechanical and other one is digital. Here we are going to design an Arduino based digital tachometer using IR sensor module to detect object for count rotation of any rotating body. As IR transmits IR rays which reflect back to IR receiver and then IR Module generates an output or pulse which is detected by the arduino controller and instantaneous value is displayed on LCD.
    Source Code/Program : how2electronics.com/fan-speed...
    Drop a like if you liked this video.
    Don't forget to subscribe our channel for more Electronics project and tutorials.
    Website: how2electronics.com
    Facebook: / electronicsbyalex
  • НаукаНаука

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

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

    thanks! Is it possible to calculate fan cycles instead of speed in this example using Arduino

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

    nice, can this be used as a trigger switch to activate the brakes for a wind turbine?

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

    would this be able to be supplied from a 9v battery or 12/24v supply aswell?

  • @electronic7979
    @electronic7979 5 лет назад +1

    Nice project 👍

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

    Sir, please tell me can I eat relays from speed rpm?

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

    How to I get the library for IR speed sensor?

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

    do you have the same code but not for lcd

  • @hastrinam.salleh5072
    @hastrinam.salleh5072 4 года назад

    how to get the input voltage?

  • @ajmalsanah1179
    @ajmalsanah1179 5 лет назад +1

    Good project bro

  • @mamtakhadka1314
    @mamtakhadka1314 5 лет назад

    Good job sir

  • @emacantsaoir
    @emacantsaoir 5 лет назад +20

    Seems like a nice project, but there is no way that fan is running at 12,000rpm. At that speed it would take off like a helicopter :)

    • @hussain55019
      @hussain55019 5 лет назад

      its actually 4000rpm

    • @prabu7909
      @prabu7909 4 года назад +3

      I tried the code , it does not work as shown

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

      😂😂 it was spinning so fast you couldn’t hear it.

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

      the fan has 3 winks so the ir sensor detection the 3 winks is an o/p of 0(or 1) so now we calculate the rpm then it becomes 1200 but it's actually 4000(1200/3)...

  • @phearl3ss1
    @phearl3ss1 Год назад +2

    The schematic indicates the IR sensor is going into digital 2 and your interrupt in the code indicates pin 0 so I don't think that code will work.

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

    Sir how can we this code for a flat disk wheel???what modification are needed??

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

    Sir how to made airgun pellet speed chronograph plz make one video

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

    How to fix alarm if the rpm is zero

  • @DSVidyasagar
    @DSVidyasagar 11 месяцев назад

    detachInterrupt() syntax only works on Arduino SAMD Boards, Uno WiFi Rev2, Due, and 101

  • @styvelioumba674
    @styvelioumba674 5 лет назад

    great !!!

  • @ajmalsanah1179
    @ajmalsanah1179 5 лет назад +1

    Please make a incubater

  • @AvishekBaselin
    @AvishekBaselin Месяц назад

    I think there should be a division of 3 bcoz the fan has 3 blades. IR sensor only calculates the obstacles due to the blade.
    I think you will get my point.
    Thank you.

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

    I need this and rpm counter in one

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

    Thank's

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

    Hi. How would this be done without using microcontrollers?

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

      did you find out? Because i have the same problem. Let me know if you found a way

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

      @@nabeelkara31 see 1:01. pin 7 on arduino is used, use the video image at 1:1 to make the connections. It will work.

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

    bro i just want to count the totol number of revolution not RPM, what changes should i make?

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

    It is cool

  • @satriamuhammadazis6786
    @satriamuhammadazis6786 5 лет назад +1

    Can this sensor use in NodeMcu?

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

    Kindly post a same project with Hall sensor

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

      once,google - how to calculate fidget spinner rpm using hall effect sensor. might be helpful.

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

    Make a mini atm or piggy bank fully automatic plzz using aurdino

  • @050zaher
    @050zaher 4 года назад +2

    thanks , but i think you have error in your code which is
    rpm = (rev/times)*60000/3 ;
    it should be :
    rpm = (rev/(times/3))*60000 ;

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

      Thanks for correction. I will update that on website.

    • @KrishKim-ws4li
      @KrishKim-ws4li 4 года назад

      Hi bro I need help in writing pic program to find rpm using IR sensor for motor like Hertz to rpm

    • @KrishKim-ws4li
      @KrishKim-ws4li 4 года назад

      @mahmoud zaher I want help in writing pic program to find rpm using IR sensor for motor it like Hertz to rpm

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

      Brother where is sensor difine pin in your code ?

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

      please help me... there's some error "old time not defined" in this program. what do i do?

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

    itu ndak salah baca ya? khawatirnya kalau baling2nya kipas ada 3, sensor baca rpmnya 3x lbh banyak

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

      nah iya juga

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

      sudah dibagi 3 di perhitungnanya, cuman yg salah pengali menitnya harusnya *60 bukan *60.000

  • @shahrezzamohdnor7352
    @shahrezzamohdnor7352 5 лет назад +1

    hello sir ... im follow your instruction .... but my lcd doesnt write anything .... its appear something but in square pixel ... n make me confusing... pls help me sir...

    • @HowtoElectronics
      @HowtoElectronics  5 лет назад

      Plz Lcd connection with respect to Arduino and Code.

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

      @@HowtoElectronics how to set code sir

    • @ShivamKumar-rv6gc
      @ShivamKumar-rv6gc 4 года назад

      Getting same problem black blocks i did correct connection

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

      Use 10k potentiometer at pin 3 of lcd to adjust contrast.

    • @ShivamKumar-rv6gc
      @ShivamKumar-rv6gc 4 года назад

      Plz can you upload another connection circuit diagram and code that we upload on arduino

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

    You should not use detachInterrupt(), but instead use noInterrupts() and interrupts() to disable/enable interrupts

    • @DSVidyasagar
      @DSVidyasagar 11 месяцев назад

      The detachInterrpt() function is not interrupt-safe.

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

    rpm = (rev/times)*60000/3 ; how did 60000 ?

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

    how to display it in serial monitor?
    i change the code to display it in serial monitor, but it does not work.
    CODE:
    //to display on serial monitor code:
    float value = 0;
    float rev = 0;
    int rpm;
    int oldtime = 0;
    int time;
    void isr() //interrupt service routine
    {
    rev++;
    }
    void setup()
    {
    Serial.begin("Initializing");
    attachInterrupt(0,isr,RISING); //attaching the interrupt
    }
    void loop()
    {
    delay(1000);
    detachInterrupt(0); //detaches the interrupt
    time = millis() - oldtime; //finds the time
    rpm = (rev/time) * 60000 * 3; //calculates rpm for blades
    oldtime = millis(); //saves the current time
    rev = 0;
    Serial.println("TACHOMETER");
    Serial.print( rpm);
    Serial.print(" RPM");
    Serial.print(" ");
    attachInterrupt(0,isr,RISING);
    }

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

      You should add this after the void setup ()
      Serial.begin (9600);
      And simply this after the void loop () to replace the code for lcd
      Serial.println(rpm);
      Hope it works on you!

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

      So it should be
      float value=0;
      float rev=0;
      int rpm;
      int oldtime=0;
      int time;
      void isr() //interrupt service routine
      {
      rev++;
      }
      void setup()
      {
      Serial.begin(9600);
      attachInterrupt(0,isr,RISING); //attaching the interrupt
      }
      void loop()
      {
      delay(1000);
      detachInterrupt(0); //detaches the interrupt
      time=millis()-oldtime; //finds the time
      rpm=(rev/(time))*60000/7; //calculates rpm for blades
      oldtime=millis(); //saves the current time
      rev=0;
      Serial.println (rpm);
      attachInterrupt(0,isr,RISING);
      }
      I use no LCD. only serial monitor

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

      @@ukhtifathimahramadhani2090 mine show zero value all the time. which pin is used for the ir sensor?

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

    10892 rpm??? Really???

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

    Why fan is not takeoff on 12000rpm.
    😆😆😆😆😆😆😆😆

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

    CODE IS SHIT, shows random numbers

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

    nice, can this be used as a trigger switch to activate the brakes for a wind turbine?