Pages

Showing posts with label cnc. Show all posts
Showing posts with label cnc. Show all posts

Tuesday, 2 August 2022

Is that a topologically optimised seatpost in your pants or are you just happy to see me!


Another day, another topologically optimised (long for TopOP) bike part. This is a blog post about a seat post that I made because my bike is far too small for me. Because of this I needed a seat post with 50mm(!) of layback. Because me and TopOp go wayback i decided to apply it to this component using software that is new to me, and more importantly, free for me… and you! This post is split into colour coded sections so that you can ignore the bits that you aren’t interested in.

If you want to do this yourself (you don’t) the red section provides a link to the software, and an overview of what’s required to start optimising parts.The green section is an attempt to explain what the software is doing, and why these TopOp parts have an organic quality. The blue section is a breakdown of the build in both theory and reality. If you're not interested in doing this yourself or reading a bunch of stuff I made up, skip to the last section.

This is not an intuitive process. There are elements of this software that just don’t work*. There are also caveats to consider when it does. For example, when I started using this software, I was using 3D TopOP but the meshes it generated were so bad as to be virtually unusable, although there are expceptions (see Fig 2 +3.) For that reason I suggest using 2D optimisation and urge you to consider the following. Topology optimization is a process that produces concepts. It does not consider material properties, manufacturing techniques, and cost analysis, like a generative design program can. Although generative design software, such as fusion 360's tools, are much easier to use, they are no gurantee of success (Fig 4.)** 


Fig 2.
Fig 3. 

Fig 4.

For this project I worked in Rhino and used an add on called Grasshopper that is automatically downloaded with the Rhino software. The Grasshopper plug-in I used to perform the TopOp is called Millipede. Here is a download link for millipede, and the documentation for its use, courtesy of Creative Mutation. It probably goes without saying but you will need a basic understanding of both Rhino and Grasshopper to use millipede as it requires a model and uses the grasshopper interface.

To perform TopOp requires four known constraints; A boundary in which the optimisation of the model will take place, a place at which the model will be supported, a hot steaming load case acting upon the model, and modelled elements upon which these forces will act.


Here’s one I made earlier.

  • The boundary is the black box. The computer can place any ‘material’ it likes within this space.

  • The red crosses indicate the area at which the part is supported. 

  • The blue lines indicate the load, in this case pointing straight down with a force of x Nm. 

  • Elements of the design that the forces are acting upon. In this case it is the circles filled with blue lines 


The rest of the decisions to make are arbitrary, but for your design, perhaps necessary. For instance, areas in which no material can be added, or from which no material can be taken away. Once these inputs are plugged in and the program is run, it will produce an optimised shape from which a design can be produced (Fig 5.) Using 2D optimisation as in this case, will produce an outline from which a 3D form can be derived.

the optimisation process


Fig 6.
Fig 5

It is a shame that the 3D optimization provides such bad meshes, as the shapes it produces are wild. I would like to reiterate just how indecipherable this program can be. If you’re struggling, get in touch and we can try and figure it out.

The distinctly organic form that these models have gives an insight into how the program works. In nature, organic structures are grown by the animal or plant. The energy required to form life must also sustain it, and so conservation of energy is basically the most important requirement for a successful organism. As an organism evolves over successive generations it optimises itself in response to biomechanical stresses, and gravity, by using the least amount of energy to grow the structure that will resist those forces. TopOp doesn’t grow parts from nothing as it requires a pre-defined model, but the optimised shapes it produces have what we perceive to be organic forms because organic forms themselves are optimised.TopOp essentially works in reverse by taking a defined model and simulating stresses applied to it, and then removes material which doesn’t affect the performance of the part within tolerable levels***.

With the CAD sorted it was time to get physical, and the only man I know who can make my fantasies a reality is Odin. The all-father now walks the earth selling pencil sharpeners, but despite that he is my friend, and a born craftsman. I’d link you to his blog, but weirdly he doesn’t have one. CNC milling is a topic I've spoken about before on this blog, but it’s worth pointing out that you can’t just push a button and make a part. You actually have to push loads of buttons. Odin is an incredible button pusher and lets me watch while he one inch punches his milling machine in all the right places until finally it decides to do all the work and spits out the Part. This Part is only the interface between an enve seat clamp, and a post, which is a tube, that goes in another, slightly larger tube called a seat tube, duh.


How does he do it?


I had originally intended the interface between the Part and the tube (which goes in the seat tube) to be made with a thermal shrink fit. The Part would have been put in the fridge and left to thermally contract whilst the tube would be put in the oven and thermally expanded. The expansion and contraction are very small but they allow parts with extremely tight tolerances just enough room to be put together. When the temperatures of both parts subsequently equalised they would, in this case, be permanently bonded as there would be no way to heat them separately, creating a very strong (and interesting) joint. This didn’t happen. The orientation of the Part in relation to the bit (known as the barbershop pole in the industry) meant that only half of the Part could be milled before it was manually flipped and the other side was completed. It is very difficult to manually flip the part and put it in the exact same place as it was before which introduces inaccuracies that ruin any possibility of producing the tolerances required for a thermal shrink fit (Fig 7.) We could have introduced a third orientation and placed the future nubbin vertically to the barbershop pole which would have produced an accurate cylinder in one operation as opposed to two.**** 


The second half being milled.   


The Part encased in Carbonite




In reality the tube I'd bought was way bigger than the nubbin I'd modelled anyway so we turned a shim and shoved the Part into the tube, bonding it with Loctite. Metal glue doesn’t even sound like a real thing so I wasn’t expecting this to hold but this wasn’t where the seatpost failed. Turns out the diameter of the tube was wayyyyyy thinner than on a regular seatpost. This was not helped by the massive layback built into the seatpost which further leverages the tube until it folds in half at about the same point on your two week bike trip!


What happens when you forget to water your seatpost


*I would usually blame myself, but I think in this instance I think I'm being generous.

**Although the terms generative design and topology optimization are often used interchangeably, they are different. Generative design can be thought of as a package of optimisation strategies that accounts for a variety of factors when generating designs, one of which is topology optimisation. It’s one of those, not all rectangles are squares, but all squares are rectangles.


***What the software actually does is break the boundary area into a certain number of cubes or squares (depending on whether it’s a 3D or 2D optimization respectively) determined by the resolution of the optimization (picture of resolution). More blocks/ squares equates to a more detailed model. The software then simulates an applied load to each block/square and determines how removing this block affects the rest of the model's ability to resist that load.Over a number of iterations the simulation gradually establishes which parts of the boundary area are most necessary in sustaining the load applied. This breakdown of a model into a certain number of individual elements upon which analysis is performed is called Finite Element Analysis or FEM. 


**** I’m aware that for most readers this level of detail isn’t particularly interesting, but although i'm doing this for fun i'd like to be paid to do it. These bits are so that the people who know, know that i know they know i know. you know?



Sunday, 9 May 2021

my glasses (pupdate)

The grade 5 titanium arrived and was clearly a much better fit for the frames than grade 1. It is far less ductile and has some of the 'springiness' of stainless. There isn't too much to say regarding process as it remains practically identical to my last post, which is the beauty of CNC machining. Modelling and setup take a long time, but you only really have to do it once barring minor changes to the part and stock. Speaking of minor changes, tabs were added to increase the surface area of the glue and the depth of cut was increased to ensure full penetration of the stock (kinky). 



This doesn't capture the silkiness of
the sandblasted finish 

fig 1.


This second run came very close to being the last but unfortunately there were some issues: 

  1. On test fitting the arms whilst the part was in the machine it seemed tight. Instead of trusting the measurements we opened it up 0.25mm (the diameter of an accupuncture needle) and consequently the fit was sloppy which meant the arms had far too much play up and down. Edit: I've just realised that this probably meant 0.5mm total which would explain it 
  2. The hinge snapped in exactly the same place as my original glasses (fig 1.). This is evidently a weak point which I will have to strengthen. I'm fairly confident that this piece can't be solid as I think it is used to open the frame up for lenses. 
  3. On closer inspection of my canvas (shown in my last post) I had neglected to model a small indention of about 1mm at the end of the hinge which allows the arm to slot in and rotate around. This was cut with a dremel on this part but this is easily added to the model and fusion will update the toolpaths to suit automatically.
Solutions and other points:
  1. For the fit of the arms, stick to the measurements! There is always self destructive tendency to assume you know better than the tools which is apparently emboldened by constantly being proven otherwise. 
  2. For the snapped hinge there are a few options but I think the most logical is probably just to offset the toolpath by 0.5mm making the frames that much thicker. Titanium work hardens very easily. At a molecular level a work-hardenable (new word?) material exhibits a 'defect free pattern' which is to say it's molecules are aligned in a consistent pattern that is deformed when the material is work hardened through say, bending, squeezing, sheering etc. These deformations create obstacles and 'pinning points' in the materials structure which compound, impeding the motion of other molecules and therefore increase the materials strength through resistance to further change. Unfortunately by deforming the material and introducing these deformations, you also make the material more brittle as the molecules are less able to slide past one another as they do in a ductile (pliable) material. Instead the molecules are forced up agaisnt one another until breaking point and the material snaps as it did in the hinge of these glasses. If it seems like I just read the wikipedia article before writing that, it's because I did. Fortunately there is a process (and another wikipedia article) called Annealing that involves heating a material to above its recrystalisation temperature which allows the molecules to 'relax'  back into alignment reintroducing ductility. Unfortunately, for titanium this occurs at 600-750C which are the kind of temps I do not have access to. 
  3. The finish this leaves had me swearing oaths. I'm not one for finishing (honesty of process and all that) but this may have changed my mind, it doesn't hurt that it's also a very practical way of removing burrs left by the machining process.    

Wednesday, 28 April 2021

my glasses

image by Poppy Thorpe

My glasses are a pair of Mykita Claas. Here is a pair on ebay. I've had these glasses for over 6 years now and i'm sure in some small way they define me. That being said, since I broke them, i've been wearing my old glasses to very little effect. Take me back to when people gave a shit. 
fig 2. Or shouldn't
Glasses are, for anyone who wears them (whether they like it or not), a part of our physical identity, and subtly convey our interests in a way that other crutches cannot (fig 2.). It is because of this that i'm often so suprised at how little people are willing to spend on their glasses, and I suppose that this itself is insight into a bespectacled persons (misaligned) priorites.

So what do my glasses say about me? It's been a while since I was the person I was when I chose them so i'm bit hazy on the details. I know that gold was a departure from the norm. Up until that point I had always considered myself a silver person, which in my mind would correlate with a prefence for cats (and gold for dogs) although I'm not sure why. In retrospect I suppose I was trying to distance myself from the round tortoishell glasses and harry potter jibes that plauged my youth, and which to this day I have no satisfactory retort. 

Friction hinge 'whorl' on Mykita Lite frames
On a more meta level it is the hollistic approach to the design of the glasses, from production to advertisement, that I appreciate and wish to be associated with. This video frames my previous sentiments perfectly. The music, Dot by composer Chilly Gonzales, trips along with certainty, rolling through tempos with the confidence that expertise is rewarded with. Musically it reflects a combination of the two worlds that Bert Haanstra initally contrasts in his 1959 film Glas. That is the freedom of experienced hands to play with process and technique, and the apparent rigidity of mass manafacture. Dot marches tenderly to the confluence of man and machine; stamped, pressed, spun, bent, by both.                         
Perhaps that was a load of pretentious waffle (the answer to which is always to some degree, yes) and I don't want to conflate this advert with the brand because that's not what i'm trying to fetishize, but rather that this video conveys thoughtfulness and ingenuity in the process of making a pair of glasses, as well as in its depiction. And that when I sat on my glasses, and they broke, so did part of my face, and that they are worth repairing. 

The frames are made of very thin stainless steel. I temporarily superglued everything together, topping up as it inevitably broke apart. I also tried soldering the arm back together but stainless steel requires both special flux and wire to be soldered together and in hindsight, combined with a very small surface area to solder to, it was never going to work. 

An optician suggested I send it to a man with a very expensive laser welder but he sounded like a bond villian so I didn't trust him. Instead i've decided to CNC the front piece of the frame out of titanium.

This is a good oppotunity to talk about process. A number of projects require you to copy an existing object into 3D modeling software which is difficult to do accurately without a scale canvas to work off of. By placing your object next to something of known scale and taking a photo tangent to the object you can use fusion 360's scale canvas feature to produce an accurate canvas to work from. 


For such a simple model generating logical tool paths is incredibly simple. I suppose it needn't be very hard but it is very impressive to use such a powerful tool as a complete novice without feeling intimidated. 

Tooling is from APT tools.





0.5mm end mill
The titanium plate was glued down to a flat piece of foam to prevent the need for tabs, but I didn't do a very good job, and the first pass pulled the part from the foam 'ruining' it. I don't dislike the hole in the brace, and it has made me wonder if it's worth doing something with this space instead of just hollowing it out. Although i'm not sure if the possibility that this will become a suntan stencil outweighs any benefit.  

Unfortunately the limits of the pure titanium were immediately apparant as it was incredibly soft, and easy to bend, with none of the spring of the stainless steel original. I hope that this is an issue with this particular grade of titanium, grade 1, which is 100% pure, and i've ordered an alloy, grade 5 which will hopefully solve these tissues.   























anodising with a blow torch


Thursday, 1 April 2021

spidercrank

I needed to buy new cranks which is fairly daunting because cranks are fairly specific things. To give you a taster this was the title of my mental wanted ad on retrobike: 175mm 110BCD Shimano XTR FC-M952 JIS taper, crank arms only. Obviously this was an impossible ask as the FC-M952 crank only came with Shimanos proprietry (take a shot) octolink spline, but you already knew that. 

A different pair of cranks then, and after multiple messages back and forth to an ebay seller to make sure I wasn't paying for something I couldn't use, and being confidently reassured that I was in fact getting what I needed...





haha, every cloud has an alminum lining!

So i needed a new blue bit, and on these RS7? middlburn cranks it's a seperate piece held onto the crank arm with a combination of proprietry (shot) spline and proprietry (shot) lockring. They're also about £70 new, and impossible to find used. Talking to Odin my predicament came up and he suggested we mill something on his 5 axis (3 functioning) cnc machine. Although for Odin the problem is a secondary concern to the solution, which is always, mill something on the cnc machine. As far as I know, he's never been wrong.

Doing the bare minimum, my specialty!









Autodesk just released Generative software as part of a Fusion360's subscription. This basically takes force input on a part, in this case, rotational force on the chainring bolt holes and spline interface, and then uses a machine learning algorithim to optimise material placement accounting for those force inputs. The pictures show this iterative process as it goes from viable to tenuous to laughable. This had me pretty worried  
that we'd underestimated the load and where it would be applied as some of the outcomes seemed to be held together by faith alone, but this is a happy story with a happy ending so no worries.

I overnighted some 6061 aluminum stock and watched Brodin setting up the tool paths for his machine. This is some nerd shit and tbh it's pretty boring to watch and I can't imagine it's that fun to do either so thanks again man. 

These tool paths are translated into a language the machine can understand, essentially loads of XYZ coordinates, called gcode and then it's the future and the machine does all the work. Except it's not and you're Odin and you're constantly worried the machine will decide to start milling your part out of itself instead of your stock. But it still is a little bit the future as the part gradually emerges from the seminal coolant. 


all the tool paths for the front side




 













HAAS Super Mini Mill if you're in the market
 








Thanks for watching!

I do all of these posts on my computer and i've realised that the formatting is a bit funky on phones which I imagine is what most people will use to read these so i'll work on that in future.