Skip to content

Commit 17d2111

Browse files
Checked out some tag and description capabilities
1 parent 00b0cb2 commit 17d2111

12 files changed

+534
-0
lines changed

Conversion/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,43 @@
11
Conversion tools and information
22
====================================
33

4+
This directory contains information regarding getting the libraries transfered from eagle to kicad.
5+
6+
Tasks:
7+
8+
* Convert bulk of libraries to Kicad
9+
* Combine footprints and have single source for common footprints
10+
* Convert .mod to new format: .pretty (.kicad_mod)
11+
* Determine where the descriptions and prod IDs should live
12+
13+
**Convert bulk of libraries to Kicad**
14+
15+
Use this script for libraries
16+
17+
https://github.com/lachlanA/eagle-to-kicad-libs
18+
19+
Use this script for boards
20+
21+
https://github.com/lachlanA/eagle-to-kicad
22+
23+
**Combine footprints and have single source for common footprints**
24+
425
A tool for moving symbols and footprints between .mod and .lib files:
526

627
http://www.compuphase.com/electronics/kicadlibrarian_en.htm
728

29+
**Convert .mod to new format: .pretty (.kicad_mod)**
30+
31+
Do this by "saving as" within kicad
32+
33+
**Determine where the descriptions and prod IDs should live**
34+
35+
The descriptions are not formatted as well but do show up on the part browser. The product IDs could be added as keywords (and would be indexed for searching).
36+
37+
![alt text](https://raw.githubusercontent.com/sparkfun/SparkFun-KiCad-libraries/master/Conversion/description_tag_example.jpg "Example description")
38+
39+
File format:
40+
41+
https://en.wikibooks.org/wiki/Kicad/file_formats#Schematic_Libraries_Files_Format
42+
843
*the hardest part of any task is starting*

Conversion/TestLibs/KiCad.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# For PCBs designed using KiCad: http://www.kicad-pcb.org/
2+
3+
# Temporary files
4+
*.000
5+
*.bak
6+
*.bck
7+
*.kicad_pcb-bak
8+
*~
9+
_autosave-*
10+
*.tmp
11+
12+
# Netlist files (exported from Eeschema)
13+
*.net
14+
15+
# Autorouter files (exported from Pcbnew)
16+
*.dsn
17+
*.ses
18+
19+
# Exported BOM files
20+
*.xml
21+
*.csv

Conversion/TestLibs/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
testLibrary.lib -- Symbol of an IC in a lib
2+
testModels.mod -- Ouptut from eagle-kicad tool
3+
testOutputPretty.pretty/SparkFun-IC-Memory-SO08.kicad_mod -- Result after opening and "saving-as".
4+
testLibrary.dcm -- File generated after adding description and keywords in library editor, then saving.
5+
6+
This test shows:
7+
* The old kicad format uses a SVG style syntax while the new ".pretty" is more human readable.
8+
* Keywords can be added to link symbols to real sparkfun parts. This can be done either in tool or with a script.

Conversion/TestLibs/testLibrary.bak

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
EESchema-LIBRARY Version 2.3
2+
#encoding utf-8
3+
#
4+
# AT25SF041
5+
#
6+
DEF AT25SF041 U 0 40 Y Y 1 F N
7+
F0 "U" -400 310 45 H V L BNN
8+
F1 "AT25SF041" -400 -210 45 H V L BNN
9+
F2 "" 0 0 60 H I C CNN
10+
F3 "" 0 0 60 H I C CNN
11+
$FPLIST
12+
*SO08*
13+
$ENDFPLIST
14+
DRAW
15+
P 2 1 0 0 -400 -200 -400 300 N
16+
P 2 1 0 0 -400 300 600 300 N
17+
P 2 1 0 0 600 -200 -400 -200 N
18+
P 2 1 0 0 600 300 600 -200 N
19+
X ~CS 1 -600 200 200 R 40 40 1 1 B
20+
X SO(D1) 2 -600 100 200 R 40 40 1 1 B
21+
X ~WP(D2) 3 -600 0 200 R 40 40 1 1 B
22+
X GND 4 -600 -100 200 R 40 40 1 1 B
23+
X SI(D0) 5 800 -100 200 L 40 40 1 1 B
24+
X SCK 6 800 0 200 L 40 40 1 1 B
25+
X ~HOLD(D3) 7 800 100 200 L 40 40 1 1 B
26+
X VCC 8 800 200 200 L 40 40 1 1 B
27+
ENDDRAW
28+
ENDDEF
29+
#
30+
#End Library

Conversion/TestLibs/testLibrary.bck

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
EESchema-DOCLIB Version 2.0
2+
#
3+
$CMP AT25SF041
4+
D This is a test part for testing where does this description get displayed?
5+
K ALICE BOB
6+
$ENDCMP
7+
#
8+
#End Doc Library

Conversion/TestLibs/testLibrary.dcm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
EESchema-DOCLIB Version 2.0
2+
#
3+
$CMP AT25SF041
4+
D This is a test part for testing where does this description get displayed?
5+
K ALICE BOB PROD_ID:CRP-0001
6+
$ENDCMP
7+
#
8+
#End Doc Library

Conversion/TestLibs/testLibrary.lib

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
EESchema-LIBRARY Version 2.3
2+
#encoding utf-8
3+
#
4+
# AT25SF041
5+
#
6+
DEF AT25SF041 U 0 40 Y Y 1 F N
7+
F0 "U" -400 310 45 H V L BNN
8+
F1 "AT25SF041" -400 -210 45 H V L BNN
9+
F2 "" 0 0 60 H I C CNN
10+
F3 "" 0 0 60 H I C CNN
11+
$FPLIST
12+
*SO08*
13+
$ENDFPLIST
14+
DRAW
15+
P 2 1 0 0 -400 -200 -400 300 N
16+
P 2 1 0 0 -400 300 600 300 N
17+
P 2 1 0 0 600 -200 -400 -200 N
18+
P 2 1 0 0 600 300 600 -200 N
19+
X ~CS 1 -600 200 200 R 40 40 1 1 B
20+
X SO(D1) 2 -600 100 200 R 40 40 1 1 B
21+
X ~WP(D2) 3 -600 0 200 R 40 40 1 1 B
22+
X GND 4 -600 -100 200 R 40 40 1 1 B
23+
X SI(D0) 5 800 -100 200 L 40 40 1 1 B
24+
X SCK 6 800 0 200 L 40 40 1 1 B
25+
X ~HOLD(D3) 7 800 100 200 L 40 40 1 1 B
26+
X VCC 8 800 200 200 L 40 40 1 1 B
27+
ENDDRAW
28+
ENDDEF
29+
#
30+
#End Library

Conversion/TestLibs/testModels (original_mod_file).mod

Lines changed: 142 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)