diff --git a/connector/terminal-barrier_dbt50p-6.35.rb b/connector/terminal-barrier_dbt50p-6.35.rb new file mode 100755 index 0000000..27f0525 --- /dev/null +++ b/connector/terminal-barrier_dbt50p-6.35.rb @@ -0,0 +1,45 @@ +#!/usr/bin/env ruby +# encoding: utf-8 +# ruby: 3.0.1 + +# number of possible pins +variations = (2..24).to_a + +# X offset is hand adjusted +x = [-5.3] * 13 +x[9] = -5.3 - 3 * 2.54 + +puts "name: DBT50P-6.35 +description: barrier block, screw terminal, 6.35mm pitch +variations: #{variations.collect {|p| p.to_s + 'P'} * ', '} +datasheet: https://www.nbdibo.com/wp-content/uploads/2020/07/DBT50P-6.35-XXP-C-P.pdf + +housing: &template + pattern: custom + height: 12.7 + bodyLength: 14.0 + leadHeight: 3.50 + leadWidth: 1.0 + leadLength: 0.8 + holeDiameter: 1.7 + pitch: 6.36 + rowCount: 1 + bodyPosition: 0, #{14.0/2-4.2} +" + +variations.each do |v| + puts " +pinout@#{v}P: 1-#{v} + +schematic@#{v}P: + suffix: -#{v.to_s.rjust(2,'0')}P + symbol: connector + left: 1-#{v} + +housing@#{v}P: + suffix: -#{v.to_s.rjust(2,'0')}P + <<: *template + bodyWidth: #{(6.35 * v).round(2)} + columnCount: #{v} +" +end diff --git a/connector/terminal-barrier_dbt50p-6.35.yaml b/connector/terminal-barrier_dbt50p-6.35.yaml new file mode 100644 index 0000000..c8e0e61 --- /dev/null +++ b/connector/terminal-barrier_dbt50p-6.35.yaml @@ -0,0 +1,315 @@ +name: DBT50P-6.35 +description: barrier block, screw terminal, 6.35mm pitch +variations: 2P, 3P, 4P, 5P, 6P, 7P, 8P, 9P, 10P, 11P, 12P, 13P, 14P, 15P, 16P, 17P, 18P, 19P, 20P, 21P, 22P, 23P, 24P +datasheet: https://www.nbdibo.com/wp-content/uploads/2020/07/DBT50P-6.35-XXP-C-P.pdf + +housing: &template + pattern: custom + height: 12.7 + bodyLength: 14.0 + leadHeight: 3.50 + leadWidth: 1.0 + leadLength: 0.8 + holeDiameter: 1.7 + pitch: 6.36 + rowCount: 1 + bodyPosition: 0, 2.8 + +pinout@2P: 1-2 + +schematic@2P: + suffix: -02P + symbol: connector + left: 1-2 + +housing@2P: + suffix: -02P + <<: *template + bodyWidth: 12.7 + columnCount: 2 + +pinout@3P: 1-3 + +schematic@3P: + suffix: -03P + symbol: connector + left: 1-3 + +housing@3P: + suffix: -03P + <<: *template + bodyWidth: 19.05 + columnCount: 3 + +pinout@4P: 1-4 + +schematic@4P: + suffix: -04P + symbol: connector + left: 1-4 + +housing@4P: + suffix: -04P + <<: *template + bodyWidth: 25.4 + columnCount: 4 + +pinout@5P: 1-5 + +schematic@5P: + suffix: -05P + symbol: connector + left: 1-5 + +housing@5P: + suffix: -05P + <<: *template + bodyWidth: 31.75 + columnCount: 5 + +pinout@6P: 1-6 + +schematic@6P: + suffix: -06P + symbol: connector + left: 1-6 + +housing@6P: + suffix: -06P + <<: *template + bodyWidth: 38.1 + columnCount: 6 + +pinout@7P: 1-7 + +schematic@7P: + suffix: -07P + symbol: connector + left: 1-7 + +housing@7P: + suffix: -07P + <<: *template + bodyWidth: 44.45 + columnCount: 7 + +pinout@8P: 1-8 + +schematic@8P: + suffix: -08P + symbol: connector + left: 1-8 + +housing@8P: + suffix: -08P + <<: *template + bodyWidth: 50.8 + columnCount: 8 + +pinout@9P: 1-9 + +schematic@9P: + suffix: -09P + symbol: connector + left: 1-9 + +housing@9P: + suffix: -09P + <<: *template + bodyWidth: 57.15 + columnCount: 9 + +pinout@10P: 1-10 + +schematic@10P: + suffix: -10P + symbol: connector + left: 1-10 + +housing@10P: + suffix: -10P + <<: *template + bodyWidth: 63.5 + columnCount: 10 + +pinout@11P: 1-11 + +schematic@11P: + suffix: -11P + symbol: connector + left: 1-11 + +housing@11P: + suffix: -11P + <<: *template + bodyWidth: 69.85 + columnCount: 11 + +pinout@12P: 1-12 + +schematic@12P: + suffix: -12P + symbol: connector + left: 1-12 + +housing@12P: + suffix: -12P + <<: *template + bodyWidth: 76.2 + columnCount: 12 + +pinout@13P: 1-13 + +schematic@13P: + suffix: -13P + symbol: connector + left: 1-13 + +housing@13P: + suffix: -13P + <<: *template + bodyWidth: 82.55 + columnCount: 13 + +pinout@14P: 1-14 + +schematic@14P: + suffix: -14P + symbol: connector + left: 1-14 + +housing@14P: + suffix: -14P + <<: *template + bodyWidth: 88.9 + columnCount: 14 + +pinout@15P: 1-15 + +schematic@15P: + suffix: -15P + symbol: connector + left: 1-15 + +housing@15P: + suffix: -15P + <<: *template + bodyWidth: 95.25 + columnCount: 15 + +pinout@16P: 1-16 + +schematic@16P: + suffix: -16P + symbol: connector + left: 1-16 + +housing@16P: + suffix: -16P + <<: *template + bodyWidth: 101.6 + columnCount: 16 + +pinout@17P: 1-17 + +schematic@17P: + suffix: -17P + symbol: connector + left: 1-17 + +housing@17P: + suffix: -17P + <<: *template + bodyWidth: 107.95 + columnCount: 17 + +pinout@18P: 1-18 + +schematic@18P: + suffix: -18P + symbol: connector + left: 1-18 + +housing@18P: + suffix: -18P + <<: *template + bodyWidth: 114.3 + columnCount: 18 + +pinout@19P: 1-19 + +schematic@19P: + suffix: -19P + symbol: connector + left: 1-19 + +housing@19P: + suffix: -19P + <<: *template + bodyWidth: 120.65 + columnCount: 19 + +pinout@20P: 1-20 + +schematic@20P: + suffix: -20P + symbol: connector + left: 1-20 + +housing@20P: + suffix: -20P + <<: *template + bodyWidth: 127.0 + columnCount: 20 + +pinout@21P: 1-21 + +schematic@21P: + suffix: -21P + symbol: connector + left: 1-21 + +housing@21P: + suffix: -21P + <<: *template + bodyWidth: 133.35 + columnCount: 21 + +pinout@22P: 1-22 + +schematic@22P: + suffix: -22P + symbol: connector + left: 1-22 + +housing@22P: + suffix: -22P + <<: *template + bodyWidth: 139.7 + columnCount: 22 + +pinout@23P: 1-23 + +schematic@23P: + suffix: -23P + symbol: connector + left: 1-23 + +housing@23P: + suffix: -23P + <<: *template + bodyWidth: 146.05 + columnCount: 23 + +pinout@24P: 1-24 + +schematic@24P: + suffix: -24P + symbol: connector + left: 1-24 + +housing@24P: + suffix: -24P + <<: *template + bodyWidth: 152.4 + columnCount: 24