CadQuery Comes Of Age

Now, we know what some of you are going to say — “Oh man, not another programmatic CAD tool, what’s wrong with OpenSCAD?” — and you may be right, but maybe hold on a bit and take a look at this one, because we think that it’s now pretty awesome! OpenSCAD is great, we use it all the time round these parts, but it is a bit, you know, weird in places. Then along comes CadQuery, and blows it out of the water ease-of-use and functionality wise. Now, we’ve seen a few mentions of CadQuery over the years, and finally it’s become a full-blown toolset in its own right, complete with a graphical frontend/editor, CQ-editor. No odd dependencies on FreeCAD to be seen! That said, installing FreeCAD is not a bad thing either.

The goal is to have the CadQuery script that produces this object be as close as possible to the English phrase a human would use.

Continue reading “CadQuery Comes Of Age”

The Second Worst CAD Package Ever

A while back, [Heavydeck] remembered stumbling across the worst CAD package ever, which is a schematic editor whose existence was purely intended for use to make quick circuit sketches for documentation, presentations and the like. All good. But, being based on low quality JPEG graphics, which when blown up to projector size on a big screen, they look really rough. After deciding that the original nasty, clunky interface was just nasty and clunky enough, [Heavydeck] then proceeded to reimplement the idea over the course of an afternoon, and came up with Kludge (possibly the second worst CAD package ever) making an actually useful tool even more useful.

You see, whether you make website content, YouTube tutorials, or just need to write technical reports, if you’re in the electronics business, you’re going to need to make high-quality editable schematic images at some point, and Kludge might well solve some problems for you. Kludge lets you do so many things; you can save a schematic, you can load a schematic, you can even export it to an SVG file. Actually, that’s all you can do, but it is actually just enough. Once you’ve got an image as an SVG, you can whack that into Inkscape to add some more details and you’re done. We demonstrate this with the image above, which was not annoying at all to create.

So here’s to Kludging your way around a problem, and hoping that the somewhat limited symbol library may expand a little more in the future!

Mechanical Linkage CAD For Everyone

As much as some of us don’t like it, building things for real requires some mechanical component. Maybe it is something as simple as an enclosure or even feet for a PCB, but unless you only write software or play with simulators, you’ll eventually have to build something. It is a slippery slope between drilling holes for a front panel and attempting to build things that move. Sometimes that’s as simple as a hinge and a spring, or maybe it is a full-blown robot articulated arm.  That’s why [RectorSquid] built Linkage, a “program that lets you design and edit a two-dimensional mechanism and then simulate the movement of that mechanism” (that quote is from the documentation.

The program has had a few versions and is currently up past 3.15. To get an idea of the program’s capabilities, the first video below shows an older version simulating a ball lift. The second video shows the actual mechanism built from the design. The associated YouTube channel has more recent videos, too, showing a variety of simulations.

Continue reading “Mechanical Linkage CAD For Everyone”

helicopter

Re-Engineering An RC Helicopter Via Tinkercad

Radio control toys can be great fun to play with. However, at the bottom end of the market, sometimes you find you’ve bought something that just doesn’t work quite right. [saulemmetquinn] found that with a cheap RC helicopter, and set about re-engineering the design in Tinkercad.

The entire frame of the original helicopter was discarded, replaced with one made out of CAD-designed and 3D printed components. The end result is far lighter and less cumbersome than the original design, while also managing to look a lot more like an actual helicopter. It also served to correct some of the problems which [saulemmetquinn] stated made the original toy difficult to fly.

Assembling your own tiny helicopter motors and mechanisms would be quite difficult, and time consuming. [saulemmetquinn] was instead able to leverage the good parts of the original design, and build something better from that. It’s very much the essence of hacking, right there.

We’ve seen other toy helicopters hacked too, like the famous Syma S107G. If you’ve got your own tiny flying hacks, be sure to drop us a line.

New Video Series: Designing With Complex Geometry

Whether it’s a 3D printed robot chassis or a stained glass window, looking at a completed object and trying to understand how it was designed and put together can be intimidating. But upon closer examination, you can often identify the repeating shapes and substructures that were combined to create the final piece. Soon you might find that the design that seemed incredibly intricate when taken as a whole is actually an amalgamation of simple geometric elements.

This skill, the ability to see an object for its principle components, is just as important for designing new objects as it is for understanding existing ones. As James McBennett explains in his HackadayU course Designing with Complex Geometry, if you want to master computer-aided design (CAD) and start creating your own intricate designs, you’d do well to start with a toolbox of relatively straightforward geometric primitives that you can quickly modify and reuse. With time, your bag of tricks will be overflowing with parametric structures that can be reshaped on the fly to fit into whatever you’re currently working on.

His tool of choice is Grasshopper, a visual programming language that’s part of Rhino. Designs are created using an interface reminiscent of Node-RED or even GNU Radio, with each interconnected block representing a primitive shape or function that can be configured through static variables, interactive sliders, conditional operations, and even mathematical expressions. By linking these modules together complex structures can be generated and manipulated programmatically, greatly reducing the time and effort required compared to a manual approach.

As with many powerful tools, there’s certainly a learning curve for Grasshopper. But over the course of this five part series, James does a great job of breaking things down into easily digestible pieces that build onto each other. By the final class you’ll be dealing with physics and pushing your designs into the third dimension, producing elaborate designs with almost biological qualities.

Of course, Rhino isn’t for everyone. The $995 program is closed source and officially only runs on Windows and Mac OS. But the modular design concepts that James introduces, as well as the technique of looking at large complex objects as a collection of substructures, can be applied to other parametric CAD packages such as FreeCAD and OpenSCAD.

Designing with Complex Geometry is just one of the incredible courses offered through HackadayU, our pay-as-you-wish grad school for hardware hackers. From drones to quantum computing, the current list of courses has something for everyone.

Continue reading “New Video Series: Designing With Complex Geometry”

Design A Custom Enclosure Using Modelling Clay And Photogrammetry

When it comes to designing enclosures which aren’t simple boxes or other basic shapes, the design process tends to get somewhat tedious and involved as the number of measurements to be transferred into the CAD program begins to skyrocket. One possible shortcut here is detailed by [Sebastian Sokolowski], who describes a process that combines modelling clay with photogrammetry.

[Sebastian] covers the design of a hand-held controller that should fit ergonomically when grasped. This starts off with the electronics and mechanical components that have to fit inside the controller: inside a CAD tool (demonstrated in Fusion 360), these components are arranged with a simple box enclosure around them. This box is then 3D printed and with modelling clay the desired shape of the controller is created around this box.

With a modelling clay version of the controller ready, it is photographed from as many angles as possible before these photos are processed by the open source Meshroom tool into a 3D model. After fixing up some issues in the mesh and knocking down the vertex count on this model so that the CAD tool doesn’t suffer a seizure importing it, it’s ready for final processing.

Within the CAD tool all that is left now is to refine the imported model to refine its outer shape and to create the inner details for mounting the electronics, switches and other components.

Continue reading “Design A Custom Enclosure Using Modelling Clay And Photogrammetry”

Art of 3D printer in the middle of printing a Hackaday Jolly Wrencher logo

What To Expect From 3D Scanning, And How To Work With It

3D scanning and 3D printing may sound like a natural match for one another, but they don’t always play together as easily and nicely as one would hope. I’ll explain what one can expect by highlighting three use cases the average hacker encounters, and how well they do (or don’t) work. With this, you’ll have a better idea of how 3D scanning can meet your part design and 3D printing needs.

How Well Some Things (Don’t) Work

Most 3D printing enthusiasts sooner or later become interested in whether 3D scanning can make their lives and projects easier. Here are a three different intersections of 3D scanning, 3D printing, and CAD along with a few words on how well each can be expected to work.

Goal Examples and Details Does it work?
Use scans to make copies of an object.
  • 3D scan something, then 3D print copies.
  • Objects might be functional things like fixtures or appliance parts, or artistic objects like sculptures.
Mostly yes, but depends on the object
Make a CAD model from a source object.
  • The goal is a 1:1 model, for part engineering purposes.
  • Use 3D scanning instead of creating the object in CAD.
Not Really
Digitize inconvenient or troublesome shapes.
  • Obtain an accurate model of complex shapes that can’t easily be measured or modeled any other way.
  • Examples: dashboards, sculptures, large objects, objects that are attached to something else or can’t be easily moved, body parts like heads or faces, and objects with many curves.
  • Useful to make sure a 3D printed object will fit into or on something else.
  • Creating a CAD model of a part for engineering purposes is not the goal.
Yes, but it depends

In all of these cases, one wants a 3D model of an object, and that’s exactly what 3D scanning creates, so what’s the problem? The problem is that not all 3D models are alike and useful for the same things.

Continue reading “What To Expect From 3D Scanning, And How To Work With It”