A High Torque 3D Printed Harmonic Drive

Actuators that are powerful, accurate, compact, and cheap are like unicorns. They don’t exist. Yet this is what [3DprintedLife] needed for a robotic camera arm, so he developed a custom 3D printed high torque strain wave gearbox to be powered by a cheap NEMA23 stepper motor.

Strain wave gears, otherwise known as harmonic drives, are not an uncommon topic here on Hackaday. The work by deforming a flexible toothed spline with a rotating elliptical part, which engages with the internal teeth of an outer spline. The outer spline has a few more teeth, causing the inner spline to rotate slowly compared to the input, achieving very high gear ratios. Usually, the flexible spline is quite long to allow it to flex at one end while still having a rigid mounting surface at the other end. [3DprintedLife] got around this by creating a separate rigid output spline, which also meshes with the flexible spline. Continue reading “A High Torque 3D Printed Harmonic Drive”

Ask Hackaday: How Is The Chip Shortage Affecting You?

Some friends of mine are designing a new board around the STM32F103 microcontroller, the commodity ARM chip that you’ll find in numerous projects and on plenty of development boards. When the time came to order the parts for the prototype, they were surprised to find that the usual stockholders don’t have any of these chips in stock, and more surprisingly, even the Chinese pin-compatible clones couldn’t be found. The astute among you may by now have guessed that the culprit behind such a commodity part’s curious lack of availability lies in the global semiconductor shortage.

A perfect storm of political unintended consequences, climate-related crises throttling Taiwanese chip foundries and shutting down those in the USA, and faulty pandemic recovery planning, has left the chipmakers unable to keep up with the demand from industries on the rebound from their COVID-induced slump. Particularly mentioned in this context is the automotive industry, which has seen plants closing for lack of chips and even models ditching digital dashboards for their analogue predecessors.

Chips on order everywhere on the Mouser website.
Chips on order everywhere on the Mouser website.

The fall-out from all this drama in the world’s car factories has filtered down through all levels that depend upon semiconductors; as the carmakers bag every scrap of chip fab capacity that they can, so in turn have other chip customers scrambled to keep their own supply lines in place. A quick scan for microcontrollers through distributors like Mouser or Digi-Key finds pages and pages of lines on back-order or out of stock, with those lines still available being largely either for niche applications, unusual package options, or from extremely outdated product lines. The chances of scoring your chosen chip seem remote and most designers would probably baulk at trying to redesign around an ancient 8-bit part from the 1990s, so what’s to be done?

Such things typically involve commercially sensitive information so we understand not all readers will be able to respond, but we’d like to ask the question: how has the semiconductor shortage affected you? We’ve heard tales of unusual choices being made to ship a product with any microcontroller that works, of hugely overpowered chips replacing commodity devices, and even of specialist systems-on-chip being drafted in to fill the gap. In a few years maybe we’ll feature a teardown whose author wonders why a Bluetooth SoC is present without using the radio functions and with a 50R resistor replacing the antenna, and we’ll recognise it as a desperate measure from an engineer caught up in 2021’s chip shortage.

So tell us your tales from the coalface in the comments below. Are you that desperate engineer scouring the distributors’ stock lists for any microcontroller you can find, or has your chosen device remained in production? Whatever your experience we’d like to know what the real state of the semiconductor market is, so over to you!

Custom Keyfob Fixes Mazda Design Mistake

While Mazda has made some incredible advances in fuel efficient gasoline engines over the past few years, their design group seems to have fallen asleep at the wheel in the meantime, specifically in regards to the modern keyfob design. The enormous size and buttons on the side rather than the face are contrary to what most people need in a keyfob: small size and buttons that don’t accidentally get pressed. Luckily, though, the PCB can be modified with some effort.

This particular keyfob has a relatively simple two-layer design which makes it easy to see where the connections are made. [Hack ‘n’ Tink] did not need the panic button or status LED which allowed him to simply cut away a section of the PCB, but changing the button layout was a little trickier. For that, buttons were soldered to existing leads on the face of the board using 30-gage magnet wire and silicone RTV. From there he simply needed to place the battery in its new location and 3D print the new enclosure.

The end result is a much smaller form factor keyfob with face buttons that are less likely to accidentally get pressed in a pocket. He also made sure that the battery and button relocation wouldn’t impact the antenna performance. It’s a much-needed improvement to a small but crucial part of the car; the only surprise is that a company that’s usually on point with technology and design would flop so badly on such a critical component.

Thanks to [Brian] for the tip!

Continue reading “Custom Keyfob Fixes Mazda Design Mistake”

Cocktail Of Chemicals Makes This Blueprint Camera Unique

When you’re looking at blueprints today, chances are pretty good that what you’re seeing is anything but blue. Most building plans, diagrams of civil engineering projects, and even design documents for consumer products never even make it to paper, let alone get rendered in old-fashioned blue-and-white like large-format prints used to produced. And we think that’s a bit of a shame.

Luckily, [Brian Haidet] longs for those days as well, so much so that he built this large-format cyanotype camera to create photographs the old-fashioned way. Naturally, this is one of those projects where expectations must be properly scaled before starting; after all, there’s a reason we don’t go around taking pictures with paper soaked in a brew of toxic chemicals. Undaunted by the chemistry, [Brian] began his journey with simple contact prints, with Sharpie-marked transparency film masking the photosensitive paper, made from potassium ferricyanide, ammonium dichromate, and ammonium iron (III) oxalate, from the UV rays of the sun. The reaction creates the deep, rich pigment Prussian Blue, contrasting nicely with the white paper once the unexposed solution is washed away.

[Brian] wanted to go beyond simple contact prints, though, and the ridiculously large camera seen in the video below is the result. It’s just a more-or-less-lightproof box with a lens on one end and a sheet of sensitized paper at the other. The effective ISO of the “film” is incredibly slow, leading to problematically long exposure times. Coupled with the distortion caused by the lens, the images are — well, let’s just say unique. They’ve got a ghostly quality for sure, and there’s a lot to be said for that Prussian Blue color.

We’ve seen cyanotype chemistry used with UV lasers before, and large-format cameras using the collodion process. And we wonder if [Brian]’s long-exposure process might be better suited to solargraphy.

Continue reading “Cocktail Of Chemicals Makes This Blueprint Camera Unique”

Python Runs Through A Zombified 8-Bit AVR

As amazing as CircuitPython is, it hasn’t yet been ported to any 8-bit microcontrollers. [Chris Heo] was unsatisfied with his inability to use Python on his 8-bit ATmega4808 AVR, so he worked out a way to zombify it and bend it to his will using Python on his PC.

The trick to making this all work is the UPDI interface: a single-wire UART interface for programming and debugging Microchip’s newer 8-bit AVR microcontrollers. UPDI reaches deep into the microcontroller’s core, allowing you to stop and start execution of microcontroller code and access all of the onboard data and I/O. [Chris] realized this could be used to stop execution of any code running on the AVR and directly control the output pins using the pyupdi library. Since UPDI lets him modify the AVR’s I/O registers, he was also able to blink an LED and use the microcontrollers UART to send a message back to his PC without compiling a single line of code.

This may seem like an entirely unnecessary hack, but for devices too small or basic to have a JTAG interface for debugging this could be the best way to test and debug peripherals in an assembled circuit. We hope this catches on and would love to see how much of the chip can be controlled in this way. Maybe this will make it easy to experiment with the programmable logic that’s on some of the newer AVRs.

Iridescent Rainbow Chocolate, Just Add Diffraction Grating!

Chocolate plus diffraction grating equals rainbow chocolate

Here’s a great picture from [Jelly & Marshmallows] that shows off the wild effects of melted chocolate poured onto a diffraction grating. A diffraction grating is a kind of optical component whose micro-features act to disperse and scatter light. Diffraction gratings are available as thin plastic film with one side that is chock full of microscopic ridges, and the way light interacts with these ridges results in an iridescent, rainbow effect not unlike that seen on a CD or laserdisc.

It turns out that these micro-ridges can act as a mold, and pouring chocolate over a diffraction grating yields holo-chocolate. These photos from [Jelly & Marshmallows] show this effect off very nicely, but as cool as it is, we do notice that some of the letters seem a wee bit hit-or-miss in how well they picked up the diffraction grating pattern.

Fortunately, we know just what to suggest to take things to the next level. If you want to know more about how exactly this effect can be reliably accomplished, you’ll want to check out our earlier coverage of such delicious optics, which goes into all the nitty-gritty detail one could ever want about getting the best results with either melted sugar, or dark chocolate.

Hackaday Links Column Banner

Hackaday Links: May 23, 2021

The epicenter of the Chinese electronics scene drew a lot of attention this week as a 70-story skyscraper started wobbling in exactly the way skyscrapers shouldn’t. The 1,000-ft (305-m) SEG Plaza tower in Shenzhen began its unexpected movements on Tuesday morning, causing a bit of a panic as people ran for their lives. With no earthquakes or severe weather events in the area, there’s no clear cause for the shaking, which was clearly visible from the outside of the building in some of the videos shot by brave souls on the sidewalks below. The preliminary investigation declared the building safe and blamed the shaking on a combination of wind, vibration from a subway line under the building, and a rapid change in outside temperature, all of which we’d suspect would have occurred at some point in the 21-year history of the building. Others are speculating that a Kármán vortex Street, an aerodynamic phenomenon that has been known to catastrophically impact structures before, could be to blame; this seems a bit more likely to us. Regardless, since the first ten floors of SEG Plaza are home to one of the larger electronics markets in Shenzhen, we hope this is resolved quickly and that all our friends there remain safe.

In other architectural news, perched atop Building 54 at the Massachusetts Institute of Technology campus in Cambridge for the last 55 years has been a large, fiberglass geodesic sphere, known simply as The Radome. It’s visible from all over campus, and beyond; we used to work in Kendall Square, and the golf-ball-like structure was an important landmark for navigating the complex streets of Cambridge. The Radome was originally used for experiments with weather radar, but fell out of use as the technology it helped invent moved on. That led to plans to remove the iconic structure, which consequently kicked off a “Save the Radome” campaign. The effort is being led by the students and faculty members of the MIT Radio Society, who have put the radome to good use over the years — it currently houses an amateur radio repeater, and the Radio Society uses the dish within it to conduct Earth-Moon-Earth (EME) microwave communications experiments. The students are serious — they applied for and received a $1.6-million grant from Amateur Radio Digital Communications (ARDC) to finance their efforts. The funds will be used to renovate the deteriorating structure.

Well, this looks like fun: Python on a graphing calculator. Texas Instruments has announced that their TI-84 Plus CE Python graphing calculator uses a modified version of CircuitPython. They’ve included seven modules, mostly related to math and time, but also a suite of TI-specific modules that interact with the calculator hardware. The Python version of the calculator doesn’t seem to be for sale in the US yet, although the UK site does have a few “where to buy” entries listed. It’ll be interesting to see the hacks that come from this when these are readily available.

Did you know that PCBWay, the prolific producer of cheap PCBs, also offers 3D-printing services too? We admit that we did not know that, and were therefore doubly surprised to learn that they also offer SLA resin printing. But what’s really surprising is the quality of their clear resin prints, at least the ones shown on this Twitter thread. As one commenter noted, these look more like machined acrylic than resin prints. Digging deeper into PCBWay’s offerings, which not only includes all kinds of 3D printing but CNC machining, sheet metal fabrication, and even injection molding services, it’s becoming harder and harder to justify keeping those capabilities in-house, even for the home gamer. Although with what we’ve learned about supply chain fragility over the last year, we don’t want to give up the ability to make parts locally just yet.

And finally, how well-calibrated are your fingers? If they’re just right, perhaps you can put them to use for quick and dirty RF power measurements. And this is really quick and really dirty, as well as potentially really painful. It comes by way of amateur radio operator VK3YE, who simply uses a resistive dummy load connected to a transmitter and his fingers to monitor the heat generated while keying up the radio. He times how long it takes to not be able to tolerate the pain anymore, plots that against the power used, and comes up with a rough calibration curve that lets him measure the output of an unknown signal. It’s brilliantly janky, but given some of the burns we’ve suffered accidentally while pursuing this hobby, we’d just as soon find another way to measure RF power.