From ffc6d1d2d2624fccf3f8e732b1027c11a8e28132 Mon Sep 17 00:00:00 2001 From: glowingkitty Date: Wed, 17 Apr 2024 16:40:40 +0200 Subject: [PATCH] switched to .value for resistors and caps --- elec/src/main-pcb.ato | 12 +++--- .../TPS53319DQPR/TPS53319DQPR.ato | 40 +++++++++---------- elec/src/parts/diodes/leds/WS2812B-1010.ato | 2 +- .../src/parts/ideal_diodes/LM74700QDBVRQ1.ato | 6 +-- elec/src/parts/ldo_converters/AMS1117-3.3.ato | 4 +- .../parts/levelshifters/SN74LVC2T45DCUR.ato | 14 +++---- .../microcontrollers/ESP32-WROOM-32E-N8R2.ato | 12 +++--- .../parts/microphones/MSM261D4030H1CPM.ato | 4 +- .../power_on_off_1x_1A.ato | 4 +- .../power_on_off_4x_3_5A.ato | 10 ++--- .../submodules/CYPD3177_LoadSwitch100W.ato | 12 +++--- .../submodules/CYPD3177_LoadSwitchSafe5V.ato | 4 +- .../submodules/CYPD3177_WithCoreParts.ato | 18 ++++----- elec/src/parts/usb_to_serial/CP2102N.ato | 6 +-- .../0402/Voltage_Divider_0402_10K_1_37K.ato | 4 +- .../0402/Voltage_Divider_0402_5_1K__1K.ato | 4 +- .../0402/Voltage_Divider_0402_5_1K__2_4K.ato | 4 +- .../0603/Voltage_Divider_0603_100K__20K.ato | 4 +- .../0603/Voltage_Divider_0603_49_9K__1K.ato | 4 +- 19 files changed, 84 insertions(+), 84 deletions(-) diff --git a/elec/src/main-pcb.ato b/elec/src/main-pcb.ato index 9e6377f..514fd48 100644 --- a/elec/src/main-pcb.ato +++ b/elec/src/main-pcb.ato @@ -130,7 +130,7 @@ module MainPCB: # Add a pullup resistor to the slider switch, so it's not floating lampmode_slider_pullup_resistor = new Resistor - lampmode_slider_pullup_resistor.resistance = 100kohm +/- 1% + lampmode_slider_pullup_resistor.value = 100kohm +/- 1% lampmode_slider_pullup_resistor.footprint = "R0402" lampmode_slider_pullup_resistor.mpn = "C25741" lampmode_slider_pullup_resistor.p1 ~ esp32.ic.IO35 @@ -225,34 +225,34 @@ module MainPCB: # Add caps for LEDs led_ring_capacitor = new Capacitor - led_ring_capacitor.capacitance = 100uF +/- 20% + led_ring_capacitor.value = 100uF +/- 20% led_ring_capacitor.footprint = "C1206" led_ring_capacitor.mpn = "C15008" led_ring_capacitor.power ~ led_ring_power_mosfet_circuit.power_in led_strip_1_capacitor = new Capacitor - led_strip_1_capacitor.capacitance = 1000uF +/- 20% + led_strip_1_capacitor.value = 1000uF +/- 20% led_strip_1_capacitor.footprint = "CAP-SMD_BD10.0-L10.3-W10.3-LS10.9-FD" led_strip_1_capacitor.lcsc_id = "C445078" led_strip_1_capacitor.mpn = "C445078" led_strip_1_capacitor.power ~ led_power_mosfet_circuit.power_in1 led_strip_2_capacitor = new Capacitor - led_strip_2_capacitor.capacitance = 1000uF +/- 20% + led_strip_2_capacitor.value = 1000uF +/- 20% led_strip_2_capacitor.footprint = "CAP-SMD_BD10.0-L10.3-W10.3-LS10.9-FD" led_strip_2_capacitor.lcsc_id = "C445078" led_strip_2_capacitor.mpn = "C445078" led_strip_2_capacitor.power ~ led_power_mosfet_circuit.power_in2 led_strip_3_capacitor = new Capacitor - led_strip_3_capacitor.capacitance = 1000uF +/- 20% + led_strip_3_capacitor.value = 1000uF +/- 20% led_strip_3_capacitor.footprint = "CAP-SMD_BD10.0-L10.3-W10.3-LS10.9-FD" led_strip_3_capacitor.lcsc_id = "C445078" led_strip_3_capacitor.mpn = "C445078" led_strip_3_capacitor.power ~ led_power_mosfet_circuit.power_in3 led_strip_4_capacitor = new Capacitor - led_strip_4_capacitor.capacitance = 1000uF +/- 20% + led_strip_4_capacitor.value = 1000uF +/- 20% led_strip_4_capacitor.footprint = "CAP-SMD_BD10.0-L10.3-W10.3-LS10.9-FD" led_strip_4_capacitor.lcsc_id = "C445078" led_strip_4_capacitor.mpn = "C445078" diff --git a/elec/src/parts/buck_converters/TPS53319DQPR/TPS53319DQPR.ato b/elec/src/parts/buck_converters/TPS53319DQPR/TPS53319DQPR.ato index af65163..fbc25c9 100644 --- a/elec/src/parts/buck_converters/TPS53319DQPR/TPS53319DQPR.ato +++ b/elec/src/parts/buck_converters/TPS53319DQPR/TPS53319DQPR.ato @@ -69,33 +69,33 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Cin) add input capacitor group cin_capacitor_1 = new Capacitor - cin_capacitor_1.capacitance = 22uF +/- 10% + cin_capacitor_1.value = 22uF +/- 10% cin_capacitor_1.footprint = "C1206" cin_capacitor_1.mpn = "C12891" cin_capacitor_1.power ~ power_in cin_capacitor_2 = new Capacitor - cin_capacitor_2.capacitance = 22uF +/- 10% + cin_capacitor_2.value = 22uF +/- 10% cin_capacitor_2.footprint = "C1206" cin_capacitor_2.mpn = "C12891" cin_capacitor_2.power ~ power_in cin_capacitor_3 = new Capacitor - cin_capacitor_3.capacitance = 22uF +/- 10% + cin_capacitor_3.value = 22uF +/- 10% cin_capacitor_3.footprint = "C1206" cin_capacitor_3.mpn = "C12891" cin_capacitor_3.power ~ power_in # (Cvin) add input capacitor cvin_capacitor = new Capacitor - cvin_capacitor.capacitance = 4.7uF +/- 10% + cvin_capacitor.value = 4.7uF +/- 10% cvin_capacitor.footprint = "C1206" cvin_capacitor.mpn = "C29823" cvin_capacitor.power ~ power_in # (Ren) add resistor for EN pin ren_resistor = new Resistor - ren_resistor.resistance = 1kohm +/- 1% + ren_resistor.value = 1kohm +/- 1% ren_resistor.footprint = "R0402" ren_resistor.mpn = "C11702" ren_resistor.p2 ~ ic.EN @@ -103,7 +103,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # Add voltage divider for the EN pin # (Rent) add resistor 1 rent_resistor = new Resistor - rent_resistor.resistance = 392kohm +/- 1% + rent_resistor.value = 392kohm +/- 1% rent_resistor.footprint = "R0402" rent_resistor.mpn = "C327347" rent_resistor.p1 ~ power_in.vcc @@ -111,7 +111,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Renb) add resistor 2 renb_resistor = new Resistor - renb_resistor.resistance = 86.6kohm +/- 1% + renb_resistor.value = 86.6kohm +/- 1% renb_resistor.footprint = "R0402" renb_resistor.mpn = "C19709" renb_resistor.p1 ~ ren_resistor.p1 @@ -124,7 +124,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Cbst) add capacitor for VBST cbst_capacitor = new Capacitor - cbst_capacitor.capacitance = 0.1uF +/- 10% + cbst_capacitor.value = 0.1uF +/- 10% cbst_capacitor.voltage = 50V cbst_capacitor.series = "X7R" cbst_capacitor.footprint = "C0402" @@ -134,14 +134,14 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Rlbst) add resistor rlbst_resistor = new Resistor - rlbst_resistor.resistance = 1.82kohm +/- 1% + rlbst_resistor.value = 1.82kohm +/- 1% rlbst_resistor.footprint = "R0402" rlbst_resistor.mpn = "C5121516" rlbst_resistor.p1 ~ ic.LL # (Clfb) add capacitor clfb_capacitor = new Capacitor - clfb_capacitor.capacitance = 0.1uF +/- 10% + clfb_capacitor.value = 0.1uF +/- 10% clfb_capacitor.voltage = 50V clfb_capacitor.series = "X7R" clfb_capacitor.footprint = "C0805" @@ -151,7 +151,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Clrfb) add capacitor clrfb_capacitor = new Capacitor - clrfb_capacitor.capacitance = 1nF +/- 10% + clrfb_capacitor.value = 1nF +/- 10% clrfb_capacitor.voltage = 50V clrfb_capacitor.series = "X7R" clrfb_capacitor.footprint = "C0402" @@ -162,7 +162,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # Add voltage divider for programming the output voltage # (Rfbt) add resistor 1 rfbt_resistor = new Resistor - rfbt_resistor.resistance = 71.5kohm +/- 1% + rfbt_resistor.value = 71.5kohm +/- 1% rfbt_resistor.footprint = "R0402" rfbt_resistor.mpn = "C43534" rfbt_resistor.p1 ~ power_out_before_reverse_flow_protection.vcc @@ -170,7 +170,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Rfbb) add resistor 2 rfbb_resistor = new Resistor - rfbb_resistor.resistance = 10kohm +/- 1% + rfbb_resistor.value = 10kohm +/- 1% rfbb_resistor.footprint = "R0402" rfbb_resistor.mpn = "C25744" rfbb_resistor.p1 ~ ic.VFB @@ -178,7 +178,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Cout) add output capacitors cout_capacitor_1 = new Capacitor - cout_capacitor_1.capacitance = 47uF +/- 10% + cout_capacitor_1.value = 47uF +/- 10% cout_capacitor_1.voltage = 16V cout_capacitor_1.series = "X5R" cout_capacitor_1.footprint = "C1210" @@ -186,7 +186,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: cout_capacitor_1.power ~ power_out_before_reverse_flow_protection cout_capacitor_2 = new Capacitor - cout_capacitor_2.capacitance = 47uF +/- 10% + cout_capacitor_2.value = 47uF +/- 10% cout_capacitor_2.voltage = 16V cout_capacitor_2.series = "X5R" cout_capacitor_2.footprint = "C1210" @@ -194,7 +194,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: cout_capacitor_2.power ~ power_out_before_reverse_flow_protection cout_capacitor_3 = new Capacitor - cout_capacitor_3.capacitance = 47uF +/- 10% + cout_capacitor_3.value = 47uF +/- 10% cout_capacitor_3.voltage = 16V cout_capacitor_3.series = "X5R" cout_capacitor_3.footprint = "C1210" @@ -203,7 +203,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Rpg) add resistor for PGOOD rpg_resistor = new Resistor - rpg_resistor.resistance = 105kohm +/- 1% + rpg_resistor.value = 105kohm +/- 1% rpg_resistor.footprint = "R0402" rpg_resistor.mpn = "C171671" rpg_resistor.p1 ~ ic.PGOOD @@ -211,7 +211,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Rmodeg) add resistor for MODE rmodeg_resistor = new Resistor - rmodeg_resistor.resistance = 105kohm +/- 1% + rmodeg_resistor.value = 105kohm +/- 1% rmodeg_resistor.footprint = "R0402" rmodeg_resistor.mpn = "C171671" rmodeg_resistor.p1 ~ ic.MODE @@ -219,7 +219,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Rtrip) add resistor for TRIP rtrip_resistor = new Resistor - rtrip_resistor.resistance = 150kohm +/- 1% + rtrip_resistor.value = 150kohm +/- 1% rtrip_resistor.footprint = "R0603" rtrip_resistor.mpn = "C22807" rtrip_resistor.p1 ~ ic.TRIP @@ -227,7 +227,7 @@ module TPS53319DQPR_input_9_to_20V_output_5V_14A: # (Cvreg) add capacitor for VREG cvreg_capacitor = new Capacitor - cvreg_capacitor.capacitance = 1uF +/- 10% + cvreg_capacitor.value = 1uF +/- 10% cvreg_capacitor.footprint = "C0603" cvreg_capacitor.mpn = "C15849" cvreg_capacitor.p1 ~ ic.VREG diff --git a/elec/src/parts/diodes/leds/WS2812B-1010.ato b/elec/src/parts/diodes/leds/WS2812B-1010.ato index ef99a86..f3c781d 100644 --- a/elec/src/parts/diodes/leds/WS2812B-1010.ato +++ b/elec/src/parts/diodes/leds/WS2812B-1010.ato @@ -42,7 +42,7 @@ module WS2812B_1010: # add the capacitor capacitor = new Capacitor - capacitor.capacitance = 0.1uF +/- 10% + capacitor.value = 0.1uF +/- 10% capacitor.voltage = 50V capacitor.series = "X7R" capacitor.footprint = "C0402" diff --git a/elec/src/parts/ideal_diodes/LM74700QDBVRQ1.ato b/elec/src/parts/ideal_diodes/LM74700QDBVRQ1.ato index 1faf430..151b41b 100644 --- a/elec/src/parts/ideal_diodes/LM74700QDBVRQ1.ato +++ b/elec/src/parts/ideal_diodes/LM74700QDBVRQ1.ato @@ -42,14 +42,14 @@ module LM74700QDBVRQ1: # add the Cin capacitor (22nF) cin_capacitor = new Capacitor - cin_capacitor.capacitance = 22nF +/- 10% + cin_capacitor.value = 22nF +/- 10% cin_capacitor.footprint = "C0402" cin_capacitor.mpn = "C1532" cin_capacitor.power ~ power_in # add the VCAP capacitor (100nF) vcap_capacitor = new Capacitor - vcap_capacitor.capacitance = 0.1uF +/- 10% + vcap_capacitor.value = 0.1uF +/- 10% vcap_capacitor.voltage = 50V vcap_capacitor.series = "X7R" vcap_capacitor.footprint = "C0402" @@ -59,7 +59,7 @@ module LM74700QDBVRQ1: # add the Cout capacitor (100nF) cout_capacitor = new Capacitor - cout_capacitor.capacitance = 0.1uF +/- 10% + cout_capacitor.value = 0.1uF +/- 10% cout_capacitor.voltage = 50V cout_capacitor.series = "X7R" cout_capacitor.footprint = "C0402" diff --git a/elec/src/parts/ldo_converters/AMS1117-3.3.ato b/elec/src/parts/ldo_converters/AMS1117-3.3.ato index 02489c3..b44905d 100644 --- a/elec/src/parts/ldo_converters/AMS1117-3.3.ato +++ b/elec/src/parts/ldo_converters/AMS1117-3.3.ato @@ -44,14 +44,14 @@ module AMS1117_3_3: # add input capacitor input_cap = new Capacitor - input_cap.capacitance = 10uF +/- 20% + input_cap.value = 10uF +/- 20% input_cap.footprint = "C0603" input_cap.mpn = "C96446" input_cap.power ~ power_in # add output capacitor output_cap = new Capacitor - output_cap.capacitance = 10uF +/- 20% + output_cap.value = 10uF +/- 20% output_cap.footprint = "C0603" output_cap.mpn = "C96446" output_cap.power ~ power_out \ No newline at end of file diff --git a/elec/src/parts/levelshifters/SN74LVC2T45DCUR.ato b/elec/src/parts/levelshifters/SN74LVC2T45DCUR.ato index b513c3a..3b7ca3e 100644 --- a/elec/src/parts/levelshifters/SN74LVC2T45DCUR.ato +++ b/elec/src/parts/levelshifters/SN74LVC2T45DCUR.ato @@ -47,7 +47,7 @@ module SN74LVC2T45DCUR: # add bypass caps power_in_capacitor = new Capacitor - power_in_capacitor.capacitance = 0.1uF +/- 10% + power_in_capacitor.value = 0.1uF +/- 10% power_in_capacitor.voltage = 50V power_in_capacitor.series = "X7R" power_in_capacitor.footprint = "C0402" @@ -55,7 +55,7 @@ module SN74LVC2T45DCUR: power_in_capacitor.power ~ power_in power_out_capacitor = new Capacitor - power_out_capacitor.capacitance = 0.1uF +/- 10% + power_out_capacitor.value = 0.1uF +/- 10% power_out_capacitor.voltage = 50V power_out_capacitor.series = "X7R" power_out_capacitor.footprint = "C0402" @@ -64,7 +64,7 @@ module SN74LVC2T45DCUR: # Out data_in_1_resistor = new Resistor - data_in_1_resistor.resistance = 62ohm +/- 1% + data_in_1_resistor.value = 62ohm +/- 1% data_in_1_resistor.footprint = "R0402" data_in_1_resistor.mpn = "C4962" signal_out_1 = new Pair @@ -72,7 +72,7 @@ module SN74LVC2T45DCUR: signal_out_1.gnd ~ power_out.gnd data_in_2_resistor = new Resistor - data_in_2_resistor.resistance = 62ohm +/- 1% + data_in_2_resistor.value = 62ohm +/- 1% data_in_2_resistor.footprint = "R0402" data_in_2_resistor.mpn = "C4962" signal_out_2 = new Pair @@ -103,7 +103,7 @@ module SN74LVC2T45DCUR_one_used: # add bypass caps power_in_capacitor = new Capacitor - power_in_capacitor.capacitance = 0.1uF +/- 10% + power_in_capacitor.value = 0.1uF +/- 10% power_in_capacitor.voltage = 50V power_in_capacitor.series = "X7R" power_in_capacitor.footprint = "C0402" @@ -111,7 +111,7 @@ module SN74LVC2T45DCUR_one_used: power_in_capacitor.power ~ power_in power_out_capacitor = new Capacitor - power_out_capacitor.capacitance = 0.1uF +/- 10% + power_out_capacitor.value = 0.1uF +/- 10% power_out_capacitor.voltage = 50V power_out_capacitor.series = "X7R" power_out_capacitor.footprint = "C0402" @@ -120,7 +120,7 @@ module SN74LVC2T45DCUR_one_used: # Out data_in_1_resistor = new Resistor - data_in_1_resistor.resistance = 62ohm +/- 1% + data_in_1_resistor.value = 62ohm +/- 1% data_in_1_resistor.footprint = "R0402" data_in_1_resistor.mpn = "C4962" signal_out_1 = new Pair diff --git a/elec/src/parts/microcontrollers/ESP32-WROOM-32E-N8R2.ato b/elec/src/parts/microcontrollers/ESP32-WROOM-32E-N8R2.ato index 51a9c2c..50ba357 100644 --- a/elec/src/parts/microcontrollers/ESP32-WROOM-32E-N8R2.ato +++ b/elec/src/parts/microcontrollers/ESP32-WROOM-32E-N8R2.ato @@ -136,7 +136,7 @@ module ESP32_WROOM_32E_N8R2: # Add capacitor for 3.3V input of ESP32 power_cap = new Capacitor - power_cap.capacitance = 10uF +/- 20% + power_cap.value = 10uF +/- 20% power_cap.footprint = "C0603" power_cap.mpn = "C96446" power_cap.power ~ power @@ -148,7 +148,7 @@ module ESP32_WROOM_32E_N8R2: # Add a delay capacitor for the reset/EN pin en_delay_cap = new Capacitor - en_delay_cap.capacitance = 1uF +/- 10% + en_delay_cap.value = 1uF +/- 10% en_delay_cap.footprint = "C0603" en_delay_cap.mpn = "C15849" en_delay_cap.p1 ~ ic.EN @@ -156,7 +156,7 @@ module ESP32_WROOM_32E_N8R2: # Add a pull up resistor for the reset/EN pin en_pullup_resistor = new Resistor - en_pullup_resistor.resistance = 5.1kohm +/- 1% + en_pullup_resistor.value = 5.1kohm +/- 1% en_pullup_resistor.footprint = "R0402" en_pullup_resistor.mpn = "C25905" en_pullup_resistor.p1 ~ ic.EN @@ -169,7 +169,7 @@ module ESP32_WROOM_32E_N8R2: # Add a pull up resistor for the boot button boot_pullup_resistor = new Resistor - boot_pullup_resistor.resistance = 100kohm +/- 1% + boot_pullup_resistor.value = 100kohm +/- 1% boot_pullup_resistor.footprint = "R0402" boot_pullup_resistor.mpn = "C25741" boot_pullup_resistor.p1 ~ ic.IO0 @@ -177,14 +177,14 @@ module ESP32_WROOM_32E_N8R2: # Add pull up resistors for the I2C interface i2c_pullup_resistor_sda = new Resistor - i2c_pullup_resistor_sda.resistance = 2kohm +/- 1% + i2c_pullup_resistor_sda.value = 2kohm +/- 1% i2c_pullup_resistor_sda.footprint = "R0402" i2c_pullup_resistor_sda.mpn = "C4109" i2c_pullup_resistor_sda.p1 ~ i2c.sda i2c_pullup_resistor_sda.p2 ~ power.vcc i2c_pullup_resistor_scl = new Resistor - i2c_pullup_resistor_scl.resistance = 2kohm +/- 1% + i2c_pullup_resistor_scl.value = 2kohm +/- 1% i2c_pullup_resistor_scl.footprint = "R0402" i2c_pullup_resistor_scl.mpn = "C4109" i2c_pullup_resistor_scl.p1 ~ i2c.scl diff --git a/elec/src/parts/microphones/MSM261D4030H1CPM.ato b/elec/src/parts/microphones/MSM261D4030H1CPM.ato index 1f863bc..5d0e337 100644 --- a/elec/src/parts/microphones/MSM261D4030H1CPM.ato +++ b/elec/src/parts/microphones/MSM261D4030H1CPM.ato @@ -48,13 +48,13 @@ module MSM261D4030H1CPM: # add caps cap1 = new Capacitor - cap1.capacitance = 10uF +/- 20% + cap1.value = 10uF +/- 20% cap1.footprint = "C0603" cap1.mpn = "C96446" cap1.power ~ power cap2 = new Capacitor - cap2.capacitance = 0.1uF +/- 10% + cap2.value = 0.1uF +/- 10% cap2.voltage = 50V cap2.series = "X7R" cap2.footprint = "C0402" diff --git a/elec/src/parts/power_mosfet_circuits/power_on_off_1x_1A.ato b/elec/src/parts/power_mosfet_circuits/power_on_off_1x_1A.ato index add12aa..763972e 100644 --- a/elec/src/parts/power_mosfet_circuits/power_on_off_1x_1A.ato +++ b/elec/src/parts/power_mosfet_circuits/power_on_off_1x_1A.ato @@ -18,12 +18,12 @@ module MOSFETcircuitPowerOnOff_1x_1A: # add the resistors for the N channel mosfet and the P channel mosfets power_p_mosfet_resistor = new Resistor - power_p_mosfet_resistor.resistance = 100kohm +/- 1% + power_p_mosfet_resistor.value = 100kohm +/- 1% power_p_mosfet_resistor.footprint = "R0402" power_p_mosfet_resistor.mpn = "C25741" power_n_mosfet_resistor = new Resistor - power_n_mosfet_resistor.resistance = 100kohm +/- 1% + power_n_mosfet_resistor.value = 100kohm +/- 1% power_n_mosfet_resistor.footprint = "R0402" power_n_mosfet_resistor.mpn = "C25741" diff --git a/elec/src/parts/power_mosfet_circuits/power_on_off_4x_3_5A.ato b/elec/src/parts/power_mosfet_circuits/power_on_off_4x_3_5A.ato index b734f7e..6699693 100644 --- a/elec/src/parts/power_mosfet_circuits/power_on_off_4x_3_5A.ato +++ b/elec/src/parts/power_mosfet_circuits/power_on_off_4x_3_5A.ato @@ -30,27 +30,27 @@ module MOSFETcircuitPowerOnOff_4x_3_5A: # add the resistors for the N channel mosfet and the P channel mosfets power_p_mosfet_resistor_1 = new Resistor - power_p_mosfet_resistor_1.resistance = 100kohm +/- 1% + power_p_mosfet_resistor_1.value = 100kohm +/- 1% power_p_mosfet_resistor_1.footprint = "R0402" power_p_mosfet_resistor_1.mpn = "C25741" power_p_mosfet_resistor_2 = new Resistor - power_p_mosfet_resistor_2.resistance = 100kohm +/- 1% + power_p_mosfet_resistor_2.value = 100kohm +/- 1% power_p_mosfet_resistor_2.footprint = "R0402" power_p_mosfet_resistor_2.mpn = "C25741" power_p_mosfet_resistor_3 = new Resistor - power_p_mosfet_resistor_3.resistance = 100kohm +/- 1% + power_p_mosfet_resistor_3.value = 100kohm +/- 1% power_p_mosfet_resistor_3.footprint = "R0402" power_p_mosfet_resistor_3.mpn = "C25741" power_p_mosfet_resistor_4 = new Resistor - power_p_mosfet_resistor_4.resistance = 100kohm +/- 1% + power_p_mosfet_resistor_4.value = 100kohm +/- 1% power_p_mosfet_resistor_4.footprint = "R0402" power_p_mosfet_resistor_4.mpn = "C25741" power_n_mosfet_resistor = new Resistor - power_n_mosfet_resistor.resistance = 100kohm +/- 1% + power_n_mosfet_resistor.value = 100kohm +/- 1% power_n_mosfet_resistor.footprint = "R0402" power_n_mosfet_resistor.mpn = "C25741" diff --git a/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_LoadSwitch100W.ato b/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_LoadSwitch100W.ato index 38f52ab..5646bbb 100644 --- a/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_LoadSwitch100W.ato +++ b/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_LoadSwitch100W.ato @@ -25,14 +25,14 @@ module CYPD3177_LoadSwitch100W: # Add a cap for VBUS vbus_cap = new Capacitor - vbus_cap.capacitance = 3.3uF +/- 10% + vbus_cap.value = 3.3uF +/- 10% vbus_cap.footprint = "C0805" vbus_cap.mpn = "C342775" vbus_cap.power ~ power_in # Add the input cap for the load switch load_switch_input_cap = new Capacitor - load_switch_input_cap.capacitance = 1uF +/- 10% + load_switch_input_cap.value = 1uF +/- 10% load_switch_input_cap.footprint = "C0603" load_switch_input_cap.mpn = "C15849" load_switch_input_cap.p1 ~ power_in.vcc @@ -40,7 +40,7 @@ module CYPD3177_LoadSwitch100W: # Add the output cap for the load switch load_switch_output_cap = new Capacitor - load_switch_output_cap.capacitance = 1uF +/- 10% + load_switch_output_cap.value = 1uF +/- 10% load_switch_output_cap.footprint = "C0603" load_switch_output_cap.mpn = "C15849" load_switch_output_cap.p1 ~ power_out.vcc @@ -48,7 +48,7 @@ module CYPD3177_LoadSwitch100W: # Add a resistor for between the gate of the load_switch_mosfet and VBUS fet_gate_vbus_resistor = new Resistor - fet_gate_vbus_resistor.resistance = 10kohm +/- 1% + fet_gate_vbus_resistor.value = 10kohm +/- 1% fet_gate_vbus_resistor.footprint = "R0603" fet_gate_vbus_resistor.mpn = "C25804" fet_gate_vbus_resistor.p1 ~ power_in.vcc @@ -56,7 +56,7 @@ module CYPD3177_LoadSwitch100W: # Add the pull-down(?) resistor connected to the VBUS_FET_EN pin vbus_fet_en_resistor = new Resistor - vbus_fet_en_resistor.resistance = 1kohm +/- 1% + vbus_fet_en_resistor.value = 1kohm +/- 1% vbus_fet_en_resistor.footprint = "R0603" vbus_fet_en_resistor.mpn = "C21190" vbus_fet_en_resistor.p1 ~ en @@ -64,7 +64,7 @@ module CYPD3177_LoadSwitch100W: # Add a resistor for between the source and the gate of the load_switch_mosfet fet_src_gate_resistor = new Resistor - fet_src_gate_resistor.resistance = 49.9kohm +/- 1% + fet_src_gate_resistor.value = 49.9kohm +/- 1% fet_src_gate_resistor.footprint = "R0603" fet_src_gate_resistor.mpn = "C23184" fet_src_gate_resistor.p1 ~ load_switch_mosfet.SOURCE1 diff --git a/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_LoadSwitchSafe5V.ato b/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_LoadSwitchSafe5V.ato index f773bd7..1a01d53 100644 --- a/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_LoadSwitchSafe5V.ato +++ b/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_LoadSwitchSafe5V.ato @@ -31,7 +31,7 @@ module CYPD3177_LoadSwitchSafe5V: # add voltage divider # add pull up resistor pull_up_resistor = new Resistor - pull_up_resistor.resistance = 49.9kohm +/- 1% + pull_up_resistor.value = 49.9kohm +/- 1% pull_up_resistor.footprint = "R0603" pull_up_resistor.mpn = "C23184" pull_up_resistor.p1 ~ power_in.vcc @@ -39,7 +39,7 @@ module CYPD3177_LoadSwitchSafe5V: # add pull down resistor pull_down_resistor = new Resistor - pull_down_resistor.resistance = 1kohm +/- 1% + pull_down_resistor.value = 1kohm +/- 1% pull_down_resistor.footprint = "R0603" pull_down_resistor.mpn = "C21190" pull_down_resistor.p1 ~ load_switch_mosfet_1.GATE diff --git a/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_WithCoreParts.ato b/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_WithCoreParts.ato index c0a386c..84862c3 100644 --- a/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_WithCoreParts.ato +++ b/elec/src/parts/usb_pd_ics/CYPD3177/submodules/CYPD3177_WithCoreParts.ato @@ -49,14 +49,14 @@ module CYPD3177_WithCoreParts: # TODO: add to PCB layout # Add 390pF caps for the CC1 and CC2 pins (as in evaluation board schematic) cc1_cap = new Capacitor - cc1_cap.capacitance = 390pF +/- 5% + cc1_cap.value = 390pF +/- 5% cc1_cap.footprint = "C0402" cc1_cap.mpn = "C527008" cc1_cap.power.vcc ~ ic.usb_pd.cc1 cc1_cap.power.gnd ~ gnd cc2_cap = new Capacitor - cc2_cap.capacitance = 390pF +/- 5% + cc2_cap.value = 390pF +/- 5% cc2_cap.footprint = "C0402" cc1_cap.mpn = "C527008" cc2_cap.power.vcc ~ ic.usb_pd.cc2 @@ -64,27 +64,27 @@ module CYPD3177_WithCoreParts: # Add 3.3uF cap for the VBUS of the USB-C port vbus_cap = new Capacitor - vbus_cap.capacitance = 3.3uF +/- 10% + vbus_cap.value = 3.3uF +/- 10% vbus_cap.footprint = "C0805" vbus_cap.mpn = "C342775" vbus_cap.power ~ power_in # Add 1uF cap for the VCCD (1.8V) to the CYPD3177 vccd_cap = new Capacitor - vccd_cap.capacitance = 1uF +/- 10% + vccd_cap.value = 1uF +/- 10% vccd_cap.footprint = "C0603" vccd_cap.mpn = "C15849" vccd_cap.power ~ power_1_8v # Add 1uF & 0.1uF caps for the VDDD (3.3V) to the CYPD3177 vddd_cap_1 = new Capacitor - vddd_cap_1.capacitance = 1uF +/- 10% + vddd_cap_1.value = 1uF +/- 10% vddd_cap_1.footprint = "C0603" vddd_cap_1.mpn = "C15849" vddd_cap_1.power ~ power_3_3v vddd_cap_2 = new Capacitor - vddd_cap_2.capacitance = 0.1uF +/- 10% + vddd_cap_2.value = 0.1uF +/- 10% vddd_cap_2.voltage = 50V vddd_cap_2.series = "X7R" vddd_cap_2.footprint = "C0402" @@ -92,7 +92,7 @@ module CYPD3177_WithCoreParts: vddd_cap_2.power ~ power_3_3v vddd_cap_3 = new Capacitor - vddd_cap_3.capacitance = 0.1uF +/- 10% + vddd_cap_3.value = 0.1uF +/- 10% vddd_cap_3.voltage = 50V vddd_cap_3.series = "X7R" vddd_cap_3.footprint = "C0402" @@ -101,7 +101,7 @@ module CYPD3177_WithCoreParts: # Add a pull down resistor for the FAULT pin, so that it is not floating fault_pull_down_resistor = new Resistor - fault_pull_down_resistor.resistance = 100kohm +/- 5% + fault_pull_down_resistor.value = 100kohm +/- 5% fault_pull_down_resistor.footprint = "R0603" fault_pull_down_resistor.mpn = "C25803" fault_pull_down_resistor.p1 ~ ic.FAULT @@ -109,7 +109,7 @@ module CYPD3177_WithCoreParts: # Add a pull up resistor for the FLIP pin, so that it is not floating flip_pull_up_resistor = new Resistor - flip_pull_up_resistor.resistance = 2kohm +/- 1% + flip_pull_up_resistor.value = 2kohm +/- 1% flip_pull_up_resistor.footprint = "R0402" flip_pull_up_resistor.mpn = "C4109" flip_pull_up_resistor.p1 ~ ic.FLIP diff --git a/elec/src/parts/usb_to_serial/CP2102N.ato b/elec/src/parts/usb_to_serial/CP2102N.ato index 26fc6dd..b3be24a 100644 --- a/elec/src/parts/usb_to_serial/CP2102N.ato +++ b/elec/src/parts/usb_to_serial/CP2102N.ato @@ -82,7 +82,7 @@ module CP2102N: # Add capacitors for the VREGIN and VDD pins small_cap = new Capacitor - small_cap.capacitance = 0.1uF +/- 10% + small_cap.value = 0.1uF +/- 10% small_cap.voltage = 50V small_cap.series = "X7R" small_cap.footprint = "C0402" @@ -90,14 +90,14 @@ module CP2102N: small_cap.power ~ power large_cap = new Capacitor - large_cap.capacitance = 10uF +/- 20% + large_cap.value = 10uF +/- 20% large_cap.footprint = "C0603" large_cap.mpn = "C96446" large_cap.power ~ power # Add a pull up resistor for the RSTb pin. pull_up_resistor = new Resistor - pull_up_resistor.resistance = 1kohm +/- 1% + pull_up_resistor.value = 1kohm +/- 1% pull_up_resistor.footprint = "R0402" pull_up_resistor.mpn = "C11702" pull_up_resistor.p1 ~ ic.RSTb diff --git a/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_10K_1_37K.ato b/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_10K_1_37K.ato index deff6ab..60058ab 100644 --- a/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_10K_1_37K.ato +++ b/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_10K_1_37K.ato @@ -16,7 +16,7 @@ module Voltage_Divider_0402_10K_1_37K: # add pull up resistor pull_up_resistor = new Resistor - pull_up_resistor.resistance = 10kohm +/- 1% + pull_up_resistor.value = 10kohm +/- 1% pull_up_resistor.footprint = "R0402" pull_up_resistor.mpn = "C25744" pull_up_resistor.p1 ~ power.vcc @@ -24,7 +24,7 @@ module Voltage_Divider_0402_10K_1_37K: # add pull down resistor pull_down_resistor = new Resistor - pull_down_resistor.resistance = 1.37kohm +/- 1% + pull_down_resistor.value = 1.37kohm +/- 1% pull_down_resistor.footprint = "R0402" pull_down_resistor.mpn = "C321297" pull_down_resistor.p1 ~ power.gnd diff --git a/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_5_1K__1K.ato b/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_5_1K__1K.ato index 3be96d7..5a1d0a7 100644 --- a/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_5_1K__1K.ato +++ b/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_5_1K__1K.ato @@ -15,7 +15,7 @@ module Voltage_Divider_0402_5_1K__1K: # add pull up resistor pull_up_resistor = new Resistor - pull_up_resistor.resistance = 5.1kohm +/- 1% + pull_up_resistor.value = 5.1kohm +/- 1% pull_up_resistor.footprint = "R0402" pull_up_resistor.mpn = "C25905" pull_up_resistor.p1 ~ power.vcc @@ -23,7 +23,7 @@ module Voltage_Divider_0402_5_1K__1K: # add pull down resistor pull_down_resistor = new Resistor - pull_down_resistor.resistance = 1kohm +/- 1% + pull_down_resistor.value = 1kohm +/- 1% pull_down_resistor.footprint = "R0402" pull_down_resistor.mpn = "C11702" pull_down_resistor.p1 ~ power.gnd diff --git a/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_5_1K__2_4K.ato b/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_5_1K__2_4K.ato index 3361827..e2db909 100644 --- a/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_5_1K__2_4K.ato +++ b/elec/src/parts/voltage_dividers/0402/Voltage_Divider_0402_5_1K__2_4K.ato @@ -16,7 +16,7 @@ module Voltage_Divider_0402_5_1K__2_4K: # add pull up resistor pull_up_resistor = new Resistor - pull_up_resistor.resistance = 5.1kohm +/- 1% + pull_up_resistor.value = 5.1kohm +/- 1% pull_up_resistor.footprint = "R0402" pull_up_resistor.mpn = "C25905" pull_up_resistor.p1 ~ power.vcc @@ -24,7 +24,7 @@ module Voltage_Divider_0402_5_1K__2_4K: # add pull down resistor pull_down_resistor = new Resistor - pull_down_resistor.resistance = 2.4kohm +/- 1% + pull_down_resistor.value = 2.4kohm +/- 1% pull_down_resistor.footprint = "R0402" pull_down_resistor.mpn = "C25882" pull_down_resistor.p1 ~ power.gnd diff --git a/elec/src/parts/voltage_dividers/0603/Voltage_Divider_0603_100K__20K.ato b/elec/src/parts/voltage_dividers/0603/Voltage_Divider_0603_100K__20K.ato index e063fc8..8ee484d 100644 --- a/elec/src/parts/voltage_dividers/0603/Voltage_Divider_0603_100K__20K.ato +++ b/elec/src/parts/voltage_dividers/0603/Voltage_Divider_0603_100K__20K.ato @@ -16,7 +16,7 @@ module Voltage_Divider_0603_100K__20K: # add pull up resistor pull_up_resistor = new Resistor - pull_up_resistor.resistance = 100kohm +/- 1% + pull_up_resistor.value = 100kohm +/- 1% pull_up_resistor.footprint = "R0603" pull_up_resistor.mpn = "C25803" pull_up_resistor.p1 ~ power.vcc @@ -24,7 +24,7 @@ module Voltage_Divider_0603_100K__20K: # add pull down resistor pull_down_resistor = new Resistor - pull_down_resistor.resistance = 20kohm +/- 1% + pull_down_resistor.value = 20kohm +/- 1% pull_down_resistor.footprint = "R0603" pull_down_resistor.mpn = "C4184" pull_down_resistor.p1 ~ power.gnd diff --git a/elec/src/parts/voltage_dividers/0603/Voltage_Divider_0603_49_9K__1K.ato b/elec/src/parts/voltage_dividers/0603/Voltage_Divider_0603_49_9K__1K.ato index a1ae3da..dd3db2d 100644 --- a/elec/src/parts/voltage_dividers/0603/Voltage_Divider_0603_49_9K__1K.ato +++ b/elec/src/parts/voltage_dividers/0603/Voltage_Divider_0603_49_9K__1K.ato @@ -16,7 +16,7 @@ module Voltage_Divider_0603_49_9K__1K: # add pull up resistor pull_up_resistor = new Resistor - pull_up_resistor.resistance = 49.9kohm +/- 1% + pull_up_resistor.value = 49.9kohm +/- 1% pull_up_resistor.footprint = "R0603" pull_up_resistor.mpn = "C23184" pull_up_resistor.p1 ~ power.vcc @@ -24,7 +24,7 @@ module Voltage_Divider_0603_49_9K__1K: # add pull down resistor pull_down_resistor = new Resistor - pull_down_resistor.resistance = 1kohm +/- 1% + pull_down_resistor.value = 1kohm +/- 1% pull_down_resistor.footprint = "R0603" pull_down_resistor.mpn = "C21190" pull_down_resistor.p1 ~ power.gnd