Plugin for KiCad 5 that allows generate files for jlcpcb pcb manufacturing and assembly service
Explore the docs »
Report Bug
·
Request Feature
kicad2jlcpcb is a python module. In order to install it you'll need:
- python version 3.5 or above
- pip
TODO instructions of how to install these in each operating system
pip install git+https://github.com/danidask/kicad2jlcpcb --upgrade
NOTE: If you have multiple versions of python in your machine, use a specific pip version, like pip3 or pip3.6
This plugin will read custom fields in the parts, in order to know the part number, and if the fab house will place this component, or it'll be placed after. To acomplish this, follow the next convention:
- Each component can have a custom field named "PartNumber" with the part number
- The components can have a custom field named "Keys" with one or several special words, separeted by commas:
- DNP (Do Not Place) This component will not be sent for assambley and will be included in a separated BOM file
- EXCLUDE This component will not apear in any of the BOM files (ej mounting holes, logos...)
To add this custom fields in kicad 5.1:
- Select the component (left click)
- Press "E" to open symbol properties
- Add Field (plus sign)
The .pos file (footprint position) must be the first file to generate. From Pcbnew (layout view) File -> Fabrication Outputs -> pos file
options: CSV format, mm unit, and "single file for board"
Leave "Output directory" blank to generate the file in the project root*
"Generate position file" and "close"
This have a generic format and will be converted to the rigth format in the next step
NOTE: If you want to export to some other folder instead of root, you'll need to add the argument -p foldername
to the script, si it'll be able to find the pos files
Eeschema > tools > generate bill of materials
write this in "command line" field, and then click "generate"
kicad2jlcpcb "%I"
Some KiCad footprints have different canonical orientations than jlcpcb. The script will fix this orientations base on a rule table.
You can override this behiveour by creating new rules in a local file cpl_rotations.csv
in the project directory (the first time you run the script this file will be created).
Add the footprint full name (not regex like global rules) and the correction orientation (positive is clockwise)
You can also disable the rotations correction using the argument -s when calling the script
Open a terminal window and type kicad2jlcpcb -h
to find out more about the available optional arguments
The files generated will have the format you can see in examples
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Warning if pos file is old
Distributed under the MIT License. See LICENSE
for more information.