Skip to content

Relay HFD4_5 Definition and Naming #74

Description

@mawildoer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions