import ResistorArray, ElectricPower, ElectricLogic# Create 8-resistor array for pull-upspullup_array = new ResistorArray(resistor_count=8)pullup_array.resistance = 10kohm +/- 5%pullup_array.rated_power = 125mWpullup_array.rated_voltage = 50Vpullup_array.package = "4816" # 8-pin SIP package# Connect power supplypower_3v3 = new ElectricPowerassert power_3v3.voltage within 3.3V +/- 5%# Use for GPIO pull-upsgpio_signals = new ElectricLogic[8]for i in range(8): gpio_signals[i].reference ~ power_3v3 gpio_signals[i].line ~> pullup_array.resistors[i] ~> power_3v3.hv microcontroller.gpio[i] ~ gpio_signals[i].line# Alternative: 4-resistor array for I2C/SPI bus terminationtermination_array = new ResistorArray(resistor_count=4)termination_array.resistance = 33ohm +/- 1%termination_array.package = "4806" # 4-pin array# Common applications: pull-up/pull-down networks, bus termination,# voltage dividers, current limiting, LED drivers
Components
ResistorArray
Copy
Ask AI
import ResistorArray, ElectricPower, ElectricLogic# Create 8-resistor array for pull-upspullup_array = new ResistorArray(resistor_count=8)pullup_array.resistance = 10kohm +/- 5%pullup_array.rated_power = 125mWpullup_array.rated_voltage = 50Vpullup_array.package = "4816" # 8-pin SIP package# Connect power supplypower_3v3 = new ElectricPowerassert power_3v3.voltage within 3.3V +/- 5%# Use for GPIO pull-upsgpio_signals = new ElectricLogic[8]for i in range(8): gpio_signals[i].reference ~ power_3v3 gpio_signals[i].line ~> pullup_array.resistors[i] ~> power_3v3.hv microcontroller.gpio[i] ~ gpio_signals[i].line# Alternative: 4-resistor array for I2C/SPI bus terminationtermination_array = new ResistorArray(resistor_count=4)termination_array.resistance = 33ohm +/- 1%termination_array.package = "4806" # 4-pin array# Common applications: pull-up/pull-down networks, bus termination,# voltage dividers, current limiting, LED drivers
This module’s manufacturer name, as a string.Only exact matches on the manufacturer’s name will be found by the picker.
It’s recommended to fill this information based on what ato create component
provides.
Only for ModuleInterfaces.
If set to True, require that interface is connected to something outside
of the module it’s defined in.
Copy
Ask AI
import ResistorArray, ElectricPower, ElectricLogic# Create 8-resistor array for pull-upspullup_array = new ResistorArray(resistor_count=8)pullup_array.resistance = 10kohm +/- 5%pullup_array.rated_power = 125mWpullup_array.rated_voltage = 50Vpullup_array.package = "4816" # 8-pin SIP package# Connect power supplypower_3v3 = new ElectricPowerassert power_3v3.voltage within 3.3V +/- 5%# Use for GPIO pull-upsgpio_signals = new ElectricLogic[8]for i in range(8): gpio_signals[i].reference ~ power_3v3 gpio_signals[i].line ~> pullup_array.resistors[i] ~> power_3v3.hv microcontroller.gpio[i] ~ gpio_signals[i].line# Alternative: 4-resistor array for I2C/SPI bus terminationtermination_array = new ResistorArray(resistor_count=4)termination_array.resistance = 33ohm +/- 1%termination_array.package = "4806" # 4-pin array# Common applications: pull-up/pull-down networks, bus termination,# voltage dividers, current limiting, LED drivers