Thanks Tony, for sharing this very well presented, very informative and useful project. You do make it look a lot less scary for us electrical novices who most times just end up making expensive smoke.
Printable View
Thanks Tony, for sharing this very well presented, very informative and useful project. You do make it look a lot less scary for us electrical novices who most times just end up making expensive smoke.
So after a few false starts and many distractions, I finally built myself a version of Tony's Leeb hardness tester. I deviated just slightly from his initial approach in that rather than using individual phototransistors and LED sources paired with the LM393 comparator, I purchased some premade slot photosensors (I think Tony mentions this as a possibility but did not have any on hand) that came mounted to a small PCB that includes a Schmidt trigger right on the board. So I only needed to supply them with 5Vdc and I get a nicely squared output. I think it cost about $8US for 5 of them from amazon. They were almost ideal sized for straddling the stainless tube I used. They ended up mounted like this:
Attachment 50225
My son-in-law 3D printed this housing for me, it is a snug press fit onto the end of the part that the sensors are mounted on and protects the PC boards and wires nicely.
Attachment 50226
The electronics were put into the repurposed enclosure that used to hold some sort of barcode scanner interface that I intercepted before it hit the landfill. I used an Arduino Pro Nano as it takes up so little space and I had a few around. It power a USB cable so I can power it using either an AC USB charger/adapter or the small blue USB "power bank" you see in the picture for portable use. The double coupling in the drop tube allows me to take the tube down into two pieces for easier storage.
Attachment 50227
I use this all with a 1/4" steel ball. So far I seem to get pretty repeatable and reasonable results from it. I am working on getting a few sample steel pieces in various states of hardness that I hope to have tested on a calibrated Rockwell or other tester. That will give me some known values to compare against. In the meantime, I have every reason to believe that the results are plenty good for my, admittedly low spec, applications.
Thanks for all the work you did on this Tony and thanks especially for the through presntation on the theory and "how to do it" info you shared.
Great to see that you found my original post useful.
You may recall that in my PDF I stated that polling gave better results than using interrupts. For projects since I made the hardness tester I have used ESP32 boards in place of Arduinos. ESP32 is like an Arduino on steroids, they are many times faster. So if I was doing this project today I would try using interrupts on an ESP32 in place of polling on a Nano.
There's also the LGT8F328P boards. I rather like them, small, 4x faster than regular Nano, and CHEAP. I use the LArduinoISP programming pod for those with the Arduino IDE.
Attachment 50228
Ready made pod tiny, but you can also just program a Nano or something to work the same.
Attachment 50229
I think combining this with PIC Projects - frequency dividers, timers might make it simpler
Brian
I have trouble seeing how this would make it simpler. Everybody has their own favourite chip, micro controller or micro computer, but one man's favourite is unlikely to be everyman's favourite. This is just a simple timing project. The timing accuracy of an Arduino Nano may be inferior to the PICs that you suggest but that is unimportant. The accuracy of the results in this case are compromised more by the core assumptions behind the rebound method of testing than the timing.
<!-- BEGIN /var/www/html/homemadetools/protected/modules/zeus/views/tool/postUpdate.php -->
Thanks clavius! We've added your Hardness Tester to our Testers category,
as well as to your builder page: clavius's Homemade Tools. Your receipt:
<div id="blocks"> <div class="block b1 pngfix"> <div class="bimg"> <div> <a href="https://www.homemadetools.net/homemade-hardness-tester-4"> <img src="/uploads/276820/homemade-hardness-tester-4.jpeg"/> </a> </div> </div> <div class="head pngfix"></div> <div class="left pngfix"></div> <div class="right pngfix"></div> <div class="blockover b1 pngfix"> <div class="title"> <a href="https://www.homemadetools.net/homemade-hardness-tester-4">Hardness Tester</a> <span> by <a href="https://www.homemadetools.net/builder/clavius">clavius</a></span> </div> <div class="tags">tags: <a href='https://www.homemadetools.net/tag/tester'>tester</a>, <a href='https://www.homemadetools.net/tag/electronics'>electronics</a> </div> </div> </div> </div>
<!-- END /var/www/html/homemadetools/protected/modules/zeus/views/tool/postUpdate.php -->
I cannot comment on the physics of the test itself having not looked at that. However getting timing measurements in software is notoriously difficult, especially if the processor in question is busy doing other things. The PIC project pointed to is from a bunch of fellows in the timenuts interest group, ones that drive atomic clocks up mountains to confirm Einstein kinda crazy. I think I would run with it as an off board source and leave whatever else you want to do on the main processor of your choice, helps reduce any error from this part of the measurement. My opinion, take or leave it.