Cov txheej txheem:

Yuav Siv Eagle CAD Li Cas ntawm Travis CI rau Tsim Automation: 3 Kauj Ruam
Yuav Siv Eagle CAD Li Cas ntawm Travis CI rau Tsim Automation: 3 Kauj Ruam

Video: Yuav Siv Eagle CAD Li Cas ntawm Travis CI rau Tsim Automation: 3 Kauj Ruam

Video: Yuav Siv Eagle CAD Li Cas ntawm Travis CI rau Tsim Automation: 3 Kauj Ruam
Video: Hmong New Song 2019 Xy Lee feat. SuabNag Yaj - Koj Yog Kuv Lub Neej (Official MV - 4K) 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Siv Dav Dav Dav CAD ntawm Travis CI rau Tsim Automation
Yuav Ua Li Cas Siv Dav Dav Dav CAD ntawm Travis CI rau Tsim Automation
Yuav Ua Li Cas Siv Dav Dav Dav CAD ntawm Travis CI rau Tsim Automation
Yuav Ua Li Cas Siv Dav Dav Dav CAD ntawm Travis CI rau Tsim Automation
Yuav Ua Li Cas Siv Dav Dav Dav CAD ntawm Travis CI rau Tsim Automation
Yuav Ua Li Cas Siv Dav Dav Dav CAD ntawm Travis CI rau Tsim Automation

Cov lus qhia no lub hom phiaj piav qhia yuav ua li cas teeb tsa travis ci (.travis.yml file) hauv txoj hauv kev uas nws muaj peev xwm ua cov ntaub ntawv eagle 7 (schematics.sch thiab pcb boards.brd). Raws li qhov tshwm sim nws yuav cia li tsim cov duab, cov ntaub ntawv gerber thiab cov nqi ntawm cov khoom/cov koom nrog, ua ERC thiab DRC txoj cai tshuaj xyuas, pib ua haujlwm thiab xa cov phiaj xwm mus rau KiCAD.

Cov lus qhia no tau tshoov siab los ntawm kev siv Arduino IDE ntawm Travis CI li cas rau kev tsim kho tshuab raws li tau piav qhia ntawm no:

  • learn.adafruit.com/the-well-automated-ardu… thiab
  • learn.adafruit.com/continuous-integration-…

Rau qhov piv txwv ua haujlwm koj tuaj yeem saib ntawm kuv qhov repos:

github.com/drtrigon/sketchbook thiab

Rau koj txoj haujlwm koj tuaj yeem pib los ntawm kev yooj yim fork https://github.com/drtrigon/eagle-view thiab xa koj cov phiaj xwm.sch thiab.brd cov ntaub ntawv mus rau lub diav rawg.

Kauj Ruam 1: Eagle CAD

Thaum pib ntawm phau ntawv qhia no yog koj txoj haujlwm dav dawb hau thiab cov ntaub ntawv nws muaj. Kuv yuav xav tias koj tau muaj qhov haujlwm no lawm - yog tias tsis yog, tab sis koj xav sim qhov kev qhia no ib qho twg, koj tuaj yeem piv txwv siv Arduino Uno Eagle Files muaj los ntawm Arduino Store (saib "Cov ntaub ntawv" tab).

Nyob rau hauv rooj plaub uas koj tsis txaus siab nrog dav dawb hau twb tau xav paub thiab yuav siv nws li cas, thov muab kev qhia lossis yuav ua li cas-nyiam li cas Siv Eagle.cad piv txwv.

Kauj Ruam 2: Automation Los Ntawm Travis

Tam sim no cia peb saib "khawv koob" thiab nws ua haujlwm li cas, yog tias koj tsis muaj kev lom zem nrog travis ci tsis tau, thov tso cai Pib ua piv txwv.

Yeej peb taug kev raws txoj hauv kev thaum siv travis; peb muab lossis tsom iav peb git repo rau github, pab kom travis rau qhov repo no (ntawm github), ntxiv.travis.yml teeb tsa cov ntaub ntawv mus rau repo thiab siv cov txiaj ntsig tau los ntawm travis hauv peb qhov repo ces (piv txwv li qhia cov duab ntawm nplooj ntawv tseem ceeb) muab los ntawm README.md).

Hauv kev nthuav dav ntau ntxiv travis teeb tsa dummy x server (Xvfb), rub tawm thiab teeb tsa dav dawb hau thiab kicad thiab ua haujlwm raws li hauv qab no (xdotool):

  • tsim gerbers, ntxiv cov ntaub ntawv rau zip archive thiab hloov gerber rau png
  • xyaum ua kom zoo tshaj
  • foob pob tsim cov npe
  • pawg thawj coj saib cov duab tso tawm
  • schematic tso zis duab
  • DRC & ERC cov tshev mis (cov txiaj ntsig khaws cia hauv ib daim duab)
  • pib-router ua piv txwv, yog AUTOROUTER_ENABLE tau teeb tsa kom raug (qhov tshwm sim khaws cia hauv daim duab)
  • dav dawb hau rau kicad hloov pauv, yog KICAD_ENABLE tau teeb tsa kom raug (kuaj/ua haujlwm nrog KiCAD 5.0RC2)
  • thawb cov txiaj ntsig rov qab mus rau github repo (xav tau teeb tsa GIT_USER thiab GIT_PASS)

Yog tias qhov ua yuam kev tshwm sim thaum ib ntawm cov theem no, travis ua tiav nrog rau lub xeev raws li.

Kauj Ruam 3: Qhov tshwm sim

Cov txheej txheem ua tiav cov ntaub ntawv (piv txwv rau Arduino Uno) suav nrog txhua cov ntaub ntawv gerber xav tau rau kev tsim khoom (teeb tsa rau 2 txheej, tab sis tuaj yeem txuas ntxiv mus rau 4 tau kawg), cov duab ntawm cov phiaj xwm thiab pcb pawg thawj coj siv rau ib puag ncig (tsis muaj xav tau eagle teeb tsa, ua haujlwm lossis khiav) thiab kicad project rau yav tom ntej siv piv txwv

Rau cov piv txwv ntxiv xyuas cov ceg ntawm eagle-view repo.

Thaum kawg kuv xav hais qhia tias tam sim no peb muaj tag nrho cov cuab yeej xav tau los siv txhua yam ntawm cov phiaj xwm hluav taws xob los ntawm kev pab ntawm github thiab travis:

  1. software thiab firmware: saib cov piv txwv arduino los ntawm adafruit tau hais thaum pib
  2. electronics (schematic, hardware/pcb): raws li tau piav qhia ntawm no hauv cov lus qhia no - tseem txiav txim siab siv kicad
  3. lwm qhov CAD (khoos phis tawj, thiab lwm yam): yog tias koj khaws lawv hauv.stl hom ntawv, github yuav muab cov neeg saib online suav nrog suav nrog cov yam ntxwv sib txawv

    • help.github.com/articles/3d-file-viewer/
    • blog.github.com/2013-04-09-stl-file-viewin…
    • blog.github.com/2013-09-17-3d-file-diffs/

Muaj peev xwm txhim kho yav tom ntej:

  • muab cov duab docker nrog dav dawb hau thiab kicad teeb tsa thiab teeb tsa txhawm rau ua kom yooj yim thiab ua kom nrawm dua cov tshuab zoo sib xws (tseem tshem tawm qhov xav tau rau eagle rub tawm los ntawm ftp server txhua lub sijhawm)

    github.com/drtrigon/docker-eagle thiab

Pom zoo: