3D Printed Absolute Encoder Is Absolutely Wonderful

When you need to record the angle of something rotating, whether it’s a knob or a joint in a robotic arm, absolute rotary encoders are almost always the way to go. They’re cheap, they’re readily available, and it turns out you can make a pretty fantastic one out of a magnetic sensor, a zip tie, and a skateboard bearing.

When [Scott Bezek] got his hands on a AS5600 magnet sensor breakout board, that’s just what he did. The sensor itself is an IC situated in the middle of the board, which in Scott’s design sits on a 3D-printed carrier. A bearing mount sits atop it, which holds — you guessed it — a bearing. Specifically a standard 608 skateboard bearing, which is snapped into the mount and held securely by a zip tie cinched around the mount’s tabs. The final part is a 3D-printed knob with a tiny magnet embedded within, perpendicular to the axis of rotation. The knob slides into the bearing and the AS5600 reads the orientation of the magnet.

Of course, if you just wanted a rotary knob you could have just purchased an encoder and been done with it, but this method has its advantages. Maybe you can’t fit a commercially-available encoder in your design. Maybe you need the super-smooth rotation provided by the bearing. Or maybe you’re actually building that robotic arm — custom magnetic encoders like this one are extremely common in actuator design, and while the more industrial versions (usually) have fewer zip ties, [Scott]’s design would fit right in.

Continue reading “3D Printed Absolute Encoder Is Absolutely Wonderful”

This Week In Security: KNOB, Old Scams Are New Again, 0-days, Backdoors, And More

Bluetooth is a great protocol. You can listen to music, transfer files, get on the internet, and more. A side effect of those many uses is that the specification is complicated and intended to cover many use cases. A team of researchers took a look at the Bluetooth specification, and discovered a problem they call the KNOB attack, Key Negotiation Of Bluetooth.

This is actually one of the simpler vulnerabilities to understand. Randomly generated keys are only as good as the entropy that goes into the key generation. The Bluetooth specification allows negotiating how many bytes of entropy is used in generating the shared session key. By necessity, this negotiation happens before the communication is encrypted. The real weakness here is that the specification lists a minimum entropy of 1 byte. This means 256 possible initial states, far within the realm of brute-forcing in real time.

The attack, then, is to essentially man-in-the-middle the beginning of a Bluetooth connection, and force that entropy length to a single byte. That’s essentially it. From there, a bit of brute forcing results in the Bluetooth session key, giving the attacker complete access to the encrypted stream.

One last note, this isn’t an implementation vulnerability, it’s a specification vulnerability. If your device properly implements the Bluetooth protocol, it’s vulnerable.

CenturyLink Unlinked

You may not be familiar with CenturyLink, but it maintains one of the backbone fiber networks serving telephone and internet connectivity. On December 2018, CenturyLink had a large outage affecting its fiber network, most notable disrupting 911 services for many across the United States for 37 hours. The incident report was released on Monday, and it’s… interesting.
Continue reading “This Week In Security: KNOB, Old Scams Are New Again, 0-days, Backdoors, And More”

A Macro Keyboard In A Micro Package

Remember back in the early-to-mid 2000s when pretty much every cheap USB keyboard you could find started including an abundance of media keys in its layout? Nowadays, especially if you have a customized or reduced-sized mechanical keyboard, those are nowhere to be seen. Whenever our modern selves need those extra keys, we have to turn to external peripherals, and [Gary’s] Knobo is one that looks like it could’ve come straight out of a fancy retail package.

The Knobo is a small macro keypad with 8 mechanical Cherry-style keys and a clickable rotary encoder knob as its main feature. Each key and knob gesture can be customized to any macro, and with five gestures possible with the knob, that gives you a total of thirteen inputs. On top of that, the build and presentation look so sleek and clean we’d swear this was a product straight off of Teenage Engineering’s money-printing machine.

The actions you can do with those inputs range from simple media controls with a volume knob all the way to shortcuts to make a Photoshop artist’s life easier. Right now you can only reprogram the Knobo’s Arduino-based firmware with an In-Circuit Serial Programmer to change what the inputs do, but [Gary] is currently working on configuration software so that users without any programming knowledge will be able to customize it too.

Knobs are just one of those things that everyone wants to use to control their computers, much like giant red buttons. Alternative input devices can range from accessibility-designed to just downright playful. Whatever the inspiration is for them, it’s always nice to see the creativity of these projects.

Continue reading “A Macro Keyboard In A Micro Package”

Cloning Knobs For Vintage Testing Equipment

Knobs! Shiny candy-colored knobs! The last stand of skeuomorphism is smart light switches! Everyone loves knobs, but when you’re dealing with vintage equipment with a missing knob, the odds of replacing it are slim to none. That’s what happened to [Wesley Treat] when he picked up a vintage Philco tube tester. The tester looked great, but a single knob for a rotary switch was missing. What to do? Clone some knobs! You only need some resin and a little bit of silicone.

The process of copying little bits of plastic or bakelite is fairly standard and well-tread territory. Go to Michaels or Hobby Lobby, grab some silicone and resin, make a box, put your parts down, cover them in silicone, remove the parts, then put resin in. For simple parts, and parts with flat bottoms like knobs, this works great. However, there’s something weird about the knob on this old Philco tube tester. Firstly, it doesn’t fit a standard 1/4″ shaft — it’s a bit bigger. There’s also no set screw. Instead, this knob has a stamped spring aligning it with the flat part of the D-shaft in this rotary switch. This means a copy of this knob wouldn’t be useful to anyone else, and that no other knob would work with this tube tester.

However, a bit of clever engineering would make a copy of this knob fit the existing switch. Once the resin was cured, [Wesley] drilled out the hole, then sanded a dowel down to fit into the flat of the D-shaft. It took a little kergiggering, but the knob eventually fit onto one of the rotary switches. Not bad for a few bucks in silicone and resin.

You can check out the entire build process below.

Continue reading “Cloning Knobs For Vintage Testing Equipment”

Indexing Chuck Not Required

Becoming accomplished with a lathe is a powerful skillset, but it’s only half of the journey. Being clever comes later, and it’s the second part of the course. Patience is in there somewhere too, but let’s focus on being clever. [TimNummy] wants a knobbed bolt with critical parameters, so he makes his own. After the break, there is a sixty-second summary of the linked video.

Making stock hardware is a beginner’s tasks, so custom hardware requires ingenuity or expensive machinery. Adding finger notches to a bolthead is arbitrary with an indexing chuck, but one isn’t available. Instead, hex stock becomes a jig, and the flat sides are utilized to hold the workpiece at six intermittent angles. We can’t argue with the results which look like a part that would cost a pretty penny.

Using material found in the workshop is what being clever is all about. Hex brass stock comes with tight tolerances on the sides and angles so why not take advantage of that?

[TimNummy] can be seen on HaD for his Jeep dome light hack and an over-engineered mailbox flag. Did you miss [Quinn Dunki]’s piece on bootstrapping precision machine tools? Go check that out!

Continue reading “Indexing Chuck Not Required”

Making A Shifter Knob From Old Skateboards

Do you have a car? Does that car have a manual transmission? Do you want to beautify your shifter knob, while simultaneously gaining mad street cred, yo? Well, you’re in luck, because all of that can be done for the low, low price of a couple old skateboard decks, a lathe, and a lot of glue.

This project, from [basiltab] illustrates how you can use old skateboard decks to create really cool looking custom shifter knobs. The process starts with cutting the decks up into uniform strips, which are then glued and clamped to form small planks. Sections of the decks were alternated, to create a visually interesting pattern. The planks are then sanded so that they’re smooth and flat, and then glued up in a jig to form blocks with a threaded aluminum insert in the center. Optionally, aluminum can be used for some of the layers to add a little flair (2-part epoxy was used in place of glue for the aluminum).

After the glue has dried, the blocks can then be turned on a lathe to create the desired shape of the knob. As you can see, the results are pretty darn nifty. And, they certainly have a little more artistic credibility than the giant acrylic shifter knobs you normally find at your local auto parts store. Don’t worry, if you thought this article was about shift registers, we’ve got you covered there too.

Simple Machining Process Repairs Broken Control Knob

[Francisco] is helping his mother with a repair to the headlight knob on her Ford Ranger. Above you can see the broken knob on the left, and what it is supposed to look like on the right (taken from [Francisco’s] own vehicle for reference). We’ve encountered split shafts on plastic knobs before and decided it was not something that could be fixed. But he didn’t give up so easily. He mentions that you can purchase a replacement for a few bucks, but he has the means to repair the knob by machining a metal bushing.

The idea is that you mill a metal ring whose inner diameter matches what the outer diameter of the plastic shaft should be. By inserting the broken knob in the ring, the plastic is held tightly together as if it had never broken. In the video after the break [Francisco] uses a metal pencil body from his junk box and a mini-lathe to cut the bushing to length, and mill the inner diameter to his specifications.

He talks about the difficulty of getting replacement parts in Chile, where he lives. But we think this kind of thrift is a great example for all hackers. If you’ve got the tools why not use them? And if you don’t have them, here’s a great excuse to procure them!

Continue reading “Simple Machining Process Repairs Broken Control Knob”