Skip to content

Commit

Permalink
switched to .value for resistors and caps
Browse files Browse the repository at this point in the history
  • Loading branch information
glowingkitty committed Apr 17, 2024
1 parent 2ff972f commit ffc6d1d
Show file tree
Hide file tree
Showing 19 changed files with 84 additions and 84 deletions.
12 changes: 6 additions & 6 deletions elec/src/main-pcb.ato
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
40 changes: 20 additions & 20 deletions elec/src/parts/buck_converters/TPS53319DQPR/TPS53319DQPR.ato
Original file line number Diff line number Diff line change
Expand Up @@ -69,49 +69,49 @@ 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

# 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
rent_resistor.p2 ~ ren_resistor.p1

# (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
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -162,39 +162,39 @@ 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
rfbt_resistor.p2 ~ ic.VFB

# (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
rfbb_resistor.p2 ~ gnd

# (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"
cout_capacitor_1.mpn = "C77101"
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"
cout_capacitor_2.mpn = "C77101"
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"
Expand All @@ -203,31 +203,31 @@ 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
rpg_resistor.p2 ~ ic.VREG

# (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
rmodeg_resistor.p2 ~ gnd

# (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
rtrip_resistor.p2 ~ gnd

# (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
Expand Down
2 changes: 1 addition & 1 deletion elec/src/parts/diodes/leds/WS2812B-1010.ato
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions elec/src/parts/ideal_diodes/LM74700QDBVRQ1.ato
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions elec/src/parts/ldo_converters/AMS1117-3.3.ato
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 7 additions & 7 deletions elec/src/parts/levelshifters/SN74LVC2T45DCUR.ato
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ 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"
power_in_capacitor.mpn = "C307331"
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"
Expand All @@ -64,15 +64,15 @@ 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
signal_out_1.io ~ data_in_1_resistor.p1; data_in_1_resistor.p2 ~ ic.A1
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
Expand Down Expand Up @@ -103,15 +103,15 @@ 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"
power_in_capacitor.mpn = "C307331"
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"
Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions elec/src/parts/microcontrollers/ESP32-WROOM-32E-N8R2.ato
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -148,15 +148,15 @@ 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
en_delay_cap.p2 ~ power.gnd

# 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
Expand All @@ -169,22 +169,22 @@ 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
boot_pullup_resistor.p2 ~ power.vcc

# 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
Expand Down
Loading

0 comments on commit ffc6d1d

Please sign in to comment.