MustafaMulla29/rp2040-bldc-motor-controller

Hardware assembly metadata and PCB geometry for a controller board with a snap-off rotary-encoder section, plus four parallel 150 µF/50 V bulk electrolytic capacitors filtering the motor supply.

Version
2.0.40
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone MustafaMulla29/rp2040-bldc-motor-controller  # download the package files into ./rp2040-bldc-motor-controller
tsci add MustafaMulla29/rp2040-bldc-motor-controller    # add it to your project as @tsci/MustafaMulla29.rp2040-bldc-motor-controller

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

scripts/review-pd-electrical.py

"""Reproducible 5 V DC sensitivity screen, NOT a measured load qualification."""
from pathlib import Path
import hashlib,json,subprocess
ROOT=Path(__file__).resolve().parent.parent
subprocess.run(['bun','scripts/check-pd-config.mjs'],cwd=ROOT,check=True,stdout=subprocess.DEVNULL)
raw=(ROOT/'dist/index/circuit.json').read_bytes();c=json.loads(raw);p={r['name']:r for r in c if r['type']=='source_component'}
for name,mpn in {'U11':'TPS1H100AQPWPRQ1','Q1':'SI7625DN-T1-GE3','Q2':'SI7625DN-T1-GE3','Q7':'YJQ62G06A','U12':'LM74700QDBVTQ1','D4':'SMBJ22A'}.items():assert p[name]['manufacturer_part_number']==mpn,(name,mpn)
assert p['R13']['resistance']==.02 and p['R142']['resistance']==680
other=.032+.02+.034
scenarios=[]
for name,source,cable,ron,diode in [('5 V, short cable, room-temperature estimate',5,.1,.120,.020),('5 V, short cable, hot-switch estimate',5,.1,.166*1.2,.029),('Low source, high cable resistance, hot switch',4.75,.25,.166*1.2,.029)]:
 motor=.8;logic=.1;drop=(motor+logic)*cable;board=motor*(other+ron)+diode;vm=source-drop-board
 scenarios.append({'name':name,'source_V':source,'motor_feed_A':motor,'assumed_logic_input_A':logic,'cable_loop_ohms':cable,'cable_drop_V':drop,'partial_board_drop_V':board,'estimated_VMOTOR_V':vm,'above_driver_4_5V':vm>=4.5,'above_provisional_cutoff_4_65V':vm>=4.65})
r={'board_sha256':hashlib.sha256(raw).hexdigest(),'status':'5V_LOAD_NOT_GUARANTEED','scope':'Static illustrative scenarios, not a full worst-case analysis or operating rating. The 0.1 A logic input is a sensitivity assumption, not the larger current-budget allocation. PCB/connector drops, dynamic startup, component hot increases and motor regeneration are omitted.',
 'r142Ohms':680,'r142Effect':'R142 only sets the U11 inrush and short-circuit guard (3.63 A nominal, above the 3 A contract); it does not change U11 on-resistance or cable drop at this 0.8 A scenario.',
 'inputs':{'F1_nominal_cold_ohms':.034,'R13_ohms':.02,'PMOS_pair_ohms_assumed_25C':.032,'PMOS_note':'SI7625DN is rated 11 mOhm max at 4.5 V gate and has no 2.5 V rating. With R3 10k / R4 100k the gate sees about 3.6 V at the 4.5 V worst case, so 16 mOhm per device is an assumption, not a datasheet limit. Measure the 5 V drop at bring-up','U11_25C_low_voltage_max_ohms':.120,'U11_hot_extended_ohms':.166*1.2,'ideal_diode_typical_max_V':[.020,.029]},
 'scenarios':scenarios,'physical_test_status':'NOT_RUN: no prototype or measurement instruments used',
 'sources':{'pmos':'https://www.vishay.com/docs/65737/si7625dn.pdf','switch':'https://www.ti.com/lit/ds/symlink/tps1h100-q1.pdf','ideal':'https://www.ti.com/lit/ds/symlink/lm74700-q1.pdf','fuse':'https://www.littelfuse.com/products/fuses-overcurrent-protection/fuses/surface-mount-fuses/nano-2-fuses/452/0452004','driver':'https://www.ti.com/lit/ds/symlink/mct8329a.pdf'}}
(ROOT/'dist/pd-electrical-review.json').write_text(json.dumps(r,indent=2)+'\n');print(r['status'],[round(s['estimated_VMOTOR_V'],4) for s in scenarios])