There’s More To Designing A PCB Business Card Than Meets The Eye
By Jenny List
A curious custom that survives from the pre-computer era is that of the business card. If you walk the halls at a trade event you’ll come a way with a stack of these, each bearing the contact details of someone you’ve encountered, and each in a world of social media and online contact destined to languish in some dusty corner of your desk. In the 21st century, when electronic contacts harvested by a mobile phone have the sticking power, how can a piece of card with its roots in a bygone era hope to compete?
It’s a question [Anthony Kouttron] has addressed in the design of his thoroughly modern business card, and along the way he’s treated us to an interesting narrative on how to make the card both useful beyond mere contact details as well as delivering that electronic contact. The resulting card has an array of rulers and footprints as an electronic designer’s aid, as well as an NFC antenna and chip that lights an LED and delivers his website address when scanned. There are some small compromises such as PCB pads under the NFC antenna, but as he explains in the video below, they aren’t enough to stop it working. He’s put his work in a GitHub repository, should you wish to do something similar.
A Foolproof Raspberry Pi Media Player
By Lewin Day
The media landscape in the home has changed precipitously over the years. Back in the days when torrents were king, DVD players and TVs started to sprout USB ports and various methods of playing digital videos, while hackers repurposed office machines and consoles into dedicated media boxes. [Roiy Zysman] is a fan of a clean, no-fuss approach, so built his PiVidBox along those lines.
The build, unsurprisingly, starts with a Raspberry Pi. Cheap, capable of playing most common codecs, and fitted with an HDMI port as standard, it’s a perfect platform for the job. Rather than fiddle with complex interfaces or media apps, instead, the PiVidBox uses a simple script. The Pi is configured to continually scan the /media folder for mounted devices, and play any videos it comes across. Simply pop in an SD card or USB drive, and the content starts rolling. No buttons, remotes, or keyboards needed!
It’s a interface without much flexibility, but it makes up for that in barebones simplicity. We can imagine it would come in handy for a conference room or other situation where users grow tired of messing around with configurations to get screens to work. The Raspberry Pi makes a rather excellent basis for a media player build, and we’ve seen some stunning examples in the past!
The method involves training a Convolutional Neural Network (CNN) on a large batch of photos, which have been converted to the Lab colorspace. In this colorspace, images are made up of 3 channels – lightness, a (red-green), and b (blue-yellow). This colorspace is used as it better corresponds to the nature of the human visual system than RGB. The model is then trained such that when given a lightness channel as an input, it can predict the likely a & b channels. These can then be recombined into a colorized image, and converted back to RGB for human consumption.
It’s a technique capable of doing a decent job on a wide variety of material. Things such as grass, countryside, and ocean are particularly well dealt with, however more complicated scenes can suffer from some aberration. Regardless, it’s a useful technique, and far less tedious than manual methods.
The aim was to create a keyboard well suited to working without a mouse, and with a keypad on the opposite side to suit a left-hander’s predilections. The case consists of an aluminium top plate with an attractive walnut base, both cut on a Workbee CNC machine. Keycaps are sourced from YDMK and Amazon, with the parts chosen giving the build a striking early 1980s workstation look.
The keys are handwired to a series of DuPont connectors for easy disassembly. These hook up to an Elite-C controller, a USB-C remix of the popular Arduino Pro Micro. Based on the ATmega32U4, it’s got native USB HID functionality, making it perfect for keyboard builds.
The fit and finish is what really makes this project, going to show that a few hours well spent on the CNC can turn you out a beautiful project. As far as mechanical keyboards go, your imagination really is the limit!
A Mechanical Shutter Release For A Digital Camera
By Lewin Day
Most digital cameras these days come with some kind of electronic remote shutter release. Various solutions exist, using USB cables, smartphone apps, or dedicated remotes. [Steloherd] wasn’t happy with the options available for his Ricoh GRII, though, so built a rig to do things the old fashioned way.
[Steloherd] wanted to use an old-school mechanical release cable, so devised a way to use it to trigger the Ricoh’s standard shutter button. A small aluminium bracket was created, attached to the hot shoe on top of the camera via a mounting foot from a standard flash accessory. A spring plate was then created to help spread the load from the mechanical release pin, ensuring it triggers the camera effectively without damaging anything.
Installing the mechanical release proved difficult, as the DIN standard calls for an obscure M3.4 conical tapped thread. Rather than muck about finding rare tooling, [Steloherd] simply recut the thread on the release cable to a straight M3x0.5, and did the same for the bracket.
Overall, it’s a tidy hack, and one that could be adapted to other cameras fairly easily. Other methods we’ve seen involve such odd choices as linear actuators harvested from air fresheners, if you’d believe it. As always, if it works, it works!
This RGB Tree Has its Roots in a PCB
By Gerrit Coetzee
[Paczkaexpress]’s RGB tree is a mix of clever building techniques and artistic form that come together into quite a beautiful sculpture.
The branches of his tree are made from strands of enameled copper wire capped with an RGB LED and terminated in a female header. The separate wires are all wound and sculpted into the form of a tree. The wire is covered in a very thin layer of plastic, which we highly recommend observing under a microscope, that allow it to maintain a uniform and reflective copper color without shorting, adding to the effect.
The part we found an especially pleasing mix of form and function was how the “roots” of the tree clicked home in the PCB base. The PCB holds the STM32, power components, and an LED Driver. It doesn’t hide how the magic works, and the tree really does get its nutrients from the soil it’s planted in. This would be a fun kit to build. Very clever and you can see the final effect after the break.
A Newbie Takes the SMD Challenge at Supercon
By Dan Maloney
First-time visitors to Disneyworld often naively think they’re going to “do” the park in three days: one day for the Magic Kingdom, one day for Epcot, and one day for everything else. It’s easy to spot such people, collapsed on a bench or dragging exhausted kids around while trying to make their way to the next must-see attraction. Supercon is something like that — a Disney-esque theme park for hackers that will exhaust you if you don’t have a plan, and if you don’t set reasonable expectations. Which is why I was glad that I set only one real goal for my first Supercon: take the SMD Soldering Challenge.
Now, while I’m pretty handy with a soldering iron, I was under no illusion that I would be at all competitive. All my soldering experience has been with through-hole components, and while I also used to doing some production soldering on fine-pitch connectors, the whole surface-mount thing is new to me. I entered mainly because I wanted to see what was possible coming in raw. At best I’d learn what my limits are, and at worst I’d fail spectacularly and provide grist for a “Fail of the Supercon” post. It’s a win either way.
Scoping It Out
I decided to get the challenge out of the way as quickly as possible, so I started sharking around the table early in the afternoon on Friday. As he did last year, Al Williams was running the station. I signed up for the 4:30 heat and hung around a bit to get enough of an idea of what to do to not embarrass myself. It looked like everything was laid out really well. Each station had a good quality soldering station, a lighted magnifier, a few hand tools like flush cutters, pliers, and the all-important tweezers, and a roll of fine solder. There were a bunch of shared tools and supplies too, like desoldering braid, solder suckers, flux pens, and an LED tester. I watched enough of the action to get an idea of the workflow.
When it came time for my heat, I settled into my station and got things squared away. They thoughtfully provided magnifier hoods so that those of us with older eye could partake, and I got mine set up just the way I like it. The rules are simple: you get five minutes to open your kit and scan for missing parts, and to ask any questions you might have. After that, it’s 35 minutes to solder up everything, and each board is graded on function, neatness, and time.
The kit is a simple blinky, powered by a coin cell with an ATtiny85 driving five LEDs. The current limiting resistors and LED footprints start at 1206 and go down to a ridiculous 0201. When I opened mine, I knew the toughest part wouldn’t be the soldering itself, it would be getting the components free from their carriers. The components were helpfully segregated by size but taped down to a piece of paper. Adhesive tape and I are old enemies, so I knew there’d be trouble.
A Man With a Plan
I worked out a quick strategy: tape the PCB down and start with the largest components. I’ve watched enough soldering videos on YouTube to know that flux is your friend, so I got busy with the flux pen. I added a dab of solder to one of the ATtiny85 pads and tacked that in place. It’s about this time that I noticed the soldering iron tip was not exactly ideal — a chisel point — which looked massive even next to the fine pins on the SOIC package. I was surprised by how easily the chip soldered down, likely more a testimony to the ample use of flux and the good quality solder masking on the PCB.
I decided to get the cap and the first resistor and LED soldered down to make sure I had the polarity right. I assumed that the blinky would blink even if only partially assembled, an assumption borne out once I soldered down the coin cell holder (upside down, d’oh!) and slipped the battery in. My earlier fear that getting access to the components would be the bottleneck were well-founded; just getting the cover tapes peeled off the carriers was a tedious, time-consuming job. But I kept going with the next size down, the 0805s, without much trouble.
Just about then, someone called time, only about 8 minutes in. Oh perfect, I thought – I’m not even a third of the way done. But as I said, I wasn’t trying to be competitive, so I shrugged it off and kept going. The 0603s were a little tougher, but I still managed to get them soldered down. I found the LEDs to be the most challenging; figuring out the polarity was tough with the smaller sizes. The wheels finally fell off for me with the 0402s. I managed to get the resistor on, and the LED, but I must have reversed the polarity because the LED wouldn’t light. I tried unsoldering it and reversing it, but all I managed to do was turn it into a molten blob. I called it at 33 minutes, and Al generous scored me a 3.25 out of a possible 5.
Records for the SMD Challenge have been falling all weekend. The winner last year put in an amazing 16 minute time. This year, Fred T. set the record with a mind-boggling time of 6:45! Contributing Editor Tom Nardi was watching that heat, and said, “The guy looked like he was just vibrating!” And the quality was top notch — it certainly looks hand-soldered rather than reflowed, but amazing nonetheless.
All in all, I really enjoyed taking the SMD Challenge. I learned a ton, and I feel like I added another skill to my repertoire. I’ve got several designs in the works that I was planning on making through-hole simply because I hadn’t taken the leap into SMD yet. Now that I have, I’ll have to rework the design and join the cool kids on the surface-mount side of the street.
Used EDM Electrodes Repurposed as Air Bearings for Precision Machine Tools
By Dan Maloney
If you’ve ever played air hockey, you know how the tiny jets of air shooting up from the pinholes in the playing surface reduce friction with the puck. But what if you turned that upside down? What if the puck had holes that shot the air downward? We’re not sure how the gameplay would be on such an inverse air hockey table, but [Dave Preiss] has made DIY air bearings from such a setup, and they’re pretty impressive.
Air bearings are often found in ultra-precision machine tools where nanometer-scale positioning is needed. Such gear is often breathtakingly expensive, but [Dave]’s version of the bearings used in these machines are surprisingly cheap. The working surfaces are made from slugs of porous graphite, originally used as electrodes for electrical discharge machining (EDM). The material is easily flattened with abrasives against a reference granite plate, after which it’s pressed into a 3D-printed plastic plenum. The plenum accepts a fitting for compressed air, which wends its way out the micron-sized pores in the graphite and supports the load on a thin cushion of air. In addition to puck-style planar bearings, [Dave] tried his hand at a rotary bearing, arguably more useful to precision machine tool builds. That proved to be a bit more challenging, but the video below shows that he was able to get it working pretty well.
We really enjoyed learning about air bearings from [Dave]’s experiments, and we look forward to seeing them put to use. Perhaps it will be in something like the micron-precision lathe we featured recently.
Optical Keyboards Have Us Examining Typing at Light Speed-ish
By Bob Baddeley
There’s a newish development in the world of keyboards; the optical switch. It’s been around for a couple years in desktop keyboards, and recently became available on a laptop keyboard as well. These are not replacements for your standard $7 keyboard with rubber membrane switches intended for puttering around on your raspberry pi. Their goal is the gamer market.
The question, though, is are these the equivalent of Monster Cables for audiophiles: overpriced status symbols? Betteridge would be proud; the short answer is that no, there is a legitimate advantage, and for certain types of use, it makes a lot of sense.
We delved into this topic a bit before. Keyboards come in a variety of flavors, with the cheapest being membrane/rubber dome switches. These rely on a rubber dome that provides the spring force, and a small conductive pad on the underside of the dome makes contact with the PCB/membrane when pressed, connecting two traces. There’s no travel after the actuation; you press until the contact is made and you can press no further. Rubber dome switches are rated for about 5 million keystrokes.
Mechanical switches are the next step up. These have a spring that pushes the key up, and the key presses two metal strips together, but in such a way that contact is made before the travel is complete, so it’s possible to ride the key on the edge and press more rapidly. Of course, when writing a Hackaday article, this doesn’t matter, but when destroying your enemies with rapid fire in the comments section of a Hackaday article, it’s critical. These kinds of switches are rated for 20-50 million keystrokes. The keyboards are also known for their click-iness, and are popular at home and extremely unpopular in open offices.
The shiny new thing is the optical switch. It is similar to the mechanical switch with the spring, but instead of having two metal contacts that touch, it has a piece of plastic that just moves up and down. On the PCB directly underneath is an IR LED and IR receiver. When the switch is pressed it breaks a beam and registers the keypress. By eliminating the metal components, they claim a lifespan of 100 million keystrokes.
There’s another technology called the optical analog switch, and as the name implies, it returns an analog value instead of a digital one, allowing you to measure the depth the key is pressed, and using it for turning a steering wheel or walking faster, or tuning the depth of stroke for a keypress register. Only a few keyboards have this, and some only have it on a few of the keys.
An Awful Lot of Keystrokes
A million keystrokes is a lot. People’s usage habits vary significantly, so it’s hard to say in hours or years how long the keyboard will last, but let’s just ballpark. If you rapid-fire a key 4 times a second, you’d have to do that for 347 hours to hit 5 million keystrokes and wear out your membrane keyboard. The King James Bible has 783,137 words, with a space after each one, so you’d have to type out the full thing more than 6 times before you wear out your space bar. In other words, 5 million is a LOT of keystrokes, but it’s not impossible. If you’re into games like osu!, though, you may be hitting the millions pretty quickly. If you’re curious about how long it’ll take you with your usage, try out WhatPulse to get your own statistics.
Speed Traps: From Debounce to the OS
Purveyors of the optical switch talk about switching at the speed of light. Optical switches can be faster than mechanical switches because there’s no need for debounce. This can shave a few milliseconds off because most microcontrollers will wait for a bit to allow the contacts to settle before accepting that the switch has changed state to prevent multiple keypresses. The bigger impact is the keyboard’s scanning and processing speed, though. Keyboards have a microcontroller that doesn’t have an input for every key. Instead it uses multiplexing and scans through each key rapidly. If it’s taking a long time to scan the matrix because it only has a few GPIO and must multiplex a bunch of things, then it may take longer to process the keys pressed. A cheap membrane keyboard won’t have the better microcontroller found on gaming keyboards.
The keyboard processor might not be the greatest source of latency, either. USB 2.0 has a max polling rate of 1000Hz, but for most keyboards that use low-speed USB, that polling frequency is 125Hz, or 8ms delay. Then of course there’s the delay by the operating system and the application handling the keyboard inputs, plus the timing involved with the display and rendering the output or the thing causing the reaction keystroke. On games where rhythm matters, it’s common to have configuration options that are adjusted to synchronize the audio, video, and input, eliminating the latency of the system as a problem.
Another option is to use a USB to PS/2 adapter, which some keyboards support. Since PS/2 is interrupt driven, it can be faster than the 125Hz polling of USB, but fewer and fewer motherboards have PS/2 options, and it’s not a guarantee that it will be faster.
For anyone using a keyboard for writing, speed doesn’t matter. Any keyboard would be more than capable of handling the fastest typists. For people looking to maximize their edge in games of speed and accuracy, where tuning equipment down to the millisecond matters, then mechanical keyboards have an edge, and optical keyboards have an even greater edge.
However, for the gamers who play speed-clicking games, an optical keypad with only a few keys is a much smaller and cheaper option with all of the speed benefits.
We know how rubber dome membrane keyboards fail. They are pretty robust and tolerant of liquids and dirt. When they fail it’s because the rubber has suffered fatigue and cracked or gotten “mushy” and lost its spring. Sadly because the whole keyboard is a single piece, replacement of an individual switch is difficult, but because of its simplicity it’s pretty easy to keep clean.
Mechanical keyboards fail, too, usually because the metal contacts become corroded. While it’s possible to replace the individual keys, that typically requires desoldering the defective ones. But at least it can be done, and the whole keyboard doesn’t have to be scrapped because of a single fault.
The big unknown here is non-mechanical component failure. With optical keys, no mechanical contact means one less failure point. Further, the keys can be replaced entirely, without soldering, making repair much more accessible. However, if the failure is of the electronics themselves, then the board is destroyed, and we know that IR LEDs fade, or get covered by debris, or are damaged through a spill. Assuming that an IR LED will fade to 50% brightness and start to cause detection problems after 50,000 hours, that’s 10 years at 12 hours/day (the LED has to be on, whether the key is pressed or not). Less if it’s driven outside of spec. Yes, it’s a long time, but the point is that optical keyboards won’t last forever.
Rubber dome switches, and their related cousin the scissor switch, which is more common for laptops and thin portable keyboards, have a similar feel. They don’t press until the end of their travel, they all have similar sounds, and the force is pretty much the same. Mechanical keyboards offer a wide variety of options, including loudness, actuation force, and travel distance. Optical switches are designed similar to the mechanical ones with an equivalent range of features. This is purely a matter of personal taste.
Membrane keyboards are cheap, and effort is made to only include features that are cheap. That’s why they don’t have an RGB under every keycap. However, the switches themselves don’t add much to the cost of the unit, so membrane keyboards are usually full keyboards with numpads and media keys. Optical and mechanical keyboard switches are expensive for each key, so they often have fewer keys, but make up for it with bright configurable patterns underneath. The analog optical keyboards have many more features, including the ability to set multiple actions for a single key based on distance pressed, or have adjustable press distance.
Like any other sport or hobby, the vast majority are served well by basic gear. For those in the upper levels of performance, or those who just want to own the best of the best, there exists a whole category of computer equipment. Get a mechanical keyboard if you like the feeling of the switches. Get an optical keyboard if you’re a hardcore gamer who needs every millisecond of reaction time and operate at the highest levels of gaming. There’s definitely a difference, and the math and experiments bear that out. Be prepared to spend some time tuning, though, as there are a lot of steps on the path from the finger to the screen. For everybody else, though, cheap keyboards are a great deal that last a really long time and have performance that meets most needs. Of course, you could always make your own rubber dome keyboard, mechanical keyboard, or tiny keyboard.
Add A Bit Of PCB Badge Glamour To Your Boring ID Badge
By Jenny List
When we talk about badges and printed circuit boards, it is usually in the context of the infinite creativity of the Badgelife scene, our community’s own art form of electronic conference badges. It’s easy to forget when homing in on those badges that there are other types of badge, and thus [Saimon]’s PCB badge holder is an entertaining deviation from our norm. His workplace requires employees to carry their credit-card-sized ID pass with them at all times, but the plastic holder that came with his had broken. So he did what any self-respecting engineer would do, and designed his own holder using PCBs.
It’s a three-way sandwich with identical front and back PCBs featuring a nice design, but the clever bit is the middle PCB. It is U-shaped to slide the card in from the side, but to retain the card it has a couple of springy milled PCB arms each with a small retaining tooth on the end. This is an ingenious solution, with just enough give to bend, but not so much as to break.
The three boards are glued together, it seems his original aim was to reflow solder them but this was not successful. The result is an attractive and functional badge holder, which if Hackaday required us to have a corporate ID you can be sure we’d be eyeing up for ourselves.