# Thoughts on designing a new controller

**URL:** <https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453>\
**Category:** Electronics\
**Created:** [July 8, 2019, 5:13pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453 "2019-07-08T17:13:29Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Gero](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/gero/32/17487_2.png) [@Gero](https://forums.maslowcnc.com/u/Gero)\
**Post date:** [July 11, 2019, 1:48pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/41 "2019-07-11T13:48:01Z")

</div>

> [@Four Motor Maslow.. sort of](https://forums.maslowcnc.com/t/four-motor-maslow-sort-of/9919/96):
>
> Since I’m trying to do a quadrilateral setup, I’m using the bottom motors to keep the sled vertical and I think the only way to do that is through setting position. I’ve been thinking about it further today and wonder if because I’m using 1/32 inch thick webbing, the resolution of the motor encoder will be good enough. The webbing using a 40 mm inner spool diameter maxes at around 70mm with ~3m wrapped around the spool (if I recall my calcs correctly from earlier today). That leads to a reso…

---

<div class="post-metadata">

**Author:** ![bar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bar/32/10_2.png) [@bar](https://forums.maslowcnc.com/u/bar)\
**Post date:** [July 11, 2019, 1:48pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/42 "2019-07-11T13:48:10Z")

</div>

My musings on the topic are here:

> [@Musings on a new design](https://forums.maslowcnc.com/t/musings-on-a-new-design/7975):
>
> So I’m really trying my hardest to take a proper break to rest and recuperate, but I can’t stop thinking about Maslow stuff so I want to write out what I’ve been thinking so that I can 1) not have to remember it all 2) get community feedback 3) put my ideas in the public domain 4) maybe someone else wants to make them so I can just but the kit stuck_out_tongue There are four main weakness with the current design that I would like to improve. They are: Ease of calibration - this is a big stum…

And @madgrizzle being the amazing being that he is is building one here:

> [@Four Motor Maslow.. sort of](https://forums.maslowcnc.com/t/four-motor-maslow-sort-of/9919):
>
> After many, many long months, lots of reworks, failed attempts, yada yada yada, I finally got my self-contained sled design using four motors running “half-decently” (i.e, only two motors are connected…so half). The premise is that by using motors at each corner of the sled, you can: Keep the sled vertical, thereby allowing simplified math using quadrilateral kinematics Improve performance in bottom left/right corners because there are motors pulling it into the corner. I don’t have the two …

---

<div class="post-metadata">

**Author:** ![mhnudi](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mhnudi](https://forums.maslowcnc.com/u/mhnudi)\
**Post date:** [July 11, 2019, 2:39pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/43 "2019-07-11T14:39:44Z")

</div>

@bar, @Gero thank you both, I have some reading to do! Seems very interesting.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [July 11, 2019, 6:52pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/44 "2019-07-11T18:52:17Z")

</div>

I don’t think the RPI has enough PWM pins to run a motor controller directly (not even sure it has enough GPIO for all the encoder pins needed for a four motor design) so if you have an RPI as part of the design, it needs some sort of “intelligent” controller it can talk to since it won’t be able to talk directly to the TLE5206/whatever chips and motor encoders. That’s why I like the idea of incorporating a microcontroller directly on the motor controller (4 dc brushed motors + stepper) and just making that microcontroller do really basic work like managing the PID loop and reporting errors. Leave all the complicated stuff to the RPI (e.g., processing gcode, UI, etc.) so you seldom, if ever, have to update the firmware of the microcontroller.

---

<div class="post-metadata">

**Author:** ![JWoody18](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jwoody18/32/13066_2.png) [@JWoody18](https://forums.maslowcnc.com/u/JWoody18)\
**Post date:** [July 11, 2019, 10:56pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/45 "2019-07-11T22:56:16Z")

</div>

Here is some detail on the Pi GPIO pins: [https://www.raspberrypi.org/documentation/usage/gpio/](https://www.raspberrypi.org/documentation/usage/gpio/)

---

<div class="post-metadata">

**Author:** ![Jamtek](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/jamtek/32/12604_2.png) [@Jamtek](https://forums.maslowcnc.com/u/Jamtek)\
**Post date:** [July 11, 2019, 11:23pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/46 "2019-07-11T23:23:35Z")

</div>

So, this would look something like the Einsy Rambo with a Rasberry Pi Zero W, used in the 3D printing world?

![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/2X/1/13d9864d14e728b9911a5256d2c3ac5bb6b59e71.jpeg)  
[Edit - photo courtesy of [Prusa Printers blog](https://blog.prusaprinters.org/original-prusa-i3-mk3-bloody-smart/) The Rpi zero W is used to run OctoPrint]

[https://reprap.org/wiki/EinsyRambo](https://reprap.org/wiki/EinsyRambo)

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [July 11, 2019, 11:49pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/47 "2019-07-11T23:49:35Z")

</div>

I’m using 10 pwm pins an 10 gpio at the moment in my four motor design. I guess you might be able to rework the pwm with the tle5206 to just use one pwm pins and do something different for the z axis or maybe use softpwm but not sure if that would work for the application.

---

<div class="post-metadata">

**Author:** ![NTTD](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/nttd/32/13251_2.png) [@NTTD](https://forums.maslowcnc.com/u/NTTD)\
**Post date:** [July 15, 2019, 10:27pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/48 "2019-07-15T22:27:36Z")

</div>

> [@bar](#):
>
> I know for a lot of people a price increase wouldn’t be a big deal, but I know for me and some people it would be.

+1 on that.

While I understand the market concepts/dynamics that @JWoody18 and others were referring to.  
Even near $500 is a big ask for many. That can be hard to justify for one tool no matter how useful and amazing.  
Not everyone is looking to use this for business/income. For many of us it would be just for hobby.

I was on the fence for some time and missed the opportunity for the first one. Still trying to justify the price on the current offerings.

If it was $700+ I would not even consider it much like traditional CNC router machines.

---

<div class="post-metadata">

**Author:** ![WoodCutter4](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WoodCutter4](https://forums.maslowcnc.com/u/WoodCutter4)\
**Post date:** [July 15, 2019, 11:29pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/49 "2019-07-15T23:29:18Z")

</div>

> [@NTTD](#):
>
> If it was $700+ I would not even consider it much like traditional CNC router machines.

In the very beginning when it was introduced to me, I might not have either, honestly. I will say that it feels like a majority of people, at least the ones active on this forum, seem to tinker enough over time and add upgrades slowly, pushing their all-in costs way past the advertised price point. EDIT: myself included!! 🙂  
Maybe we can have the best of both worlds by having easy upgrade options, as bar said above. If that continues to be the mission, I do feel that communication to new users, who are in the buying phase, about the existing “stock” options and “upgrade” options, could be improved.

---

<div class="post-metadata">

**Author:** ![NTTD](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/nttd/32/13251_2.png) [@NTTD](https://forums.maslowcnc.com/u/NTTD)\
**Post date:** [July 15, 2019, 11:56pm UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/50 "2019-07-15T23:56:33Z")

</div>

> [@WoodCutter4](#):
>
> In the very beginning when it was introduced to me, I might not have either, honestly. I will say that it feels like a majority of people, at least the ones active on this forum, seem to tinker enough over time and add upgrades slowly, pushing their all-in costs way past the advertised price point.

Good point, on lower price entries into tech such as this. Overall costs can well exceed the initial price.

The tough sell is that first price.  
As @bar alluded to above, I think it’s important to keep the initial “kit” price low to get people into these that may otherwise avoid the tech and miss out on the joys and benefits.

3D printing was like that for me, It wasn’t until good printers were in the sub $300 range that I took the plunge and got one.  
Now that I like it and understand the value of that tool, I can see and rationalize the benefit of adding a quality extruder that is near the initial price of the whole printer.

> [@WoodCutter4](#):
>
> Maybe we can have the best of both worlds by having easy upgrade options, as bar said above. If that continues to be the mission, I do feel that communication to new users, who are in the buying phase, about the existing “stock” options and “upgrade” options, could be improved.

Exactly, for many (me included) its better to keep the initial cost down even if much more is spent over time to upgrade. It lessens any single impact on the pocketbook. For others who know that they want it and can afford it, I can see the benefit of getting a completely upgraded unit with all the bells and whistles.

---

<div class="post-metadata">

**Author:** ![WoodCutter4](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WoodCutter4](https://forums.maslowcnc.com/u/WoodCutter4)\
**Post date:** [July 16, 2019, 12:55am UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/51 "2019-07-16T00:55:10Z")

</div>

> [@NTTD](#):
>
> For others who know that they want it

This is part of my point about improving communication on options. I’m not sure if new, inexperienced users could know if a certain kit would be right for them, if “this” piece of hardware is better than “that” piece of hardware and why.

What I’m thinking about is: how to inform the new user, who has the money, that there are upgrades that could be done straight away, instead of buying the “stock” option and then saying “well ‘that’ part doesn’t work well, wish I would have known about ‘the other part’? My felling is that this scenario is frustrating and off putting to the “Maslow brand”.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [July 16, 2019, 2:27am UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/52 "2019-07-16T02:27:44Z")

</div>

before we get too worked up in different options, I’ll point out that we don’t  
have anyone who is producing a ultra reliable/precision kit yet. I think the  
problems are more on the software side now than the hardware side, but in a year  
we have not put together a good comparison of the different triangulation kits,  
let alone any of the other options.

We do know the Z axis can be improved significantly, but there’s no comparison  
between the different Z options (other than they are all better, and mostly more  
expensive or harder to build, than the stock Z option)

frame angle, we know that 20 degrees is too much and 5 degrees to little, is 15  
degrees right or would be be better going closer to vertical?

a 12’ top beam seems better and it may be good to define that as the default,  
ith 10’ or shorter being a fallback (including just a little more chain in the  
kits). this would be close to zero cost

it seems pretty clear now that weights instead of bungees improve the machine,  
this is pretty much a zero cost upgrade

it’s only the more drastic differences (4-motor, gantry) that add a really  
significant extra cost. Even more expensive electronics would not be a huge  
cost.

David Lang

---

<div class="post-metadata">

**Author:** ![WoodCutter4](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WoodCutter4](https://forums.maslowcnc.com/u/WoodCutter4)\
**Post date:** [July 16, 2019, 2:33am UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/53 "2019-07-16T02:33:38Z")

</div>

> [@dlang](#):
>
> I’ll point out that we don’t  
> have anyone who is producing a ultra reliable/precision kit yet.

@dlang, @Metalmaslow is producing [a very nice laser cut metal kit](https://www.metalmaslow.com/), although the first unit arrived today and we don’t have “data” on its performance, [by watching the video of it cutting](https://forums.maslowcnc.com/t/metal-maslow-kit-600-ships-nov-respond-below-if-interested/6312/403), I’m pretty optimistic and confident in its performance. In my opinion, their kit options are a step improvement for the community.

---

<div class="post-metadata">

**Author:** ![Metalmaslow](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@Metalmaslow](https://forums.maslowcnc.com/u/Metalmaslow)\
**Post date:** [July 16, 2019, 2:58am UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/54 "2019-07-16T02:58:16Z")

</div>

The best way to keep costs down is to make all parts available for people to buy themselves. Right now the motors used are realistically only obtainable in large quantities easily and unless you are a skilled electrical person same thing for motor controller.  
There are other Chinese motor companies. Aslong is one that make similar motors and sell them in small quantities.

---

<div class="post-metadata">

**Author:** ![bar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bar/32/10_2.png) [@bar](https://forums.maslowcnc.com/u/bar)\
**Post date:** [July 16, 2019, 7:52am UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/55 "2019-07-16T07:52:30Z")

</div>

> [@madgrizzle](#):
>
> I don’t think the RPI has enough PWM pins to run a motor controller directly (not even sure it has enough GPIO for all the encoder pins needed for a four motor design) so if you have an RPI as part of the design, it needs some sort of “intelligent” controller it can talk to since it won’t be able to talk directly to the TLE5206/whatever chips and motor encoders.

I’m planning to use SPI to talk to both the encoders and the motor controllers. That would give us more information to work with (like real time current measurements) and should ultimately use fewer GPIO pins.

Based on everyone’s discussions about the price point, I agree with the idea that keeping the cost to get a machine as low as possible should be the goal, with optional upgrades. I’ve been playing around with the esp32 and it seems like a great replacement for the Arduino at a lower price. The point about having a clear list of what is available and what the benefits are is a good one. It could be a little bit difficult with multiple people selling different things, but I will work on that.

> [@Metalmaslow](#):
>
> Right now the motors used are realistically only obtainable in large quantities easily and unless you are a skilled electrical person same thing for motor controller.  
> There are other Chinese motor companies. Aslong is one that make similar motors and sell them in small quantities.

Great point about the motors. Using a motor which can be bought in smaller quantities would be a big step towards making the kit more open. Do you have any recommended motors which are available in smaller quantities? For the next version I am planning to use an [external encoder](https://ams.com/as5048a) so the motor does not need to have an integrated encoder.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [July 16, 2019, 9:48am UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/56 "2019-07-16T09:48:59Z")

</div>

That looks like it’s readily available, how would you calibrate it? The  
non-linerity is prety significant (0.8 to 1.2 degrees depending on temp and  
magnet placement being off by 0.5mm) I’m thinking of the problems you had with  
the makesmith magnetic sensor.

David Lang

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [July 16, 2019, 10:22am UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/57 "2019-07-16T10:22:43Z")

</div>

I’ve been wanting to use the AMT series of encoders from CUI, they apparently  
just released SPI versions (prior versions were rs422/rs485 based). they are  
available in 12 and 14 bit absolute versions, but list their accuracy as 0.2  
degrees (which with a 25 tooth gear would be ~0.1mm vs ~0.5mm of the magnetic  
sensor listed above)

the problem is their price, ~$50 each.

This may be a case for the high-low mix, with a 10 tooth sprocket, the magnetic  
version claims to give accuracy about the same as we can get with the AMT  
version on a 25 tooth sprocket for probably \<$15/sensor ($10 for the chip, +  
board, connector, assembly, magnet etc). So support both, the cheap sensors for  
the low-end kit and the expensive, but more accurate sensors for an accuracy  
upgrade (especially when combined with larger sprockets and faster motors)

David Lang

P.S. one nice thing about going to a spi interface is that you don’t have to  
keep up with the encoder pulses, and this drastically relaxes the real-time  
requirements. The computer polls the encoders and records when it did so, if it  
gets delayed a bit before the next poll, it’s not a big deal. This is one of the  
things that makes using something like a Pi more realistic.

---

<div class="post-metadata">

**Author:** ![bar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bar/32/10_2.png) [@bar](https://forums.maslowcnc.com/u/bar)\
**Post date:** [July 16, 2019, 11:01am UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/58 "2019-07-16T11:01:46Z")

</div>

> [@dlang](#):
>
> This is one of the  
> things that makes using something like a Pi more realistic.

Exactly my thinking 😁

> [@dlang](#):
>
> That looks like it’s readily available, how would you calibrate it? The  
> non-linerity is prety significant (0.8 to 1.2 degrees depending on temp and  
> magnet placement being off by 0.5mm)

My reading of the datasheet is that the non-linearity has much more to do with magnet placement than temperature so it should be pretty constant. I’m hoping that by running the motor at a constant voltage and constant load we can measure the non-linearity of the encoder, but I’m working on testing that right now so it is to be determined. If the non-linearity can’t easily be compensated for we’ll have to rethink some things.

---

<div class="post-metadata">

**Author:** ![Metalmaslow](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@Metalmaslow](https://forums.maslowcnc.com/u/Metalmaslow)\
**Post date:** [July 16, 2019, 11:11am UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/59 "2019-07-16T11:11:42Z")

</div>

> [@bar](#):
>
> Do you have any recommended motors which are available in smaller quantities?

I got some sample motors from company below but have not tested them.  
There is also another company that makes stepper worm gear motors that sent a catalog, as well as spindles.

[http://www.aslong.net/en/h-col-123.html](http://www.aslong.net/en/h-col-123.html)

---

<div class="post-metadata">

**Author:** ![bar](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/bar/32/10_2.png) [@bar](https://forums.maslowcnc.com/u/bar)\
**Post date:** [July 16, 2019, 11:47am UTC](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453/60 "2019-07-16T11:47:57Z")

</div>

I guess a big benefit of removing the encoder from the motor is that as long as we have a standard bolt pattern pretty much any motor would work. If the motor was WAY different from the original one some PID tuning might need to take place, but for the most part they should be swappable.

[Previous page](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453.md?page=2)

[Next page](https://forums.maslowcnc.com/t/thoughts-on-designing-a-new-controller/10453.md?page=4)
