My personal all-around blog
My personal all-around blog

KiCad to NeoDen

At work we have a new Pick n’ Place machine, a NeoDen4 for small production batches and prototypes.

It has many nice features, and some naggin’ quirks too. One of the latter is the way it imports the positions file from the PCB design software. The best approach so far is a back and forth procedure as I will describe here.

I have to say that the best solution for the needed format conversion (that I found) is the cross-platform script by Mike Szczys:

https://github.com/szczys/kicad_to_neoden

That script was not perfect though. So I did a few modifications. I am not a python expert, I just patched it to have the columns correct and added an offset feature. The offset permits to have a file with positions very close to the ones needed for the PCB placement you want on the NeoDen machine. The X, Y coordinates numbers on the NeoDen software are absolute, covering the whole area the nozzles head can move. On the other hand, the position of the parts KiCad gives you, is usually relative to the auxiliary axis origin. There must be an easy way to make them relevant. That was my thought and so I came up with this modified script:

https://drive.google.com/file/d/1Z78dUrMhkmU6gy0XtEnY-NKRiAF63eKl/view?usp=sharing

You can run it in a console like this:

python kicad.pos_to_neoden_chip.py your_position_file_from_kicad.pos

It is tested with python 2.7.18, also with 3.6.12 and KiCad 5.1.10, on Windows 10 and Linux.

The work flow is like this:

  • First find out which part will be placed first. Usually a fiducial will be exported on top (if you have the designator – reference- AFID) or a capacitor.
  • Then go to the PnP machine and load the PCB where you want it. Start the procedure as usual and then find the coordinates of the first part to be placed. Note the X and Y values and go back to KiCad.
  • In pcbnew rotate the board as it is placed in the PnP machine. Put the auxiliary axis on the bottom left corner of the board, so you will end up with the positive numbers NeoDen likes.
  • Export the .pos file in ASCII mode.
  • Run the script as above on that file.
  • Give the X and Y values you found and voila!
  • Take the exported .csv file to the machine and import it in auto (‘manual’ unchecked).
  • Check ‘manual’ again and make your fine-tuning

That’s it. I hope this helps you and makes work easier for you. If you have a better way please tell me, I will be happy to know.

Have fun!

P.S. There is an updated version, see: https://tsoukias.eu/wordpress/2022/02/kicad-to-neoden-part-2/

I recommend to use that one!

Leave a comment

Your email address will not be published. Required fields are marked *

Spam repellent: * Time limit is exhausted. Please reload CAPTCHA.