Magnetic Angle Sensor Mods Make Encoder Better For Blasting

Most of the hacks we see around these parts have to do with taking existing components and cobbling them together in interesting new ways. It’s less often that we see existing components gutted and repurposed, but when it happens, like with this reimagined rotary encoder, it certainly grabs our attention.

You may recall [Chris G] from his recent laser-based Asteroids game. If not you should really check it out — the build was pretty sweet. One small problem with the build was in the controls, where the off-the-shelf rotary encoder he was using didn’t have nearly enough resolution for the job. Rather than choosing a commodity replacement part, [Chris] rolled his own from the mechanical parts of the original encoder, like the shaft and panel bushing, and an AS5048A sensor board. The magnetic angle sensor has 14 bits of resolution, and with a small neodymium ring magnet glued to the bottom of the original shaft, the modified encoder offers far greater resolution than the original contact-based encoder.

The sensor breakout board is just the right size for this job; all that [Chris] needed to do to get the two pieces together was to 3D-print a small adapter. We have to admit that when we first saw this on Hackaday.io, we failed to see what the hack was — the modified part looks pretty much like a run-of-the-mill encoder. The video below shows the design and build process with a little precision rock blasting.

Continue reading “Magnetic Angle Sensor Mods Make Encoder Better For Blasting”

Simple Sensor Makes Filament Measurements A Snap

Just how tight are the manufacturing tolerances of modern FDM printer filament. Inquiring minds want to know, and when such minds are attached to handy fellows like [Thomas Sanladerer], you end up with something like this home-brew filament measurement rig to gather the data you seek.

The heart of this build is not, as one might assume, some exotic laser device to measure the diameter of filament optically. Those exist, but they are expensive bits of kit that are best left to the manufacturers, who use them on their production lines to make sure filament meets their specs. Rather, [Thomas] used a very clever homemade device, which relies on a Hall effect sensor and a magnet on a lever to do the job. The lever is attached to a roller bearing that rides on the filament as it spools through the sensor; variations in diameter are amplified by the lever arm, which wiggles a magnet over the Hall sensor, resulting in a signal proportional to filament diameter.

The full test rig has a motor-driven feed and takeup spools, and three sensors measuring across the filament in three different spots around the radius; the measurements are averaged together to account for any small-scale irregularities. [Thomas] ran several different spools representing different manufacturers and materials through the machine; we won’t spoil the results in the video below, but suffice it to say you probably have little to worry about if you buy from a reputable vendor.

When we see a filament sensor, it’s generally more of the “there/not there” variety to prevent a printer from blindly carrying on once the reel is spent. We’ve seen a few of those before, but this is a neat twist on that concept.

Continue reading “Simple Sensor Makes Filament Measurements A Snap”

Implementing SENT Sensors On The Raspberry Pi

The SENT protocol, standing for Single Edge Nibble Transmission, is used for sensors that need to send high-resolution data while keeping system costs low. It’s most typically used in the automotive world, where it can be found in such parts as throttle-by-wire pedals and temperature sensors. [Mark Smith] set out to see if he could get the Pi Zero to read such sensors without the use of an intermediate microcontroller.

[Mark]’s initial attempts relied on Python and the RPI.GPIO library. Unfortunately, the overheads introduced made decoding SENT traffic impossible. Undeterred, [Mark] pressed on, leveraging the pigpio library and its callback function which allowed sampling at up to one microsecond. This was fast enough to read the messages from a LX3302A inductive position sensor that uses the protocol.

It’s a project that could prove useful for those trying to work with certain sensors who want to avoid adding complexity to a Raspberry Pi project. Files are available on Github for the curious. We’ve seen other direct sensor builds with the Pi, before too – like this power monitoring system. Video after the break.

Continue reading “Implementing SENT Sensors On The Raspberry Pi”

Pulse Oximetry Sensor Judges Your Coffee Roast

Breakout board for the MAX30101, which [Zach] used as the basis of his roast gauge. The sensor is at the top edge of the board.
Parts designed and marketed for a specific application can nevertheless still be useful in other ways, and whenever that happens, it’s probably the start of a pretty good hack. Using a sensor for something other than its intended purpose is exactly what [Zach Halvorson] did to make the Roast Vision device, which uses the MAX30101, a sealed optical sensor intended mainly for pulse oximetry and heart-rate monitoring.

[Zach] is instead using that sensor to measure the roast level of coffee beans, and assign a consistent number from 0 to 35 to represent everything from Very Dark to Very Light. Measuring a bean’s roast level is important to any roaster seeking accuracy and consistency, but when [Zach] found that commercial roast gauges could easily cost over a thousand dollars, he was sure he could do better.

[Zach] settled on using a Sparkfun MAX30101 breakout board to develop his device, and Sparkfun shared an informative blog post that demonstrates how making hardware and tools more accessible can help innovative ideas flourish. The Roast Vision device has a 3D printed enclosure, and a simple top-loading design with an integrated sample cup makes it easy to use. One simply puts about a teaspoon of finely-ground coffee into the sample cup, and the unit provides a measurement in a couple of seconds. Fortunately the sensor works just fine though an acrylic window which means the device can be sealed; a handy feature for a tool that will spend a lot of time around ground coffee.

The joys of fresh roasted coffee is something that is perfectly accessible to those making small batches at home. There are commercial options for small roasters of course, but should you wish to go the DIY route, check out our own Elliot Williams’ guide on making a low-cost DIY roaster.

Designing And Building A Custom Optical Fuel Sensor

At some time or another, we’ve all had an idea we thought was so clever that we jumped on the Internet to see if somebody else had already come up with it. Most of the time, they have. But on the off chance that you can’t find any signs of it online, you’re left with basically two possible conclusions. Either you’re about to enter uncharted territory, or your idea is so bad that everyone has collectively dismissed it already.

Which is precisely where [James Stanley] recently found himself. He had an idea for an non-contact optical sensor which would detect when his racing mower was about to run out of gas by analyzing light passed through a clear section of fuel hose. He couldn’t find any previous DIY examples of such a device, nor did there appear to be a commercial version. But did that mean it wouldn’t work, or that nobody had ever tried before?

Continue reading “Designing And Building A Custom Optical Fuel Sensor”

Current Sensor Makes Intriguing Use Of Concrete

Getting a product to market isn’t all about making sure that the product does what it’s supposed to. Granted, most of us will spend most of our time focusing on the functionality of our projects and less on the form, fit, or finish of the final product, especially for one-off builds that won’t get replicated. For those builds that do eventually leave the prototyping phase, though, a lot more effort goes into the final design and “feel” of the product than we might otherwise think. For example, this current sensor improves its feel by making use of cast concrete in its case.

The current sensor in this build is not too much out of the ordinary. [kevarek] built the sensor around the MCA1101-50-3 chip and added some extra features to improve its electrostatic discharge resistance and also to improve its electromagnetic compatibility over and above the recommended datasheet specifications. The custom case is where this one small detail popped out at us that we haven’t really seen much of before, though. [kevarek] mixed up a small batch of concrete to pour into the case simply because it feels better to have a weightier final product.

While he doesn’t mention building this current sensor to sell to a wider audience, this is exactly something that a final marketable product might have within itself to improve the way the device feels. Heavier things are associated, perhaps subconsciously, with higher quality, and since PCBs and plastic casings don’t weigh much on their own many manufacturers will add dummy weights to improve the relationship between weight and quality. Even though this modification is entirely separate from the function of the product, it’s not uncommon for small changes in design to have a measurable impact on performance, even when the original product remains unmodified.

Thanks to [Saabman] for the tip!

The Prusa I3 MK3S And A Tale Of Two Sensors

When the Prusa i3 MK3 was released in 2017, it was marketed as being “bloody smart” thanks to the impressive number of sensors that had been packed into the printer. The update wasn’t really about improving print quality over the MK2, but rather to make the machine easier to use and more reliable. There was a system for resuming prints that had stopped during a power outage, a thermometer so the firmware could compensate against thermal drift in the inductive bed sensor, RPM detection on all of the cooling fans, and advanced Trinamic stepper drivers that could detect when the printer had slipped or gotten stuck.

The optical filament sensor of the Prusa i3 MK3.

But the most exciting upgrade of all was the new filament sensor. Using an optical encoder similar to what you’d find in a mouse, the Prusa i3 MK3 could detect when filament had been inserted into the extruder. This allowed the firmware to pause the print if the filament had run out, a feature that before this point was largely unheard of on consumer-grade desktop 3D printers. More than that, the optical encoder could also detect whether or not the filament was actually moving through the extruder.

In theory, this meant the MK3 could sense problems such as a jammed extruder or a tangle in the filament path that was keeping the spool from unrolling. Any other consumer 3D printer on the market would simply continue merrily along, not realizing that it wasn’t actually extruding any plastic. But the MK3 would be able to see that the filament had stalled and alert the user. The capabilities of the optical filament sensor represented a minor revolution in desktop 3D printing, and combined with the rest of the instrumentation in the MK3, promised to all but eradicate the heartbreak of failed prints.

Fast forward to February of 2019, and the announcement of the Prusa i3 MK3S. This relatively minor refresh of the printer collected up all the incremental tweaks that had been made during the production of the MK3, and didn’t really add any new features. Though it did delete one: the MK3S removed the optical encoder sensor used in the MK3, and with it the ability to sense filament movement. Users would have to decide if keeping the ability to detect clogs and tangles was worth giving up all of the other improvements offered by the update.

But why? What happened in those three years that made Prusa Research decide to abandon what promised to be a huge usability improvement for their flagship product? The answer is an interesting look at how even the cleverest of engineering solutions don’t always work as expected in the real-world.

Continue reading “The Prusa I3 MK3S And A Tale Of Two Sensors”