<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ryan McNeely on Medium]]></title>
        <description><![CDATA[Stories by Ryan McNeely on Medium]]></description>
        <link>https://medium.com/@ryan.mcneely_93025?source=rss-f467416bbe81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DFHQ-yMUvSjiQQ2W.</url>
            <title>Stories by Ryan McNeely on Medium</title>
            <link>https://medium.com/@ryan.mcneely_93025?source=rss-f467416bbe81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 15:44:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ryan.mcneely_93025/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[CNCing a Tandy Sewing Machine for Leatherwork]]></title>
            <link>https://medium.com/@ryan.mcneely_93025/cncing-a-tandy-sewing-machine-for-leatherwork-3c319b13061d?source=rss-f467416bbe81------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c319b13061d</guid>
            <category><![CDATA[leather]]></category>
            <category><![CDATA[cnc-machine]]></category>
            <dc:creator><![CDATA[Ryan McNeely]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 04:22:59 GMT</pubDate>
            <atom:updated>2026-06-16T04:22:59.449Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been on a bit of a <a href="https://medium.com/@ryan.mcneely_93025/3d-printing-leather-clicker-dies-e98cbd1f32a2">leathercraft bender lately</a>, and this’ll be a bigger writeup of my CNC sewing machine project. It’s been in the works for about two years, on and off. Why?</p><p>I spent a lot of time trying to dial in this entry leather sewing machine, a Consew T-1919 from Tandy. I swapped in a Sailrite motor to have variable speed control, and it really liked punching through a lot of leather, but I could never get the walking foot to work properly in reverse. Mechanically in reverse the feed dog wouldn’t move the same distance as it’s mirrored forward position. The leather would also slip time to time and mis-stitch (probably a skill issue). And so instead of buying a better machine (or more likely just delaying the purchase), I set out to CNC this one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pgeb0B3chSNvyBYh75LbmA.jpeg" /><figcaption>Before</figcaption></figure><h3>Stepper Motorizing the Handwheel</h3><p>The first step was figuring out, will this actually work, can I consistently rotate the wheel with a stepper motor. The sewing machine comes with a motor, but tying into and controlling that motor consistently didn’t seem like an option. My secondary goal was to not break the machine, in case this didn’t work out.</p><p>This turned out to be not too hard. I was able to design a bracket that bolts into a corner hole in the sewing machine. It’s right below the existing motor, and I was able to space it so that the belt can be moved between the manual and CNC motors to change back when needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnKWYSYp9qag4a4C0j01Yg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*i4V5CytLOzqG5YguwcwEXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mm7_ZbH0SJ6fAxzpqbg9sA.jpeg" /></figure><p>The steps to create a full cycle of the wheel (needle max height to needle max height) took a bit of trial and error. There’s probably a way to calculate it with gear ratios between my motor, the intermediary gear, and the main wheel. Through trial and error my value ended up being w_full_rotation = 15,275 step pulses. Very humble beginnings.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F8O-RiAiMKps%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D8O-RiAiMKps&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F8O-RiAiMKps%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dffb890cf8a35a091e65b9fa12fcada8/href">https://medium.com/media/dffb890cf8a35a091e65b9fa12fcada8/href</a></iframe><h3>Linear rail and work holding</h3><p>So my <a href="https://medium.com/@ryan.mcneely_93025/adding-a-linear-rail-to-a-gweike-g2-pro-laser-part-2-batching-10-challenge-coins-e6f5a173405d">coin lasering project</a> that used a linear rail was partly inspired by playing with the rail I got for this project. Being a ballscrew rail, there was basically no noticeable movement slop switching directions. I can move my work holding jig up or down as needed. More jigs are in the prototype stage but as a POC this jig clamps two leather straps together, and exposes one side to the stitching needle. The rail allows precision control, positioning for forward and backstitches in new or existing stitch holes. Want longer or shorter stitches? Just adjust the how far you jog the rail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*evVfk0HlTxJnburyRdXm8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y8BzMXlnMt6KwbifbUBi3w.jpeg" /></figure><p>Early proof-of-concept of stitching in a line.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fl6mC9URduEE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dl6mC9URduEE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fl6mC9URduEE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c16252056a4ce6e9db6d34cdc0b6b6a/href">https://medium.com/media/2c16252056a4ce6e9db6d34cdc0b6b6a/href</a></iframe><h3>Electronics</h3><p>I started with a Raspberry Pi Zero 2 connected to two DM542 Stepper Motor Controllers, one for the handwheel and one for the linear rail. I found that inconsistently I was losing steps for both the wheel and rail. I ended up optimizing my code and migrating to a Raspberry Pi 4 B. The Pi makes motor control really easy, just two control wires to each of the motor controllers and a shared ground. Probably should have gone with Arduino to embrace a more real-time architecture…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pxtk0VxBI8ugikdb0YbZ4Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-rXu-3JvBgVmvODpynxRg.jpeg" /><figcaption>Raspberry Pi (left) and general wiring (right)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wszB1hV4iubpld5etwvDw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M7e7nbJBjPBJSso9CUxxEg.jpeg" /><figcaption>Hand wheel motor controller (left), linear rail motor controller (right)</figcaption></figure><h3>Control</h3><p>I started with ssh-ing into the controller Pi to kick off the sew or move operations. This quickly became tedious with trying to multitask running the script and be at the sewing machine. Next I made a janky controller with buttons and a 3D printed housing. It worked pretty well, but was pretty basic, and had a lot of wires that could disconnect from the Pi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-3tXRG33R12Kk36_EoN4Q.jpeg" /></figure><p>In April Google pushed out a new(er?) <a href="https://developer.android.com/blog/posts/android-cli-build-android-apps-3x-faster-using-any-agent">Android CLI for AI integration</a>. This allowed me to create with Cursor an app to replace this physical controller. It’s been really easy to vibe code new features such as easy configuration of sew and jog distances, tracking how much I’ve stitched for bobbin refill, and advanced back-stitch patterns. It’s truly been a game changer in ease of use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OhwmlfwAhj0WZwhxZchijQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9IcOiMS1nMKV6LK0xfnxuQ.jpeg" /></figure><h3>Misc Mods</h3><p>This is miscellaneous changes I made to make the project work better. With the clamping of the leather, I found the Presser Bar Lifter didn’t need to be riding the leather, so I printed a lifter spacer that holds the presser foot above the leather.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9sgzOfwd9aXkvAPi9kC6lg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mq3nxRQd96l5Okh9OljJ2w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xEizj0vWM-nUqG2pg0X2SA.jpeg" /></figure><p>Also created a giant base with a tool tray for the sewing machine to sit in. Really helps to index the rail off of.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lfe5LP2j2DHas9-83K0OoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nCekYMkK0nCGbi9RJhlSPg.jpeg" /></figure><h3>Final Results</h3><p>Kind of hard to sum it all up. The app features truly elevate the project in terms of usability and potential. I have a bigger work-holding jig and longer linear rail in the current iteration. I’ve already been using it to create straps for various projects like my backpack and plan to use the longer jig to make a basic belt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hnzNumsiPCZZSkjLDmabTg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gFretfH16Z3IVE-L-E5a2Q.jpeg" /></figure><h3>What’s next</h3><p>Adding a second axis is the next step to this. I would really like to be able to create different patterns like this gunslinger belt from <a href="https://f-d-leatherworks.myshopify.com/products/heavy-duty-lined-everyday-belt-gunslinger-stitch-pattern">FD Leatherworks</a>. My straps are thick enough that I should be able to design a better jig to allow X and Y movement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FVrW33s2pj-Sxtv9TaIqIQ.jpeg" /><figcaption>Maybe someday…</figcaption></figure><h3>Materials</h3><p>Motor Controller</p><p><a href="https://www.amazon.ca/dp/B08GCFNQF2">CNC Digital Microstep driver DM542 Stepper Motor Controller 2-phase Digital Stepper Motor Driver 20-50V DC Max 4.2A for Nema 17, Nema 23 and Nema 34 series stepper motor, Replace M542 M542H</a></p><p>Pulley (probably, bought a couple different ones)</p><p><a href="https://www.amazon.ca/dp/B0747G2D4S">uxcell Aluminum 10T 8mm Bore 5.08mm Pitch Timing Belt Pulley for 10mm Belt</a></p><p>Sewing machine (Save up for a better one IMO)</p><p><a href="https://tandyleather.ca/products/consew-t-1919-sewing-machine">Consew T-1919 Sewing Machine</a></p><p>Clamps</p><p><a href="https://www.amazon.ca/dp/B00S916J2A">E-TING 4pcs Hand Tool Toggle Clamp Red Plast Horizontal Quick Release Tool (GH-201A)</a></p><p>Linear rail</p><p><a href="https://www.amazon.ca/dp/B09N3HKB8K">RATTMMOTOR ZBX80 600mm Stroke CNC Linear Stage Motion Actuator X Y Z Axis Linear Slide Rail Aluminum Alloy Cross Sliding Table Linear Rail Guide SFU1605 Ballscrew+Nema23 57 Stepper Motor for CNC</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c319b13061d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3D Printing Leather Clicker Dies]]></title>
            <link>https://medium.com/@ryan.mcneely_93025/3d-printing-leather-clicker-dies-e98cbd1f32a2?source=rss-f467416bbe81------2</link>
            <guid isPermaLink="false">https://medium.com/p/e98cbd1f32a2</guid>
            <category><![CDATA[3d-printing]]></category>
            <category><![CDATA[leather]]></category>
            <dc:creator><![CDATA[Ryan McNeely]]></dc:creator>
            <pubDate>Sun, 07 Jun 2026 19:22:33 GMT</pubDate>
            <atom:updated>2026-06-16T03:59:44.644Z</atom:updated>
            <content:encoded><![CDATA[<h3>Background</h3><p>So I’ve been working on streamlining making folded straps for my various leather projects. I have a backpack and a duffle bag that need shoulder straps, as well as looking at making a couple belts (and <a href="https://medium.com/@ryan.mcneely_93025/leatherwork-using-a-shapeoko-3-xxl-part-2-95f066c333b9">various other past and future projects</a>). This write-up is about the clicker dies I 3D printed to work with the resulting straps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k3rJDpprgfrukXxQ5Pg0zQ.jpeg" /></figure><h3>Die material</h3><p>I’ve been using what’s call ‘Knife Edge Band Saw Blades’ with a width of 0.02&#39;’ as the straight cutting edge. I got it in Canada at <a href="https://onlinesupply.ca/bandsaw-blades/knife-edge-bandsaw-blades/B51-1961060">onlinesupply.ca</a> and the edge seems to be holding up over many cuts.</p><p>For hole punching, I’ve just been buying cheap manual leather punch sets, cutting the ends off and embedding that into the die. It’s pretty quick to pop them out after a few punches and they start filling up.</p><p>For the printing, I’m just using PLA at 30% infill. For the press, I have the 10.2 x 5.9 Vevor press.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QK9habEQoqeIVW7DIcUJlQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UD6zjrVh8clPivvRcATCGg.jpeg" /></figure><h3>Die design</h3><p>I’ve found a 0.55mm width with my printer works great, just tight enough that the blade doesn’t fall out. For the guide I use a bigger 1mm, and so can place the guide on my strap and the blade is an easy fit. One tip is to keep your die designs at the same height (including blade/punch height), so when they’re under your press you don’t need to make height adjustments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*zh6Coon2EvG_7zyootcKuA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*Mb-qO6ODkb6P-E-lVqLRfA.png" /></figure><p>I’m mostly using the saw blade for straight cuts and just chain straight cuts to do 90 degree corners. You can get really close to a clean corner cut with this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UG2APxfSnNh4BWveI2OTPw.jpeg" /></figure><p>Bending/shaping the blade isn’t great, might need to go with a thicker blade. It can be done (see below) with a ring bender but as you get to 90 degrees it wants to snap apart. It’s hard to beat those clean curved lines though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ICW7GtYsue5lmIKT2nNrhg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KlsQclYkhE8geYEKRtykJg.jpeg" /></figure><p>My latest jig is to attach the die guide to a ruler with sliding/locking to speed up cutting to a certain length. Yes, I could just use a knife, but future uses would be punching holes or marking stitch lines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RUWKXTphcrpxNcRH8AZUFw.jpeg" /></figure><h3><strong>Future work</strong></h3><p>I’m still fine-tuning the folding process (sneak peak of the folder in action below) and I’ll do a write up on that when it’s more finished. I’ve got it to the point in Fusion 360 where I can programmatically scale the 3d model to fit different strap sizes and material thicknesses.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrJwGNXhByXE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrJwGNXhByXE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrJwGNXhByXE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c215fb406bfedeb73f143e23b8ead757/href">https://medium.com/media/c215fb406bfedeb73f143e23b8ead757/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F6mPvLMXltqE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6mPvLMXltqE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F6mPvLMXltqE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2960cb90f059c21b338719487a9d312a/href">https://medium.com/media/2960cb90f059c21b338719487a9d312a/href</a></iframe><h3>Links</h3><p>Shout out to Harry Rogers for the inspirational videos where he makes clicker dies out of wood.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FCquWzzaQSZg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DCquWzzaQSZg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FCquWzzaQSZg%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2e0d4a2073d2912c36af70a51d177f6/href">https://medium.com/media/c2e0d4a2073d2912c36af70a51d177f6/href</a></iframe><p>Blade</p><p><a href="https://onlinesupply.ca/bandsaw-blades/knife-edge-bandsaw-blades/B51-1961060">Knife Edge Band Saw Blade Single Edge 106x3/4x.020</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e98cbd1f32a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding a linear rail to a Gweike G2 Pro laser Part 2 — Batching 10 challenge coins]]></title>
            <link>https://medium.com/@ryan.mcneely_93025/adding-a-linear-rail-to-a-gweike-g2-pro-laser-part-2-batching-10-challenge-coins-e6f5a173405d?source=rss-f467416bbe81------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6f5a173405d</guid>
            <category><![CDATA[lightburn]]></category>
            <category><![CDATA[fiber-lasers]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Ryan McNeely]]></dc:creator>
            <pubDate>Sun, 15 Feb 2026 23:07:15 GMT</pubDate>
            <atom:updated>2026-02-15T23:07:15.455Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Background</strong></p><p>I had previously documented how <a href="https://medium.com/@ryan.mcneely_93025/adding-a-linear-rail-to-a-gweike-g2-pro-laser-2bc01dd522fd">I was able to get a linear rail to work with my laser</a>. I started playing with lasering brass challenge coins and ran into two problems. One was locating and aligning the coin blanks, I would need to make a jig for repeatable alignment. The harder problem was I started getting requests to make coins for people and they wanted more than a one off, more like 10+. I could maybe fit 4 coins on my laser, and this doesn’t scale well. Also detaching my linear rail to switch to coins was an annoyance.</p><p><strong>Leveraging my existing rail</strong></p><p>So yeah, my goal was to modify my existing POC to do multiple coins. The base that the coins sat on would need to be metal. I had tried the high temp Proto-Pasta HTP21705-CF leftover from my <a href="https://medium.com/@ryan.mcneely_93025/modding-an-agni-95r-motor-brush-holder-part-2-2eda52cfe2ac">motorcycle brush holder</a>, but found it melted pretty easy under metal heated by the laser(didn’t try with the thick coins, but other projects).</p><p>I considered milling the whole thing out of aluminum, and probably will at some point. I ended using a Sherline mill tooling plate I had laying around. I then 3d printed what is almost just a beer can yolk to align the coins. So far it hasn’t melted and a benefit of this approach is I can print different material holders that screw into the tooling plate if I decide to use different coin blanks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7W_ObDHA40pq8UEiyGs-mw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xEjFle77L41zm9UGEJgyxg.jpeg" /><figcaption>Coin tray on linear rail</figcaption></figure><p>I also added fume extraction. Another benefit of this approach is all the coins move to be in front of the extraction hose when lasered.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fek0cMPLoKkA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dek0cMPLoKkA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fek0cMPLoKkA%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c4f022b17d31c2bd4f55fc525474d90/href">https://medium.com/media/1c4f022b17d31c2bd4f55fc525474d90/href</a></iframe><p>Still lots of z-height available too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GQTCSNSOZmzaL-mfPPozjg.jpeg" /><figcaption>z-height positioning</figcaption></figure><p><strong>Lightburn</strong></p><p>Basically the same to part one. Lightburn treats the linear rail and tray as a rotary. If your tray coin slots have even spacing then it’s mostly a job of making sure the rail is square and using the same spacing in Lightburn. I had to make 80 coins (160 sides of the coins), and so I fine-tuned my positioning a little bit as the batches came off. The first run or two I’d recommend using scrap test coins in case your alignment is way off (1mm+).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uNM2WoeOUppf6XBiR--5_Q.png" /><figcaption>Lightburn positioning</figcaption></figure><p>I did change in the cutting optimization settings to be ‘Order by Layer’. I also grouped on each coin all of it’s layers so one coin, one group, ten total.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*L0Y9fdl_yE_bix-R0ZEHeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*oSLZqpeZYRIYmtKb9HJPuw.png" /><figcaption>Lightburn settings</figcaption></figure><p><strong>Result</strong></p><p>Overall I’m really happy with how this turned out. It reduces the times I need to go to the laser, and I can just let it run. Leveraging Lightburn’s variable text becomes very attractive with 10 coins on the table. The Gweike laser and Lightburn are an amazing combo when up and running (Lightburn dropping linux still hurts). Cowboy action clean match coins are definitely in my future. Future work could include making longer jigs to batch process even more coins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ix-l5WQcsP-qH76Q-NL3LA.jpeg" /></figure><p><strong>Materials</strong></p><p>Tool plate:</p><p><a href="https://www.sherline.com/product/3560-mill-tooling-plate/#description">4&quot; x 10&quot; Mill Tooling Plate - Sherline Products</a></p><p>Coin blanks: <a href="https://www.amazon.ca/dp/B0DCZG9L7F">https://www.amazon.ca/dp/B0DCZG9L7F</a></p><p>Vent fan — AI-CLS4 Cloudline Pro S4</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6f5a173405d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adding a linear rail to a Gweike G2 Pro laser]]></title>
            <link>https://medium.com/@ryan.mcneely_93025/adding-a-linear-rail-to-a-gweike-g2-pro-laser-2bc01dd522fd?source=rss-f467416bbe81------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bc01dd522fd</guid>
            <category><![CDATA[laser]]></category>
            <category><![CDATA[lightburn]]></category>
            <category><![CDATA[machining]]></category>
            <dc:creator><![CDATA[Ryan McNeely]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 01:25:34 GMT</pubDate>
            <atom:updated>2025-02-03T03:12:07.820Z</atom:updated>
            <content:encoded><![CDATA[<h3>Background</h3><p>Last year I picked up a Gweike G2 Pro 30W fiber laser. The main draw being it can cut and engrave metal, and was one of the most reasonable cost to capability laser that I found while researching. It also supports Lightburn software, which was a requirement for me. The biggest drawback was it has a small work area of 110mm x 110mm. Let’s do something to improve that.</p><p><strong>Note</strong>: The information below is dangerous, and could damage your laser. Use at your own risk! I don’t know if my laser will hold up over time.</p><h3>Building the rail</h3><p>I had picked up a stepper motor controlled rail for another project, and was thinking it would be great to move larger pieces under the laser. Ideally I’d be able to control it and the laser from my computer, but unfortunally it looks like Lightburn sends a job to the laser, and doesn’t control it in real time. Lightburn also doesn’t seem to support conveyers that other lasers have, those seem to be proprietary.</p><p>The Gweike and Lightburn does support a rotary axis peripheral. My plan was to impersonate a rotary axis and just pretend I have a very big round object that needs to be lasered. Preferably, I could intercept the signal over USB and control my own motor instead. I quickly realized that the laser is driving the motor directly, and measured 12V over the USB connection. I should look at building a circuit with an optocoupler, but that’s a lot of work.</p><p>Instead, I hooked up my motor directly. Now, again, this a bad idea because I don’t know the limits of the internal motor controller, and there was and still is a good chance I’ll burn out the motor controller. TLDR it worked, also the Gweike seems to have some protections on the motor controller, because I wired it up wrong the first time and the USB port shut down.</p><p>To find the proper wiring, the Gweike rotary used 4 pins from the USB port and its stepper motor was a 4 pin motor. I shorted the pins inside the rotary USB with a screwdriver to find the pinout of the two coils by testing the resistance of the rollers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wrdoTu8cJFjvTOs_FpPhjw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T3LRE8W8iNgwCutJFnB_Eg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kMFeHeH-j89sjk_lbivbLg.jpeg" /></figure><p>With this info, I could wire up my motor to a USB breakout board.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQFs30bNQZtCwpbeEHGsHw.jpeg" /></figure><p>I then tested with the motor disconnected from the rail and some guessed/arbitary values in Lightburn for a rotary job. The second time it worked and the stepper motor rotated (first few times it crashed the USB port from miswiring, and I panicked a bit, ngl). Hooking the motor up to the rail, I could start calibrating. I set up a ruler visible to my camera and played with the settings. Below is what I’ve currently settled on. I have no crash detection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2yqFYolJUzkhamgeF0rq6A.png" /></figure><p>All my work to be lasered in Lightburn is placed on the right side of workspace (X = 55mm is the middle). I wanted to laser a strip of stainless steel to make my own ruler and have something to measure calibration against.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHY0tXgXAxv6uwxeCPTJaw.png" /><figcaption>Lightburn</figcaption></figure><p>And it works! Lot of little tuning with my laser not being square to the work area, printing jigs, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a4P3rWZkIgeQfgp0Za9waA.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsEZUofcfez0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsEZUofcfez0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsEZUofcfez0%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/64ee6fb583d720f8e65cdc7774b77c86/href">https://medium.com/media/64ee6fb583d720f8e65cdc7774b77c86/href</a></iframe><p><strong>Materials</strong></p><p>USB breakout: <a href="https://www.amazon.ca/dp/B08Y8PT3BH">https://www.amazon.ca/dp/B08Y8PT3BH</a></p><p>Linear Rail: <a href="https://www.amazon.ca/dp/B09N3HKB8K">https://www.amazon.ca/dp/B09N3HKB8K</a></p><p>Laser: <a href="https://www.gweikecloud.com/products/g2-pro-fiber-laser-engraver">https://www.gweikecloud.com/products/g2-pro-fiber-laser-engraver</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bc01dd522fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machining wood Ruger New Vaquero grips]]></title>
            <link>https://medium.com/@ryan.mcneely_93025/machining-wood-ruger-new-vaquero-grips-9714dca6dc3d?source=rss-f467416bbe81------2</link>
            <guid isPermaLink="false">https://medium.com/p/9714dca6dc3d</guid>
            <category><![CDATA[fusion-360]]></category>
            <category><![CDATA[woodworking]]></category>
            <category><![CDATA[cnc-machining]]></category>
            <category><![CDATA[mach4]]></category>
            <dc:creator><![CDATA[Ryan McNeely]]></dc:creator>
            <pubDate>Thu, 25 Jul 2024 03:17:41 GMT</pubDate>
            <atom:updated>2024-07-25T14:37:55.665Z</atom:updated>
            <content:encoded><![CDATA[<h3>Background</h3><p>So my Ruger New Vaquero revolvers for Cowboy Action shooting came with plastic grips. They work great, but I was looking to add a personal touch, with a long term goal of making custom grips with wood from the family farm.</p><p>To start I would need to model up the grips in Fusion360 and iterate the design quickly with 3D printing the models. This is a two sided model, and there are holes for the screw/brass threaded insert, alignment pin, and a main spacing pocket that need to line up with locations on the revolver.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zXrqQpY-jz4UWjREF_do8w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e7pT6gqR0lKHFB630Tld2w.jpeg" /><figcaption>3D printed grips</figcaption></figure><p>For the machining, each side of one grip has a roughing and finishing pass. So four operations per grip, eight for a pair. In Fusion this is split into left and right grips, and front and back machining operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*1fOGWR42JPdWyv8VH53qwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*MW15DPo7B2f9sCLgUrlj_w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*3jorCR1NuNW6jho72WKQtw.png" /><figcaption>Fusion 360 screenshots</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtX0vk4913U8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtX0vk4913U8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtX0vk4913U8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a02b432a284b4661bfb87c82d4d3fe4e/href">https://medium.com/media/a02b432a284b4661bfb87c82d4d3fe4e/href</a></iframe><p>It took a few iterations to get the fit as tight as below, but there is very little finishing work. Two tabs that need to be cut on a bandsaw.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IIZc2wCVM8St5mFwODT5tg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PfUSVmqrsKQdbJlBX5MRFQ.jpeg" /></figure><p>I also 3D printed a small jig to allow me to sand off the tab while preserving the angle at the bottom of the grip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kbCNbh_71frdCjIFDzvO6Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_GlCJSQkNq0SFTtFuL_lug.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uWh43FQHXE3Ftsexp71EXg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PRPJVTcQ6l79s4gd9ovg4A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EJarqp5KKcNuf0gZaEr3Xg.jpeg" /></figure><h4>Tips, Tricks, and Frustrations</h4><p>With this project being a bit more complex than previous projects, I wanted to optimize my workflow as much as possible. This was mainly optimizing Mach4, and getting a setup that minimized my manual setups between operations.</p><p>Mach4 and Fusion support tool changes, and with some upfront setup, it’s fairly easy to create multiple tools and their lengths. This allows me to set the point of origin with my Haimer probe, and Mach4 will handle the different lengths of my tools. All I need to do is swap in my tool by changing collets when prompted. At least in theory…</p><p>The TLDR after a few crashes, and much frustration, I found this forum thread, that says by default the g-code command M6 is “T on M6 line is next tool”. What this means is that when Mach4 sees a M6 tool change, it keeps using the current tool, and the <strong>next</strong> tool change it prompts for a change. If your gcode has a tool change at the start (eg. to set up your first tool), it doesn’t stop for a change.</p><p>Changing this to “T on M6 is tool to use”, means a tool change is a tool change.</p><p><a href="https://www.machsupport.com/forum/index.php?topic=37494.10">MACH 4 M6 NOT WORKING, i have tried 5 scripts an 2 weeks fighting this</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*7YGZ4yJB-L4bNzKu_Ac20g.png" /><figcaption>‘T on M6 is tool to use’ setting Mach4</figcaption></figure><p>Also, since the Sherline mill doesn’t have homing switches, after moving to the origin, I needed to set the machine coordinates. In Mach4 settings, the ‘Home in Place’ flags needed to be set for each axis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*rsxM36PhR2OVyUDPXx1DCA.png" /><figcaption>Mach4 ‘home in place’ setting</figcaption></figure><h4>Quality of Life Improvements</h4><p>I made three QoL improvements, the first being the previously mentioned tool offset configuration. When it finally was working as expected, it was by far worth the trouble. The time saved by basically have having no machine setup can’t be understated. Also, consistency between runs has skyrocketed. Having Fusion output the tool changes, and all I need to do is swap tool holders, is amazing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*tA-uth0ar28nRezEItn1BA.png" /><figcaption>Tool offset table Mach4</figcaption></figure><p>Second, more of a safety optimization was 3D printing a parts/tool holder for my tools. It allows me to verify quickly that I haven’t left a tool in the way of the machine, or accidentally left the tool changer bar in. I can do a quick look and know it’s safe to turn on my mill head. It holds the wrench, the tool holder not in use, Allen key, and the bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uE7zjjjhh1CuT-HvPEA7ZA.jpeg" /><figcaption>Tool holder holder</figcaption></figure><p>The last quality of life improvements I made was for my work holding. I added a guide pin to align my wood blank so that the Y-axis zero is consistent. When flipping sides it eliminate any play in setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o2pi6guZj-pvqXK3Vj1EtA.jpeg" /><figcaption>Y-axis guide pin</figcaption></figure><h4>Future Work</h4><p>I still have some small refinements to work out in cheaper wood, but will work up to machining some nicer grips like Rosewood.</p><p>I’m also looking at making some replacement wood furniture for my 1887 lever shotgun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p9XEJBROl110fVZ2I_5i0A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ol6-mweHpm6MNmAVcJ2G1A.jpeg" /><figcaption>1887 shotgun</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9714dca6dc3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leatherwork using a Shapeoko 3 XXL Part 2]]></title>
            <link>https://medium.com/@ryan.mcneely_93025/leatherwork-using-a-shapeoko-3-xxl-part-2-95f066c333b9?source=rss-f467416bbe81------2</link>
            <guid isPermaLink="false">https://medium.com/p/95f066c333b9</guid>
            <category><![CDATA[leatherwork]]></category>
            <category><![CDATA[machining]]></category>
            <category><![CDATA[shapeoko]]></category>
            <dc:creator><![CDATA[Ryan McNeely]]></dc:creator>
            <pubDate>Tue, 14 May 2024 22:48:57 GMT</pubDate>
            <atom:updated>2024-05-14T22:48:57.462Z</atom:updated>
            <content:encoded><![CDATA[<p>This is mostly a follow up on <a href="https://medium.com/@ryan.mcneely_93025/leatherwork-for-cowboy-action-shooting-using-a-shapeoko-3-xxl-ae49cee827c6">leatherwork-for-cowboy-action-shooting-using-a-shapeoko-3-xxl</a> and the <a href="https://medium.com/@ryan.mcneely_93025/vcarve-automation-with-gadgets-small-vector-deletion-4574a7b3185d">vCarve workflow automation</a> I did.</p><p>In the last year, my workflow has pretty much stayed the same.</p><ul><li>In vCarve design the pattern and section it up based on my available leather</li><li>Laser the pattern onto the leather for manual cut out</li><li>Mill out the stitching holes</li></ul><p>One major quality of life improvement was to create a new MDF base for the Shapeoko, and lasered a grid to help aligning the leather.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qk-Um2OhQqcIKGbVMcDNZw.jpeg" /></figure><p>The other change is I’m no longer using doublesided tape. I found that metal weights along the edges was good enough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i-63zpMBosfDXpexrf2Sig.jpeg" /></figure><p>I’m still using the same #102Z .125&quot; Zrn coated flat cutter from Carbide3d that I was using last year for leather, has held up well, still cuts clean. It’s lasted through many projects such as a range bag,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L35V6stztakr3pc7afI8aQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vI5adqAlUOZror3EdNd99g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mERcLXFrnhB_QcVzZKAmFg.jpeg" /></figure><p>holsters,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*710KFTC7n2SsyMyIZfhuOA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rToGqXgT96n1eZL7XpBZtw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBVJDzFLXiSLFAj7JVx_Cg.jpeg" /></figure><p>and other CAS related projects such as my holster and shotgun belts, 1911 mag holders, and stage ammo strips.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*23woFApy3UqpeAoVFdYI6g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C6KCphFofuLvBx8ZJs4E3w.jpeg" /></figure><h3>Future Work</h3><p>I’m experimenting with hand making clicker dies, basically leather cookie cutters, to make cutting more accurate and cleaner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R5htaqDJSRS8GtNFksxIAw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RyKEBlRXOzERYGN8jrpY7Q.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95f066c333b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[vCarve Automation with Gadgets — Small Vector Deletion]]></title>
            <link>https://medium.com/@ryan.mcneely_93025/vcarve-automation-with-gadgets-small-vector-deletion-4574a7b3185d?source=rss-f467416bbe81------2</link>
            <guid isPermaLink="false">https://medium.com/p/4574a7b3185d</guid>
            <category><![CDATA[shapeoko]]></category>
            <category><![CDATA[vcarve]]></category>
            <category><![CDATA[lua]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[leatherwork]]></category>
            <dc:creator><![CDATA[Ryan McNeely]]></dc:creator>
            <pubDate>Mon, 23 Oct 2023 03:46:12 GMT</pubDate>
            <atom:updated>2024-08-30T02:33:56.304Z</atom:updated>
            <content:encoded><![CDATA[<h3>vCarve Automation with Gadgets — Small Vector Deletion</h3><h3>Background</h3><p>For leatherwork I’ve been using <a href="https://medium.com/@ryan.mcneely_93025/leatherwork-for-cowboy-action-shooting-using-a-shapeoko-3-xxl-ae49cee827c6">vCarve Pro to generate my toolpaths</a> for my Shapeoko CNC router. My general workflow was to digitize the leather pattern, import to vCarve, do cleanup of the digital pattern, and then generate laser and hole drilling toolpaths. One of the biggest time sinks had been removing small vector artifacts in vCarve.</p><p>When running the ‘tracing a bitmap’ operation, each drill hole contains two vectors. If one of these isn’t deleted, the CNC router will drill each hole twice, doubling the runtime. In my hat video, you can even see the CNC router double tapping the holes in spots I missed deleting these artifacts. Deleting these artifacts by hand is very tedious, and there can be thousands of these circles on my latest projects.</p><p>For example, recently I imported Creative Awl’s Big Duffle bag pattern (link below) and it has ~5000 extra artifacts to delete. Way too many to delete by hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jtcr0HXiRxNrSxpEe9tufw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P52Z1og9ejk3HX3gabgeZA.png" /><figcaption>On the left is a zoomed in corner of one piece of the pattern with ~40 artifacts selected. Right is the full pattern zoomed out</figcaption></figure><h3>Automating with vCarve Gadgets</h3><p>Thankfully, vCarve has an ‘API’ in that you can write ‘Gadgets’ to automate some tasks. To get going <a href="https://gadgets.vectric.com/v11/gadget-sdk">download the SDK</a>, install, and find the sample gadgets and documentation.</p><pre>#On Linux (C drive under the Public User, not your user)<br>~/.wine/drive_c/users/Public/Documents/Vectric Files/Gadgets/VCarve Pro V11.5/Vectric_Gadget_SDK_V11</pre><p>You’ll find that Gadgets are written in Lua, and that the documentation is both verbose and but also not very beginner friendly for new Gadget developers.</p><p>For my use case, I found the sample in “Samples — General/Layer Example” helpful since it iterated through all the vectors to count them. After trying multiple strategies such as getting the area of a vector (was always null), I ended up grabbing the Bounding box of my vectors and if the vector was smaller than a hardcoded length (1mm in my case) then delete the vector.</p><pre>-- VECTRIC LUA SCRIPT<br>-- Copyright 2023 Farm8763 on github<br><br>require &quot;strict&quot;<br><br>--[[  -------------------------------------------------- DeleteSmallerVectorsOnLayer --------------------------------------------------  <br>|<br>]]<br><br>function DeleteSmallerVectorsOnLayer(layer, vector_max_length)<br><br>   if layer.IsEmpty then<br>     return 0<br>   end  <br><br>   local pos = layer:GetHeadPosition()<br>   while pos ~= nil do<br>      local object<br>      object, pos = layer:GetNext(pos)<br>       -- get bounding box and delete small vector<br>       if object.ClassName == &quot;vcCadContour&quot; then<br>           local contour<br>           local bb<br>           contour = object:GetContour()<br>           bb = contour.BoundingBox2D<br>           if bb.MaxLength &lt; vector_max_length then<br>               layer:RemoveObject(object)<br>    end<br>       end<br>  end  <br>  <br>end<br><br>--[[  ----------------------- main -----------------------------<br>|<br>|  Entry point for script<br>|<br>]]<br><br>function main()<br><br>    -- Check we have a document loaded<br>    local job = VectricJob()<br>    if not job.Exists then<br>          DisplayMessageBox(&quot;No job loaded&quot;)<br>          return false <br>     end<br>  <br>    local layer_manager = job.LayerManager<br>  <br>    local pos = layer_manager:GetHeadPosition()<br>    while pos ~= nil do<br>       local layer<br>       layer, pos = layer_manager:GetNext(pos)<br>       if not layer.IsSystemLayer then<br>          DeleteSmallerVectorsOnLayer(layer, 1)<br>       end   <br>    end<br>  <br>    -- display results  <br>    <br>    local msg = &quot;Vectors deleted if detected. Gadget complete.&quot;<br>    MessageBox(msg)<br><br>    return true<br>end</pre><p>Zooming in to a subset of the duffle pattern, below you can see the before and after from running the Gadget. Just this X shape had ~160 circles that I don’t need to manually delete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A-wFfowOLew_eYuY_R_WMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-gLaeRp0_Gi4C79jK18t4A.png" /></figure><h3><strong>Results</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h0nroIK5Jd_LYESyVSmeCw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5JxqcjQEKvVcLrcftC5daA.jpeg" /></figure><h3>Future Work</h3><p>The tedious part has been automated and the return on more automation is a bit lower in priority. Next steps would be to automate the toolpath generation, but I currently hand pick leather pieces and colors based on scraps I have laying around, so I won’t be following up on this for now.</p><h3>Links</h3><p>Duffle Pattern — Creative Awl <a href="https://creativeawl.com/shop/duffle_x_bags_leather_patterns/">https://creativeawl.com/shop/duffle_x_bags_leather_patterns/</a></p><p>vCarve Gadget SDK <a href="https://gadgets.vectric.com/v11/gadget-sdk">https://gadgets.vectric.com/v11/gadget-sdk</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4574a7b3185d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating an aluminum mold for hobby plastic injection]]></title>
            <link>https://medium.com/@ryan.mcneely_93025/creating-an-aluminum-mold-for-hobby-plastic-injection-9d73921d33e6?source=rss-f467416bbe81------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d73921d33e6</guid>
            <category><![CDATA[milling]]></category>
            <category><![CDATA[injection-molding]]></category>
            <dc:creator><![CDATA[Ryan McNeely]]></dc:creator>
            <pubDate>Sat, 08 Apr 2023 06:08:27 GMT</pubDate>
            <atom:updated>2023-04-08T06:22:39.956Z</atom:updated>
            <content:encoded><![CDATA[<h3>Background</h3><p>A project I‘ve wanted to get around to working on was milling an aluminum mold for plastic injection. I’ve kept procrastinating because of the semi-complicated process to go from designing a mold in CAD -&gt; getting the machining operations to work in CAM -&gt; actually milling the mold in aluminum -&gt; having the mold work in my injection machine.</p><p>For this project I wanted to make clay target holders. They’re consumable plastic parts that get shot at. I have a Medium Machinery plastic injection molder, so just needed to make a mold and learn how to use the machine. Easy right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*AZ_qFrzJLGk_dztz4vIp5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8o9M_tEQCV_AOgxGkIjCuA.png" /><figcaption>From <a href="https://www.printables.com/model/141070-clay-pigeon-holder-2x4">https://www.printables.com/model/141070-clay-pigeon-holder-2x4</a></figcaption></figure><h3>Results</h3><p>I can now ‘rapidly’ create plastic parts with my injection mold machine. With this first single part design and only one mold I’m at a speed of ~10 parts an hour. Each part is ~0.4oz of plastic, so with some mold design optimization I could in theory make 4 parts per ‘pull’ (~40/hour) of the injection machine since it can do up to 2oz. 3D printing was about 1.5 hours per 1 part (though this can run in the background).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ThjPoS6H-Az7btvCx63sw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hiVn_-ZXx7OEWG8JPH7eug.jpeg" /><figcaption>3D printed (green) Injection molded (white)</figcaption></figure><h3>The Process</h3><p>Fusion360 specifics I’ll list in separate section at the end.</p><p>I designed my mold in TinkerCAD (I should probably get around to learning more Fusion360).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*K5WOX_aBL2fjfJ6EHe9Wuw.png" /></figure><p>In Fusion360 I created the machining operations for my Sherline mill. See Fusion360 section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*c73Oo43hUiroHjCFI-cGwA.png" /></figure><p>On my Sherline Mill, controlled with Mach4, I ran the milling operation. I’m using a Beall Collet Chuck, but unfortunately they’ve closed down business. The endmill is a carbide3d endmill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tvibtY2rCLmf3DmmE_KrbQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aVFdwY-QTmXoljDlvOBvdw.jpeg" /></figure><p>On my Medium Machinery plastic injection machine I set the temperature to 270 degrees (I assume Fahrenheit) and used generic polyethylene pellets. I used a piece of magnetic whiteboard to mark how far down to bring the plunger, to optimize the amount of plastic injected. The mold is bolted together to prevent the plastic from splitting the mold.</p><p>A lesson learned here is that the sprue hole shouldn’t be along the split between the two mold halves. If the sprue/injection port was on one side the bottom clamp would hold the mold together (split line should be horizontal instead of vertical).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ytNLNYPA1mz6_z6y5fZDtA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-DZFNNyqn3DuDkFQkKqfg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bN8V2GgQNjMvJO_71MSc8g.jpeg" /></figure><p>Hot plastic is injected into the mold. There was a bit of a trial and error process with this. Experimenting with temperature (settled at 270 degrees), using all four bolts to minimize flashing/splitting, and related, finding the right amount of plastic (with comedic results at first when using 3 out of 4 bolts).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vvkJJX-j5fExel_UknN3dg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zIWKmirN0xtAh8HNEHgz7w.jpeg" /></figure><p>After six or seven attempts, my process is figured out. Splitting the mold after injection, I have my part with minimal flashing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3va3NOT7w2RX8BL6ImhZQw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*faTbntQeZtI4LAGXlAPKwQ.jpeg" /></figure><h3>Fusion360</h3><h4>Create and setup mesh</h4><p>In the Design Workspace go to:</p><p>Mesh<br>-Create<br>-Insert Mesh<br>Make sure Unit Type is millimeter<br>Click “Finish Mesh”<br>Move to origin, top of model at z=0</p><h4>Create Setup and Milling Operation</h4><p>In the Manufacture Workspace:</p><p>New Setup -&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*jEGGrIwGo8JiapXRLXFAwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*m42xQxI3hJn8yhJS54kbVw.png" /></figure><p>Create a milling operation, for example I used a 3D pocket clearing operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*c73Oo43hUiroHjCFI-cGwA.png" /></figure><p>I’m using endmills from my Shapeoko, so I was able to find a tool library online for Fusion360. I created a custom preset for aluminum feeds and speeds for the 1/8&quot; flat endmill. It’s a little slow, but turned out pretty well for a roughing operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*FxHuye3OwRUj5BcXmMQb2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*33Vj5E1rHnxh43f2U-YGmQ.png" /><figcaption>Tool and Passes Tabs (3D Pocket)</figcaption></figure><p>I use the Artsoft mach4mill post-processor to generate my g-code file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L13MBVv840Xr6HsrXEWyMQ.png" /><figcaption>Mach4 Post-processor</figcaption></figure><h3>Resources</h3><p>Carbide3d Fusion360 tool library: <a href="https://www.winstonmakes.com/blog/2017/11/carbide3d-tool-library-fusion-360">https://www.winstonmakes.com/blog/2017/11/carbide3d-tool-library-fusion-360</a></p><p>Beall Collet Chuck: <a href="https://bealltool.com/products/turning/colletchuck.php">https://bealltool.com/products/turning/colletchuck.php</a> (They closed apparently)</p><p>Original clay holder design: <a href="https://www.printables.com/model/141070-clay-pigeon-holder-2x4">https://www.printables.com/model/141070-clay-pigeon-holder-2x4</a></p><p>TinkerCAD: <a href="https://www.tinkercad.com/">https://www.tinkercad.com/</a></p><p>Medium Machinery: <a href="https://www.mediummachinery.com/medium_machinery_llc.html">https://www.mediummachinery.com/medium_machinery_llc.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d73921d33e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leatherwork for Cowboy Action Shooting using a Shapeoko 3 XXL]]></title>
            <link>https://medium.com/@ryan.mcneely_93025/leatherwork-for-cowboy-action-shooting-using-a-shapeoko-3-xxl-ae49cee827c6?source=rss-f467416bbe81------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae49cee827c6</guid>
            <category><![CDATA[firearms]]></category>
            <category><![CDATA[leather]]></category>
            <category><![CDATA[cnc]]></category>
            <dc:creator><![CDATA[Ryan McNeely]]></dc:creator>
            <pubDate>Sat, 21 Jan 2023 23:50:14 GMT</pubDate>
            <atom:updated>2026-06-07T13:45:56.892Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Edit</strong>: <a href="https://medium.com/@ryan.mcneely_93025/leatherwork-using-a-shapeoko-3-xxl-part-2-95f066c333b9">Small part 2 followup</a></p><h3>Background</h3><p>Last year I became a Restricted PAL firearms license holder up here in Canada. My firearms range has a Cowboy Action Shooting club that holds monthly events. Cowboy Action Shooting is a firearm sport where you use a shotgun, two SAA revolvers and a lever action rifle (all designed before 1900) to complete shooting challenges/stages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3vMbwBUaHTNfLrYDvztLaQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F44b6StwKQDNhL0dNXIu1w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l-Ef6mrY0bft4IYTLr6zZw.jpeg" /></figure><p>As part of the game, you need a period looking cowboy hat, gun belt and leather holsters for your revolvers. I decided to make and hand stitch my hat, belt and holsters instead of purchasing them.</p><h4>Design</h4><p>For the cowboy hat I found a leather pattern from Creative Awl (link below). I digitized it and brought it into vCarve Pro 11. I could then create separate tool paths for laser marking the pattern for manual cut out, and drilling all the stitching holes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xwdc52SS4eL2GTm4S1B2CA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3fl8qT9I8h908KZSU3_aIA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OaG8Bc--BamvQJ2La7pooQ.png" /><figcaption>vCarve Toolpaths</figcaption></figure><p>For the holsters, I bought an old school paper pattern book “Hand of God Rig G2 Holster Pattern Pack”. I scanned it, and digitized it in vCarve. I found that most of the ‘mystery’ leather I bought is a little thin, so I mirrored my pattern and use two pieces of leather sewn together to make a lined holster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nmi2-w2_LVMMBCx6Guq2iw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E96I6buyFBgub6qRg1M4QQ.png" /><figcaption>4.75in hand of god holster</figcaption></figure><h4>Operation 1: Laser Pattern</h4><p>WARNING: I have read online warnings about lasering chrome tanned leather, and that it can be poisonous. Make sure you have proper ventilation and avoid chrome tanned leather.</p><p>My plan was to laser the patterns onto the leather instead of making a template and tracing it.</p><ol><li>So that I could iterate on my design (eg: add lasered designs)</li><li>To automate as much as possible using the Shapeoko</li></ol><p>For laser control I had started in Lightburn, but eventually brought everything into vCarve to simplify my workflow using its laser module to generate g-code. For both laser and drilling, I use Universal G-code Sender (USG) to run the Shapeoko.</p><p>Using my jtech laser attached to the Shapeoko, I ran a test to see how different settings show up on different leather colors, trying to find a sweet spot between burning the leather (leaving ash to smudge) and being too faint to see.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYHq78wtToJBBo_22Kmmtw.jpeg" /><figcaption>Laser testing on S.B. Foot — Aged Buck Grey</figcaption></figure><p>There weren’t too many challenges figuring out the laser workflow, just iterative testing on different materials. For work holding on the Shapeoko, I used double sided tape and some weights to try and keep the leather as flat as possible. Mistakes were made though, including setting the speed too slow and burning a hole in one test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cRRykCkDJP7SjyHs2cHY6w.jpeg" /></figure><p>It turned out pretty well though. Especially for the cowboy hats. For different colors/leather finishes the laser configuration changes. The Shapeoko 3 XXL was just big enough to fit the hat pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_IF8_IgyNdJbuq5KDcq-lw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cQgg2Q6j-9HHtzRYUKfbKw.jpeg" /><figcaption>Leather after lasering pattern</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fp0ztIsHBDvk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dp0ztIsHBDvk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fp0ztIsHBDvk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb62d6a48e696eb5c5d91c2a99e1c82e/href">https://medium.com/media/fb62d6a48e696eb5c5d91c2a99e1c82e/href</a></iframe><h4>Operation 2: Hole drilling</h4><p>As the second operation, it quickly became really obvious that I can’t have the leather physically move between the lasering and that proper alignment is everything. Misalignment quickly ruins a run.</p><p>The lasers physical position is offset from the router bit. Inspired by Jtech’s chessboard sample project (link below), I started lasering a alignment pattern to zero the drill bit, and a sample of 9 holes to drill at the start of the job to verify machine setup before actually drilling the holster. I’m using a 0.125&quot; endmill instead of a drill bit to punch the holes. To speed up my workflow, I made a macro in Universal G-code Sender to move the Shapeoko close to the new zero when switching between laser and drilling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xMLGANBK38nQ3c4YGwon6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nmi2-w2_LVMMBCx6Guq2iw.png" /><figcaption>vCarve alignment pattern (left), holster pattern (right)</figcaption></figure><p>For work holding on the larger work, double sided tape works really well. Since it’s just drilling up and down there isn’t too much movement of the leather when it’s a big heavy piece. For the holsters, I use tape and weights to keep it flat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ov4AIc9z8RppHTbwErV2Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MKuXpgN4qvLAuB4nnHRGfA.jpeg" /><figcaption>Cowboy hat with holes drilled (left), holster made from a piece of ‘mystery’ leather (right)</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdrvPcVBJ5DM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdrvPcVBJ5DM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FdrvPcVBJ5DM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3bac16dd731cc35262ccddd531a7a0f1/href">https://medium.com/media/3bac16dd731cc35262ccddd531a7a0f1/href</a></iframe><h4>The Leather</h4><p>Not too much to say about this. I‘ve bought pretty much all my leather from OA Leather Supply in Saskatchewan. He has bundles of scrap cutoffs that have been great to prototype with and has free shipping over $100. About a third to one half of these were just big enough for holsters, and the others I’m using for prototyping.</p><p>For my cowboy hat I needed leather much bigger than the sizes of the scrap, so had to pony up for full sides of leather (after getting my workflow to the point I was ready to risk it on a more expensive leather piece).</p><p>For the cowboy hat, my first hat was with a full side of S.B. Foot — Aged Buck Grey, 4–5oz. I used a heavier Seidel Tanning 9–10 oz (link below) for my second hat.</p><p>As mentioned for the holsters, I found that most of the ‘mystery’ leather I bought is a little thin, so I mirrored my pattern and use two pieces of leather sewn together to make a lined holster. Doubled up the thickness worked well, and the added benefit of having a lined holster.</p><h4>Results and Lessons Learned</h4><p>My first hat attempt I learned a lot from, I found 4–5 oz was a bit light for me when testing out on a windy day. I also had used the pattern for size of 62, and 60 turns out to be a better fit for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nzL4glgpqFJ2XeM3QLFEYg.jpeg" /><figcaption>First hat</figcaption></figure><p>My second hat was a bit easier to make. I removed the folded brim, which cut out a lot of hand stitching. I think the brim does add to it though, and will probably add it back in if I make another one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZOyZ1kQjcNh_uHR41A7qw.jpeg" /><figcaption>Second hat</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3Zbs3TWPBbq2H6FX0LvFw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wom8w4DdB3Q24K1gJIu8Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uVpE1MeFA-KwKKL_WG2KzQ.jpeg" /></figure><h4>Future Work</h4><p>I’m experimenting with making my gun belt from thick saddle skirting leather that can hold the holsters and spare shotgun shells for the shooting stages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F4xkVDRhDq789nu8mpCh9g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNOpg-rMGDrTcv0ax8dpmg.jpeg" /></figure><p>Also right now I’ve only made my digital pattern for my smaller revolvers with a 4.75&quot; barrel. I have a few ‘<a href="https://www.youtube.com/watch?v=zzICMIu5zFY">big iron</a>’ black powder revolvers that are a bit longer with a 7.5&quot; barrel, so will need to digitize the proper pattern size for those.</p><h4>Links</h4><p>Leather</p><ul><li>SEIDEL TANNING — DARK CHERRY WOOD 9–10OZ <a href="https://www.oaleathersupply.com/products/seidel-tanning-dark-cherry-wood-9-10oz-steer">https://www.oaleathersupply.com/products/seidel-tanning-dark-cherry-wood-9-10oz-steer</a></li><li>Mystery Bundles <a href="https://www.oaleathersupply.com/products/mystery-bundles">https://www.oaleathersupply.com/products/mystery-bundles</a></li><li>Saddle skirting <a href="https://tandyleather.ca/products/veg-tan-saddle-skirting-side">https://tandyleather.ca/products/veg-tan-saddle-skirting-side</a></li></ul><p>Leather patterns</p><ul><li>Hat <a href="https://creativeawl.com/shop/cowboy-hat-pdf-pattern/">https://creativeawl.com/shop/cowboy-hat-pdf-pattern/</a></li><li>Holster <a href="https://leathercraftersjournal.com/product/hand-of-god-rig-g2/">https://leathercraftersjournal.com/product/hand-of-god-rig-g2/</a></li></ul><p>vCarve 11 Pro</p><ul><li>Laser module <a href="https://www.vectric.com/products/laser-module">https://www.vectric.com/products/laser-module</a></li><li>Jtech chess board project <a href="https://jtechphotonics.com/?p=12435">https://jtechphotonics.com/?p=12435</a></li><li>vCarve <a href="https://www.vectric.com/products/vcarve-pro">https://www.vectric.com/products/vcarve-pro</a></li></ul><p>Misc.</p><ul><li>Single Action Shooting Society <a href="https://sassnet.com/">https://sassnet.com/</a></li><li>Ontario SASS <a href="https://www.osasf.ca/">https://www.osasf.ca/</a></li><li>Endmill <a href="https://shop.carbide3d.com/collections/cutters/products/102z-125-end-mill-cutter-zrn">https://shop.carbide3d.com/collections/cutters/products/102z-125-end-mill-cutter-zrn</a></li><li>Universal G-code Sender (UGS) <a href="https://winder.github.io/ugs_website/">https://winder.github.io/ugs_website/</a></li><li>Cowboy Action Shooting Match <a href="https://youtu.be/zsC9s5vp8H0?t=39">https://youtu.be/zsC9s5vp8H0?t=39</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae49cee827c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Capturing Bluetooth Traffic to Control LED Lights]]></title>
            <link>https://medium.com/@ryan.mcneely_93025/capturing-bluetooth-traffic-to-control-led-lights-428b965110bb?source=rss-f467416bbe81------2</link>
            <guid isPermaLink="false">https://medium.com/p/428b965110bb</guid>
            <category><![CDATA[reverse-engineering]]></category>
            <category><![CDATA[wireshark]]></category>
            <category><![CDATA[led-lighting]]></category>
            <category><![CDATA[bluetooth]]></category>
            <dc:creator><![CDATA[Ryan McNeely]]></dc:creator>
            <pubDate>Mon, 04 Oct 2021 02:54:05 GMT</pubDate>
            <atom:updated>2021-10-04T03:25:47.851Z</atom:updated>
            <content:encoded><![CDATA[<h3>Background</h3><p>I built a cabinet for my <a href="https://medium.com/@ryan.mcneely_93025/setting-up-a-mach4-for-a-sherline-cnc-lathe-802c8f88094a">desktop CNC Lathe</a> , and used a string of Bluetooth LED lights mounted inside the cabinet. The manufacturers app to control the lights wanted a lot of permissions to run on my phone, way more than I was comfortable with. This writeup covers how I captured the Bluetooth commands the app sends, and how I was able to reproduce the functionality the app provides.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fUvDtjrtpsMTk7ON0V1iyA.jpeg" /></figure><h3>Research and Traffic Capture</h3><p>After a bit of research, it turns out that Android supports Bluetooth packet capturing to a file. I used setup instructions I found on a Honeywell support page (link below). It has a dependency on having the Android Debug Bridge (ADB, link below) setup.</p><p>After enabling Bluetooth capture, I launched the app to generate a sample of the data. It lets you pick a color and the lights will change. Using ADB to fetch the capture file (btsnoop_hci.log), it can be opened up in Wireshark. In Wireshark we can filter for the traffic we want, and looking at the packets captured, we can see the service info. We’ll use this info later as a target when we send our data.</p><p>Unknown Service -&gt; UUID: 0x7777</p><p>Unknown Characteristic -&gt; UUID: 0x8877</p><p>UUID: 0x8877</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*ZQmGQDjR3o3zlu8E6KUqwA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3IAZUyd8zIjFUbiK_90s7g.jpeg" /></figure><h3>Results</h3><p>So we have the commands that are sent to the Bluetooth module on the lights. Breaking it down, we can see that only 6 characters seem to change with the color.</p><p>CD50806005 <strong>FF0000</strong> 00FF00000000000000000012</p><p>CD50806005 <strong>0000FF</strong> 00FF00000000000000000012</p><p>CD50806005 <strong>FFFFFF </strong>00FF00000000000000000012</p><p>Looks suspiciously like hex color codes. After a bit of trial and error, it turns out that they are, but translated/off from expected.</p><p><strong>Expected</strong>:</p><p>#FF0000 //red</p><p>#00FF00 //green</p><p>#0000FF //blue</p><p><strong>Reality</strong>:</p><p>CD50806005 <strong>FF0000 </strong>00FF00000000000000000012 //green</p><p>CD50806005 <strong>00FF00 </strong>00FF00000000000000000012 //blue</p><p>CD50806005 <strong>0000FF </strong>00FF00000000000000000012 //red</p><p>CD50806005 <strong>FFFFFF </strong>00FF00000000000000000012 //white</p><p>CD50806005 <strong>000000 </strong>00FF00000000000000000012 //off</p><p>So instead of RGB, we have GBR. With these strings we can use an app such as Nordic Semiconductors <a href="https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp&amp;hl=en_CA&amp;gl=US">NRF Connect</a> (<a href="https://medium.com/@ryan.mcneely_93025/making-a-functional-hardware-prototype-in-canada-cd95a3b2b11f">which I used previously in my custom PCB</a>) to connect and write the values to the lights Bluetooth service.</p><p>Future work could be to spin up a custom app that is user friendly, or automate the lights with a simple Python script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UPj54jYEwsMv3OjlyUh6Mw.jpeg" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FnoY6nOCXxTE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DnoY6nOCXxTE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FnoY6nOCXxTE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/041b0e7f6faccc73019f9f1ab49990d9/href">https://medium.com/media/041b0e7f6faccc73019f9f1ab49990d9/href</a></iframe><h3>Resources</h3><p>Bluetooth capture on Android:<a href="https://support.honeywellaidc.com/s/article/How-to-capture-Bluetooth-traffic-from-and-to-an-Android-Device"> https://support.honeywellaidc.com/s/article/How-to-capture-Bluetooth-traffic-from-and-to-an-Android-Device</a></p><p>ABD setup:<a href="https://www.xda-developers.com/install-adb-windows-macos-linux/"> https://www.xda-developers.com/install-adb-windows-macos-linux/</a></p><p>LED Light Strip:<a href="https://www.amazon.ca/gp/product/B0874T6Q6X"> https://www.amazon.ca/gp/product/B0874T6Q6X</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=428b965110bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>