Some months ago I got a 3D printer. (An Anycubic Kobra Go, which was pretty high up the list of “best value for money for a starter printer” that I found through /r/3Dprinting at the time.) I haven’t used it much, but recently I used it to solve an itch. I wanted my headphones to be in easy reach, so I designed and printed a hook that I could slide over the edge of the table near my desk. This is the first thing I’ve designed and I’m pretty happy with how it came out!
The curve was pretty awkward. I was working with OpenSCAD (maybe something else would have been easier?) which doesn’t have an easy way that I found to draw nice curves. (Lines in general seem annoying, you can extrude a 2d shape to 3d but not a 1d shape to 2d?)
I decided to go with an Archimedean spiral, and did a bunch of math to figure out how the various parameters had to relate to each other.1 I ended up with equations that I’d have had to solve numerically because they probably had no closed form. Then rather than writing a simple script to give me the answers I just eyeballed it, figuring I could redo it properly if I felt like it. Seems basically fine though.
I ended up printing three copies. The first had a nozzle jam about half way through so it came out shitty. You can see it in the background of the second pic. It actually works, but it doesn’t have enough friction on the table so it sags down. I can use it for looping cable over, though a deeper hook would be better at that. The second was mostly fine, but I decided I wanted 100% infill on the curve for strength and for some reason I did that by making the walls thick. In hindsight that’s silly, it’s pretty flexible and when you bend it a bit it starts to split along the middle. So I did one with normal walls and normal 100% infill and it’s absolutely fine. These two are the ones actually holding it up in the second picture, I might print a third to get less pressure on the padding.
I could have made something simpler if I wanted to fasten it to the table, either with screws or duct tape. But I like that it doesn’t need that.
The exact design probably won’t be any use to anyone who doesn’t have the same model of cheap folding table as me. But in case it’s interesting or helpful, here’s the .scad:
There are six parameters: x and y position of the center, initial and final radius, and the angular section to draw. There are two points I wanted the curve to pass through, plus I wanted it to be tangent to the horizontal at the first point, and I wanted the start and end points of the curve to be vertically above each other. It turns out that leaves one degree of freedom, letting me choose a smaller curve with more upswing at the end or a larger one with less. I went with a spiral that would have 5.4 cm between each turn, if it had multiple turns. ↩
Headphones hook
Link post
Some months ago I got a 3D printer. (An Anycubic Kobra Go, which was pretty high up the list of “best value for money for a starter printer” that I found through /r/3Dprinting at the time.) I haven’t used it much, but recently I used it to solve an itch. I wanted my headphones to be in easy reach, so I designed and printed a hook that I could slide over the edge of the table near my desk. This is the first thing I’ve designed and I’m pretty happy with how it came out!
The curve was pretty awkward. I was working with OpenSCAD (maybe something else would have been easier?) which doesn’t have an easy way that I found to draw nice curves. (Lines in general seem annoying, you can extrude a 2d shape to 3d but not a 1d shape to 2d?)
I decided to go with an Archimedean spiral, and did a bunch of math to figure out how the various parameters had to relate to each other.1 I ended up with equations that I’d have had to solve numerically because they probably had no closed form. Then rather than writing a simple script to give me the answers I just eyeballed it, figuring I could redo it properly if I felt like it. Seems basically fine though.
I ended up printing three copies. The first had a nozzle jam about half way through so it came out shitty. You can see it in the background of the second pic. It actually works, but it doesn’t have enough friction on the table so it sags down. I can use it for looping cable over, though a deeper hook would be better at that. The second was mostly fine, but I decided I wanted 100% infill on the curve for strength and for some reason I did that by making the walls thick. In hindsight that’s silly, it’s pretty flexible and when you bend it a bit it starts to split along the middle. So I did one with normal walls and normal 100% infill and it’s absolutely fine. These two are the ones actually holding it up in the second picture, I might print a third to get less pressure on the padding.
I could have made something simpler if I wanted to fasten it to the table, either with screws or duct tape. But I like that it doesn’t need that.
The exact design probably won’t be any use to anyone who doesn’t have the same model of cheap folding table as me. But in case it’s interesting or helpful, here’s the .scad:
.scad file
There are six parameters: x and y position of the center, initial and final radius, and the angular section to draw. There are two points I wanted the curve to pass through, plus I wanted it to be tangent to the horizontal at the first point, and I wanted the start and end points of the curve to be vertically above each other. It turns out that leaves one degree of freedom, letting me choose a smaller curve with more upswing at the end or a larger one with less. I went with a spiral that would have 5.4 cm between each turn, if it had multiple turns. ↩