Giter Site home page Giter Site logo

kicad-board-assembly-render's Introduction

KiBAR -- KiCAD Board Assembly Renderer

Yea, your PCB project is nice, but -- as always -- it's a hassle to build, especially for beginners. If those count towards your target group, they'll be in big trouble if you can't provide them with a nice and shiny graphical build guide, showing not only which parts to put where, but also in what order.

I hear you whimpering "Noooo, but rendering my board with KiCAD is painful enough, I can't be bothered screenshotting the thing a dozen times", and very right you are. But fear not, KiBAR has your back!

KiBAR takes your KiCAD PCB and a list of build steps, and converts them into nicely looking, step-by-step intermediate photo renders of the assembly procedure. Fully automatic! Isn't that great?

Dependencies

  • python-opencv (Version 4 works for me)
  • KiCAD 6
  • kiauto 1.6.8

Note that pcbnew_do from kiauto is somewhat flaky, since it simulates clicking buttons in KiCAD. Make sure that, when opening your project, no message / warning boxes or whatsoever pop up, because they can confuse pcbnew_do.

Usage

render.py your_pcb.kicad_pcb output_directory/ outpattern width height

  • output_directory needs to exist. Your resulting images and any intermediate files are stored here
  • outpattern can be either "prefix%suffix", in which case your files will be called prefix01suffix and so on, or just prefix.
  • width and height are somewhat related to the resulting image size. Images will be slightly smaller though, due to window borders.

Example output

TODO

FAQ

  • This is so slow. -- Yes. This ain't a question though.
  • Why is this so slow? -- Because kiauto is simulating mouse clicks in KiCAD and has ample timeouts for doing so. After all, I don't care because it's still faster than doing this by hand.

kicad-board-assembly-render's People

Contributors

windfisch avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.