On Wednesday, June 13, 2018 5:32 AM, Dean Gouramanis wrote:
Dean,
Is 0.004” really 40 steps on your z axis? That’s 10,000 steps/inch.
With a standard 1.8 degree motor (200 steps/rev)
10,000 / (200 * 1) = 50 turns/inch leadscrew or gear ratio
10,000 / (200 * 2) = 25 turns/inch leadscrew or gear ratio
10,000 / (200 * 4) = 12.5 turns/inch leadscrew or gear ratio
10,000 / (200 * 8) = 6.25 turns/inch leadscrew or gear ratio
10,000 / (200 * 16) = 3.125 turns/inch leadscrew or gear ratio
Without knowing what you hardware actually is, I wonder if your ‘steps-per-mm’ configuration
settings are correct.
My machines typically use ¼ pitch leadscrews for the z-axis and ¼ or ½ pitch leadscrews for the
x and y axes. I set all my stepper drivers to 16 microsteps/step. So I end up with these ‘steps-per-mm’
settings:
steps-per-mm = 200 * 16 * 4 / 25.4 # 16 microsteps 1/4 pitch screw (12,800 steps/inch = 0.000078”/step)
or
steps-per-mm = 200 * 16 * 2 / 25.4 # 16 microsteps 1/2 pitch screw (6,400 steps/inch = 0.000156”/step)
I’m not sure if this is part of the problem you are seeing but it’s probably worth checking.
Hartley
--
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev...@googlegroups.com.
To post to this group, send email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleg-dev/CO2PR01MB2168DBCD12DAC99039793B08D07E0%40CO2PR01MB2168.prod.exchangelabs.com.
I did another test using a very short dwell time (G4 P1;) The short dwell fixed the problem. The result was the same as with G4 P1000;.When I discovered the problem I was running an older clone (3+ months old). The problem persisted after updating.
I cloned the repo 3 days ago. Does that mean I'm running the latest HEAD?
--
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev...@googlegroups.com.
To post to this group, send email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleg-dev/5e7bbb30-3ddb-42b8-b811-b7002be2a12e%40googlegroups.com.
./machine-control --nohoming-required --norange-check -c OPTOCAPE.config -N testa.NC > data.temp
--
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev...@googlegroups.com.
To post to this group, send email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleg-dev/8750724c-0513-417f-a2e3-06a64703f9ce%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev...@googlegroups.com.
To post to this group, send email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleg-dev/a6607939-729d-4223-afc8-5bb411cffba1%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev...@googlegroups.com.
To post to this group, send email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleg-dev/23fed209-5033-4f4f-8e88-6c5b2bc085a3%40googlegroups.com.
Dean,
With Leonardo’s changes to the M114 command this would be expected.
Before his changes the M114 would block until all motion was complete and then return the final position.
With his changes the M114 will return the “current” position snapshot as motion is still in progress. The
M400 makes sure the queue is empty (motion is complete). Then the M114 returns the final position.
Hartley
--
I could not find any problems except for noise, but the noise does not explain whats happening. Am I crazy?
Dean,
Comments in red.
From: beagl...@googlegroups.com <beagl...@googlegroups.com>
On Behalf Of Dean Gouramanis
Sent: Friday, June 15, 2018 10:27 AM
To: beagleg-dev <beagl...@googlegroups.com>
Subject: Re: Positional Error
Looks like there is a noise problem. The pulses are only 62ns.
Odd that the step and direction both have the noise pulse. But, since it’s on both lines it DOES appear to be
noise. Is a 62ns pulse width large enough for your driver to think it’s an actual step? Since there is no setup
time between the dir change and the step pulse the motor may actually step one pulse the other direction.
This does not explain everything.
I ran the test programs 20 times each. Adding G4 P1 (testE) fixes Z drift, but the DLA shows the noise there too.
The noise on the dir signal is not a problem as long as there is no step pulse. But, the first trace is odd because
the noise does not show up on the step signal. The second one is also off since only one of the “bumps” on the
dir signal also shows up on the step signal. The other “bumps” on the dir signal do not show up on the step.
It’s also bit odd that the trace with the motors disabled does not have the noise. Can you capture the same
data with the enable line included? I wonder it that is the source of your noise.
I was thinking the Direction signal could explain the drift. If it is late, the machine could move a few pulses the wrong way before changing direction.
I could not find any problems except for noise, but the noise does not explain whats happening. Am I crazy?
Hartley
--
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
beagleg-dev...@googlegroups.com.
To post to this group, send email to
beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleg-dev/5d4bb6bb-28bc-4832-b5a9-6b2678091b03%40googlegroups.com.
According to the Gecko G201x manual, 62ns would be enough to cause a step.
The direction signal is latched on the step pulse edge. Depending on your “COMMON”
connection to the drives, the step signal timing is:
COMMON = +3.3V-5V step pulse low time = 0.5us step pulse high time = 3us
COMMON = GND step pulse low time = 3us step pulse high time= 0.5us
Have you tried going back to the DRV8818 drivers?
Hartley
Hi Dean,this plot has been made by connecting the Z axis step/dir into eqEP inputs of the sitara and reading every 0.05s the position values from:/sys/devices/platform/ocp/48300000.epwmss/48300180.eqep/positionthis is the plot. The final position in 0.
The 0.1 is 2000 pulses and the 0.01 is exactly 200 pulses.
Given your configuration it makes sense since 0.1inches = 2.54mm, hence:
2.54 * 10*200 / (0.2 * 25.4) * 2 = 2000 pulses
Il giorno ven 15 giu 2018 alle ore 14:56 Dean Gouramanis <temprod...@gmail.com> ha scritto:
Adding M400 before the M114 solved the problem. The output is:X:0.000 Y:0.000 Z:-0.000 E:0.000 (G92) [ABS. MACHINE CUBE X:0.000 Y:0.000 Z:100.000] (Unsure: machine never homed!)I found another interesting clue. When I run the old TestA with M114 the output is:X:19.050 Y:1.778 Z:0.254 E:0.000 (G92) [ABS. MACHINE CUBE X:19.050 Y:1.778 Z:100.254] (Unsure: machine never homed!)--... We knew that already, but I realized the output is happening several lines ahead of time. Attached is a screenshot of the code, with red arrow showing approximately when I see the output.This does not happen with TestE, or when I added M400.I am setting up my DLA now to see whats happening on the hardware side...
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev+unsubscribe@googlegroups.com.
To post to this group, send email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleg-dev/23fed209-5033-4f4f-8e88-6c5b2bc085a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleg-dev/CAF5pHGef6vupUqN4URh7iJ__cpy4SycRp189dHPKJx_jZ1efRA%40mail.gmail.com.
I confirmed I have a hardware problem.
--
You received this message because you are subscribed to the Google Groups "beagleg-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleg-dev...@googlegroups.com.
To post to this group, send email to beagl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleg-dev/01ad5da1-efea-4300-915a-7518fab23093%40googlegroups.com.
I added a 100uF cap to the VM terminals of the Gecko drives (last week). Looks like that fixed it. I must have overlooked it last week. No more drift.
Measurements of Step/Dir signals internal Gecko Drive. Left with capacitor, right no cap