Tachometer (RPM Meter) || DIY or Buy || How a 3€ sensor outdoes a 29€ product!
Vložit
- čas přidán 17. 05. 2024
- $2 for 2Layer, 5pcs & $5 for 4Layer, 5pcs: jlcpcb.com
Previous video: • HACKED!: Turning an In...
uC Timer video: • Electronic Basics #30:...
Facebook: / greatscottlab
Twitter: / greatscottlab
Support me for more videos: www.patreon.com/GreatScott?ty=h
More project information (schematic, code,....) on Instructables: www.instructables.com/id/DIY-...
Parts list (affiliate links):
1x Arduino Pro Mini: s.click.aliexpress.com/e/_dTW...
1x IR Distance Sensor: s.click.aliexpress.com/e/_dXl...
1x 128x64 OLED: s.click.aliexpress.com/e/_dXO...
1x TP4056 Charge Protect Board: s.click.aliexpress.com/e/_d69...
1x LiPo Battery: s.click.aliexpress.com/e/_dUE...
1x Toggle Switch: s.click.aliexpress.com/e/_dZ1...
In this episode of DIY or Buy we will be having a closer look at a commercial tachometer (RPM Meter) and test it in order to find out that it is pretty much unusable. Afterwards I will show you how a 3€ IR distance sensor works and how we can use it to build a proper DIY tachometer that functions properly. Let's get started!
Thanks to JLCPCB for sponsoring this video
Visit jlcpcb.com to get professional PCBs for low prices.
Music:
2011 Lookalike by Bartlebeats
Killing Time, Kevin MacLeod
(incompetech.com) - Věda a technologie
Sadly there is a small mistake in the video. The IR photo diode is positioned the wrong way around. Just imagine the cathode and anode being flipped. Sorry. (Edit: Ok, there is a second mistake. I used the roller adapter in contact mode incorrectly. I just did another measurement the correct way and measured an RPM of 270 while the correct one would have been 230. So this way it was a bit better but still not good enough for me.)
But who knows that? I tried searching for information on that but not even the official manual of the product bothers to mention those details. I think most people would use it like I did.
Ok. I just tried it this way and the result was better. I got 270RPM with the DC Motor which actually rotates at 230RPM. So still not good enough.
@@greatscottlab Great job, love your vids man, keep it up!
@@greatscottlab Please make videos for the same project but with a new feature to turn ON a led when the speed reached 40 kmph. Awaiting...thanks in advance.
@@greatscottlab Please make videos for the same project but with a new feature to turn ON a led when the speed reached 40 kmph. Awaiting...thanks in advance.
Now you‘re just missing a 3d printed case for it and then it would be perfect 👍
Agreed but I would change the layout some to be a bit more compact.
You mean"compact"?
@@111genti yes ty new phone and it puts what it wants LoL 😂.
I thought about it but decided against it in the end to keep it simple.
@@greatscottlab Good decision to make it simple.
One of my favorite parts of your videos is watching you write. Your handwriting is impressive!
I laughed when see you're sponsored by JLCPCB but build just using perfboard.
For prototyping, why not? Want to make a batch of faulty boards? He use them often.
LMFAOOOOO
@@bryanst.martin7134 they seem fine to me, ive ordered some pretty sketchy looking boards and they still worked fine
I really like the way how great scott explain electronics without straining the time limits of his videos.
0:52 it's kind of cheap for tachometer in comparison to others
The $16 tachometer down there:
Delievery charges ... 100$
You've got the best left hand writing skill I've ever seen. You're a phenomenon !
Great video, very informative and practical.
Just a thing I noticed, because I stumbled over it not too long ago myself: The two pixel white strip to the right of the OLED (10:03) is most probably caused by a wrong display type. If you have a SSD1306 but initialize it as a SH1106, or the other way around, you get those strips.
I have always loved your constructive approach to electronics and making things in general. you inspire me alot. keep up the great work Mr. Scott
Yes! DIY wins!!
I always wanted to do this project and find out how accurate these IR sensors can measure RPM. Thanks for doing it for me!
I love it when DIY wins , great work scott !
Once, I made a tachometer using a hall sensor effect and a magnet, but this way with the IR sensor, looks much better. Great job!
Men the diameter of the rolling thing is affecting the values , smaller more turns bigger less turns, you got to used aligned, not in besides
Yup, in contact mode, the tacho will be accurately measuring how fast the tacho's shaft was turning. To measure the speed of the shaft, push the contact rubber onto the ene of the shaft, not rolling around its side.
The user manual would have made this clear, but it was probably in impenetrable chinglish.
Edit: someone else picked up the reason why it failed with the optical - insulation tape's optic properties are horrible. It is designed to be used on the bare shaft of the motor. If you need to add anything to make a mark, try painters masking tape.
To use contact mode you must put the probe coaxial with the motor shaft not side by side like a spur gear arrangement. Great video tho!
He tried that too, wasn't accurate either. 4:12
I was looking for this comment.
What you're saying is correct, But in this case laser tachometer reading incorrect RPM value, Diameter comes into account when we measure travel distance of shaft m/min.
DIY wins
i love to see diy win . it so happy our own made product work so fine . i give joy and emotions own hand made things
We need more diy winners very nice video keep up the good work
A tip for expansion later: Add a graph of the rpm over time on the lovely Oled display! Would be nice to see if rpm oscillates on things as well! Very few meters can do that.
That's again is a wonderfull video. I like the DIY or BUY series. Over the past few years, I more often to go DIY. Not just because it's cheaper and I learn while building, but also because I can repair easily and recycle parts if I don't need the device any longer.
Thank you for all the fresh ideas.
My actual project is a weather station that saves the weather data to an NAS. So I have the complete history available and have at the same time a better accuarcy for temperature, humidity and rain quantity than I got from standard weather station. As a side effect I can easily display abolute air humidity or dew point, which is not available at normal weather stations.
I also plan to display a recommendation for room ventilation based on comparing temperature and (absolute) humidity.
The internal (display) part might be upgrated by an air quality sensor in the near future, which will improve the ventilation recommendation.
WOW, what a hugely impressive project! I continue to me amazed by your talent, and top of portraying everything in a really great and digestible way. =]
Your content is about very useful tools and stuff we can diy
Keep it up:)
One of the best videos of 2020
@GreatScott. Thank you for including the Entire Creative Process, including misadventures and commenters input. Makes for a more interesting and interactive experience for me. I use DC motors and motor controllers in the Mobility Industry and am drawn to invasive videos such as this. Thank you and your excellent commenters. Too bad I caught this one so late. I blame CZcams for poor notification.
Who else starts their Sunday morning with a cup of coffee and a slogan of " let's get started"?
Normally but I'm cranky today!! I forgot to buy coffee yesterday.
@@PerKroon coffeeless mornings is never a good thing 😭
Sorry not the age to drink coffee but soon I can taste it😁
More like coffee evenings in Germany
@@yxcvbnmmnbvcxy544realistically, it's a 24/7 affair 🤩
Gets me going at 8:00 a.m. keeps me up until 3:00 a.m. coffee coffee coffee!!!
When you building meter, you have to dealing with non-linearity, error rate, accuracy, precision, and more. It's a whole study case
thanks Scott.. Video very clear, complete, complex and so on... See you next video...
Really you did hard work, worthy to watch complete video . Excellent 👌
Excellent, great with great details there is no any misleading information.
I Just loved this project
Thanks for making it
Nice!!! I will make it!!!!! I love this projects. Good job mate 😉
Your Intro is awesome 😍
ganz ehrlich, jedes mal wenn ich dir bei schreiben zu gucke bin ich wieder aufs neue fasziniert wie du jedes aber auch jedesmal den selben strich triffst, eins wird sicher sein, du hast kein parkinson :D
Brilliant idea. Good lateral thinking!
sometimes I wish CZcams has a like button in full screen mode on my laptop. Nice video!
No way scott i was making one
This will be very helpfull!!!!!!!!
Tysm
Im using the same sensor for al kinds of counting stuff, quite accurate if you do you coding well, well worth the effords thumbs up for the video !
Clearly a WIN for DIY !
I like ur writing and explanation
Great project with really good explanation.
I'm so going watch all your videos today.
Forget about Marvel or Disney....thanks for great entertainment.
Homemade products are the best, greetings from Mexico
Thank you so much for this project i was looking for this thank you so much 💓😊
Thanks for this , I built it but was getting twice the rpm my scope said ! I have changed 120 in the code to 60 and now it works perfectly.
Thanks for a great project.
I am going to run it off of an 18650 a fuse instead of the charging board . On the occasions I want to use it I will put in a battery. This keeps costs down for something it will use now and again.
Hi, Scott. What is your thought on using the A3144 hall effect sensor module with a small neodymium magnet instead of the IR distance module?
Thank you! I’ve been needing a better tachometer for a while but I just don’t want to spend the money on one. I already have the components you used so I can make it right now.
Timer capture peripherals are awesome. I use them extensively.
I miss the good old days when great scott used to make prefboards with clean satisfying soldering
I wonder why didn't he choose a veroboard rather than an ordinary perfboard. I think veroboards are better for semi-prototype stuff since their traces resemble solderless breadboards...
@@rizalardiansyah4486 Nevertheless you can still get decent solder traces with prefboard too
Thank you. This will come in useful: I'm building a shaking water bath and needed a way to calibrate the shaking.
Nice job. Great project.
Wow Sir, Great project 👍🔥🔥
With the contact sensor you have to multiply the reading for the "gear ratio": calling 1 the shaft to misure and 2 the roller sensor, omega_1=omega_2*Radius_2/Radius_1
(Infact in your example the radius of the shaft are circa a half, like the rpm misured)
For me the contact method (if applied correctly) is the more precise as long as don't putting too much contact force or/and if the sensor itself have a lot of friction (could be a problem for low torque or very high rpm motor)
Next on DIY or Buy: The differential probe
Would be nice to see GreatScott attempt to build one :)
For contact RPM counter, it's preferable to use IR encoder for accurate measurement. In non contact Measurements many factors affect the accuracy: angle, light, stability of both (the tachometer and the rotor).
I used a Hall sensor to make my RPM counter it also works flawlessly
Thoroughly enjoyed this one :)
☆Awesome☆ You are a real pro!
Even for the laser measuring part, you still messed up, you are supposed to attach a wheel to the end of the shaft and use the flat side for color differentiation (like this ◐). Doing so will give an instantaneous signal change instead of a gradual one when you tape on the round shaft.
For some reason, your tachometer didn't come with some reflective tapes, these are like the ones on the trucks and provide better contrast.
@GreatScott! Amazing video as always :). I just have one doubt though. In your explanation, you are saying 60 / (rpmtime / 31250), whereas in the code, you are using 120 / (rpmtime / 31250).
Hey Scott. Great Video. How did you visualize the IR Light? With a smart phone camera? Which type you used exactly? Mine does not show it so clear (only very weak). Thanks and best regards, Chris
Back in my model airplane days some 20 years ago I used a Tower Hobbies optical tachometer to measure the prop speed of my glow engines. It could be set to read the speed of two or three-bladed props. Some of my engines could go as high as 25,000 RPM. I used to check its calibration by pointing it at a fluorescent light to read the line frequency. Seemed to be quite accurate so I never questioned the readings. The only mod I made was to fit a small flat-black painted tube made of cardboard over the sensor port to keep side-light from swamping the sensor, which only used reflected light - no laser. Oh, and I don't think I paid more than $20 for it back then.
I hope you read this. Please consider making a 3D printed 8th order bandpass speaker with a (hidden) 4.5 inch driver to 250-300Hz with port on same side as a 2.5 inch driver for the rest of frequency range and design a proper crossover for that design. We all learn about crossover eventually and now you can be authority and overcome previous mistake. We love your videos and your excellent efforts.
Inspector gadget awesomeness! Neat what can be measured with the audio and/or video editing software. Those methods alone might even be worth video? Excellent detail as always. Thanks for sharing!
Yeeeeeeeees next awesome video!
Just talk about the pens you use sometime.😂 hand writing is soooo smooth!!
Lookup stabilo pointer.
@@tokk3 Stabilo Point 88 :-)
@@greatscottlab I guessed so. Wasn't completely sure.
Quality German pens.
I use them too.
I think your video is great! I can tinker with Arduino. I draw with the elek. CAD and then I can order JLCPCB. Perfect! 👍😉😊
Nice video. When RPM is low switch from time per pulse to pulses per time. I once harvested IR LED pig-snout pairs (may have been just me that called them that) from VCR's for this. VCR's used them to monitor reel speed and designed more so the LEDs were hidden from each other. They seem rare these days.
I can't find the code
It's great, Scott!! Thanks a lot
Thanks for reverse engineering the circuit of the module! I used your schematics to figure out how to add hysteresis (Schmitt trigger) to the circuit: You can easily add positive feedback to the comparator by adding a resistor between the output and the non-inverting input.
I just soldered a 20k resistor between the OUT terminal and the anode of the Photodiode on the backside of the PCB.
I did this because I had problems with false interrupt triggering on an ESP32 using this module. Apparently the ESP32 external interrupts need a quite fast rise time to trigger reliably. It would have been interesting to see how noisy the rising and falling edges of the signal in your setup are by zooming in on the DSO.
The 20k might not work for all sensitivity settings of the trimmer pot. To change the hysteresis it might be a good idea to replace the resistor with another trimmer pot.
if (tooslow == 1)
> Quality code
rather:
if (tooSlow)
@@I33nc3 only if
int boolean tooslow;
@@Ev-wj3lm Pretty sure Arduino wouldn't mind, since it's basically C/++ and these languages let you do that
@@Multibe150 Thanks, I was about to comment the same.
@@Multibe150 thanks :) i'm kinda new to arduino...
Hey GreatScott!,
Congratulations on the project, it looks really neat and outperforms commercial equivalents! However, there is a small, 2px wide band of noise on the right side of your display. Its probably due to the display controller being a SH1106 - a "SSD1306-compatible" driver which has 132 px wide display RAM (contrary to SSD1306's 128 px). Most of the libraries and tutorials out there focus on the SSD1306. To fix it, either switch to SH1106 in the graphics library or just find the function which transmits the cursor address and add a permanent +2 term to the x coordinate. I had the same thing literally yesterday so I noticed it immediately.
MfG :)
I never thought that IR distance sensor was so fast and useful
nice project dude keep it up
WAS WAITING FOR IT
thanks for sharing the project
Great video as always
Thanks for sharing :-)
Yep...another project for me! Thank you!
use infrasound detector app from android playstore.
put IR receiver in headphone jack.
power IR emmiter by small button cell.
it works really well
Great video as always. Thanks
I had once made RPM counter with telly counter & Reed switch
Super cool vid!
great video as always ! :D
Excellent video keep it up .
It's surprising how many favorite CZcamsrs of mine are from Germany. I'd really like to visit there some day.
So basically you're using a digital counter in front of a shift register - pretty ingenious! The output display can be stabilized more by using a rolling average of the previous three measurements.
Thank goodness for this vid I can finally understand how to make a DIY anemometer
are you using a propeller for wind and this tachometer method to build it??
@@sayantanmaiti2513 either a prop or the three cup style
@@sayantanmaiti2513 and yes but I might still consider hall effect though
Buiz That’s a really good idea. I have a rural property and I’ve long wanted to be able to visualize changing winds and turbulence across a large area. The 3€ comparator part should it a lot easier to fabricate the ~25 anemometers that I’ve been hoping to set up. Wish me luck ;). PS: I wonder how high they should be mounted in order to reject most of the surface effects from the ground...
@@a1nelson I was planning to make mine a project for a government agency here where I have to dot a huge area with weather beacons and all of them will transmit back to the nearest office here via VHF Morse Code
wow, super erklärt. und diy ist schneller und preiswerter. danke mfg ralf
Just got mine to work : = )) Had to change the resistance pot some to get to start reading.
And I just ordered mine before seeing this video... :D but it's worth to try the DIY one.
I found using old IDE cables make running traces so much easier. You can make a ribbon as wide as you need. Bend it wherever you want. Lays flat.
DIY winner 😍😍😍
I AM WATCHING YOUR VIDEO FOR MORE THEN A YEAR.... BUT STILL DONT understand ELECTRONICS..... BUT i DONT MISS YOUR VIDEO
Great, I was having a plan to get a laser tachometer for my small cnc now I will build it. But the optical sensor can measure high speed rpm ? Like 8K rpm or more for the spindle
I wish my hand writing was like yours.
Danke für das Video!
An easy-to-implement software upgrade idea: You can measure slow speeds also by not counting the impulses per second (minute), but by measuring the elapsed time between impulses.
Learned a lot more in new video
Great Video.. do you have video for rotary incremental encoder or absolute encoder?
We use an adjustable stroboskope light. If the shaft seems like standing still you can calculate the rpm.
I bought a similar RPM counter 10 years ago. It came without any of the accessories. ("Digital Laser Tachometer with Pouch (2.5~99999.9RPM"). When I measured a 5400 RPM hard drive platter, the display read 5399 - 5400.
old stuff what prolly much higher quality
did it cost more?
Very nice idea👍👍
Big fan bro ❤️😀
I am from China and I like your video very much and I like it for you. I have also encountered the display problem on the right side of the OLED display because the library is not set up properly.
Pretty nice work, dude! Really well done! 😃
I'm going to build one of those for me as well!!! 😃
Anyway, stay safe and creative there! 🖖😊
use infrasound detector app from android. put IR receiver in headphone jack. power IR emmiter by small button cell.
it works really well.