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

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2016
  • 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

  • @edinfific2576
    @edinfific2576 28 дней назад

    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.

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

  • @winarnoteguh3457
    @winarnoteguh3457 6 лет назад +1

    sangat membantu ..maturnuwun...

  • @gitbox6924
    @gitbox6924 5 месяцев назад +1

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

  • @carlosfonseca3245
    @carlosfonseca3245 6 лет назад

    thank you, it served me a lot

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

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

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

  • @grkoica
    @grkoica 7 лет назад

    thank you very much for sharing

    • @MakerCK
      @MakerCK  6 лет назад

      Thanks for watching.

  • @HerrHafiz
    @HerrHafiz 10 месяцев назад +1

    your website is down

  • @samuraitechnology7511
    @samuraitechnology7511 6 лет назад

    I think God of Ganpati Photo on your behind !!

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

  • @Dancopymus
    @Dancopymus 9 месяцев назад

    Hello friend, I would like some help from you, please.
    I would like to use your code but, instead of this sensor shown in the video, I have a Printer Optical Sensor, which has a small wheel attached to the motor and this wheel has 34 tiny windows for reading the sensor.
    Could you tell me what the calculations would be like in the code for the RPM, considering these 34 tiny windows?
    If you need it, I'll put a link here with the picture of my motor/sensor. My sincere thanks.

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

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

  • @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  5 лет назад

      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.

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

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

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

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

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

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

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

  • @Mike-mo5rh
    @Mike-mo5rh 5 лет назад

    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.