A Clear Guide For A Low-Profile Bespoke Keyboard

At the risk of stepping on our fantastic Keebin with Kristina series, a beautiful tutorial by [Ben Vallack] details how to create a custom low-profile keyboard in great detail.

We’ve covered complete guides to building your own and projects making custom rubber dome keyboards. In addition, several subreddits exist around custom keyboard builds and dozens of websites are dedicated to selling parts. So why add not add one more guide, especially on as well done as [Ben’s]?

[Ben] focuses on the high-level tooling and the methodology of laying out a keyboard and how it all comes together. It all starts with determining your specific hand shape and layout with Ergopad. With that shape taken care of, you can move onto Ergogen, which allows you to take the layout you have in mind and generate a KiCAD board layout that just needs to be routed. Flippable boards, various footprints for switches, and connecting up different microcontrollers are all supported.

Once you have your PCB in hand, [Ben] walks you through soldering the sockets on the back and setting up your board firmware in ZMK with Github Actions. It’s a slick guide with a nifty product at the end. Video after the break.

Continue reading “A Clear Guide For A Low-Profile Bespoke Keyboard”

OpenGL In 500 Lines (Sort Of…)

How difficult is OpenGL? How difficult can it be if you can build a basic renderer in 500 lines of code? That’s what [Dmitry] did as part of a series of tiny applications. The renderer is part of a course and the line limit is to allow students to build their own rendering software. [Dmitry] feels that you can’t write efficient code for things like OpenGL without understanding how they work first.

For educational purposes, the system uses few external dependencies. Students get a class that can work with TGA format files and a way to set the color of one pixel. The rest of the renderer is up to the student guided by nine lessons ranging from Bresenham’s algorithm to ambient occlusion. One of the last lessons switches gears to OpenGL so you can see how it all applies.

Continue reading “OpenGL In 500 Lines (Sort Of…)”

Cheap Spot Welder Teardown

It used to be hard to dump enough electricity through two pieces of metal to meld them together. But a lithium-ion battery can do it. The question is, should it? [The Signal Path] takes a cheap battery-based spot welder apart to see what’s inside and tries to answer that question. You can see the teardown in the video below.

The cheap welder has some obvious safety problems so the first thing was to trim down some wires and also retinning some of the PCB traces to ensure they are the lowest possible resistance. Of course, the less resistance in the wiring, the more current is available for welding.

Continue reading “Cheap Spot Welder Teardown”

Tired Of 3D Printed Skirts? Try Kisses

One popular option when 3D printing is to have the printer draw a loop or two around the print before starting. This serves several purposes: it clears the print head for one thing. It also marks the area of the print bed in use and many people use it to adjust the leveling if necessary. However, the little scraps of plastic do add up. [Makers Mashup] decided to try something different and now uses what he dubs the landing strip and kisses method.

The landing strip turns out to be a piece of blue tape and the kiss in question is like the chocolate kind and does not involve pressing your lips against the nozzle. There’s a wizard that generates startup code for you that has the style of purge if you like.

Continue reading “Tired Of 3D Printed Skirts? Try Kisses”

triggered spark gap

Spark Plug And Plumbing Parts Bring Nitrogen Laser Under Control

When it comes to high-speed, high-voltage switching, there are a wealth of components to choose from — MOSFETS, thyristors, IGBTs, and even vacuum tubes like thyratrons. But who needs all that expensive silicon (or glass) when all you need to build a high-voltage switch is some plumbing fixtures and a lathe?

At least that’s the approach that budget-minded laser experimenter [Les Wright] took with his latest triggered spark gap build. We’ve been watching his work for a while now, especially his transversely excited atmospheric (TEA) lasers. These are conceptually simple lasers that seem easy to build, at least compared to other lasers. But they do require a rapid pulse of high voltage across their long parallel electrodes to lase, and controlling the pulse is where this triggered spark gap shines.

The spark gap is made from brass plumbing fittings on either end of a short PVC coupler. [Les] used his lathe to put a thread into one of the caps to accept a spark plug, the center electrode of which pokes through a small hole in the metal cathode. To trigger the spark gap, [Les] built a trigger generator that outputs about 15,000 volts, which arcs from the spark plug electrode to the spark gap cathode in the low-pressure nitrogen environment. Little spark leads to big spark, big spark discharges a capacitor across the laser electrodes, and you’ve got a controlled single-shot laser. Check it out in the video below.

Honestly, the more we see of [Les]’ videos, the more we want to play with lasers and high voltage. From DIY doorknob caps to blasting Bayer arrays off cheap CCD cameras, there’s always something fun — and slightly dangerous — going on in [Les]’s lab.

Continue reading “Spark Plug And Plumbing Parts Bring Nitrogen Laser Under Control”

Our Favorite Things: Binary Search

You might not think that it would be possible to have a favorite optimization algorithm, but I do. And if you’re well-versed in the mathematical art of hill climbing, you might be surprised that my choice doesn’t even involve taking any derivatives. That’s not to say that I don’t love Newton’s method, because I do, but it’s just not as widely applicable as the good old binary search. And this is definitely a tool you should have in your toolbox, too.

Those of you out there who slept through calculus class probably already have drooping eyelids, so I’ll give you a real-world binary search example. Suppose you’re cropping an image for publication on Hackaday. To find the best width for the particular image, you start off with a crop that’s too thin and one that’s too wide. Start with an initial guess that’s halfway between the edges. If this first guess is too wide, you split the difference again between the current guess and the thinnest width. Updated to this new guess, you split the differences again.

But let’s make this even more concrete: an image that’s 1200 pixels wide. It can’t get wider than 1200 or thinner than 0. So our first guess is 600. That’s too thin, so we guess 900 — halfway between 600 and the upper limit of 1200. That ends up too wide, so we next guess 750, halfway between 600 and 900. A couple more iterations get us to 675, then 638, and then finally 619. In this case, we got down to the pixel level pretty darn fast, and we’re done. In general, you can stop when you’re happy, or have reached any precision goal.

[Ed note: I messed up the math when writing this, which is silly. But also brought out the point that I usually round the 50% mark when doing the math in my head, and as long as you’re close, it’s good enough.]

What’s fantastic about binary search is how little it demands of you. Unlike fancier optimization methods, you don’t need any derivatives. Heck, you don’t even really need to evaluate the function any more precisely than “too little, too much”, and that’s really helpful for the kind of Goldilocks-y photograph cropping example above, but it’s also extremely useful in the digital world as well. Comparators make exactly these kinds of decisions in the analog voltage world, and you’ve probably noticed the word “binary” in binary search. But binary search isn’t just useful inside silicon. Continue reading “Our Favorite Things: Binary Search”

Eight RS232 Ports, One Ethernet Port

When it comes to impromptu enclosures, [Paul Wallace] is a man after our own hearts, for his serial-to-Ethernet converters allowing him to control older test equipment were housed in takeaway curry containers. Once the test equipment pile had grown it became obvious that a pile of curry containers was a bit unwieldy, even if the curry had been enjoyable, so he set about creating an all-in-one multiway serial to Ethernet box.

Reminiscent of the serial terminal access controllers that were found in dumb terminal sites back in the day, it’s a box with eight DB-9 connectors for serial ports and a single RJ45 Ethernet port. Inside is a Teensy 4.1 which packs a PHY and eight hardware serial ports, and a pile of MAX232 level converter modules. These have a small modification to wire in the CTS and RTS lines, and the whole is clothed in a custom 3D printed case.

The result is a very neat, almost commercial standard box that should save him quite a bit of space. Not everyone has eight devices to drive, so if you have just one how about using an ESP8266?