https://github.com/dexpota/pcbgenerator
https://github.com/dexpota/pcbgenerator
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dexpota/pcbgenerator
- Owner: dexpota
- License: mit
- Created: 2018-11-10T17:04:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:50:24.000Z (over 3 years ago)
- Last Synced: 2025-06-12T05:46:02.537Z (about 1 year ago)
- Language: Python
- Size: 116 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[license]: https://opensource.org/licenses/MIT
[license-badge]: https://img.shields.io/github/license/dexpota/pcbgenerator.svg?style=for-the-badge
# pcbgenerator
> An utility to generate a PCB starting from DXF files.
[![License: MIT][license-badge]][license]
## Requirements
Its main dependency is the module *pcbnew* provided by *KiCad*, this means that you must have *Python 2.7* and *KiCad*
installed on the system. You can follow these instructions:
- On *Ubuntu* simply run these commands and after the installation the module *pcbnew* will be available to the
*Python 2.7* interpreter:
```bash
sudo apt install python2.7 kicad
python2.7 -m pcbnew && echo "pcbnew installed!"
```
- If you are going to use a virtual environment be sure to inherit this package from the global installation, if you
use `pipenv` simply add `--site-packages` option when installing the virtual environment:
```bash
# without --three options it doesn't recognize --site-packages option
pipenv --three --site-packages install
```
## Usage
This repository contains two modules **dxfgenerator**, used to generate the *dxf* files for each face of the given
solid, and **pcbgenerator** for the generation of the *pcb* designs from the *dxf* files. The two modules are designed
to be used in a pipeline where the output of the first one can be used as input of the second module.
### Generate DXF files
Starting from an *obj* representation of the solid you first use **dxfgenerator** to create a *dxf* file for each face
of the solid.
```bash
python -m dxfgenerator
```
## Limitations
**dxfgenerator** currently is able to generate *dxf* files for just one type of octahedron and all parameters are statically
included inside the script.