An Electronic Lead Screw controller using a Teensy 4.1

Are you likely to share the code at any point? I've installed an encoder on my Colchester bantam and already have a teensy. I would really like to try an ELS as a stepping stone to full linuxcnc conversion at some point. I already have a home made dro display with a teensy and LCD.
At some point perhaps. I have to make sure that everything truly works as expected, for one thing, and that all most of the features are in, so it is useful. I am pretty close to that point, but still need to add in left hand threading/feeding and maybe a way to add custom threads from the menu. The DRO inputs need integration, but that shouldn't be hard. The inputs are present, but I have to wire it up to my lathe. The code for this has been tested.

What I think are perfectly normal threads, might not be what you think are normal. There's some edge cases that I have not worked through, due to limitations of the stepper motor driver I am using. Don't have a good way to change the micro-stepping programmatically. The motor driver does not have a published way to communicate with it. Consequently, I cannot programmatically change micro-step values on the fly. This is a problem for the coarse threads, like 3mm and up. All the finer pitches and feeds can be done with one fixed setting.

Have mixed feelings on sharing the code. Put a lot of effort into it, since I wrote the code myself, but I did use a lot of libraries. I'd like someway to make a few pennies for my efforts, although that is not why this was done. Wrote this for a Teensy 4.1 simply because I couldn't buy the TI development board, because it was out of stock for 8 months. Wasn't happy with Clough42's user interface, so added my own touch panel for display and control. My SW is not compatible with a Clough42 display/button box.

Got any ideas how I can make a little, so I can fund a few more efforts like this, or at least fund some small tools for the shop? Started the software 1 May 2022. Not quite done yet, so it's been 5 months of SW work, let's call it 6 months, when it is nearly done.
 
I'd happily make a financial contribution. You've clearly put a lot off effort into pulling stuff together. I'm not sure i'm going to be able to make much of a dent in the cost of 6 months worth of labour though !
 
From another forum, I found a significantly lower cost PCB supplier. Wish I knew about that oh 3 hours ago. :faint:
So much cheaper that I bought a few more boards. I will be able to compare the suppliers.
 
I'd happily make a financial contribution. You've clearly put a lot off effort into pulling stuff together. I'm not sure i'm going to be able to make much of a dent in the cost of 6 months worth of labour though !
Not asking for 6 months of labor! That's not the intent at all. Just a little something to keep the lights burning a little longer. Appreciate the offer.

Well, have to get back to work. I have some software to work on while waiting on the PCB's.
 
I would setup a "coffee fund" for donations for the software - i have found people to be generous if you leave a paypal/venmo/patreon link for $5/25/50, and set your own price points. Or whatever amount makes sense to you.

The other options is the board - if you have to time and desire you could build a few combo kits where it's the board, screen and software then another kit that includes that and the stepper motors or whatever sort of makes sense. Some people want turn key - they want to be able to build it but it needs to be accessible to them. The more you "do for them" the more premium kit it is hopefully with a bit more margin for you. This may or may not be a good idea depending on your desire to keep inventory of items and "kit it".

Those are my ideas.

Now for marketing - what is it about the Clough42 interface that you don't like or from the other side; what makes your interface better? I've been following along and am very impressed with your progress. I will say without some time investment i don't know the approximate cost of the ELS however i'm not sure i know that with the Clough42 setup either.
 
I would setup a "coffee fund" for donations for the software - i have found people to be generous if you leave a paypal/venmo/patreon link for $5/25/50, and set your own price points. Or whatever amount makes sense to you.

The other options is the board - if you have to time and desire you could build a few combo kits where it's the board, screen and software then another kit that includes that and the stepper motors or whatever sort of makes sense. Some people want turn key - they want to be able to build it but it needs to be accessible to them. The more you "do for them" the more premium kit it is hopefully with a bit more margin for you. This may or may not be a good idea depending on your desire to keep inventory of items and "kit it".

Those are my ideas.

Now for marketing - what is it about the Clough42 interface that you don't like or from the other side; what makes your interface better? I've been following along and am very impressed with your progress. I will say without some time investment i don't know the approximate cost of the ELS however i'm not sure i know that with the Clough42 setup either.
For the Clough42 interface, I don't care for the small button presses and 7 segment display of information. This is more or less an interface from the 1980's. I want to see the choices of threads and feeds, in clear fonts, rather than scrolling through a list one by one. Pushing a small button repeatedy to expose the 24th item in a table is not my idea of a good time. I have tables of threads and feeds, whose value is selected by your fingertip. What I have, at least to me, is more user friendly. I have a safety interlock of sorts, the stepper is disabled, unless it is deliberately enabled by the operator, by pressing a clear start button. Hadn't really thought of a sales pitch on features, but maybe I should. The controller is small, very compact, and readily available. The Teensy is 1" x 2.4" and rather robust, the TI board is 2.3" x 6.15", nearly 5.9x bigger, and you here of people frying them or having difficulty programming them. The Teensy runs at 600MHz, the TI system at 100MHz. The TI system does have it's advantages for development, but it is a significantly less modern processor. The Teensy can take advantage of most of the Arduino software libraries. PJRC, the developer of the Teensy has certainly invested quite a bit in writing and maintaining some pretty advanced libraries.

The cost of an ELS system is dominated by the motor, driver and power supply. This of course does not value all the time and effort into making motor mounts and designing mounting schemes for the encoder. I know I spent a lot of time on that. The controller, PCB, display and box are a bit less. Retail HW costs would be on the order of $75. The motor system is on the order of $110+, going up rapidly depending on what you are trying to drive. Then there are the various pulleys, belts or gears that you need and are custom to your lathe. I haven't added that up yet, because I bought extra stuff, trying to figure out what would work on my lathe. Oh, and you need to be able to broach the pulleys and gears, or they may not work on your lathe.

As for a business plan, I'd have to listen to what people might want. They'd have to be patient in the beginning, because I can't afford to be stuck with expensive inventory. So I'd have to build per order, at least in the beginning. If things picked up, then I'd have more options. Clough42 makes money on the hardware. He gives away the software. Personally, I don't know how to make much money on the software, but quite honestly, it is where most of the intellectual property actually resides. In my case, I knocked off the board design in a couple of days - starting from never having used the tools or ever having made my own boards. There's some IP in the board design, but it is easily copied.
 
Last edited:
I’ve been interested in ELS for my lathe for a while and have enjoyed your progress. I like a lot of what you are doing with your approach. I’ve been a long-time Teensy user and fan.

I haven’t paid close attention to the hardware interface you made. Does it include reverse-polarity protection and optoisolators on the inputs and outputs? I’d think you want those features in a commercial product.

I’d happily pay for a software license and hardware board.
 
I’ve been interested in ELS for my lathe for a while and have enjoyed your progress. I like a lot of what you are doing with your approach. I’ve been a long-time Teensy user and fan.

I haven’t paid close attention to the hardware interface you made. Does it include reverse-polarity protection and optoisolators on the inputs and outputs? I’d think you want those features in a commercial product.

I’d happily pay for a software license and hardware board.
I'm at V0.1 on the PCB. Probably need another spin, if I'd hazard a guess. I left some things out, that I shouldn't have in retrospect. I'd like to add some more sensors, so that I can put in some proximity sensing and perhaps a mechanical safety switch. The interface to the stepper motor driver is isolated by the optoisolators on the stepper motor driver. The rotary encoder itself is opto-isolated. I did not put in reverse polarity protection in this version of the board for the header connectors. I would use keyed connectors were this to be commercialized.

When I started with this, I really hadn't considered making a commercial product. It basically was for me. Made some UI changes that more suited me, like a touch panel display. That doesn't mean it couldn't be made into a real product, but then again, the cost would rise due to the more expensive components and requirements, etc. There's hobby grade and professional. It takes a lot more effort to get to professional quality. Would require an analysis to determine return on investment. To put out a decent hobby grade system, that is far more likely.
 
I can only speak for myself, but its the software that i'm primarily interested in and hence value. Possibly the board design as well, but if its primary function is to protect the teensy, and the teensy is relatively inexpensive, then its value is somewhat limited by the cost of a teensy. I accept (and place some value on) the fact that it offers a much tidier solution than a birds nest of dupont wires!

I'm in the UK, so if you go the hardware only route you almost certainly rule me out straight away, even if that is only the teensy and bare pcb. Shipping, import vat and associated admin costs from the USA always seem astronomical. That won't be a problem in your home market obviously.

Given where we are (a hobby machinist forum) the chances are your primary market is a group of people that enjoy tinkering, own machine tools (and mess about with micro controllers based on the small sample above) so there's a good chance they'll be able to design, source and machine most of what they need to assemble this.

There are already some commercial offerings, Rocketronic springs to mind, but to someone that can do basic stuff with an arduino/teensy already, these look expensive to get started with (even if their total cost at the end is similar to going the diy route). I assume its was the open source nature and low cost of entry that attracted you initially to the clough42 solution? Unfortunately his choice of platform made the cost of entry higher than it could otherwise have been, before we even get to the availability issues.

I've no great suggestions for how you protect your IP if you do go the software only route. I suspect you are relying on trusting that people that have paid you something won't then distribute it on the Internet for free (or repackage it and sell it themselves), but its clearly a risk.
 
Back
Top