// // file: current_sense_resistor_2_watt // // Date: 18-Jan-2023 new 2 Watt version for the Disco-Kraken // 6-Feb-2023 change the geom name to shorter version // // // // Geometry for the 4 Wire current sense resistor. // // Ohmite FC4L64 // Susumu KRL64 // // // This geometry is used for the 5 mOhm to 30 mOhm // current sense resistors on the DK card design. // // // This geometry will be layed out with its long axis horizontal. // Pin #1 is in the lower left-hand corner. // // Pin #1 is by the wide section of the top label marking. // // Pin #1 and #4 are the Voltage connections. // Pin #2 and #3 are the Current connections. // // // The Big Pads are: 5.4 mm in X by 1.2 mm in Y // The Sml Pads are: 0.7 mm in X by 1.2 mm in Y // // Delta X to the Big Pads: 0.60 mm // Delta X to the Sml Pads: -2.95 mm // // Delta Y to the Pads: +- 1.60 mm // $abort_enable = @false; $$lock_windows(@on) ; $$snap_diagonal(@off) ; $$snap_orthogonal(@off) ; //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- $$create_pin("FC4L64_BIG_PAD", @replace); $$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$FC4L64_BIG_PAD']); $$point_mode(@vertex); $$polygon( "PAD", , [ 2.70, 0.60, -2.70, 0.60, -2.70, -0.60, 2.70, -0.60 ]); $$polygon( "SOLDER_MASK", , [ 2.75, 0.65, -2.75, 0.65, -2.75, -0.65, 2.75, -0.65 ]); $$polygon( "PASTE_MASK", , [ 2.70, 0.60, -2.70, 0.60, -2.70, -0.60, 2.70, -0.60 ]); $$attribute( "TERMINAL_SURFACE_DEFINITION", ""); //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- $$create_pin("FC4L64_SMALL_PAD", @replace); $$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'PI$FC4L64_SMALL_PAD']); $$point_mode(@vertex); $$polygon( "PAD", , [ 0.35, 0.60, -0.35, 0.60, -0.35, -0.60, 0.35, -0.60 ]); $$polygon( "SOLDER_MASK", , [ 0.40, 0.65, -0.40, 0.65, -0.40, -0.65, 0.40, -0.65 ]); $$polygon( "PASTE_MASK", , [ 0.35, 0.60, -0.35, 0.60, -0.35, -0.60, 0.35, -0.60 ]); $$attribute( "TERMINAL_SURFACE_DEFINITION", ""); //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- $$create_component("Sense_Resistor", @replace); $$page(0.0,0.0,0.0, @mm, 0.0, 0.0, [0.0, 0.0, 'CO$Sense_Resistor']); $$point_mode(@vertex); $$attribute( "COMPONENT_LAYOUT_TYPE", "surface"); $$attribute( "COMPONENT_LAYOUT_SURFACE", "both"); $$attribute( "COMPONENT_HEIGHT", "0.50", , @scale , , [0.0, 0.0] ); // // Component Placement Outline for the Current Sense Resistor // $$initial([ -3.40, -2.30 ], , @nosnap ); $$terminal([ -3.40, 2.30 ] ); $$terminal([ 3.40, 2.30 ] ); $$terminal([ 3.40, -2.30 ] ); $$attribute( "COMPONENT_PLACEMENT_OUTLINE", "", @mark, @scale ); $$path( "SILKSCREEN", 0.20 , , [ -3.70, 2.60, 3.70, 2.60 ]); $$path( "SILKSCREEN", 0.20 , , [ -3.70, -2.60, 3.70, -2.60 ]); $$path( "SILKSCREEN", 0.20 , , [ 3.70, 2.60, 3.70, -2.60 ]); $$path( "SILKSCREEN", 0.20 , , [ -3.70, 2.60, -3.70, -2.60 ]); $$text( "SILKSCREEN", "^$ref", 0.0, 3.3, 2.0, @BC, 0, 0.7, 0.20, "std", "None", 0.0, 0.0 ); // Define the four pins on the Current Sense Resistor: // // Pin #1 is a Voltage terminal and is in the lower left-hand corner. // The pins are numbered going around this device in the CCW direction. // // From the top the layout of the Current Sense Resistor is: // // // Volt Pin #4 Pin #3 Current // // Volt Pin #1 Pin #2 Current // $$attribute( "COMPONENT_PIN_DEFINITION", "1", , @scale , , [ -2.95, -1.60 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "1, FC4L64_SMALL_PAD"); $$attribute( "COMPONENT_PIN_DEFINITION", "2", , @scale , , [ 0.60, -1.60 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "2, FC4L64_BIG_PAD"); $$attribute( "COMPONENT_PIN_DEFINITION", "3", , @scale , , [ 0.60, 1.60 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "3, FC4L64_BIG_PAD"); $$attribute( "COMPONENT_PIN_DEFINITION", "4", , @scale , , [ -2.95, 1.60 ]); $$attribute( "COMPONENT_PADSTACK_OVERRIDE", "4, FC4L64_SMALL_PAD");