From 5dab1a5aa6548851ced4f30aad5623b573d90046 Mon Sep 17 00:00:00 2001 From: Oliver Holt Date: Sat, 6 Jun 2020 16:46:52 +0100 Subject: [PATCH] Added a set of common generic relays I added generic relays to device library of the following popular configurations: Relay_DPDT Relay_DPST_NC Relay_DPST_NO Relay_SPDT Relay_SPST_NC Relay_SPST_NO All symbols are consistent with the fully specified relays used in the relays library. Generic relays encounter similar problems to generic op amps regarding pin numbering: every package and every manufactuer uses different conventions. I picked a simple convention to follow in line with generic op amps. All symbols were tested with the checklib.py script and comply with all KLC guidelines applicable to generic parts. I have not included any latching relays but I (or someone else) may do this in the future. --- Device.dcm | 36 ++++++++ Device.lib | 248 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 284 insertions(+) diff --git a/Device.dcm b/Device.dcm index 8de86eb005..01d41ac73a 100644 --- a/Device.dcm +++ b/Device.dcm @@ -2592,6 +2592,42 @@ K R res resistor variable potentiometer rheostat F ~ $ENDCMP # +$CMP Relay_DPDT +D Relay, double pole, double throw +K Relay double pole throw dpdt make break +F ~ +$ENDCMP +# +$CMP Relay_DPST_NC +D Relay, double pole, single throw, normally closed +K Relay double pole single throw dspt normally closed nc +F ~ +$ENDCMP +# +$CMP Relay_DPST_NO +D Relay, double pole, single throw, normally open +K Relay double pole single throw dspt normally open no +F ~ +$ENDCMP +# +$CMP Relay_SPDT +D Relay, single pole, double throw +K Relay single pole souble throw spdt +F ~ +$ENDCMP +# +$CMP Relay_SPST_NC +D Relay, single pole, single throw, normally closed +K Relay single pole throw spst normally closed nc +F ~ +$ENDCMP +# +$CMP Relay_SPST_NO +D Relay, single pole, single throw, normally open +K Relay single pole throw spst normally open open +F ~ +$ENDCMP +# $CMP Resonator D Three pin ceramic resonator K ceramic resonator diff --git a/Device.lib b/Device.lib index 783f180080..bc99e05b33 100644 --- a/Device.lib +++ b/Device.lib @@ -12663,6 +12663,254 @@ X ~ 2 0 -150 50 U 50 50 1 1 P ENDDRAW ENDDEF # +# Relay_DPDT +# +DEF Relay_DPDT K 0 20 Y Y 1 F N +F0 "K" 650 50 50 H V C CNN +F1 "Relay_DPDT" 850 -50 50 H V C CNN +F2 "" 500 50 50 H I C CNN +F3 "" 500 50 50 H I C CNN +$FPLIST + relay_dpdt* + relay_socket_dpdt* +$ENDFPLIST +DRAW +S -600 200 600 -200 1 1 10 f +S -525 75 -275 -75 1 1 10 N +P 2 1 1 10 -500 -75 -300 75 N +P 2 1 1 0 -400 -200 -400 -75 N +P 2 1 1 0 -400 200 -400 75 N +P 2 1 1 10 -275 0 -250 0 N +P 2 1 1 10 -225 0 -200 0 N +P 2 1 1 10 -175 0 -150 0 N +P 2 1 1 10 -125 0 -100 0 N +P 2 1 1 10 -75 0 -50 0 N +P 2 1 1 10 -25 0 0 0 N +P 2 1 1 20 0 -100 -75 150 N +P 2 1 1 0 0 -100 0 -200 N +P 2 1 1 10 25 0 50 0 N +P 2 1 1 10 75 0 100 0 N +P 2 1 1 10 125 0 150 0 N +P 2 1 1 10 175 0 200 0 N +P 2 1 1 10 225 0 250 0 N +P 2 1 1 10 275 0 300 0 N +P 2 1 1 10 325 0 350 0 N +P 2 1 1 20 400 -100 325 150 N +P 2 1 1 0 400 -100 400 -200 N +P 4 1 1 0 -100 200 -100 100 -75 125 -100 150 F +P 4 1 1 0 100 200 100 100 75 125 100 150 N +P 4 1 1 0 300 200 300 100 325 125 300 150 F +P 4 1 1 0 500 200 500 100 475 125 500 150 N +X ~ 1 -400 -300 100 U 50 50 1 1 P +X ~ 2 -400 300 100 D 50 50 1 1 P +X ~ 3 0 -300 100 U 50 50 1 1 P +X ~ 4 -100 300 100 D 50 50 1 1 P +X ~ 5 100 300 100 D 50 50 1 1 P +X ~ 6 400 -300 100 U 50 50 1 1 P +X ~ 7 300 300 100 D 50 50 1 1 P +X ~ 8 500 300 100 D 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Relay_DPST_NC +# +DEF Relay_DPST_NC K 0 20 Y Y 1 F N +F0 "K" 650 50 50 H V C CNN +F1 "Relay_DPST_NC" 900 -50 50 H V C CNN +F2 "" 400 50 50 H I C CNN +F3 "" 400 50 50 H I C CNN +$FPLIST + relay_socket_dpst* + relay_dpst* +$ENDFPLIST +DRAW +S -600 200 600 -200 1 1 10 f +S -525 75 -275 -75 1 1 10 N +P 2 1 1 10 -500 -75 -300 75 N +P 2 1 1 0 -400 -200 -400 -75 N +P 2 1 1 0 -400 200 -400 75 N +P 2 1 1 10 -275 0 -250 0 N +P 2 1 1 10 -225 0 -200 0 N +P 2 1 1 10 -175 0 -150 0 N +P 2 1 1 10 -125 0 -100 0 N +P 2 1 1 10 -75 0 -50 0 N +P 2 1 1 10 -25 0 0 0 N +P 2 1 1 20 0 -100 -75 150 N +P 2 1 1 0 0 -100 0 -200 N +P 2 1 1 10 25 0 50 0 N +P 2 1 1 10 75 0 100 0 N +P 2 1 1 10 125 0 150 0 N +P 2 1 1 10 175 0 200 0 N +P 2 1 1 10 225 0 250 0 N +P 2 1 1 10 275 0 300 0 N +P 2 1 1 10 325 0 350 0 N +P 2 1 1 20 400 -100 325 150 N +P 2 1 1 0 400 -100 400 -200 N +P 4 1 1 0 -100 200 -100 100 -75 125 -100 150 F +P 4 1 1 0 300 200 300 100 325 125 300 150 F +X ~ 1 -400 -300 100 U 50 50 1 1 P +X ~ 2 -400 300 100 D 50 50 1 1 P +X ~ 3 0 -300 100 U 50 50 1 1 P +X ~ 4 -100 300 100 D 50 50 1 1 P +X ~ 6 400 -300 100 U 50 50 1 1 P +X ~ 7 300 300 100 D 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Relay_DPST_NO +# +DEF Relay_DPST_NO K 0 20 Y Y 1 F N +F0 "K" 650 50 50 H V C CNN +F1 "Relay_DPST_NO" 900 -50 50 H V C CNN +F2 "" 200 50 50 H I C CNN +F3 "" 200 50 50 H I C CNN +$FPLIST + relay_socket_dpst* + relay_dpst* +$ENDFPLIST +DRAW +S -600 200 600 -200 1 1 10 f +S -525 75 -275 -75 1 1 10 N +P 2 1 1 10 -500 -75 -300 75 N +P 2 1 1 0 -400 -200 -400 -75 N +P 2 1 1 0 -400 200 -400 75 N +P 2 1 1 10 -275 0 -250 0 N +P 2 1 1 10 -225 0 -200 0 N +P 2 1 1 10 -175 0 -150 0 N +P 2 1 1 10 -125 0 -100 0 N +P 2 1 1 10 -75 0 -50 0 N +P 2 1 1 10 -25 0 0 0 N +P 2 1 1 20 0 -100 -75 150 N +P 2 1 1 0 0 -100 0 -200 N +P 2 1 1 10 25 0 50 0 N +P 2 1 1 10 75 0 100 0 N +P 2 1 1 10 125 0 150 0 N +P 2 1 1 10 175 0 200 0 N +P 2 1 1 10 225 0 250 0 N +P 2 1 1 10 275 0 300 0 N +P 2 1 1 10 325 0 350 0 N +P 2 1 1 20 400 -100 325 150 N +P 2 1 1 0 400 -100 400 -200 N +P 4 1 1 0 0 200 0 100 -25 125 0 150 N +P 4 1 1 0 400 200 400 100 375 125 400 150 N +X ~ 1 -400 -300 100 U 50 50 1 1 P +X ~ 2 -400 300 100 D 50 50 1 1 P +X ~ 3 0 -300 100 U 50 50 1 1 P +X ~ 5 0 300 100 D 50 50 1 1 P +X ~ 6 400 -300 100 U 50 50 1 1 P +X ~ 8 400 300 100 D 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Relay_SPDT +# +DEF Relay_SPDT K 0 20 Y Y 1 F N +F0 "K" 450 50 50 H V C CNN +F1 "Relay_SPDT" 650 -50 50 H V C CNN +F2 "" 450 50 50 H I C CNN +F3 "" 450 50 50 H I C CNN +$FPLIST + relay_socket_spdt* + relay_spdt* +$ENDFPLIST +DRAW +S -400 200 400 -200 1 1 10 f +S -325 75 -75 -75 1 1 10 N +P 2 1 1 10 -300 -75 -100 75 N +P 2 1 1 0 -200 -200 -200 -75 N +P 2 1 1 0 -200 200 -200 75 N +P 2 1 1 10 -75 0 -50 0 N +P 2 1 1 10 -25 0 0 0 N +P 2 1 1 10 -25 0 0 0 N +P 2 1 1 10 25 0 50 0 N +P 2 1 1 10 25 0 50 0 N +P 2 1 1 10 75 0 100 0 N +P 2 1 1 10 75 0 100 0 N +P 2 1 1 10 125 0 150 0 N +P 2 1 1 10 125 0 150 0 N +P 2 1 1 10 175 0 200 0 N +P 2 1 1 20 200 -100 125 150 N +P 2 1 1 20 200 -100 125 150 N +P 2 1 1 0 200 -100 200 -200 N +P 2 1 1 0 200 -100 200 -200 N +P 2 1 1 10 225 0 250 0 N +P 2 1 1 10 275 0 300 0 N +P 2 1 1 10 325 0 350 0 N +P 4 1 1 0 100 200 100 100 125 125 100 150 F +P 4 1 1 0 300 200 300 100 275 125 300 150 N +X ~ 1 -200 -300 100 U 50 50 1 1 P +X ~ 2 -200 300 100 D 50 50 1 1 P +X ~ 3 200 -300 100 U 50 50 1 1 P +X ~ 4 100 300 100 D 50 50 1 1 P +X ~ 5 300 300 100 D 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Relay_SPST_NC +# +DEF Relay_SPST_NC K 0 20 Y Y 1 F N +F0 "K" 450 50 50 H V C CNN +F1 "Relay_SPST_NC" 700 -50 50 H V C CNN +F2 "" 450 50 50 H I C CNN +F3 "" 450 50 50 H I C CNN +$FPLIST + relay_socket_spst* + relay_spst* +$ENDFPLIST +DRAW +S -400 200 400 -200 1 1 10 f +S -325 75 -75 -75 1 1 10 N +P 2 1 1 10 -300 -75 -100 75 N +P 2 1 1 0 -200 -200 -200 -75 N +P 2 1 1 0 -200 200 -200 75 N +P 2 1 1 10 -75 0 -50 0 N +P 2 1 1 10 -25 0 0 0 N +P 2 1 1 10 25 0 50 0 N +P 2 1 1 10 75 0 100 0 N +P 2 1 1 0 100 150 100 200 N +P 2 1 1 10 125 0 150 0 N +P 2 1 1 20 200 -100 125 150 N +P 2 1 1 0 200 -100 200 -200 N +P 3 1 1 0 100 100 125 125 100 150 F +X ~ 1 -200 -300 100 U 50 50 1 1 P +X ~ 2 -200 300 100 D 50 50 1 1 P +X ~ 3 200 -300 100 U 50 50 1 1 P +X ~ 4 100 300 100 D 50 50 1 1 P +ENDDRAW +ENDDEF +# +# Relay_SPST_NO +# +DEF Relay_SPST_NO K 0 20 Y Y 1 F N +F0 "K" 450 50 50 H V C CNN +F1 "Relay_SPST_NO" 700 -50 50 H V C CNN +F2 "" 450 50 50 H I C CNN +F3 "" 450 50 50 H I C CNN +$FPLIST + relay_socket_spst* + relay_spst* +$ENDFPLIST +DRAW +S -400 200 400 -200 1 1 10 f +S -325 75 -75 -75 1 1 10 N +P 2 1 1 10 -300 -75 -100 75 N +P 2 1 1 0 -200 -200 -200 -75 N +P 2 1 1 0 -200 200 -200 75 N +P 2 1 1 10 -75 0 -50 0 N +P 2 1 1 10 -25 0 0 0 N +P 2 1 1 10 25 0 50 0 N +P 2 1 1 10 75 0 100 0 N +P 2 1 1 10 125 0 150 0 N +P 2 1 1 20 200 -100 125 150 N +P 2 1 1 0 200 -100 200 -200 N +P 4 1 1 0 200 200 200 100 175 125 200 150 N +X ~ 1 -200 -300 100 U 50 50 1 1 P +X ~ 2 -200 300 100 D 50 50 1 1 P +X ~ 3 200 -300 100 U 50 50 1 1 P +X ~ 5 200 300 100 D 50 50 1 1 P +ENDDRAW +ENDDEF +# # Resonator # DEF Resonator Y 0 40 Y N 1 F N