My team is making our custom swerve drive and we have been prototyping with plastic versions of our parts that will be machined out of metal, but something we’ve noticed is that the magnets tend to skip. We’re gonna apply superglue to prevent this but it made me wonder, since we are going to be machining our magnet holders out of stainless steel (it’s a machined hex bolt), couldn’t the magnetic property of the shaft prevent rotation that way not require the use of superglue? Also would not using aluminum cause us trouble in regards to the encoder sensing it properly? We are using the thrifty bot encoder.
Some of the most common alloys stainless steels, like 304 and 316 are not magnetic by default, so they shouldn’t interfere with your magnet sensing. Even then I would still recommend you machine it out of aluminum if at all possible because stainless can be hard to machine at times and will be heavier than aluminum.
As for retaining the magnet super glue works fine, most teams use either super glue or green Loctite (Loctite 609 if I remember off the top of my head).
The sensors can be affected by anything which distorts the magnetic field from the magnet, so you want to be pretty careful here. Maybe a slight amount of distortion will be OK, and maybe your stainless won’t do this (even operations like machining can have an impact in this area). But not using stainless here means you don’t have to worry about it.
609 is not available at my country they said we can use 638 what is your take on that
638 is a higher-clearance/thicker product than 609, but serves the same purpose (and should work just fine if 609 is unavailable).