Measure RPM w/ DIY Arduino Optical Tachometer using Infrared LED & Phototransistor

Поділитися
Вставка
  • Опубліковано 1 жов 2024
  • How to build an Arduino optical tachometer to measure RPMs using an IR LED and phototransistor.
    I've put a download link on my website under the Arduino optical tachometer blog entry. You can download the Arduino sketch there. www.makertrove.com
    Infrared LED emitter and Receiver:
    amzn.to/2YZyZQd
    Official Arduino Starter Kit with book. Nice for the beginner because it comes with the guide book.
    amzn.to/2YUMT66
    Generic (but not in a bad way) Starter kit. Arduino software and hardware is open source so even the generic versions of the Arduinio boards work perfectly fine in my experience. This starter kit has a lot of nice extras. They have software examples (pdf files) on their website.
    amzn.to/2WacafL
    www.makertrove.com

КОМЕНТАРІ • 43

  • @gitbox6924
    @gitbox6924 8 місяців тому +1

    Hello, I can't seem to find the source code at your website.

  • @Dancopymus
    @Dancopymus 3 дні тому

    Hello MakerCK! First of all, thank you for the demonstration video.
    It would be much cooler if the number of revolutions of the engine was shown on a TFT Display, like the ILI9341, in the form of a speedometer. What do you think? Thanks again.

  • @HerrHafiz
    @HerrHafiz Рік тому +1

    your website is down

  • @edinfific2576
    @edinfific2576 3 місяці тому

    7 years later, and your video has helped me solve a particular problem with my code. I was getting incorrect results from my calculation of pulses per second to rotattions per minute, and was wondering why.
    detachInterrupt was the answer. Thank you for helping others.

  • @maxximumb
    @maxximumb 5 років тому +2

    Great video, solved my problem and I have all the parts in my project boxes.

  • @randywetzler5976
    @randywetzler5976 5 років тому +1

    I'm having trouble with accuracy of the readout. At approx. 20 RPM the code is returning like 600 - 800 RPM. At higher RPM's it seems a little more accurate. Can you explain the inaccuracies? -- thanks

    • @MakerCK
      @MakerCK  5 років тому

      Off the top of my head I believe less than 60 RPM would be an issue using the formula without modifying it. Because it's only sampling once per second (1000ms). That may be why you have issues at the lower speeds.

  • @jimsare3116
    @jimsare3116 4 роки тому

    WARNINH!!!
    *****************************broken link of the sketch file************************************************************

  • @qrz9219
    @qrz9219 5 років тому +1

    Hi. Can you attach a picture of schematics ?
    I need to understand the circuit.

    • @MakerCK
      @MakerCK  5 років тому

      Check out this site...his layout diagram is very clear. I referenced his site along with some others but his diagram was very helpful. arduinoprojects101.com/arduino-rpm-counter-tachometer/

    • @qrz9219
      @qrz9219 5 років тому

      @@MakerCK Thanks alot for the help !

  • @johnlongs836
    @johnlongs836 6 років тому

    I have photo electric sensor with 4 pin and m using ardiuno leonardo...do i need to connect resistor in the negative or positive wire..

  • @rolandvincent-ortalizalim2795
    @rolandvincent-ortalizalim2795 5 років тому +1

    What if I use a Reflective sensor?

    • @MakerCK
      @MakerCK  5 років тому

      That would work as well. Reflective sensors often use the same components (IR LED and phototransistor) then they adjust from high to low same as what this does. You would just need to adjust the code a little for the appropriate pins being used. Good luck.

  • @arifinnugroho9191
    @arifinnugroho9191 6 років тому

    This code reading rpm with 2 propeller at the motor. This mean 2 cut of the infrared beam will count as 1 revolution. You can modify this line to suit your use;
    rpm = 30*1000/(millis() - timeold)*rpmcount;
    i still dont understand.

    • @MakerCK
      @MakerCK  6 років тому

      I'm not exactly sure about your formula you have listed. I think I simply just counted the number of times the interrupt was triggered in a second and then multiplied that times 60. Only you have to adjust the formula depending how many interrupts equals one full revolution.

  • @winarnoteguh3457
    @winarnoteguh3457 7 років тому +1

    sangat membantu ..maturnuwun...

  • @gjangico
    @gjangico 7 років тому +1

    Were, if it´s possible, we find the code and circuit of this. Thanks,

    • @MakerCK
      @MakerCK  7 років тому +1

      I've put the Arduino code on my website www.makerckstudio.com. It's listed for download just below the video blog post. I hope that helps.

    • @senthilselvan737
      @senthilselvan737 7 років тому

      just google LCD interfacing with board(ardiuno,..) and edit "LiquidCrystal lcd(12, 11, 5, 4, 3, 2);" part according to your usage
      www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwjG6pPoga7SAhVIJZQKHVM0C68QFggjMAE&url=https%3A%2F%2Fwww.arduino.cc%2Fen%2FTutorial%2FLiquidCrystalDisplay&usg=AFQjCNH51HOQUYD592zkrVeoS93G80VoPg&sig2=2zzz41Iy_unuLpu9wzFaog

  • @samuraitechnology7511
    @samuraitechnology7511 7 років тому

    I think God of Ganpati Photo on your behind !!

  • @olddognewtricks4804
    @olddognewtricks4804 7 років тому

    Hi, how high will it detect rpm's?
    10 to 13 x 1000 rpm? Thanks,

    • @MakerCK
      @MakerCK  7 років тому

      I've seen similar examples up to 50,000 RPMs. I'm not sure what the max number would be. I'd be interested to know as well.

  • @olddognewtricks4804
    @olddognewtricks4804 7 років тому

    Hi, will this set up read up to 13000 rpm? Thanks,

    • @MakerCK
      @MakerCK  7 років тому

      Yes it will! I've seen similar examples up to 50,000 rpms

  • @procactus9109
    @procactus9109 7 років тому

    I was hoping to see single digit resolution. But ill still give you a thumb.

    • @MakerCK
      @MakerCK  7 років тому

      Thanks for watching. You can edit the code a bit to make that happen. I use a 1 second delay and multiply the interrupts by sixty but you can just change the delay to a sample time that works best for you and the multiply those results to get the per minute numbers.

  • @MegaStaalman
    @MegaStaalman 7 років тому

    Thanks a million. Used your code as is. Connected a hall sensor output to pin 2 and works like a charm.

    • @MakerCK
      @MakerCK  7 років тому

      Fantastic! Glad to hear it worked out for you.

  • @Mike-mo5rh
    @Mike-mo5rh 6 років тому

    makerckstudio.com = 404... Dead Link

    • @MakerCK
      @MakerCK  5 років тому

      I have recently made a new site www.MakerTrove.com. It's a work in progress, but that's where I plan to blog and upload all shareable files etc going forward.

  • @carlosfonseca3245
    @carlosfonseca3245 6 років тому

    thank you, it served me a lot

    • @MakerCK
      @MakerCK  6 років тому

      Great, thanks for watching and have fun with your projects.

  • @GRRM-b2v
    @GRRM-b2v 7 років тому

    thank you very much for sharing

    • @MakerCK
      @MakerCK  7 років тому

      Thanks for watching.

  • @senthilselvan737
    @senthilselvan737 7 років тому

    Thank you so much for the code. By the way i would like to print the value of speed also in 2nd line. I tried setCursor(0,1) to print value of speed but the value does not change in LCD.
    speed =2*3.14*r*rpm*(60/1000)