Arbitrary Wave Generator For The Raspberry Pi Pico

Once upon a time, if you wanted to generate some waveforms, you needed to buy an expensive off-the-shelf function generator or whip up a big pile of analog electronics. Not so today, when you can grab a fast microcontroller off the shelf and have it squirt out whatever fancy waves you might desire. That’s just what [rgco] did to build this nifty arbitrary wave generator.

The build improves on prior work by [rgco] with the Arduino Uno, with which they built a device that could output at 381 kilosamples per second, with each sample update taking 42 instruction cycles. Thanks to the Pi Pico’s faster clock speed and certain performance optimizations, they were able to up that to a mighty 125 megasamples per second, using the DMA and PIO subsystems to output a new sample every single clock cycle.

The result is a cheap function generator you can build with a Pi Pico and a handful of resistors, which will probably cost you the grand total of $12. It readily outperforms, at least in regards of speed, devices based on the AD9833 function generator chip, which only runs at 25 megasamples. Plus, that chip can only output sines, triangles, and squares!

Even a passable function generator can be a useful tool to have in the workshop, as we’ve seen before. Video after the break.

Continue reading “Arbitrary Wave Generator For The Raspberry Pi Pico”

Come For The PCB Holder, Stay For The Tour Of FreeCAD

PCB holders are great tools. Not only is the PCB Solder Fren from [PistonPin] a nice DIY design, it offers some insight into the parts design process with FreeCAD.

This design nicely demonstrates FreeCAD’s workflow for designing parts.

The PCB holder uses 3D-printed parts, M5 hardware, a length of 2020 aluminum extrusion, and one spring to create a handy and adjustable design that accommodates a variety of PCB sizes and shapes. If the ends of the extrusion are threaded, the end caps can be screwed in. Otherwise, a little glue ought to do the trick.

Want a little more insight into what making a part like this involves? [Jo Hinchliffe] at FreeCAD reached out to [PistonPin] for more detail and has a blog post explaining the workflow and steps involved in this part. As a bonus, STEP files and the FreeCAD project file are all included!

Not only is FreeCAD simple to use, but it’s also flexible enough to accommodate custom, niche extensions like a Rocketry workbench, so be sure to give it a look for your open-source CAD needs.

CNC Plus Microscope Plus Game Controller Equals Awesome

What do you get if you strap a microscope onto a CNC and throw in a gaming controller? The answer, according to Reddit user [AskewedBox] is something kind of awesome: you get a microscope that can be controlled with the game controller for easier tracking of tiny creepy-crawlies.

[ASkewedBox] set up this interesting combination of devices, attaching their Adonostar AD246S microscope to the stage of a no-brand 1610 CNC bought off Amazon, then connected the CNC to a computer running Universal G-Code Sender. This great open source program takes the input from an Xbox game controller and uses it to jog the CNC.

With a bit of tweaking, the game controller can now move the microscope, so it can be used to track microbes and other small creatures as they wander around on the slide mounted below the microscope eating each other. The movement of this is surprisingly smooth: the small CNC and a well-mounted microscope means that there seems to be very little wobble or backlash as the microscope moves.

[Askewedbox] hasn’t finished yet, though: in the latest update, he adds a polarizing lens to the setup and mentions that he wants to add focus control to the system, which is controlled by a remote that comes with the microscope.

There are plenty of other things that could be added beyond that, though, such as auto pan and stitch for larger photos, auto focus stacking and perhaps even auto tracking using OpenCV to track the hideous tiny creatures that live in the microscopic realm. What would you do to make this even cooler?

A 1/5th scale hydraulic jack model

Miniature Hydraulic Jack Is A Scale Marvel

Most hydraulic jacks are big tools that can lift upwards of 1000 kg but [Maker B]’s is quite a bit smaller than average.

The world’s smallest hydraulic jack is a tiny hand-machined model made out of tiny pieces of iron, brass and copper. But here’s the kicker: It’s a real hydraulic jack with real hydraulic fluid! At 1/5th scale, it obviously isn’t as strong as a full-size jack, but it can still easily lift an impressive 24 soda cans! Switching between the lathe and mill, [Maker B] shows how all the parts of the jack are made from stock metal in detail, and even explains in simple terms how a hydraulic jack works in this masterpiece of a video.

Over the years, we’ve seen plenty of tiny objects cranked out from stock pieces of metal — often bolts. But the fact that the end result here is a working tool, puts it into a decidedly less common niche. Of course, given what we’ve seen from [Maker B] in the past, it’s hardly a surprise.
Continue reading “Miniature Hydraulic Jack Is A Scale Marvel”

A 3D Printed Grinder For Printed Lens Blanks

When one thinks of applications for 3D printing, optical components don’t seem to be a good fit. With the possible exception of Fresnel lenses, FDM printing doesn’t seem up to the job of getting the smooth surfaces and precision dimensions needed to focus light. Resin printing might be a little closer to the mark, but there’s still a long way to go between a printed blank and a finished lens.

That gap is what [Fraens] aims to fill with this homebrew lens grinding machine. It uses the same basic methods used to grind and polish lenses for centuries, only with printed components and lens blanks. The machine itself consists of a motorized chuck for holding the lens blank, plus an articulated arm to hold the polishing tool. The tool arm has an eccentric drive that wobbles the polishing tool back and forth across the blank while it rotates in the chuck. Lens grinding requires a lot of water and abrasive, so a large bowl is provided to catch the swarf and keep the work area clean.

Lens blanks are printed to approximately their finished dimensions using clear resin in an SLA printer. [Fraens] spent a lot of time optimizing the printing geometry to minimize the number of print layers required. He found that a 30° angle between the lens and the resin pool worked best, resulting in the clearest blanks. To polish the rough blanks, a lapping tool is made from polymer modeling clay; after baking it dry, the tool can hold a variety of pads and polishing compounds. From there it’s just a matter of running the blank through a range of abrasives to get the desired final surface.

Are the lenses fantastic? Well, they’re probably not going to make it into fine optical equipment, but they’re a lot better than you might expect. Of course, there’s plenty of room for improvement; better resins might result in clearer blanks, and perhaps degassing the uncured resin under vacuum might help with bubbles. Skipping the printed blanks and going with CNC-machined acrylic might be worth a try, too.

Continue reading “A 3D Printed Grinder For Printed Lens Blanks”

Solder Two Boards At Once With This Dual Reflow Plate

Homebrew reflow projects generally follow a pretty simple formula: find a thrift shop toaster oven or hot plate, add a microcontroller and a means to turn the heating element on and off, and close the loop with a thermistor. Add a little code and you’re melting solder paste. Sometimes, though, a ground-up design works better, like this scalable reflow plate with all the bells and whistles.

Now, we don’t mean to hate on the many great reflow projects we’ve seen, of course. But [Michael Benn]’s build is pretty slick. The business end uses 400-watt positive temperature coefficient (PTC) heating elements from Amazon controlled by solid-state relays, although we have to note that we couldn’t find the equivalent parts on the Amazon US site, so that might be a problem. [Michael] also included mechanical temperature cutoffs for each plate, an essential safety feature in case of thermal runaway. The plates are mounted at the top of a 3D-printed case, which also has an angled enclosure for a two-color OLED display and a rotary encoder.

The software runs on an ESP32 and supports multiple temperature profiles for different solder pastes. The software also supports different profiles on the two plates, and even allows for physical expansion to a maximum of four heating plates, or even just a single plate if that’s what you need. The video below shows it going through its paces along with the final results. There’s also a video showing the internals if that’s more your style

We appreciate the fit and finish here, as well as the attention to safety. Can’t find those heating elements for your build? You might have to lose your appetite for waffles.

Continue reading “Solder Two Boards At Once With This Dual Reflow Plate”

Nixie Tube RPN Calculator Project

If you like Nixie tubes and/or DIY calculators, checkout this interesting talk from the HP Handheld Conference in Orlando last month by [Eric Smith] from Brouhaha and [John Doran] from Time Fracture. For 20-some years, [Eric] and the late [Richard Ottosen] have been incrementally developing various DIY calculators — this paper from the 2005 HHC conference is an excellent overview of the early project. [John] got one of those early DIY calculators and set about modifying it to use Nixie tubes. However, he got distracted by other things and set it aside — until reviving it earlier this year and enlisting [Eric]’s aid.

This presentation goes over the hardware aspects of the design. Unlike the earlier PIC-based DIY calculators, they decided to use a WCH RISC-V processor this time around. The calculator’s architecture is intentionally modular, with the display and keyboard housed in completely separate enclosures communicating by a serial interface. If the bulkiness alone doesn’t exclude it from being pocket-sized, the 170 VDC power supply and 1/2 W per digit power consumption certainly does. This modularity does lend itself to DIYers replacing the display, or the keyboard, with something different. [Eric] wants to build a mechanical flip-digit display for his unit. As for the software, [Eric] reviews the firmware approach and some future upgrades, such as making it programmable and emulating other flavors of HP calculators.

If you’re embarking on a similar project yourself, check out this talk and take notes — there are a lot of interesting tidbits on using Nixie tubes in the 21st century. If [Eric]’s name sounds familiar, you may know him from the Nonpareil calculator software used on many emulators and DIY calculator projects, one of which we covered some years ago. [John] is also a long-time tinkerer, and we wrote about his gorgeous D16/M HCMOS computer system back in 2012. Thanks to [Stephen Walters] for sending in the tip.

Continue reading “Nixie Tube RPN Calculator Project”