2020-06-03 (W) HexShaftMonitor

I modeled the first piece of yesterday's components into OpenSCAD. The magnet holder slides over a section of a hexagonal shaft and holds a disc magnet to one side. The top has an extended portion where it will lock onto the cover later.

In this project, there will be three components, and the magnet holder is the first. There will be three files, and it will be essential to carry the variables throughout exactly. Right now, this means copy-pasting the values or entering them correctly, but it may be wise to use one file to select which piece to render.
Rotating model

I printed the first copy, but it was apparent I had the wrong dimensions because I intended to make a model with a 1/4" (6.2mm) hex hole in the center, but this was too wide. I checked my code, which rendered the hole twice as large, so I corrected the bug and printed a second copy.
Size mismatch in the first print
1/4" hex magnet holder

At first, I was upset that I wasted time and filament on a magnet holder that was the wrong size, but I realized that I had a 1/2" (12.4mm) hex shaft at work, and I could see if my code was behaving consistently. Sure enough, my 1/4" and 1/2" models fit onto their respective shafts securely.
Excellent results

The rest of the posts for this project have been arranged by date. First time here?

Completed projects from year 1
Completed projects from year 2
Completed projects from year 3
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6
Completed projects from year 7

Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com

This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.

All information on this blog, or linked by this blog, is not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property, or similar, is the responsibility of those involved in the replication.

All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by  Brian McEvoy, cannot be used to claim property or assets.

Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.

This blog, including pictures and text, is copyright to Brian McEvoy.