CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] PIC based DRO

Posted by james owens
on 2000-03-15 02:56:56 UTC
I have been considering this very issue for some time. We have an electronics magazine here that is PIC crazy, every project that appears uses a PIC some where.

They do a Tutor and also suppy all the hardware/software to program this device. They are also on the net with a site that all the software and project information can be downloaded from.

The PIC's that are used are the Microchip range and the particular one I am using is PIC16F877 because it is reprogrammable when I get it wrong.

A word of warning for all you across the pond, it will all look very expensive to you because we get $1.56 to £1.00 and our UK pound price is your dollar price, on top of this we pay 17.5% Tax and then there are the shipping costs. If we order from the States we pay the shipping which could be as much as $85.00 and then the 17.5% on top of it all. You would not pay the Tax when ordering from this end. We avoid the Tax if we import as gifts but not everyone will do that for us.


----- Original Message -----
From: Paul Devey
To: 'CAD_CAM_EDM_DRO@onelist.com'
Sent: Wednesday, March 15, 2000 4:01 AM
Subject: RE: [CAD_CAM_EDM_DRO] PIC based DRO


From: Paul Devey <paul_devey@...>

From: beer@...

OK, a few things to clarify here.

1. I HAVE built a PIC based DRO. The electronics DO work. It's
actually a fairly simple programming task.

[Paul Devey]
What language/compiler/assembler did you use?

The unit displays absolute and relative positions, with a reset for
both. No other fancyness, because I just don't care. ( Metric
conversion, lathe "X2" mode, etc. )

[Paul Devey]
Simple key/keyboard input I presume?

The DRO is not yet in use because the mechanicals are a bit of a
problem. I can't get ABSOLUTELY reliable repeatability out of my
rotary encoder setup. But the electronics work just fine.

[Paul Devey]
I am sure many on this list may benefit from any of your experience. I know
I would appreciate hearing about it.

2. It IS inexpensive. A mid-level PIC, an LCD and not much else. And
LCDs are pretty cheap these days. I bought some backlit ones for $7.00
USD

I used LCDs instead of LEDs because

my shop is BRIGHT, 32 feet of flourescents in 70 sq feet and I was
worried about the LEDs washing out
it's actually cheaper ! when the cost of PCB real estate is considered
I could display text messages, like ERROR

[Paul Devey]
I like non-cryptic messaging.

3. The "problem" with a PIC based controller is that there is no easy
way to input all the possible the scale parameters. That is, I have
written code for use with a 2000 cpr codewheel. I cannot now take this
device and use it with the 360 cpi linear strip. I'd have to write new
code and program a new PIC.

In a strange twist, the above "problem" actually solves the floating
point "problem", since there is no way to enter "unusual" resolutions.
Things are simply custom coded for a particular resolution using integer
math.

( The PIC could contain code for the most "common" scale settings, I
suppose. )

4. Even with the math being integer math, I wimped out when doing the
DRO/Stepper controller. I used a second small PIC to convert quadrature
to clock/dir info. This relieved the main PIC of some processing. I
was a bit worried about race conditions, determinism, and my ability to
be SURE that no counts would be missed doing it all in a single PIC.

SOLVING the problem by adding a one dollar part seemed like a good
design choice.

I got a lot of "advice" (trans: crap) on RCM from people who had never
programmed offering advice on their better ideas for solving my
problem. NONE of them offered any actual code, of course, just abuse.

[Paul Devey]
Never accept free advice. Trust me on this.

5. Scales are a problem, and as attractive as those Goldmine rotary
encoders are, I keep being drawn to linear strips, even though the
resolution is lower than I would like.

Both have problems, especially below .001"/count. With linear strips, a
person is relying pretty heavily on the linearity of the ballscrews in
the photoplotter that created them in the first place.

Rotary encoders have the problem of both slippage and scale. A person
cannot, by definition, machine a pulley to precisely the right diameter
(that pesky PI thing). And even if he can get it "close enough", how can
he be SURE that it's close.

Every technique I've encountered for testing the accuracy once on the
machine ( no sense testing it off the machine ) has some fundamental
assumption that makes me uncomfortable.

Frankly, my standard eBay search these days is for "+DRO +scale".



Alan


P.S. I believe that the Sherline DRO uses an 8051.

[Paul Devey]
It would be interesting to hear from anyone who has this beastie. What type
of encoders/CPU/chips are they using? Does this device have repeatability
etc.

Alan, you have put much thought and effort into your DRO. Many of us could
benefit from more info on your experiences. Of course I am buttering you
up. Do you feel comfortable contributing your DRO design to this community?
It probably would not be long before others contribute their efforts in
ways that will also benefit you.

Paul


------------------------------------------------------------------------------



------------------------------------------------------------------------------
Welcome to CAD_CAM_EDM_DRO@...,an unmoderated list for the discussion of shop built systems in the above catagories.
To Unsubscribe, read archives, change to or from digest.
Go to: http://www.onelist.com/isregistered.cgi
Log on, and you will go to Member Center, and you can make changes there.
For the FAQ, go to http://www.ktmarketing.com/faq.html
bill,
List Manager



[Non-text portions of this message have been removed]

Discussion Thread

Paul Devey 2000-03-14 19:51:44 UTC RE: [CAD_CAM_EDM_DRO] PIC based DRO james owens 2000-03-15 02:56:56 UTC Re: [CAD_CAM_EDM_DRO] PIC based DRO Tim Goldstein 2000-03-15 06:47:11 UTC RE: [CAD_CAM_EDM_DRO] PIC based DRO james owens 2000-03-15 12:25:34 UTC Re: [CAD_CAM_EDM_DRO] PIC based DRO Bill Phillips 2000-03-15 13:36:28 UTC Re: [CAD_CAM_EDM_DRO] PIC based DRO james owens 2000-03-16 03:33:36 UTC Re: [CAD_CAM_EDM_DRO] PIC based DRO