{"id":765,"date":"2020-08-21T08:18:12","date_gmt":"2020-08-21T07:18:12","guid":{"rendered":"https:\/\/www.martyndavis.com\/?p=765"},"modified":"2021-05-20T12:36:39","modified_gmt":"2021-05-20T11:36:39","slug":"non-metric-threads-on-the-lathe-using-c","status":"publish","type":"post","link":"https:\/\/www.martyndavis.com\/?p=765","title":{"rendered":"Non-Metric Threads on the Lathe Using C++"},"content":{"rendered":"\n<p>I continue to improve <a href=\"https:\/\/github.com\/md81544\/electronicLeadScrew\">the lathe application<\/a> I&#8217;ve written &#8211; it&#8217;s working really well. Several major improvements recently include  a graphical user interface to allow better display of information, stepper control of the X axis, and the ability to cut tapers by controlling the Z and X axis simultaneously.<br><br>Yesterday I wanted to cut a non-metric thread (normally I use metric exclusively) &#8211; specifically 3\/8&#8243; x 16 TPI. I needed a part  for an old engineer&#8217;s clamp I&#8217;ve had kicking around for ages; it was missing one of its two screws. I have very few imperial dies, and not that one.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"450\" height=\"800\" src=\"https:\/\/www.martyndavis.com\/wp-content\/uploads\/2020\/08\/whit.jpg\" alt=\"\" class=\"wp-image-766\"\/><\/figure>\n\n\n\n<p>Now I can cut threads programmatically, that&#8217;s no problem &#8211; I just added the thread dimensions to my program, ground up a 55\u00b0 tool,  and started cutting. The test thread (not the finished replacement bolt) is shown above. It fits beautifully! <\/p>\n\n\n\n<p><strong>Update:<\/strong> here&#8217;s a picture of the finished version, in situ on the old clamp which I&#8217;ve never been able to use owing to the missing screw (the new one&#8217;s on the left). I guess the next project is cleaning the thing!<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"957\" src=\"https:\/\/www.martyndavis.com\/wp-content\/uploads\/2020\/08\/clamp.jpg\" alt=\"\" class=\"wp-image-771\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I continue to improve the lathe application I&#8217;ve written &#8211; it&#8217;s working really well. Several major improvements recently include a graphical user interface to allow better display of information, stepper control of the X axis, and the ability to cut tapers by controlling the Z and X axis simultaneously. Yesterday I wanted to cut a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.martyndavis.com\/?p=765\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Non-Metric Threads on the Lathe Using C++&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts\/765"}],"collection":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=765"}],"version-history":[{"count":8,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts\/765\/revisions"}],"predecessor-version":[{"id":789,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts\/765\/revisions\/789"}],"wp:attachment":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}