This definition doesn't include the second set of normally closed contacts, and the naming is extremely use-case-specific
component HFXiamen_Hongfa_Electroacoustic_HFD4_5:
"""HFXiamen_Hongfa_Electroacoustic_HFD4_5 component"""
lcsc_id = "C23510"
manufacturer = "HF(Xiamen Hongfa Electroacoustic)"
mpn = "HFD4/5"
datasheet_url = "https://www.lcsc.com/datasheet/lcsc_datasheet_2304140030_HF-Xiamen-Hongfa-Electroacoustic-HFD4-5_C23510.pdf"
designator_prefix = "K"
# pins
coil = new ElectricPower
assert coil.voltage within 4.5V to 5.5V
coil.vcc ~ pin 1
coil.gnd ~ pin 8
power_out = new ElectricPower
power_out.vcc ~ pin 6
power_out.gnd ~ pin 3
power_in = new ElectricPower
power_in.vcc ~ pin 5
power_in.gnd ~ pin 4
|
|
|
|
|
component HFXiamen_Hongfa_Electroacoustic_HFD4_5: |
|
"""HFXiamen_Hongfa_Electroacoustic_HFD4_5 component""" |
|
lcsc_id = "C23510" |
|
manufacturer = "HF(Xiamen Hongfa Electroacoustic)" |
|
mpn = "HFD4/5" |
|
datasheet_url = "https://www.lcsc.com/datasheet/lcsc_datasheet_2304140030_HF-Xiamen-Hongfa-Electroacoustic-HFD4-5_C23510.pdf" |
|
designator_prefix = "K" |
|
|
|
# pins |
|
coil = new ElectricPower |
|
assert coil.voltage within 4.5V to 5.5V |
|
coil.vcc ~ pin 1 |
|
coil.gnd ~ pin 8 |
|
|
|
power_out = new ElectricPower |
|
power_out.vcc ~ pin 6 |
|
power_out.gnd ~ pin 3 |
|
|
|
power_in = new ElectricPower |
This definition doesn't include the second set of normally closed contacts, and the naming is extremely use-case-specific
hil/elec/src/blocks/relay.ato
Lines 98 to 118 in 8e8c316