Welcome! Log In Create A New Profile

Advanced

Which stepper to buy: 68oz 0.9degrees or 70oz 1.8degrees

Posted by TheTechnicalNoob 
Re: Which stepper to buy: 68oz 0.9degrees or 70oz 1.8degrees
January 04, 2014 01:22AM
Quote
bobc
Quote
NoobMan
So again, its not a current sinusoid that is generated eslewhere than forced into the coil. Current just grows in the coil as result of playing with voltage, and that is the elemental law of the inducutor. Voltage across inductor builds the flux, to which the current is proportional. Now if you understand that, you will see previous statements differently and, even if most ppls dont see it, some other parts.
That is not how an inductor works. Flux is generated from the current. Even in an inductor, voltage generates the current. It does not just grow by itself.
An inductor only generates current "by itself" when you remove the external voltage, and the flux collapses.

Please read again, what i said is this: "current just grows in the coil as result of playing with voltage". I didnt said the current "grows by itself", but as a result of "playing with voltage". E.g. voltage being applied. And if you read my entire post, you will see the reply was about uncle saying that stepper driver is making a current sinusoid and forces it into the coil. And in turn i said its the driver "plays with voltage", and hence the current is a result of the *driver* "playing with voltage".

When external voltage is removed, i would rather say that the energy stored in the inductor is released. I would say "released" instead, because e.g. "generated" might not be my choice of wording, but anyway something more or less like that - however my comment had nothing to do with this part.

As a result of driver putting the voltage across the inductor then inductor current grows to a value starting from zero and going up. Inductor *element law*: iL(t)=1/L*integral of vL(t)*dt. And current is proportional to flux, by some parts of maxwell eqs. But i would say that what "builds" the flux is the voltage rather than current. Because at moment time=0, the initial condition is iL(0)=0, this is what we are starting with. So only the voltage could build the flux, because the current is the output of the function, initially=0, and the input/variable is the integral of voltage over time. Again, because we are starting with initial condition iL(0)=0, and if we think current would be the one "building" the flux, then mathematically it would just sit at zero. This is why also as a choice of wording, i would rather say the "voltage builds the flux" and "current is proportional to flux". E.g. why "flux is generated from the current" would not be my first choice of wording either: i would rather say "flux its generated from voltage" instead, but thats just me and probably just semantics.

Beyond semantics, the very thing which depicts best the exact relation is the "element law" mentioned above, and if we put this up, then we can agree there is nothing we can argue about it - well, at least i wont argue about it. Thinking differently about it, and interpreting and expressing it differently this is ofc sort of normal, otherwise we would all be the same and that would be quite boring.
Re: Which stepper to buy: 68oz 0.9degrees or 70oz 1.8degrees
January 05, 2014 08:03AM
Quote
uncle_bob
In the world of printers, we (hopefully) smoothly accelerate and decelerate the stepper. That means we have a varying frequency sine wave that's the drive in the high speed case that this all came out of. The discussion is revolving around a high rpm rather than a low RPM use case. In the low RPM case you do get steps in the current, but you are in what we are calling an "ohms law" region.

Who is "we" that is calling for an "ohms law" region, and does that imply there is another region that is "outside ohms law"?
Just to sum up how i see things about "ohms law" region issue i am going to take some liberty and express in a direct way like this:
- its ok to say things like: "we dont care for ohms law", or "it doesnt bother us", or "we can ignore it". Or any expression along the lines, but without essentially denying ohms law. It could be true in some context for some level. Its not the best thing to say because it leaves open to interpretations such as next part.
- its *not* ok to say things like: "does not apply" or "steppers work inside ohms law region and outside ohms law region" or "ohms law does not apply for steppers at all". Anything along these lines just doesnt fly. Makes no sense, to me at least.

Quote
uncle_bob
We very much do generate a sinusoidal current to drive a stepper motor.

You keep on saying the driver ic outpus a sinusoidal current, and i say stepper ic outputs square voltage. Now, lets take a good look at the output stage of the driver ic. That is a h-bridge made with fets which are operated like switches, and supplied with the input voltage. If you think about this more, i think you will see the light. I wasnt able to change your pov this far, even tho i tried, so perhaps you can do that instead, sometime in the future. For the time being i will keep to my pov and say it outputs the voltage, and it switches it, so its kind of a switched voltage, hence some kind of square voltage. Well maybe rectangles instead of equal sides square, but angles are squared at least.

And then i will say the current grows in inductor as a result of voltage being applied to it. Now somebody will get picky and will say it doesnt grow there. It grows somewhere else. That would be true. Ofc the current needs the entire loop, and current is exact same in entire loop. So if it grows in inductor it also grows in the Rsense, grows in the high side and low side fets, etc, just grows across the entire loop. But while all other parts of loop have other element laws, e.g. rsense resistor element law is just straight line and fets can be modeled for this as ron as switches, then the inductor gives the essential element law, the dominant one, thats what is actually responsible for the current shape. So while one could say current grows somewhere else, even grows in the pcb tracks, well i guess that would be also true, just none of those places is interesting. So, saying it grows in inductor makes more sense because thats the element resposible, the dominant one, and coz i need to put the finger on that place. Its habbit to say current "grows/falls in inductor", although ofc in fact, it does grow/falls the same everywhere in the entire loop - always. Just a matter of words. So i will say "current grows in inductor" and its an expression, and afaik quite in use this way.

Quote
uncle_bob
The stepper is being operated as s synchronous AC motor when it's in micro stepping mode. The data sheets for the stepper chips show this very clearly.

In vfd (variable frequency drive), the ac frequency directly gives rpm. If that would be true for stepper, it would mean that when stepper holds position then switching frequency=0 ?

Now, this is some practical variable frequency driver, its supplied by mains ac (essentially its a cycloconverter) the size of ~ half desktop pc and cheapest costs 200 eur. This does output a sinusoid e.g. those ones say 0.5-1000hz, and that directly relates to rpm. The motor positions are continuous.

And this is our practical stepper driver supplied with low voltage dc (essentially its a dc switch mode) the size of a big thumbnail and cheapest costs less than 10$. This outputs a square voltage, not a sinusoid, the switching frequency measures in tens of Khz range, and this switching frequency is *not* proportional to rpm. In fact switching is also that high even when motor stays still. And the motor positions are discrete, and e.g. distinct and individual, sort of separate to each other. Just in extreme case we would want to output a sine while having a dc for input, that would be called an inverter - but this one is not.

*The ok part*
The datasheet does show something that looks like a current sinusoid, thats true. This sinusoid also represent the coil current levels for different step positions, and look like a sinusoid as the motor moves from one position to the next. And it is related to rpm, because it shows how motor moves from one position to another, rpm-wise this sinusoid is like an acordeon: increase rmp and its narrower, and vice-versa, lower the rpm and its spaced out. This far i think we agree.

*The other part*
But! it does not mean the driver actually outputs a sinusoid current and applies it to the coils. And this sinusoid is just something we observe, or an abstraction of what we see. As the motor moves from one full position to the next. Because it has to go from one coil state to the other. Incidentally, sinusoid is exactly that, a smooth transition from one state (=1) to its reverse (=-1). So the sinusoid shape is incidental to the fact the motor needs to change the level of coils current in order to move from one point to the next. And it can not change these levels randomly or chaotically, it needs to have some logic, so it needs to change it proportional to the incremental change in position. So this is why it does end up looking like a sinusoid. However what driver outputs is not current, nor sinusoid. And that is quite normal, e.g. to put in something and get totally different output. On the other hand, if we have an input and would get same thing for output, then we would know we are in trouble, because we did nothing or just did too little to the input. Sort of speaking.

Also, this sinusoid is made out by abstracting current levels to some average value hence constant levels, hence being depicted as lines. But are not actually constant if we zoom in enough. These average levels are in turn made by rise and fall edges - anything but constant. And each rise/fall edge means something that is, i believe more or less related to all this discussion(s).

Zoom 1: Looking more carefull at the sinusoid, it appears its made out of straight lines, so its not quite a "pure" sinusoid, but has straight lines. These lines correspond to the level required for a position. And are also an abstraction for their value showing up as constant: they are shown as straight lines even if they are not.
Zoom 2: Zooming on a previous straight line: its not straight anymore. The previous straight line was meant as abstraction of an average or peak level or something like that. But now that line is made of somewhat looking triangle curved shapes. Like a sawtooth wave, or triangle, except the sides are not lines, but curves, because those are rise and fall shapes. This is how actually current looks like. It rises and falls, and keeps doing that all the time. Restless, just goes like crazy. When i think of switching frequency, this is it showing up. Not that sinusoid. That sinusoid is at least one abstraction level above fs.
Zoom 3: Zooming in on just one triangle like that. Left side the current is growing, current can only grow if the voltage is on so it corresponds to on time. It is bent upwards. Lets call this rise edge. The right side part is decreasing, it can only do that if the voltage is off, so it somewhat corresponds to off time. Its also curved and bent downwards. Lets call this fall edge. For both the general function of current by time is Fcurrent(time)= initial*e^-time/tau + final*(1-e^-time/tau), this just how we model generic rise or fall edges. For the rise edge the initial value = 0 idealy, so just last part counts and that final is =V/R. For fall edge should decrease to zero, then only first half counts, where the initial =where the current rise was previously interrupted, aka current setting point in driver. So ok, this is ideal, perhaps simplistic, but thats it. In practice perhaps things get messed up, perhaps fall times will get different because of recirculation or perhaps the rise time doesnt have enough time to reach set peak. Perhaps in certain conditions the average gets to be too low. Perhaps some drivers deal with frequency and peaks in different way when cant fit everyting perfectly. However i think this is still a good explanation for this place here, at least can show some points.

Some points then. That V/R is ohms law, and its right there, its the final value where the current would settle if not getting interrupted every time. It is part of formula that describes exactly the current as function of time, from current=zero up to current=peak where it gets interrupted. This does not depend on that sinusoid, nor of rpm - its just there always. The second part is why we may not care for ohms law, because the driver always interrupts the current when it reaches that peak level. But however saying that we dont care for it, does *n0t* meat it does not exist or that it does not apply. It does apply - we may not care for ohms law, but ohms law doesnt care for us either- so ohms law still applies and again, its even more than just a law, without ohms law we dont have resistance as a concept, we dont have time constants, we dont have anything without it. So i believe the above shows quite how ohms law applies in this context. Also we can say that the switching frequency is unrelated to rpm and unrelated to that sinusoid. And this switching does exist also when the motor stays still. And we could also make crazy leap forward and force the semantics a little. Because positions are discrete not continiuos, that means movements are simply made by motor "standing still" at this postion for very little time, and then "standing still" at next position also briefly, etc. So incredibly, but rotating through discrete positions can also be interpreted like it just it stays still at different places, but just changes the places fast. Again, thats because positions are sequencial, but still discrete and not continuous. So the sinusoid that shows its a consequence, something we see as a result. And again, its not the sinusoid current wave that the driver outputs to be put into the coil. So this sinusoid is not an input, nor shows the switching frequency. Its perhaps an output that agregates itself to that aspect of sinusoid. At least thats how i see it, and i guess everyone has some liberty to make intepretations, but not to the point to say things like "ohms law does not apply" or "we are in ohms law region" as if there is a place outside ohms law - well things like that and also other things i quoted are just simply stretched out too far. I think are just result of bits of knowledge taken from different parts and although they dont fit together they are forced in a stiching that makes no sense anymore. We cant have so many "kodak moments" like that. I generally post rarely and only if i think its worth saying, and this is reason why i posted this. Because this is imo best place to intervene to make a plus change. Oh my defense, i did put some effort into it, even if i dont have methodics. What i have however is a talent to get deflected, so this is also why i post rarely. For example it took some effort to put all this up, imo i do deserve a cookie, but i am pretty sure i aint gonna get one, probably not going to change anything, so its sort of futile (if thats the right word for it).
Re: Which stepper to buy: 68oz 0.9degrees or 70oz 1.8degrees
January 05, 2014 04:52PM
"But to say that Ohms law does not apply or that there is a region that is "outside" of ohms law - anybody with an elementary course in electronics can not say that." Noobman said.

Yes I can say that and I will also repeat it! It's not Ohm's law that primarily limits the current in the controllers we use in printers.
It's not any of all the other "laws" used on simple DC circuits that primarily controls the current in the coils either.
Try to distinguish between what primarily controls something and all the other laws of physics that are always present on the
component but not the system level. There is no "Ohm's law" for a digital feedback system.

To take things down to your level - A stepper motor with a coil resistance of 1 Ohm driven by a 24 Volt supply has the current
controlled primarily by resistance? What resistance and where does it hide?

I wrote "Ohms law never plays a direct role in deciding the current through the motor. The chopper circuits always limits the current to the set level." The key word is direct control not peak value as you erroneously stated. In what cases does the current not reach
the peak value set by the controller?
Re: Which stepper to buy: 68oz 0.9degrees or 70oz 1.8degrees
January 05, 2014 08:43PM
Yes thats me and my methodics. Now you quoting only that part it looks to me i had a tone, wasnt actually intended, and certainly uncalled for, so very much sry for my tone that just now see, it wasnt about you neither your post really, thats just me being a fart.

Ok, so the final currrent value is the value the current would naturally reach if it would not be interrupted, this final value being given by voltage/coil resistance. For 24v in a 1ohm coil, ohms law sets 24A for a final value, that is the final value the rising current will reach if nothing would happen. And lets say our target(peak) is 2A.

Current rises by a curve that at first the current rises very fast, but at the end it rises very slowly, and will hit the final value but almost tangentially (convergence). The horizontal axis being time, and scale of nanoseconds. For a final value 24A is a high, and the first portion that we will use, will be almost vertically, and our peak of 2A will be hit almost instantly. If we set the final at 6A, then we will have to deal with a slower rise time because now we also have a portion where the current is lazy, and rises slower, so our peak will be hit, but will take longer. This is where and how the final value, e.g. V/R matters. Imo, thats direct control, because in the function V/R is a factor that gets multiplied by the rest of the function, thats mathematically a direct dependency. It seems ohms law has direct control, at least it seems for me tbh, But ofc, that can perhaps be interpreted different ways. The current rises naturally as it wants to, and those are the parameters. We control only the point where the current rise gets interrupted, we do that by adjusting the pot on the driver, and that is the "peak value" i was referring to, i think usually denoted Ipeak or Ilimit.

Quote

In what cases does the current not reach the peak value set by the controller?
For example when the final value is lower than our setting. For example 12v and 24ohm resistor, then ohms law gives 0.5A final value, and current cant get higher than that. You can set in controller 1A, but ofc it can not get there - can it.
Re: Which stepper to buy: 68oz 0.9degrees or 70oz 1.8degrees
January 05, 2014 10:03PM
Probably better to have some example, so i took your values of 24V and 1ohm coil, and i also took L=2mH, coz i need something for time constant, and i took a set point of 1A. And i change progressively the V and R values. Last case is a case with 12ohms coil and 12psu and we just wait it to reach 1A, which tries to overlap our set point and ohms law. This result is not very confident because its a case of convergent series, so i took 11.999 instead of exactly 12. You see each case gets progressively worse. Here is output from wxmaxima, for each case, which tells exactly how many seconds the current needs to reach 1A:

(%o17) "~R:1$ V:24$~"
(%o20) [time=8.511922883759171*10^−5]
(%o21) "~R:2$ V:24$~"
(%o24) [time=1.7402275397925965*10^−4]
(%o25) "~R:2$ V:12$~"
(%o28) [time=3.6464311358790913*10^−4]
(%o29) "~R:4$ V:12$~"
(%o32) [time=8.109302162163261*10^−4]
(%o33) "~R:8$ V:12$~"
(%o36) [time=0.00219722457733622]
(%o37) "~R:11$ V:12$~ aproaching final "
(%o40) [time=.004969813299575999]
(%o41) "~R:11.9999$ V:12$~ setting equals final "
(%o44) [time=.02339049404352837]
(%o45) "***last/first ratio***"
(%o46) 274.7968274966124

So we control the peak value or limit value or with the pot. But if i can say so, the current that ohms law points at, that value controls how we get there, or to say how much time it takes to get there.

Now, why is this important, because we want, to work at frequencies way above human ear, say >30khz, and we also want the current to be able to actually reach our set point in due time. In some cases we may be able to get both. But as cases gets worse, we are in trouble, e.g. cant have 30kHz with 0.02 seconds time period, can we. So one of these has to give in, because even that fall time is shorter it wont help us by much. And if we want to keep the frequency high, that means in some cases, the current will simply not have enough time to reach our set point in due time. And since current is directly proportional to flux, that means we will be getting less torque. This example is ofc to put things simple, real stuff probably gets much messier than this, but i believe this is the idea. I hope you do understand my point now.
Re: Which stepper to buy: 68oz 0.9degrees or 70oz 1.8degrees
January 06, 2014 01:47PM
Quote
bobc
Quote
NoobMan
So again, its not a current sinusoid that is generated eslewhere than forced into the coil. Current just grows in the coil as result of playing with voltage, and that is the elemental law of the inducutor. Voltage across inductor builds the flux, to which the current is proportional. Now if you understand that, you will see previous statements differently and, even if most ppls dont see it, some other parts.

That is not how an inductor works. Flux is generated from the current. Even in an inductor, voltage generates the current. It does not just grow by itself.

An inductor only generates current "by itself" when you remove the external voltage, and the flux collapses.
Bob and his ultimate wisdom again
Re: Which stepper to buy: 68oz 0.9degrees or 70oz 1.8degrees
January 07, 2014 05:31PM
Quote
NoobMan
Quote
bobc
Quote
NoobMan
So again, its not a current sinusoid that is generated eslewhere than forced into the coil. Current just grows in the coil as result of playing with voltage, and that is the elemental law of the inducutor. Voltage across inductor builds the flux, to which the current is proportional. Now if you understand that, you will see previous statements differently and, even if most ppls dont see it, some other parts.
That is not how an inductor works. Flux is generated from the current. Even in an inductor, voltage generates the current. It does not just grow by itself.
An inductor only generates current "by itself" when you remove the external voltage, and the flux collapses.

Please read again, what i said is this: "current just grows in the coil as result of playing with voltage". I didnt said the current "grows by itself", but as a result of "playing with voltage". E.g. voltage being applied. And if you read my entire post, you will see the reply was about uncle saying that stepper driver is making a current sinusoid and forces it into the coil. And in turn i said its the driver "plays with voltage", and hence the current is a result of the *driver* "playing with voltage".

Well, you said a lot of things, some of them contradictory, so perhaps I misunderstood smiling smiley

The bit I had issue with is :

What you said

Quote

Current just grows in the coil as result of playing with voltage, and that is the elemental law of the inducutor. Voltage across inductor builds the flux, to which the current is proportional.

Voltage across the inductor generates current, and the current generates the flux. The same is true of any conductor; inductors are designed to enhance the flux.

uncle_bob was correct in what he said, so I couldn't see why you would take issue with it, although you do now seem to be agreeing with what he said.

BTW this is not my wisdom smiling smiley It's the physics of how it works and you can read it on wikipedia!


What is Open Source?
What is Open Source Hardware?
Open Source in a nutshell: the Four Freedoms
CC BY-NC is not an Open Source license
Re: Which stepper to buy: 68oz 0.9degrees or 70oz 1.8degrees
January 07, 2014 09:29PM
Well, first off, why dont we all look at names and who posted what. I may be a "dick", ill take that, but in particular i am not that poster "cnc dick" and i didnt made that post about your wisdom. And otherwise i think the guy above confunded your name e.g. bobc with uncle_bob. So i think he was genuinely meant his comment about uncle_bob, but he just picked your post coz your names are that similar. Probably just like you did on your turn, perhaps you took me for him - but comeon when i post its a wall of text thats going to abuse everybody's eyes - not just a sentence smiling smiley

To the fact that i "say contradictory things" - most probably true.

Quote
bobc
The bit I had issue with is: What you said
Quote
noobman
Voltage across inductor builds the flux, to which the current is proportional.
Voltage across the inductor generates current, and the current generates the flux.

The reason for why i think of it like that, its about starting at time zero only voltage is positive. Therefore at least mathematically, at t=0 the voltage is the only positive measure who can build anything, while everything else is zero. Hence why i say "voltage builds the flux". Further on the current and flux are proportional to each other, so if one of them is zero, then so is the other. But on top of their relation, we start with both of them being zero, e.g they cant build/generate each other. But you know, at this point there is more semantics than meaning involved, and i am not that picky, so i would take things either way. I have not fundamentally disagreed, i rather explained why i see it like that.
Sorry, only registered users may post in this forum.

Click here to login