Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

PID Is ther a simple way ?

PID Is ther a simple way ?

2005-04-17 by Dave Mucha

Hi all,

I have a servo motor that accepts step and direction inputs and I want 
to monitor a very dynamic process.

The process is plasma torch cutting.  Typically a couple hundred volts, 
but a simple voltage divider will yield a useable signal.

The process is very noisy.  This means that if a heavy filter is used 
on the input, it will make control sluggish.   no filter and the unit 
will wear itself out in short order.

I am hoping there is a simple solution with a PID type control.

I searched the list, but got tired of only finding stuPID and raPID 
with the PID search.

Any ideas where to start ?

Dave

Re: [AVR-Chat] PID Is ther a simple way ?

2005-04-18 by James Hatley

Hello,

When you search google (or whatever) try it with quotes around it like "pid"
and you may get closer to what you are looking for.

As far as your problem monitoring a "couple hundred volts" you might try an
optical isolator. There are many, NEC has a bunch so does Fairchild semi
etc. They aren't usually very linear but are quite useful to get an
interface to nasty circuits.

Jim


----- Original Message ----- 
Show quoted textHide quoted text
From: "Dave Mucha" <dave_mucha@yahoo.com>
To: <AVR-Chat@yahoogroups.com>
Sent: Sunday, April 17, 2005 6:13 PM
Subject: [AVR-Chat] PID Is ther a simple way ?


>
>
> Hi all,
>
> I have a servo motor that accepts step and direction inputs and I want
> to monitor a very dynamic process.
>
> The process is plasma torch cutting.  Typically a couple hundred volts,
> but a simple voltage divider will yield a useable signal.
>
> The process is very noisy.  This means that if a heavy filter is used
> on the input, it will make control sluggish.   no filter and the unit
> will wear itself out in short order.
>
> I am hoping there is a simple solution with a PID type control.
>
> I searched the list, but got tired of only finding stuPID and raPID
> with the PID search.
>
> Any ideas where to start ?
>
> Dave
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

Re: [AVR-Chat] PID Is ther a simple way ?

2005-04-18 by Bernd Felsche

On Monday 18 April 2005 09:13, Dave Mucha wrote:

> I have a servo motor that accepts step and direction inputs and I want
> to monitor a very dynamic process.

> The process is plasma torch cutting.  Typically a couple hundred volts,
> but a simple voltage divider will yield a useable signal.

> The process is very noisy.  This means that if a heavy filter is used
> on the input, it will make control sluggish.   no filter and the unit
> will wear itself out in short order.

> I am hoping there is a simple solution with a PID type control.

No. PID doesn't like noisy environments either. Implementing the
filtering digitally gives you the advantage of being able to easily
change filter parameters; that's about it.

You can filter the output and still measure at the maximum rate.
PID is proportional-integral-differential; the integral part takes
care of the "long-term" error in the system; the differential bit
looks after rapid changes in response to input. 

> I searched the list, but got tired of only finding stuPID and raPID
> with the PID search.

I Googled and found the first hit:
http://www.stanford.edu/class/ee281/projects/aut2001/depthcontroller/bookmarks.html

Not too many stuPID hits with keywords "avr PID algorithm"

Another apparently useful link from that search:
http://sourceforge.net/mailarchive/forum.php?forum_id=296&max_rows=25&style=nested&viewmonth=200112

> Any ideas where to start ?

Look at where and when the noise is occurring.

See if you can reduce the source of the noise perhaps by selection
of different ground paths or type of wiring; perhaps even a small
change to the machine.  By placing a small sensing processor very
close to the sensor and then sending the opto-isolated data stream,
one can not only almost completely eliminate noise introduced via
signal leads, but it also allows the processor to "float" at the
potential of the sensor. Noise introduced by a variation in "ground"
potential from one point in the device to another due to heavy
pulsed current flows is thus minimised.

Although unlikely in this case, if the interesting signal is
happening at a particular time in the cycle, you may be able to
exclude much noise by sampling in a narrow time window containing
only the signal.  You can still filter that, but the volume of noise
in a narrow time window is consequentially less. By "snooping" outside
the signal sampling window, you can also determine the magnitude of
"background" noise and process your measured signal accordingly.

If the noise is still an issue, break out the spectrum analyser and
see if your interesting signal components can't be filtered out by a
narrow-bandpass.

-- 
/"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia
\ /  ASCII ribbon campaign | I'm a .signature virus!
 X   against HTML mail     | Copy me into your ~/.signature
/ \  and postings          | to help me spread!

RE: [AVR-Chat] PID Is ther a simple way ?

2005-04-18 by Chuck Hackett

> From: Dave Mucha
> 
> ....
> I am hoping there is a simple solution with a PID type control.
> 
> I searched the list, but got tired of only finding stuPID and raPID
> with the PID search.
> 
> Any ideas where to start ?

"Nuts & Volts" magazine had a series of articles recently on PID implemented in
both hardware and software.

http://www.nutsvolts.com/  and click on "Search Nuts & Volts", enter "PID" ....

Cheers,

Chuck Hackett
"Good judgment comes from experience, experience comes from bad judgment"
7.5" gauge Union Pacific Northern (4-8-4) 844
http://www.whitetrout.net/Chuck

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.