Giter Site home page Giter Site logo

alxrmironovoldacc / tvm802-mdgen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nica-f/tvm802-mdgen

0.0 0.0 0.0 28 KB

TVM802 pick and place machine data generator from KiCad POS file

License: GNU General Public License v3.0

Python 100.00%

tvm802-mdgen's Introduction

tvm802-mdgen

TVM802 pick and place machine data generator from KiCad POS files

This is my first Python hackery, so bare with me :-)

The intention of this project is to create a program to help with generating CSV machine dat afiles for the TVM802 pick and place machines, quite cheaply available from China, like this one (which is what I got myself recently): http://www.qhsmt.com/tvm802bx/tvm802bx.html

The machine reads pretty simple text files which are almost self explanatory. The parts data is contained in CSV format first followed by configuration for the PCB setup (location and panelization) are well as config parameters for IC tray setup etc.

My idea was to create a script that takes input from KiCad and turns it into a machine data file with as little as possible manual intervention. Since a PCB project will most certainly contain the same component in many different places I wanted the program to assign the feeder slots automatically.

ATM the program will not output a fll machine data file, I am still working on the CSV in-and output. The idea is as follows:

From KiCad you generate the POS file for your project. Then you run the program once with it and the "-h" option to generate a parts list with feeder assignments. This list will contin only unique parts accoring to the component value and component package ("Val" and "Package" in the KiCad POS file). After this first step you can edit the generated file and assign a feeder slot, nozzle number to use for placing, speed and a component height to each uniqe component.

In the second step you can use the previously generated feeders file to process the KiCad POS file and generate a matching machine output, that will now automatcally assign the same feeder to the same components, along with the other parameters.

I hope this will save some time when setting up a project. I will add the machine setup footer to the generated file as soon as I have time :) The examples directory contains some example CSV files, generated for the FST-01 USB stick by Niibe Yutaka.

Usage:
  -h, --help                   print this help
  -v, --verbose                be verbose
  -i <file>, --input=<file>    KiCad POS CSV iput file
  -f <file>, --feeders=<file>  feeders CSV config file
  -g, --gen_feeders            generate template feeders file,
                               requires -i and -f, will overwrite feeders file
  -o <file>, --output=<file>   TVM802 machine data output file

#Notes Since the 'SurfaceMount' program runs on Windows it requires DOS text file line endings in the CSV file, which can be converted from Unix/Linux to Windows/DOS using SED:

sed 's/$/\r/' input.txt > output.txt

tvm802-mdgen's People

Contributors

nica-f 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.