How to use the skidl.SchLib function in skidl

To help you get started, we’ve selected a few skidl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xesscorp / skidl / skidl / libs / motor_drivers_sklib.py View on Github external
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib

SKIDL_lib_version = '0.0.1'

motor_drivers = SchLib(tool=SKIDL).add_parts(*[
        Part(name='A4950E',dest=TEMPLATE,tool=SKIDL,keywords='full-bridge h-bridge',description='Full-Bridge, DMOS PWM, Motor Driver, 40V, 3.5A, -40 to +125C',ref_prefix='U',num_units=1,fplist=['SOIC-*1EP*'],do_erc=True,aliases=['A4950K'],pins=[
            Pin(num='1',name='GND',func=Pin.PWRIN,do_erc=True),
            Pin(num='2',name='IN2',do_erc=True),
            Pin(num='3',name='IN1',do_erc=True),
            Pin(num='4',name='VREF',func=Pin.PASSIVE,do_erc=True),
            Pin(num='5',name='VBB',func=Pin.PWRIN,do_erc=True),
            Pin(num='6',name='OUT1',func=Pin.PWROUT,do_erc=True),
            Pin(num='7',name='LSS',func=Pin.PWRIN,do_erc=True),
            Pin(num='8',name='OUT2',func=Pin.PWROUT,do_erc=True),
            Pin(num='9',name='PAD',func=Pin.PWRIN,do_erc=True)]),
        Part(name='DRV8308',dest=TEMPLATE,tool=SKIDL,keywords='bldc mosfet-driver hall-sensor',description='Brushless DC motor controller, closed loop, hall sensor inputs, current limiting, SPI interface',ref_prefix='U',num_units=1,fplist=['QFN*1EP*6x6mm*Pitch0.5mm*'],do_erc=True,pins=[
            Pin(num='1',name='UHP',do_erc=True),
            Pin(num='2',name='UHN',do_erc=True),
            Pin(num='3',name='VHP',do_erc=True),
            Pin(num='4',name='VHN',do_erc=True),
            Pin(num='5',name='WHP',do_erc=True),
github xesscorp / skidl / skidl / libs / brooktre_sklib.py View on Github external
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib

SKIDL_lib_version = '0.0.1'

brooktre = SchLib(tool=SKIDL).add_parts(*[
        Part(name='BT106',dest=TEMPLATE,tool=SKIDL,keywords='video CDA',description='Convertisseur Video D->A 8 bits',ref_prefix='U',num_units=1,do_erc=True,pins=[
            Pin(num='17',name='AGND',do_erc=True),
            Pin(num='18',name='AGND',do_erc=True),
            Pin(num='15',name='VAA',do_erc=True),
            Pin(num='19',name='VAA',do_erc=True),
            Pin(num='14',name='COMP',func=Pin.PASSIVE,do_erc=True),
            Pin(num='16',name='IOUT',func=Pin.OUTPUT,do_erc=True),
            Pin(num='1',name='CLK',do_erc=True),
            Pin(num='10',name='REF',do_erc=True),
            Pin(num='11',name='BLANK',do_erc=True),
            Pin(num='20',name='SYNC',do_erc=True),
            Pin(num='13',name='FSADJ',do_erc=True),
            Pin(num='12',name='VREF',do_erc=True),
            Pin(num='2',name='D7',do_erc=True),
            Pin(num='3',name='D6',do_erc=True),
            Pin(num='4',name='D5',do_erc=True),
github xesscorp / skidl / skidl / libs / sensors_sklib.py View on Github external
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib

SKIDL_lib_version = '0.0.1'

sensors = SchLib(tool=SKIDL).add_parts(*[
        Part(name='40PC015G',dest=TEMPLATE,tool=SKIDL,keywords='gage gauge pressure sensor',description='Gauge pressure sensor, 0 to 250PSI, 5V supply, 0.2% accuracy, integrated signal conditioning, excellent media compatibility',ref_prefix='U',num_units=1,do_erc=True,aliases=['40PC100G', '40PC150G', '40PC250G'],pins=[
            Pin(num='1',name='Vcc',func=Pin.PWRIN,do_erc=True),
            Pin(num='2',name='GND',func=Pin.PWRIN,do_erc=True),
            Pin(num='3',name='Vout',func=Pin.OUTPUT,do_erc=True),
            Pin(num='4',name='NC',func=Pin.NOCONNECT,do_erc=True),
            Pin(num='5',name='NC',func=Pin.NOCONNECT,do_erc=True),
            Pin(num='6',name='NC',func=Pin.NOCONNECT,do_erc=True)]),
        Part(name='A1101ELHL',dest=TEMPLATE,tool=SKIDL,keywords='hall switch',description='Hall effect switch, unipolar, Bop=340G, Brp=240G, -40C to +125C',ref_prefix='U',num_units=1,fplist=['SOT-23*'],do_erc=True,aliases=['A1101LLHL', 'A1102ELHL', 'A1102LLHL', 'A1103ELHL', 'A1103LLHL', 'A1104LLHL', 'A1106LLHL'],pins=[
            Pin(num='1',name='VCC',func=Pin.PWRIN,do_erc=True),
            Pin(num='2',name='GND',func=Pin.PWRIN,do_erc=True),
            Pin(num='3',name='Vout',func=Pin.OUTPUT,do_erc=True)]),
        Part(name='A1301KLHLT-T',dest=TEMPLATE,tool=SKIDL,keywords='hall switch',description='Linear Hall Effect Sensor, SOT-23W',ref_prefix='U',num_units=1,fplist=['SOT*'],do_erc=True,aliases=['A1302ELHLT-T', 'A1302KLHLT-T'],pins=[
            Pin(num='1',name='VCC',func=Pin.PWRIN,do_erc=True),
            Pin(num='2',name='Vout',func=Pin.OUTPUT,do_erc=True),
            Pin(num='3',name='GND',func=Pin.PWRIN,do_erc=True)]),
        Part(name='A1301KUA-T',dest=TEMPLATE,tool=SKIDL,keywords='hall switch',description='Linear Hall Effect Sensor, SIP 3pin',ref_prefix='U',num_units=1,do_erc=True,aliases=['A1301EUA-T', 'A1302KUA-T'],pins=[
github xesscorp / skidl / skidl / libs / ac-dc_sklib.py View on Github external
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib

SKIDL_lib_version = '0.0.1'

ac_dc = SchLib(tool=SKIDL).add_parts(*[
        Part(name='FSDH321',dest=TEMPLATE,tool=SKIDL,keywords='SMPS Controller with MOSFET 17W AC-DC',description='17W SMPS Controller, 50kHz, AC-DC, PDIP-8',ref_prefix='U',num_units=1,fplist=['DIP*', 'PDIP*'],do_erc=True,aliases=['FSDL321'],pins=[
            Pin(num='1',name='GND',func=Pin.PWRIN,do_erc=True),
            Pin(num='2',name='VDD',func=Pin.PWRIN,do_erc=True),
            Pin(num='3',name='FB',do_erc=True),
            Pin(num='4',name='IPK',func=Pin.PASSIVE,do_erc=True),
            Pin(num='5',name='VSTR',func=Pin.PASSIVE,do_erc=True),
            Pin(num='6',name='D',func=Pin.PASSIVE,do_erc=True),
            Pin(num='7',name='D',func=Pin.PASSIVE,do_erc=True),
            Pin(num='8',name='D',func=Pin.PASSIVE,do_erc=True)]),
        Part(name='FSDH321L',dest=TEMPLATE,tool=SKIDL,keywords='SMPS Controller with MOSFET 17W AC-DC',description='17W SMPS Controller, 50kHz, AC-DC, SMD-8',ref_prefix='U',num_units=1,fplist=['SMD*'],do_erc=True,aliases=['FSDL321L'],pins=[
            Pin(num='1',name='GND',func=Pin.PWRIN,do_erc=True),
            Pin(num='2',name='VDD',func=Pin.PWRIN,do_erc=True),
            Pin(num='3',name='FB',do_erc=True),
            Pin(num='4',name='IPK',func=Pin.PASSIVE,do_erc=True),
            Pin(num='5',name='VSTR',func=Pin.PASSIVE,do_erc=True),
            Pin(num='6',name='D',func=Pin.PASSIVE,do_erc=True),
github xesscorp / skidl / skidl / libs / cmos_ieee_sklib.py View on Github external
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib

SKIDL_lib_version = '0.0.1'

cmos_ieee = SchLib(tool=SKIDL).add_parts(*[
        Part(name='4001',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='4002',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='4006',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='4008',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='4009',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='4010',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='40104',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='40106',dest=TEMPLATE,tool=SKIDL,do_erc=True,aliases=['4584']),
        Part(name='4011',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='40110',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='4012',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='4013',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='4014',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='4015',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='4016',dest=TEMPLATE,tool=SKIDL,do_erc=True,aliases=['4066']),
        Part(name='4017',dest=TEMPLATE,tool=SKIDL,do_erc=True),
github xesscorp / skidl / skidl / libs / Oscillators_sklib.py View on Github external
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib

SKIDL_lib_version = '0.0.1'

Oscillators = SchLib(tool=SKIDL).add_parts(*[
        Part(name='ACO-xxxMHz-A',dest=TEMPLATE,tool=SKIDL,keywords='Crystal Clock Oscillator',description='HCMOS Crystal Clock Oscillator, DIP14-style metal package',ref_prefix='X',num_units=1,fplist=['Oscillator*DIP*14*'],do_erc=True,pins=[
            Pin(num='1',name='Tri-State',func=Pin.TRISTATE,do_erc=True),
            Pin(num='7',name='GND',func=Pin.PWRIN,do_erc=True),
            Pin(num='8',name='OUT',func=Pin.OUTPUT,do_erc=True),
            Pin(num='14',name='Vcc',func=Pin.PWRIN,do_erc=True)]),
        Part(name='ASE-xxxMHz',dest=TEMPLATE,tool=SKIDL,keywords='3.3V CMOS SMD Crystal Clock Oscillator',description='3.3V CMOS SMD Crystal Clock Oscillator, Abracon',ref_prefix='X',num_units=1,fplist=['Oscillator*SMD*Abracon*ASE*3.2x2.5mm*'],do_erc=True,pins=[
            Pin(num='1',name='EN',do_erc=True),
            Pin(num='2',name='GND',func=Pin.PWRIN,do_erc=True),
            Pin(num='3',name='OUT',func=Pin.OUTPUT,do_erc=True),
            Pin(num='4',name='Vdd',func=Pin.PWRIN,do_erc=True)]),
        Part(name='ASV-xxxMHz',dest=TEMPLATE,tool=SKIDL,keywords='3.3V HCMOS SMD Crystal Clock Oscillator',description='3.3V HCMOS SMD Crystal Clock Oscillator, Abracon',ref_prefix='X',num_units=1,fplist=['Oscillator*SMD*Abracon*ASV*7.0x5.1mm*'],do_erc=True,pins=[
            Pin(num='1',name='EN',do_erc=True),
            Pin(num='2',name='GND',func=Pin.PWRIN,do_erc=True),
            Pin(num='3',name='OUT',func=Pin.OUTPUT,do_erc=True),
            Pin(num='4',name='Vdd',func=Pin.PWRIN,do_erc=True)]),
        Part(name='CXO_DIP14',dest=TEMPLATE,tool=SKIDL,keywords='Crystal Clock Oscillator',description='Crystal Clock Oscillator, DIP14-style metal package',ref_prefix='X',num_units=1,fplist=['Oscillator*DIP*14*'],do_erc=True,aliases=['TFT680', 'GTXO-14T'],pins=[
github xesscorp / skidl / skidl / libs / audio_sklib.py View on Github external
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib

SKIDL_lib_version = '0.0.1'

audio = SchLib(tool=SKIDL).add_parts(*[
        Part(name='LL1587',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='LM1875',dest=TEMPLATE,tool=SKIDL,keywords='LM1875 Amplifier 20W',description='20W Audio Power Amplifier, TO220-5',ref_prefix='U',num_units=1,fplist=['TO*'],do_erc=True,pins=[
            Pin(num='1',name='IN+',do_erc=True),
            Pin(num='2',name='IN-',do_erc=True),
            Pin(num='3',name='VEE',func=Pin.PWRIN,do_erc=True),
            Pin(num='4',name='OUT',func=Pin.OUTPUT,do_erc=True),
            Pin(num='5',name='VCC',func=Pin.PWRIN,do_erc=True)]),
        Part(name='LM1876',dest=TEMPLATE,tool=SKIDL,keywords='LM1876 Overture Amplifier Dual 20W',description='Dual 20W Overture Seriers Audio Power Amplifier, with Mute Standby Mode, TO220-15 (MultiWatt)',ref_prefix='U',num_units=2,fplist=['TO*'],do_erc=True,pins=[
            Pin(num='2',name='VCC',func=Pin.PWRIN,do_erc=True),
            Pin(num='3',name='OUT',func=Pin.OUTPUT,do_erc=True),
            Pin(num='4',name='VEE',func=Pin.PWRIN,do_erc=True),
            Pin(num='5',name='GND',func=Pin.PWRIN,do_erc=True),
            Pin(num='6',name='MUTE',do_erc=True),
            Pin(num='7',name='IN-',do_erc=True),
            Pin(num='8',name='IN+',do_erc=True),
            Pin(num='9',name='STB',do_erc=True),
github xesscorp / skidl / skidl / libs / pyspice_sklib.py View on Github external
# Create a SKiDL library of SPICE elements. All PySpice-related info goes into
# a pyspice dictionary that is added as an attribute to the SKiDL Part object.


from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib
from skidl.tools.spice import add_part_to_circuit, not_implemented

# Pin aliases.
_POS_DIPOLE_ALIASES = ['+', 'plus', 'anode', 'A']
_NEG_DIPOLE_ALIASES = ['-', 'minus', 'm', 'negative', 'neg', 'cathode', 'C', 'K']
_POS_IN_PORT_ALIASES = ['+i', 'i+', 'input_plus', 'plus_input']
_NEG_IN_PORT_ALIASES = ['-i', 'i-', 'input_minus', 'minus_input']
_POS_OUT_PORT_ALIASES = ['+o', 'o+', 'output_plus', 'plus_output']
_NEG_OUT_PORT_ALIASES = ['-o', 'o-', 'output_minus', 'minus_output']

pyspice_lib = SchLib(tool=SKIDL).add_parts(*[
    Part(
        name='A',
        dest=TEMPLATE,
        tool=SKIDL,
        keywords='XSPICE',
        description='XSPICE code module',
        ref_prefix='A',
        pyspice={
            'name': 'A',
            'kw': {'model':'model',},
            'add': add_part_to_circuit,
        },
        num_units=1,
        do_erc=True,
        pins=[]),
    Part(
github xesscorp / skidl / skidl / libs / graphic_sklib.py View on Github external
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib

SKIDL_lib_version = '0.0.1'

graphic = SchLib(tool=SKIDL).add_parts(*[
        Part(name='ARROW1',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='ARROW2',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='ARROW3',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='ARROW4',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='BOX1',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='BOX2',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='BOX3',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='BOX4',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='C1',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='CIRCLE1',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='CIRCLE2',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='CIRCLE3',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='CIRCLE4',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='DIAMOND1',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='DIAMOND2',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='DIAMOND3',dest=TEMPLATE,tool=SKIDL,do_erc=True),
github xesscorp / skidl / skidl / libs / analog_switches_sklib.py View on Github external
from skidl import SKIDL, TEMPLATE, Part, Pin, SchLib

SKIDL_lib_version = '0.0.1'

analog_switches = SchLib(tool=SKIDL).add_parts(*[
        Part(name='ADG729',dest=TEMPLATE,tool=SKIDL,do_erc=True),
        Part(name='CPC1017N',dest=TEMPLATE,tool=SKIDL,keywords='SWITCH OPTO',description='opto mos',ref_prefix='U',num_units=1,do_erc=True,pins=[
            Pin(num='1',name='ANOD',do_erc=True),
            Pin(num='2',name='CATH',do_erc=True),
            Pin(num='3',name='INOUT2',func=Pin.PASSIVE,do_erc=True),
            Pin(num='4',name='INOUT1',func=Pin.PASSIVE,do_erc=True)]),
        Part(name='DG308',dest=TEMPLATE,tool=SKIDL,keywords='SWITCH',description='Quad Analog Switches',ref_prefix='U',num_units=4,do_erc=True,aliases=['DG441'],pins=[
            Pin(num='4',name='V-',func=Pin.PWRIN,do_erc=True),
            Pin(num='5',name='GND',func=Pin.PWRIN,do_erc=True),
            Pin(num='13',name='V+',func=Pin.PWRIN,do_erc=True),
            Pin(num='1',name='ON',do_erc=True),
            Pin(num='2',name='I/O',func=Pin.PASSIVE,do_erc=True),
            Pin(num='3',name='O/I',func=Pin.PASSIVE,do_erc=True),
            Pin(num='6',name='I/O',func=Pin.PASSIVE,do_erc=True),
            Pin(num='7',name='O/I',func=Pin.PASSIVE,do_erc=True),
            Pin(num='8',name='ON',do_erc=True),