time-nuts@lists.febo.com

Discussion of precise time and frequency measurement

View all threads

uC ADC resolution (was: Poor man's oven)

AK
Attila Kinali
Sun, Jun 11, 2017 4:28 PM

Hi,

On Sat, 10 Jun 2017 13:10:39 -0700
Chris Albertson albertson.chris@gmail.com wrote:

How many output bits are required?  Most uPs have quite a few digital
output pins.  Each pin could drive a heater resister.  Values of the
resisters organized by power of two.  Again note the title (poor mans...)
resisters cost almost zero.  Even of driver transistors are needed you'd
get change back from a dollar bill.

You are asking a lot of question regarding control systems.
But, there are no easy answers there. Especially if you want
to build it cheap. The cheaper you want to be the more you
need to know and understand the problem.

I suggest you reading an introductory text into control systems
like e.g. "Feedback Control of Dynamic Systems", by Franklin, Powell,
Emami-Naeini. That should answer 90% of your questions, if not more.
If you want to go into details of digital control systems, a book
like the one by Landau/Zito "Digital Control Systems" will fill the
gaps.

If you have never heard anything about Laplace and z-Transformation,
then I highly suggest reading the first few chapters of "Linear Systems
and Signals" by Lathi (and keep it as a reference), before you start
with any control theory book.

There is really no easy way around learning this stuff if you want
to build a control system that does more than just "barely work".
You don't need to apply all the fancy methodology, people have developed
over the years, in most cases. But even just getting a simple PI-loop
working correctly without oscillation requires a few calculations.

		Attila Kinali

--
It is upon moral qualities that a society is ultimately founded. All
the prosperity and technological sophistication in the world is of no
use without that foundation.
-- Miss Matheson, The Diamond Age, Neil Stephenson

Hi, On Sat, 10 Jun 2017 13:10:39 -0700 Chris Albertson <albertson.chris@gmail.com> wrote: > How many output bits are required? Most uPs have quite a few digital > output pins. Each pin could drive a heater resister. Values of the > resisters organized by power of two. Again note the title (poor mans...) > resisters cost almost zero. Even of driver transistors are needed you'd > get change back from a dollar bill. You are asking a lot of question regarding control systems. But, there are no easy answers there. Especially if you want to build it cheap. The cheaper you want to be the more you need to know and understand the problem. I suggest you reading an introductory text into control systems like e.g. "Feedback Control of Dynamic Systems", by Franklin, Powell, Emami-Naeini. That should answer 90% of your questions, if not more. If you want to go into details of digital control systems, a book like the one by Landau/Zito "Digital Control Systems" will fill the gaps. If you have never heard anything about Laplace and z-Transformation, then I highly suggest reading the first few chapters of "Linear Systems and Signals" by Lathi (and keep it as a reference), before you start with any control theory book. There is really no easy way around learning this stuff if you want to build a control system that does more than just "barely work". You don't need to apply all the fancy methodology, people have developed over the years, in most cases. But even just getting a simple PI-loop working correctly without oscillation requires a few calculations. Attila Kinali -- It is upon moral qualities that a society is ultimately founded. All the prosperity and technological sophistication in the world is of no use without that foundation. -- Miss Matheson, The Diamond Age, Neil Stephenson
CA
Chris Albertson
Sun, Jun 11, 2017 6:21 PM

On Sun, Jun 11, 2017 at 9:28 AM, Attila Kinali attila@kinali.ch wrote:

Hi,

You are asking a lot of question regarding control systems.
But, there are no easy answers there. Especially if you want
to build it cheap. The cheaper you want to be the more you
need to know and understand the problem.

This has been my opinion for a LONG time.  It is easy to come up with good
solutions if to just throw money at the problem.    So you see here people
proposing just going top of the line all across but an engineer earns his
money
by comping up with cost effective solutions that meet all the stated
requirements.

This is my interest in mechanics too.  Can a $200 3D printed plastic robot
arm
with poor absolute repeatability place an M6 screw into an M6 nut?
Certainly
not if it runs open loop.  But what if you add visual feedback?
Yes everything requires more expertise if you reduce the budget

So you understand my questions are all like this:  "If you back down from
top of the line solution how does that effect real world performance?"
No one answers.

I suggest you reading an introductory text into control systems
like e.g. "Feedback Control of Dynamic Systems", by Franklin, Powell,
Emami-Naeini.

--

Chris Albertson
Redondo Beach, California

On Sun, Jun 11, 2017 at 9:28 AM, Attila Kinali <attila@kinali.ch> wrote: > Hi, > > > You are asking a lot of question regarding control systems. > But, there are no easy answers there. Especially if you want > to build it cheap. The cheaper you want to be the more you > need to know and understand the problem. > This has been my opinion for a LONG time. It is easy to come up with good solutions if to just throw money at the problem. So you see here people proposing just going top of the line all across but an engineer earns his money by comping up with cost effective solutions that meet all the stated requirements. This is my interest in mechanics too. Can a $200 3D printed plastic robot arm with poor absolute repeatability place an M6 screw into an M6 nut? Certainly not if it runs open loop. But what if you add visual feedback? Yes everything requires more expertise if you reduce the budget So you understand my questions are all like this: "If you back down from top of the line solution how does that effect real world performance?" No one answers. > > I suggest you reading an introductory text into control systems > like e.g. "Feedback Control of Dynamic Systems", by Franklin, Powell, > Emami-Naeini. -- Chris Albertson Redondo Beach, California
AK
Attila Kinali
Sun, Jun 11, 2017 7:22 PM

On Sun, 11 Jun 2017 11:21:15 -0700
Chris Albertson albertson.chris@gmail.com wrote:

This has been my opinion for a LONG time.  It is easy to come up with good
solutions if to just throw money at the problem.    So you see here people
proposing just going top of the line all across but an engineer earns his
money
by comping up with cost effective solutions that meet all the stated
requirements.

Yes, I have done plenty of that. If the production run will be >100k
then it's well worth spending a month or two to shave off 1€.
But on a small volume project, or even worse a one-off project,
I am not going to try save 10€ if I that would cost me a day of reading
and doing calculations.

So you understand my questions are all like this:  "If you back down from
top of the line solution how does that effect real world performance?"
No one answers.

Because there are no easy answers. What you are asking requires
someone sitting down and do the math (or simulations) and figure
out what the limiting parameters are, when restricting the design
in this or that way.

To give this a little perspective:
For one of my many side-projects, I do need an DAC with a very
high resolution (>23bit). It took me a few days to figure out that I
really need this resolution and cannot do with anything lower. I have
probably poured another 3-4 (man)weeks just calculating and simulating
different designs that looked promising enough to deliver the needed
performance. I have settled on two designs I want to try, but I am
still reading up on different issues and refining the design for those.
I guess it will take me another (man)month or two until I a can say
with confidence that the design is good, will with high probability
deliver the performance I need and there are no easy ways to improve it.
And then I will start the implementation (ie schematics, layout and software).

Like you asked for your temperature control loop, I could have asked
how to build such a DAC. But I would not have gotten any answer.
Because there simply isn't anyone who knows the answer. At least not for
a design with my constraints. If you read carefully what I have asked
on time-nuts and volt-nuts in the last half year or year, you will find
quite a few of my questions relate to this project in some way or other.
Questions on how to do this or that. Questions on whether X is possible
or not and if yes, under what conditions. To some questions I got answers,
to others I didn't. If I didn't get an answer, I knew that the question
is difficult and tried to read up on it as much as I could manage.

I do not know, whether it does look like answering questions on time-nuts
is easy. At least for me it isn't. I came here 10 or 11 years ago.
For over a year I didn't write anything, but just read. Then I ventured
my opinion on things I thought I knew and started asking small questions
here and there (if you want to have some fun, go back and read what I
wrote 8-9 years ago... I was sooo naive...). In the meantime I continued
reading up on different things as time allowed. It really took me full
10 years to reach the level I am at now, but I still do not know anything.
My knowledge is full of holes and things I think I understood but didn't
(the construction of the E1938 is a nice recent example of that). There
are whole areas I have no clue about at all (e.g. how to build low noise
oscillators, or how ADEV, MDEV & co actually work) and I know it will take
me years to gain a sufficient understanding of those. Answering, even simple
questions, can take me easily half an hour. I often have to go back to my
documents and paper collection to check things, as I am unable to remember
everything in detail. Then writing a (hopefully) intelligeble answer is
also something that shouldn't be underestimated.

Hmm.. this ended being up longer than I intended it to be. Sorry about that.
But I hope I made my point clear. If not:

TL;DR: Some questions are just difficult and need someone to sit down
and think hard before they can be answered.

		Attila Kinali

--
It is upon moral qualities that a society is ultimately founded. All
the prosperity and technological sophistication in the world is of no
use without that foundation.
-- Miss Matheson, The Diamond Age, Neil Stephenson

On Sun, 11 Jun 2017 11:21:15 -0700 Chris Albertson <albertson.chris@gmail.com> wrote: > This has been my opinion for a LONG time. It is easy to come up with good > solutions if to just throw money at the problem. So you see here people > proposing just going top of the line all across but an engineer earns his > money > by comping up with cost effective solutions that meet all the stated > requirements. Yes, I have done plenty of that. If the production run will be >100k then it's well worth spending a month or two to shave off 1€. But on a small volume project, or even worse a one-off project, I am not going to try save 10€ if I that would cost me a day of reading and doing calculations. > So you understand my questions are all like this: "If you back down from > top of the line solution how does that effect real world performance?" > No one answers. Because there are no easy answers. What you are asking requires someone sitting down and do the math (or simulations) and figure out what the limiting parameters are, when restricting the design in this or that way. To give this a little perspective: For one of my many side-projects, I do need an DAC with a very high resolution (>23bit). It took me a few days to figure out that I really need this resolution and cannot do with anything lower. I have probably poured another 3-4 (man)weeks just calculating and simulating different designs that looked promising enough to deliver the needed performance. I have settled on two designs I want to try, but I am still reading up on different issues and refining the design for those. I guess it will take me another (man)month or two until I a can say with confidence that the design is good, will with high probability deliver the performance I need and there are no easy ways to improve it. And then I will start the implementation (ie schematics, layout and software). Like you asked for your temperature control loop, I could have asked how to build such a DAC. But I would not have gotten any answer. Because there simply isn't anyone who knows the answer. At least not for a design with my constraints. If you read carefully what I have asked on time-nuts and volt-nuts in the last half year or year, you will find quite a few of my questions relate to this project in some way or other. Questions on how to do this or that. Questions on whether X is possible or not and if yes, under what conditions. To some questions I got answers, to others I didn't. If I didn't get an answer, I knew that the question is difficult and tried to read up on it as much as I could manage. I do not know, whether it does look like answering questions on time-nuts is easy. At least for me it isn't. I came here 10 or 11 years ago. For over a year I didn't write anything, but just read. Then I ventured my opinion on things I thought I knew and started asking small questions here and there (if you want to have some fun, go back and read what I wrote 8-9 years ago... I was sooo naive...). In the meantime I continued reading up on different things as time allowed. It really took me full 10 years to reach the level I am at now, but I still do not know anything. My knowledge is full of holes and things I think I understood but didn't (the construction of the E1938 is a nice recent example of that). There are whole areas I have no clue about at all (e.g. how to build low noise oscillators, or how ADEV, MDEV & co actually work) and I know it will take me years to gain a sufficient understanding of those. Answering, even simple questions, can take me easily half an hour. I often have to go back to my documents and paper collection to check things, as I am unable to remember everything in detail. Then writing a (hopefully) intelligeble answer is also something that shouldn't be underestimated. Hmm.. this ended being up longer than I intended it to be. Sorry about that. But I hope I made my point clear. If not: TL;DR: Some questions are just difficult and need someone to sit down and think hard before they can be answered. Attila Kinali -- It is upon moral qualities that a society is ultimately founded. All the prosperity and technological sophistication in the world is of no use without that foundation. -- Miss Matheson, The Diamond Age, Neil Stephenson
BK
Bob kb8tq
Sun, Jun 11, 2017 8:13 PM

Hi

On Jun 11, 2017, at 2:21 PM, Chris Albertson albertson.chris@gmail.com wrote:

On Sun, Jun 11, 2017 at 9:28 AM, Attila Kinali attila@kinali.ch wrote:

Hi,

You are asking a lot of question regarding control systems.
But, there are no easy answers there. Especially if you want
to build it cheap. The cheaper you want to be the more you
need to know and understand the problem.

This has been my opinion for a LONG time.  It is easy to come up with good
solutions if to just throw money at the problem.    So you see here people
proposing just going top of the line all across but an engineer earns his
money
by comping up with cost effective solutions that meet all the stated
requirements.

This is my interest in mechanics too.  Can a $200 3D printed plastic robot
arm
with poor absolute repeatability place an M6 screw into an M6 nut?
Certainly
not if it runs open loop.  But what if you add visual feedback?
Yes everything requires more expertise if you reduce the budget

So you understand my questions are all like this:  "If you back down from
top of the line solution how does that effect real world performance?"
No one answers.

Would it help if each and every time we answered “that depends”. This is always
the real answer to any real world engineering problem. Quantifying and qualifying
all  the dependencies is what people get paid to do for a living. There is always
both theoretical and experimental work involved. There is never a simple one line
answer. If you want the more detailed answer, start digging into it. Try this and that.
Measure what you see. Report your results and we’ll help you analyze them.

Often this spirals instead into a game of liars poker. I can do it for $100, he can do
it for $10, somebody else can do it for $1, the next guy is at $0.10 and we are at
$0.01 in no time. There is no data, not qualification of anything, just a bunch of random
cost numbers. That’s not how things work on any real design I’ve ever seen. Raw cost per unit,
time / cost to implement, margin requirements,  volume of production, and performance
are all tightly related  to each other. Until you nail all that down, talking about a price
per unit does not make any sense.

As an example, we are talking here about OCXO’s. Can you build a ten cent OCXO? Sure
you can. It only takes a well stocked junk box of “free” parts. Can you spend a few years
tweaking the one uint for performance, indeed yes again. Is it still a ten cent OCXO after you
spend a year of your time tweaking it?  Would you sell someone a year of your time for ten cents?
Would you build, test, and sell somebody a thousand of them for ten cents each?

Bob

I suggest you reading an introductory text into control systems
like e.g. "Feedback Control of Dynamic Systems", by Franklin, Powell,
Emami-Naeini.

--

Chris Albertson
Redondo Beach, California


time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Hi > On Jun 11, 2017, at 2:21 PM, Chris Albertson <albertson.chris@gmail.com> wrote: > > On Sun, Jun 11, 2017 at 9:28 AM, Attila Kinali <attila@kinali.ch> wrote: > >> Hi, >> > > >> >> You are asking a lot of question regarding control systems. >> But, there are no easy answers there. Especially if you want >> to build it cheap. The cheaper you want to be the more you >> need to know and understand the problem. >> > > This has been my opinion for a LONG time. It is easy to come up with good > solutions if to just throw money at the problem. So you see here people > proposing just going top of the line all across but an engineer earns his > money > by comping up with cost effective solutions that meet all the stated > requirements. > > This is my interest in mechanics too. Can a $200 3D printed plastic robot > arm > with poor absolute repeatability place an M6 screw into an M6 nut? > Certainly > not if it runs open loop. But what if you add visual feedback? > Yes everything requires more expertise if you reduce the budget > > So you understand my questions are all like this: "If you back down from > top of the line solution how does that effect real world performance?" > No one answers. > Would it help if each and every time we answered “that depends”. This is always the real answer to any real world engineering problem. Quantifying and qualifying *all* the dependencies is what people get paid to do for a living. There is *always* both theoretical and experimental work involved. There is never a simple one line answer. If you want the more detailed answer, start digging into it. Try this and that. Measure what you see. Report your results and we’ll help you analyze them. Often this spirals instead into a game of liars poker. I can do it for $100, he can do it for $10, somebody else can do it for $1, the next guy is at $0.10 and we are at $0.01 in no time. There is no data, not qualification of anything, just a bunch of random cost numbers. That’s not how things work on any real design I’ve ever seen. Raw cost per unit, time / cost to implement, margin requirements, volume of production, and performance are all tightly related to each other. Until you nail all that down, talking about a price per unit does not make any sense. As an example, we are talking here about OCXO’s. Can you build a ten cent OCXO? Sure you can. It only takes a well stocked junk box of “free” parts. Can you spend a few years tweaking the one uint for performance, indeed yes again. Is it still a ten cent OCXO after you spend a year of your time tweaking it? Would you sell someone a year of your time for ten cents? Would you build, test, and sell somebody a thousand of them for ten cents each? Bob > >> >> I suggest you reading an introductory text into control systems >> like e.g. "Feedback Control of Dynamic Systems", by Franklin, Powell, >> Emami-Naeini. > > > > > -- > > Chris Albertson > Redondo Beach, California > _______________________________________________ > time-nuts mailing list -- time-nuts@febo.com > To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts > and follow the instructions there.