minor thoughts on actual resistance with 4 layers

This commit is contained in:
heartwerker 2024-02-14 00:11:35 +01:00
parent 9c09e1e1d9
commit 63983f723e

View file

@ -317,13 +317,15 @@
" resistance_ohms = resistivity * (length_mm / 1000.0) / cross_sectional_area_m2\n",
" return round(resistance_ohms,2)\n",
"\n",
"def print_length_resistance(prepend, points):\n",
" length = compute_track_length(points)\n",
"length = compute_track_length(points_top+points_bot)\n",
"resistance = compute_pcb_track_resistance(length, TRACK_WIDTH)\n",
" print(f\"{prepend} Track length: {round(length)} mm, resistance: {resistance} \\u03A9\")\n",
"\n",
"print_length_resistance(\"Top \", points_top)\n",
"print_length_resistance(\"Bot \", points_bot)\n"
"#print(f\"Result with 2coils in series: {round(length)} mm, resistance: {resistance} \\u03A9\")\n",
"resistance /= 2 #another pair of coils in parrallel\n",
"print(f\"with 2x2coils (2 in series: {round(length)} mm) and of those 2 in parallel resistance: {resistance} \\u03A9\")\n",
"\n",
"used_voltage = 5 # V\n",
"print(f\"With a voltage of {used_voltage} V, the maximum current is {round(used_voltage / resistance,2)} A\")"
]
},
{