Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

[WIP] add autogen for transformer & some test definitions #310

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 147 additions & 0 deletions schlib/autogen/Transformer/definitions/block.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
Block_FL:
name: "{series}-{va_rating}-{voltage}"
manufacturer: Block
series: FL
description: "{va_rating}VA, 2x{voltage}, Dual Primary, Dual Secondary, Print Transformer"
keywords: "{va_rating}VA PCB transformer"
datasheet: "https://www.block.eu/fileadmin/Blaetterkatalog_und_ebook/eBook.pdf#page=278"
dots: bottom
primary: 2
secondary: 2
core: true
footprint_library: "Transformer_THT"
variants:
power_rating:
- va_rating: 2
footprint: "Transformer_Block_FL-2_53x44x17.6mm"
- va_rating: 4
footprint: "Transformer_Block_FL-4_53x44x19.6mm"
- va_rating: 6
footprint: "Transformer_Block_FL-6_53x44x22.6mm"
- va_rating: 8
footprint: "Transformer_Block_FL-8_53x44x28.6mm"
- va_rating: 10
footprint: "Transformer_Block_FL-10_68x57x22.8mm"
- va_rating: 14
footprint: "Transformer_Block_FL-14_68x57x24.4mm"
- va_rating: 18
footprint: "Transformer_Block_FL-18_68x57x27.6mm"
- va_rating: 24
footprint: "Transformer_Block_FL-24_68x57x31.4mm"
- va_rating: 30
footprint: "Transformer_Block_FL-30_68x57x35.8mm"
- va_rating: 42
footprint: "Transformer_Block_FL-42_83.5x70x39mm"
- va_rating: 52
footprint: "Transformer_Block_FL-42_83.5x70x39mm"
voltage: [5, 6, 8, 9, 12, 15, 18, 24]

Block_VB:
name: "{series}-{va_rating}-{secondaries}-{voltage}"
manufacturer: Block
series: VB
description: "{va_rating}VA short-circuit proof PCB transformer"
datasheet: "https://www.block.eu/fileadmin/Blaetterkatalog_und_ebook/eBook.pdf#page=248"
keywords: "{va_rating}VA PCB transformer {text_primaries} primary {text_secondaries} secondary"
dots: bottom
primary: 1
core: true
footprint_library: "Transformer_THT"
footprint: "Transformer_{manufacturer}_{series}-{va_rating}-{secondaries}_{size}mm"
variants:
secondary: [1, 2]
power_rating:
- va_rating: "0,35"
size: 22x27.5x15
- va_rating: "0,5"
size: 22x27.5x19
- va_rating: "1,0"
size: 32.3x27.3x21.8
- va_rating: "1,2"
size: 32.3x27.3x23.8
- va_rating: "1,5"
size: 32.3x27.3x23.8
- va_rating: "2,0"
size: 32.3x27.3x26.8
- va_rating: "2,3"
size: 32.3x27.3x29
- va_rating: "2,8"
size: 32.3x27.3x34
- va_rating: "3,2"
size: 41x35x30.8
voltage: [6, 8, 9, 12, 15, 18, 24]

Block_AVB:
name: "{series}-{va_rating}-{secondaries}-{voltage}"
manufacturer: Block
series: AVB
description: "{va_rating}VA short-circuit proof PCB transformer"
datasheet: "https://www.block.eu/fileadmin/Blaetterkatalog_und_ebook/eBook.pdf#page=253"
keywords: "{va_rating}VA PCB transformer {text_primaries} primary {text_secondaries} secondary"
dots: bottom
primary: 2
core: true
footprint_library: "Transformer_THT"
footprint: "Transformer_{manufacturer}_{series}-{va_rating}-{secondaries}_{size}mm"
variants:
- secondary: [[5,6], [7,8]]
variants:
- va_rating: 0,35
size: 22x22.7x15
variants:
voltage: [6, 9, 12, 18, 24]
- va_rating: 0,5
size: 22x22.7x19
variants:
voltage: [6, 8, 9, 12, 15, 18, 24]
- secondary: [[5,6], [8,9]]
variants:
- va_rating: 1,0
size: 32.3x27.3x21.8
variants:
voltage: [6, 9, 12, 15, 18, 24]
- va_rating: 1,5
size: 32.3x27.3x23.8
variants:
voltage: [6, 8, 9, 12, 15, 18, 24]
- va_rating: 2,0
size: 32.3x27.3x26.8
voltage: 8
- va_rating: 2,3
size: 32.3x27.3x29
variants:
voltage: [6, 9, 12, 15, 18, 24]
- va_rating: 2,3
size: 32.3x27.3x39
voltage: 8
- va_rating: 3,2
size: 41x35x30.8
variants:
voltage: [6, 9, 12, 15, 18, 24]

Block_VC:
name: "{series}-{va_rating}-{secondaries}-{voltage}"
manufacturer: Block
series: VC
description: "{va_rating}VA PCB transformer"
datasheet: "https://www.block.eu/fileadmin/Blaetterkatalog_und_ebook/eBook.pdf#page=257"
keywords: "{va_rating}VA PCB transformer {text_primaries} primary {text_secondaries} secondary"
dots: bottom
primary: 1
core: true
footprint_library: "Transformer_THT"
footprint: "Transformer_{manufacturer}_{series}-{va_rating}-{secondaries}_{size}mm"
variants:
secondary:
- [4,5]
- [[3,4], [5,6]]
voltage: [6, 8, 9, 12, 15, 18, 24]
power_rating:
- va_rating: 3,2
size: 41x35x28.1
- va_rating: 5,0
size: 44x37x33
- va_rating: 10
size: 51x43x34.6
- va_rating: 16
size: 57x48x39
69 changes: 69 additions & 0 deletions schlib/autogen/Transformer/definitions/breve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
Breve_TEZ:
manufacturer: Breve
name: "{series}{va_rating}-D-{secondaries}"
description: "TEZ{va_rating}/D/{secondaries}, {va_rating}VA, Cast Resin Transformer"
keywords: "{va_rating}VA PCB Transformer Single Primary"
datasheet: "https://www.breve.pl/pdf/ANG/TEZ_ang.pdf"
core: true
series: TEZ
footprint_library: "Transformer_THT"
footprint: "Transformer_{manufacturer}_{series}-{fp_size}"
definitions:
package_small: &tez_small
primary: [1, 5]
variants:
- secondary: [7, 9]
- secondary: [[6, 7], [9, 10]]
package_large: &tez_large
primary: [1, 7]
variants:
- secondary: [9, 13]
- secondary: [[8, 9], [13, 14]]
variants:
- va_rating: "0,5"
fp_size: "22x24"
primary:
- dot: top
pins: [1, 4]
variants:
- secondary: [6, 7]
- secondary: [[5, 6], [7,8]]
- va_rating: "1,5"
fp_size: "28x33"
<<: *tez_small
- va_rating: "2,0"
fp_size: "28x33"
<<: *tez_small
- va_rating: "2,5"
fp_size: "28x33"
<<: *tez_small
- va_rating: "2,6"
fp_size: "28x33"
<<: *tez_small
- va_rating: "4,0"
fp_size: "35x42"
<<: *tez_small
- va_rating: "4,5"
fp_size: "35x42"
<<: *tez_small
- va_rating: "6,0"
fp_size: "35x42"
<<: *tez_small
- va_rating: "10,0"
fp_size: "44x52"
primary: [1, 6]
variants:
- secondary: [8, 11]
- secondary: [[7, 8], [11, 12]]
- va_rating: "16,0"
fp_size: "47x57"
<<: *tez_large
- va_rating: "20,0"
fp_size: "53.8x63.6"
<<: *tez_large
- va_rating: "25,0"
fp_size: "53.8x63.6"
<<: *tez_large
- va_rating: "30,0"
fp_size: "53.8x63.6"
<<: *tez_large
Loading