Anyone else using KiCad files???

Skip to first unread message

Peter Betz

unread,
Aug 21, 2016, 2:56:12 PM8/21/16
to OpenPnP

Hi Guys,

I am using KiCad now, and am having significant issues with setting the boards up in openpnp so I thought I would check and see if anyone is successfully using it.

I was certain I had something set up incorrectly setup on my machine and was causing the issues, however, I downloaded the demoboard (I have the new one Anythonly made) and everything is perfect (thats an eagle board).

The issue I have is that either with fiducial setup or using the 2 part location setup, all of the parts end up incorrectly placed on the machine (within about 5mm max error). The interesting thing is that the error is present even on the two parts you selected with the camera....

Here is an example of what I see after manually using the 2 fiducial locations to set up the board, and tell the camera to go to C13:







Peter.

Jason von Nieda

unread,
Aug 21, 2016, 6:19:53 PM8/21/16
to OpenPnP
Peter,

As best as I can tell from your screenshot, the only issue is that the board origin is off.

After setting the board location, either with the fidicuials or the 2 point positioning, use the red square button on the job side to move the camera to the board origin. Does it look correct, including the angle? 

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/285160c6-4975-47ea-a44c-1c8e3ab61233%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cri S

unread,
Aug 21, 2016, 6:28:54 PM8/21/16
to OpenPnP
The know bug of the 2 point positioning is that board angle must be 90 degree multiplies or it will fail. One have to manually set it before calling the wizard.

Peter Betz

unread,
Aug 21, 2016, 7:17:37 PM8/21/16
to OpenPnP
Hi Guys,

 Jason, I will double check that, I believe when I do that the origin looks incorrect. 

Cri, This is interesting....The board would definitely not be at exactly 90 degrees. I guess I could try and set it to 90 degrees and then try it again. But even when I use the fudcial tool, it is also incorrect. Only with cicada boards. 

Next I am also going to try importing using the paste layer.

Peter.

Jason von Nieda

unread,
Aug 21, 2016, 7:19:44 PM8/21/16
to OpenPnP
Peter,

If the origin is incorrect then everything will be off. I suggest focusing on it that first. There's not much need to try importing differently. It's easy to verify if the import is valid. Just look at the placement coordinates in the table and see if they match the values in your CAD software. If they are the same, the issue is with origin or machine.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

Cri S

unread,
Aug 21, 2016, 7:21:40 PM8/21/16
to ope...@googlegroups.com

The 90 degree multiplies mean, board angle have to 0, 90, 180, 270 degree when start the wizard otherwise results are wrong.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

Jason von Nieda

unread,
Aug 21, 2016, 7:25:21 PM8/21/16
to ope...@googlegroups.com
Cri, do you have an example of this? I am not aware of this bug. I just ran a test with a board at 36 degrees and it worked fine.

Jason


On Sun, Aug 21, 2016 at 4:21 PM Cri S <phon...@gmail.com> wrote:

The 90 degree multiplies mean, board angle have to 0, 90, 180, 270 degree when start the wizard otherwise results are wrong.

Il 22/ago/2016 01:17 "Peter Betz" <betzt...@gmail.com> ha scritto:
Hi Guys,

 Jason, I will double check that, I believe when I do that the origin looks incorrect. 

Cri, This is interesting....The board would definitely not be at exactly 90 degrees. I guess I could try and set it to 90 degrees and then try it again. But even when I use the fudcial tool, it is also incorrect. Only with cicada boards. 

Next I am also going to try importing using the paste layer.

Peter.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/b773b050-4900-498a-b9f9-d6c37fa01742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

Cri S

unread,
Aug 21, 2016, 8:44:19 PM8/21/16
to ope...@googlegroups.com

Jason, I suppose you know the underlaying mat of calcPlacementLocation or how the function is named.
Using the example of Daniel, 0.66 degrees offset. Supposing further placement placement A is 5mm from board origin and placement B is 200mm distant from origin.
Board should be at angle 0.
idealLoacationB after angle correction of 0.66 deg. Is moved 1.15mm and ideallocationA moved 0.028mm . Now because of floating point errors, that evil 0.66 deg produces a random 0.2 degree error on result, that was not present if board rotation was 0. That 0.2 error is 0.35mm at 200mm distance. The 0.2 deg error here is only supposed as hypothetical error. If its 0.066 deg. the resulting error is 0.11mm . Even that could be a problem if it sums up to other errors for finer pitch or bigger distances.
It is a consequence of not using fiducials center location but board 0 location for fiducials/placement calc.

Il 22/ago/2016 01:25 "Jason von Nieda" <ja...@vonnieda.org> ha scritto:
Cri, do you have an example of this? I am not aware of this bug. I just ran a test with a board at 36 degrees and it worked fine.

Jason


On Sun, Aug 21, 2016 at 4:21 PM Cri S <phon...@gmail.com> wrote:

The 90 degree multiplies mean, board angle have to 0, 90, 180, 270 degree when start the wizard otherwise results are wrong.

Il 22/ago/2016 01:17 "Peter Betz" <betzt...@gmail.com> ha scritto:
Hi Guys,

 Jason, I will double check that, I believe when I do that the origin looks incorrect. 

Cri, This is interesting....The board would definitely not be at exactly 90 degrees. I guess I could try and set it to 90 degrees and then try it again. But even when I use the fudcial tool, it is also incorrect. Only with cicada boards. 

Next I am also going to try importing using the paste layer.

Peter.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/b773b050-4900-498a-b9f9-d6c37fa01742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

Matt Brocklehurst

unread,
Aug 21, 2016, 9:14:44 PM8/21/16
to ope...@googlegroups.com
Hi Cri

If its due to float errors can be promote the type to a double? Floats are bad for any precision work because not all numbers can be represented, and its not a linear thing either.

Matt

Peter Betz

unread,
Aug 21, 2016, 11:33:26 PM8/21/16
to ope...@googlegroups.com
The plot thickens...

I noticed my DRO is not zeroing after homing. I figured this was an XML or config issue but I can't seem to get it to change!

I found that when openPnP starts the H1 N1 offsets are in the DRO. After homing they remain there, despite calling G92 X0 Y0 after G28 homing.

Here is my screen after homing:

Inline image 2

Here are the offsets found in the XML:

<head-offsets units="Millimeters" x="20.062" y="-56.961" z="0.0" rotation="0.0"/>


And the homing sequence:

<home-command>G92.1
             G28 Z
             G01 Z-5.0
             G92 Z0
             G28 X
             G28 Y
             G92 X0 Y0 </home-command>

The Z axis zeros properly but it was specified as "0" in the offsets so I imagine it would give grief too is it were any other number. G92.1 was added to clear any persistent offsets as troubleshooting. Probably not a bad idea to have.

XML is attached. Hopefully someone has some insight??

Thanks,
Peter.

machine.xml

Cri S

unread,
Aug 22, 2016, 12:22:06 AM8/22/16
to ope...@googlegroups.com

I do not know why, but I have seen several times with different versions that if x and y sign differ, it makes position errors. It's fine if both sign are negative and it's fine if both are positive.

Jason von Nieda

unread,
Aug 22, 2016, 12:39:45 AM8/22/16
to ope...@googlegroups.com
Peter,

This is behaving as expected. The DROs show the position of the selected nozzle. Since your nozzle is offset from your head, when your head reports it's position as 0,0,0,0 then the nozzle's position is it's offsets.

Jason


To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/b773b050-4900-498a-b9f9-d6c37fa01742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

Jason von Nieda

unread,
Aug 22, 2016, 1:48:37 AM8/22/16
to ope...@googlegroups.com
Thanks Cri S. I am not sure I fully understand, so tomorrow I will run through the math by hand and see what I get. I believe you are saying this is due to floating point error with certain angle values?

If you don't mind, it would be very helpful if you could explain how you come to the error value of 0.2 degrees step by step.

Thanks,
Jason


On Sun, Aug 21, 2016 at 5:44 PM Cri S <phon...@gmail.com> wrote:

Jason, I suppose you know the underlaying mat of calcPlacementLocation or how the function is named.
Using the example of Daniel, 0.66 degrees offset. Supposing further placement placement A is 5mm from board origin and placement B is 200mm distant from origin.
Board should be at angle 0.
idealLoacationB after angle correction of 0.66 deg. Is moved 1.15mm and ideallocationA moved 0.028mm . Now because of floating point errors, that evil 0.66 deg produces a random 0.2 degree error on result, that was not present if board rotation was 0. That 0.2 error is 0.35mm at 200mm distance. The 0.2 deg error here is only supposed as hypothetical error. If its 0.066 deg. the resulting error is 0.11mm . Even that could be a problem if it sums up to other errors for finer pitch or bigger distances.
It is a consequence of not using fiducials center location but board 0 location for fiducials/placement calc.

Il 22/ago/2016 01:25 "Jason von Nieda" <ja...@vonnieda.org> ha scritto:
Cri, do you have an example of this? I am not aware of this bug. I just ran a test with a board at 36 degrees and it worked fine.

Jason


On Sun, Aug 21, 2016 at 4:21 PM Cri S <phon...@gmail.com> wrote:

The 90 degree multiplies mean, board angle have to 0, 90, 180, 270 degree when start the wizard otherwise results are wrong.

Il 22/ago/2016 01:17 "Peter Betz" <betzt...@gmail.com> ha scritto:
Hi Guys,

 Jason, I will double check that, I believe when I do that the origin looks incorrect. 

Cri, This is interesting....The board would definitely not be at exactly 90 degrees. I guess I could try and set it to 90 degrees and then try it again. But even when I use the fudcial tool, it is also incorrect. Only with cicada boards. 

Next I am also going to try importing using the paste layer.

Peter.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/b773b050-4900-498a-b9f9-d6c37fa01742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

Cri S

unread,
Aug 22, 2016, 1:54:01 AM8/22/16
to ope...@googlegroups.com

Cri S

unread,
Aug 22, 2016, 2:06:53 AM8/22/16
to ope...@googlegroups.com

I make a real example ASAP

To unsubscribe from this group and all its topics, send an email to openpnp+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/b773b050-4900-498a-b9f9-d6c37fa01742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/NGqfLr-2-aU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.

Peter Betz

unread,
Aug 22, 2016, 9:33:41 AM8/22/16
to ope...@googlegroups.com
Ok. This makes sense as you describe it. I guess I just never noticed that the DRO doesn't zeros.  

I will do a complete run through of importing and setting up a eagle board then a KiCad board using the two point location, hopefully this evening. 

Peter Betz

On Aug 21, 2016, at 9:39 PM, Jason von Nieda <ja...@vonnieda.org> wrote:

Peter,

This is behaving as expected. The DROs show the position of the selected nozzle. Since your nozzle is offset from your head, when your head reports it's position as 0,0,0,0 then the nozzle's position is it's offsets.

Jason


On Sun, Aug 21, 2016 at 9:22 PM Cri S <phon...@gmail.com> wrote:

I do not know why, but I have seen several times with different versions that if x and y sign differ, it makes position errors. It's fine if both sign are negative and it's fine if both are positive.

Il 22/ago/2016 05:33 "Peter Betz" <betzt...@gmail.com> ha scritto:
The plot thickens...

I noticed my DRO is not zeroing after homing. I figured this was an XML or config issue but I can't seem to get it to change!

I found that when openPnP starts the H1 N1 offsets are in the DRO. After homing they remain there, despite calling G92 X0 Y0 after G28 homing.

Here is my screen after homing:

<Capture.PNG>

Cri S

unread,
Aug 22, 2016, 10:04:06 PM8/22/16
to OpenPnP
Here the promised calcs.
Board location 100 100
First fiducial 5 5
Second fiducial 205 205
0 is calc with ideal coord and 0 rotation
1 is calc with ideal coordinate and 0.666 rot
2 is calc with 3.333 deg offset and minimal additional offset.

Cri S

unread,
Aug 22, 2016, 10:05:20 PM8/22/16
to ope...@googlegroups.com
Screenshot_2016-08-23-03-56-57.png

Cri S

unread,
Aug 26, 2016, 8:14:36 AM8/26/16
to OpenPnP
@Peter
I have submitted pull request for the wizard.
Are you able to test it?

Peter Betz

unread,
Aug 29, 2016, 11:15:52 AM8/29/16
to OpenPnP
Hi Cri,

 Sorry for the delay. I assume this is the one that Jason tried and it didn't work, right?
Reply all
Reply to author
Forward
0 new messages