Re: [Emc-users] Got encoder problem, pix on my web page.

2016-12-02 Thread dave


On 12/02/2016 05:47 PM, andy pugh wrote:
> On 2 December 2016 at 23:15, Gene Heskett  wrote:
>> And as you can see, looking at the top 2, one is dead centered over a
>> tooth, and the next one ccw from the top, is dead centered over a valley
>> between the teeth.
> I did that once. It's not right :-)
>
> You need quadrature, not halfassedture
>
OK , so Unus, duo, tres, quattuor
does the duo morph to duorature?
I suppose there is some kind of hint in the quad ... as in recip of 4???
It is way too easy to get sucked in.

As Mark Twain so aptly put it:
"It ain't what you /don't know/ that gets you into trouble. It's what 
you /know/ for sure that just ain't so." -

If you didn't fail occasionally you wouldn't appreciate success so much.

Hang in there.

Dave
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Installing on a updated distribution.

2016-12-02 Thread giorgio foga
For debian jessy there is a specific repo  for other no there isn't yet ... 
you can only try to install from sources .

and first install you oun rtai kernel ... but many recommend to do everything 
with a rt_preeempt ...

Actually I install over ubuntu 14.04 rt4.5 + patch ... mesa card + servo system 
works fine ... but in my case

is not possible install a userspace component  :(... instead realtime comp 
works fine... :)


Someone I've install with success on ubuntu 16.04 so if you would try these 
way.




regards

Giorgio





Da: Andreas Pettersson 
Inviato: venerdì 2 dicembre 2016 17.31
A: emc-users@lists.sourceforge.net
Oggetto: [Emc-users] Installing on a updated distribution.

Is there a working updated rtai kernel for say linuxmint 18, ubuntu 16,
debian jessie yet?

I remember i could run linux mint 17.3 with a 3.4-9 pae build, but that
is broken as well with the latest updates.
The package is still there in the linux repository tho but i only get
kernel panics when trying to boot that rtai build.

Was working great before tho..

// Andreas


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Slashdot: News for nerds, stuff that matters
sdm.link
Slashdot: News for nerds, stuff that matters. Timely news source for technology 
related news with a heavy slant towards Linux and Open Source issues.


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users
Emc-users Info Page - 
SourceForge
lists.sourceforge.net
This list is for users of the Enhanced Machine Controller (EMC). Topics include 
how to obtain, install, configure, and use EMC, as well as other general EMC 
related ...


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Got encoder problem, pix on my web page.

2016-12-02 Thread Gene Heskett
On Friday 02 December 2016 23:01:05 Jon Elson wrote:

> On 12/02/2016 05:15 PM, Gene Heskett wrote:
> > Greetings all;
> >
> > Hooking up the encoder so I could use it to calibrate speeds
> > obtained, I am puzzled as can be. But let me put that pix up on my
> > web page first. Got it, could be sharper but will do.
> >
> > Append "/lathe-stf/Encoder-installed.JPG" to the link in the sig.
> >
> > The curved alu piece as you can see has 3 trenches carved across the
> > inside face, on a curve radius that matches the bull gear.
> >
> > And as you can see, looking at the top 2, one is dead centered over
> > a tooth, and the next one ccw from the top, is dead centered over a
> > valley between the teeth.
>
> Yup, I made the EXACT same error when I did mine.  That is 180 degree
> phasing, but quadrature requires NINETY degree phasing.  So, with one
> sensor right on the tooth, the other should be on the corner of the
> tooth/valley.
>
> Jon

Yeah, sitting here after my baby has signed off for a few hours, I 
punched a few buttons on kcalc and wrote me up a tutorial I can use to 
fix this with the minimum amount of alu shavings on the vice.

In order to not have yafu at doing this encoder right, I have discovered 
that
1. The width of the tooth of a 6" 60 tooth gear is pi*.1,
   or 0.314159265358979324" per full tooth.

2. Needed is a quadrature signal, so the center to center distance 
   between ATS-667's is 0.314159265358979324, times .25 or .75, or 1.25, 
   or 1.75, or 2.25 etc, etc, plus the width of the ATS-667 as a 
   measurement between the outside edges of the adjacent pockets, and the 
   ATS-667's are mounted against the outer edges, pushed as far apart as 
   they can be while the uv hardening resin mounting them is setting.

3. The same principle applies if measureing the nearest edges, with the
   outside tongs of the caliper, thereby placeing them closer together.
   Start with the existing separation, subtract the width of the
   ATS-667, and move them closer together until one of these measurements
   is machinable w/o running into the adjacent pocket.

4. That table of measurements, without the width of the ATS-667 is:
   0.078539816339744831"
   0.235619449019234493"
   0.392699081698724155"
   0.549778714378213817"
   0.706858347057703479"
   0.863937979737193141"
   which should cover any practical separation.

5. Just remember, if measuring the outside separation, subtract the 
   ATS-667's width to arrive at one of the above figures, or if measuring
   the inside separation, add the ATS-667's width to arrive at one of the 
   above figures.

   Or one could add the width of the ATS-667 to one of the above figures 
   to get the physical separation to machine the outer width to, or 
   subtract the ATS-667's width from one of the above figures to arrive 
   at the width of the separating wall to be machined.  Just remember
   which wall of the pocket to push the ATS-667 against while the resin
   is being UV cured.

That I believe will narrow the chances of YAFU when I try to fix it 
tomorrow.

The embarrassing thing is that I measured that thing quite a few times 
before I started the spindle without seeing that mistaken assumption. 
But I am ecouraged to have a couple of you folks admit to the same 
mistake, ;)

Wet noodles at 30 paces?

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Got encoder problem, pix on my web page.

2016-12-02 Thread Jon Elson

On 12/02/2016 05:15 PM, Gene Heskett wrote:
> Greetings all;
>
> Hooking up the encoder so I could use it to calibrate speeds obtained, I
> am puzzled as can be. But let me put that pix up on my web page first.
> Got it, could be sharper but will do.
>
> Append "/lathe-stf/Encoder-installed.JPG" to the link in the sig.
>
> The curved alu piece as you can see has 3 trenches carved across the
> inside face, on a curve radius that matches the bull gear.
>
> And as you can see, looking at the top 2, one is dead centered over a
> tooth, and the next one ccw from the top, is dead centered over a valley
> between the teeth.
Yup, I made the EXACT same error when I did mine.  That is 180 degree 
phasing, but quadrature requires NINETY degree phasing.  So, with one 
sensor right on the tooth, the other should be on the corner of the 
tooth/valley.

Jon

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Got encoder problem, pix on my web page.

2016-12-02 Thread john mcintyre
Good day Gene ,

Thanks for your post, all the best, the 7 mile  distance travelled, is not 
important  as the mind can travel to infinity.

cheers john



From: Gene Heskett 
Sent: Saturday, 3 December 2016 1:41 PM
To: emc-users@lists.sourceforge.net
Subject: Re: [Emc-users] Got encoder problem, pix on my web page.

On Friday 02 December 2016 20:47:34 andy pugh wrote:

> On 2 December 2016 at 23:15, Gene Heskett  wrote:
> > And as you can see, looking at the top 2, one is dead centered over
> > a tooth, and the next one ccw from the top, is dead centered over a
> > valley between the teeth.
>
> I did that once. It's not right :-)
>
> You need quadrature, not halfassedture

I didn't know there was a name for that condition, but it sure does
fit. :)  What I really needed in that vernacular, was a
threequarterassedture.

But I won't try to fix it tonight, I just recalled that me & my girl
hitched our wagons to the same post 27 years ago about now in the
evening. And we were headed out to a resort for a weekend honeymoon, but
when we stepped put the church door we had 6" of new snow on the ground.
We went only to a motel 7 miles up the road.  So I'll pay more attention
than usual to her tonight.  And I'll have to check on the next door
neighbors too, they didn't have anything better to on this night to
celebrate their 11th anniversary so they came to our wedding.  So we've
made it a point when Dee is feeling good, for all 4 of us to go
someplace a cut above McDonalds for dinner. That has not been the case
for about the last 3 years because of Dee's copd though. Very rarely
does it ever "get better" and only for a day or 2.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

[http://geneslinuxbox.net:6309/gene/pix/EasterSundayCropped2004-1.jpg]

Gene's Web pages
geneslinuxbox.net
Welcome to Gene's web pages. Here you will find some of the things that make me 
tick, and that help keep me out of the bars. That is me & the missus, Dee 
(Elladene) I ...




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

Slashdot: News for nerds, stuff that matters
sdm.link
Slashdot: News for nerds, stuff that matters. Timely news source for technology 
related news with a heavy slant towards Linux and Open Source issues.



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Emc-users Info Page - 
SourceForge
lists.sourceforge.net
This list is for users of the Enhanced Machine Controller (EMC). Topics include 
how to obtain, install, configure, and use EMC, as well as other general EMC 
related ...



--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Got encoder problem, pix on my web page.

2016-12-02 Thread Gene Heskett
On Friday 02 December 2016 20:47:34 andy pugh wrote:

> On 2 December 2016 at 23:15, Gene Heskett  wrote:
> > And as you can see, looking at the top 2, one is dead centered over
> > a tooth, and the next one ccw from the top, is dead centered over a
> > valley between the teeth.
>
> I did that once. It's not right :-)
>
> You need quadrature, not halfassedture

I didn't know there was a name for that condition, but it sure does 
fit. :)  What I really needed in that vernacular, was a 
threequarterassedture.

But I won't try to fix it tonight, I just recalled that me & my girl 
hitched our wagons to the same post 27 years ago about now in the 
evening. And we were headed out to a resort for a weekend honeymoon, but 
when we stepped put the church door we had 6" of new snow on the ground.  
We went only to a motel 7 miles up the road.  So I'll pay more attention 
than usual to her tonight.  And I'll have to check on the next door 
neighbors too, they didn't have anything better to on this night to 
celebrate their 11th anniversary so they came to our wedding.  So we've 
made it a point when Dee is feeling good, for all 4 of us to go 
someplace a cut above McDonalds for dinner. That has not been the case 
for about the last 3 years because of Dee's copd though. Very rarely 
does it ever "get better" and only for a day or 2.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Got encoder problem, pix on my web page.

2016-12-02 Thread andy pugh
On 2 December 2016 at 23:15, Gene Heskett  wrote:
> And as you can see, looking at the top 2, one is dead centered over a
> tooth, and the next one ccw from the top, is dead centered over a valley
> between the teeth.

I did that once. It's not right :-)

You need quadrature, not halfassedture

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Got encoder problem, pix on my web page.

2016-12-02 Thread Gene Heskett
On Friday 02 December 2016 18:15:19 Gene Heskett wrote:

> Greetings all;
>
> Hooking up the encoder so I could use it to calibrate speeds obtained,
> I am puzzled as can be. But let me put that pix up on my web page
> first. Got it, could be sharper but will do.
>
> Append "/lathe-stf/Encoder-installed.JPG" to the link in the sig.
>
> The curved alu piece as you can see has 3 trenches carved across the
> inside face, on a curve radius that matches the bull gear.
>
> And as you can see, looking at the top 2, one is dead centered over a
> tooth, and the next one ccw from the top, is dead centered over a
> valley between the teeth.
>
> The index I had to fool with as it was seeing not only its
> special "tooth" but all the other teeth too, so I had to break its
> glue, slide it to the left a couple mm's at which point it quit seeing
> anything but my screwdriver going by.  Had to make a new special
> tooth, bigger & set a little proud of the bull gear teeth.
>
> Getting all that fixed, I put a hal meter on the velocity pin and got
> pure noise turning the chuck with a crescent wrench on a jaw.  Hooked
> up the halscope, finding the a/b outputs are almost perfectly
> complementing each other. No quadrature at all.  Those are ATS-667's
> you can see, body end in the top two slots, lead end as the index one
> is reversed in the mount, and sitting about 3/8" out into the other
> block of alu holding up the pcb so I can attach the cable to it.
>
> Given the mechanical quadrature spacing you can see, what the heck is
> going on? I am thinking maybe I need to remake the alu holder out of
> iron/steel to make the iron in the mount shield them from each other
> better?
>
> What can the rest of you see that I did wrong?
>
> Thanks everybody.
>
> Cheers, Gene Heskett

Dumbassed old man!, of course they are nearly symetrical and out of 
phase, I used a spacing that is the exact opposite. I didn't need a half 
tooth, but a quarter tooth. I don't believe I can fix this one, and the 
bolt you can see mounting it is half stripped anyway. Needed a longer 
one which I have since sourced IIRC.

I've gotta learn how to use a calculator I guess. Again.
Damn...

60 teeth, tip radius 3". Circumference is pi*d etc etc So move the top 
side of the top one 0.078539816339744831" higher & fix that ATS-667 
against that side of the slot.

Right?

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Got encoder problem, pix on my web page.

2016-12-02 Thread Gene Heskett
Greetings all;

Hooking up the encoder so I could use it to calibrate speeds obtained, I 
am puzzled as can be. But let me put that pix up on my web page first.
Got it, could be sharper but will do.  

Append "/lathe-stf/Encoder-installed.JPG" to the link in the sig.

The curved alu piece as you can see has 3 trenches carved across the 
inside face, on a curve radius that matches the bull gear.

And as you can see, looking at the top 2, one is dead centered over a 
tooth, and the next one ccw from the top, is dead centered over a valley 
between the teeth.

The index I had to fool with as it was seeing not only its 
special "tooth" but all the other teeth too, so I had to break its glue, 
slide it to the left a couple mm's at which point it quit seeing 
anything but my screwdriver going by.  Had to make a new special tooth, 
bigger & set a little proud of the bull gear teeth.

Getting all that fixed, I put a hal meter on the velocity pin and got 
pure noise turning the chuck with a crescent wrench on a jaw.  Hooked up 
the halscope, finding the a/b outputs are almost perfectly complementing 
each other. No quadrature at all.  Those are ATS-667's you can see, body 
end in the top two slots, lead end as the index one is reversed in the 
mount, and sitting about 3/8" out into the other block of alu holding up 
the pcb so I can attach the cable to it.

Given the mechanical quadrature spacing you can see, what the heck is 
going on? I am thinking maybe I need to remake the alu holder out of 
iron/steel to make the iron in the mount shield them from each other 
better?

What can the rest of you see that I did wrong?

Thanks everybody.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Installing on a updated distribution.

2016-12-02 Thread Andreas Pettersson
Is there a working updated rtai kernel for say linuxmint 18, ubuntu 16, 
debian jessie yet?

I remember i could run linux mint 17.3 with a 3.4-9 pae build, but that 
is broken as well with the latest updates.
The package is still there in the linux repository tho but i only get 
kernel panics when trying to boot that rtai build.

Was working great before tho..

// Andreas


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] another update, the r-pi 3b is running it all!

2016-12-02 Thread Gene Heskett
On Friday 02 December 2016 05:40:38 W. Martinjak wrote:

> On 2016-12-02 04:29, Gene Heskett wrote:
> > I am not so sure that I am 'test'ing your driver. The currently
> > runing image is from 2016-09-23-raspbian-jessie.img, which is a bit
> > north of 4.3GB when unpacked and written to the u-SD card by
>
> And how do you drive the 7i90?
> Which DRIVER do you load in the [HOSTMOT2] section of your ini file?
[HOSTMOT2]
DRIVER=hm2_rpspi
BOARD=7i90
CONFIG="num_encoders=1 num_pwmgens=1 num_stepgens=2"

And I have set a policy that stuff I add using a gpio, will be added from 
the top down. I am just now wiring up the stuff above. But with colder 
weather setting in, I am going to have to skid it in into the garage 
another foot to get working room behind it to do that wireing with that 
super insulated door closed.  From the above, it looks as if I am using 
your driver.  Does it replace the spi drivers I am preloading?

In any event, I haven't had the spi do any miss-cues that I know about 
yet. The biggest problem has been the bridging jumpers, the metal in the 
contacts is very poor and I am considering using an old ide cable for 
the pi end, and terminating the needed wires one by one in in the 
correct width of connector for the 7i90, just to get decent gold flashed 
and springy metal into the contacts. The male to male jumpers I 
purchased turn out to be some sort of grey metal whose springyness 
resembles pure lead.  Any rotation on the square post opens up the 
contact to zero pressure and requires ejecting the contact and rebending 
is for much more spring pressure. I have the same problem with the 
7i90's i/o.

Buying those jumpers with quality gold flashed, good spring pressure 
contacts cannot be done on fleabay, I've spent hours looking, and they 
are ALL the same junk. At about the same price.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] another update, the r-pi 3b is running it all!

2016-12-02 Thread W. Martinjak
On 2016-12-02 04:29, Gene Heskett wrote:
> I am not so sure that I am 'test'ing your driver. The currently runing 
> image is from 2016-09-23-raspbian-jessie.img, which is a bit north of 
> 4.3GB when unpacked and written to the u-SD card by 

And how do you drive the 7i90?
Which DRIVER do you load in the [HOSTMOT2] section of your ini file?


 

-- 
"In der Wissenschaft siegt nie eine neue Theorie,
nur ihre Gegner sterben nach und nach"

Max Planck


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users