by John Lauer
Two-board Molecule interferometer with onboard RP2040, USB-C data, 15 V USB-C PD power and a JST stage interface.
main
John Lauer
Publish stage controller R0.2 with isolated logic and protected 12 V input
f5746e3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
{
"schema": "smi-stage-1",
"status": "Published J4 signals verified against controller R0.2. The software 1.3.1 stage commands have simulator coverage. Hardware commissioning is pending.",
"stagePort": {
"reference": "J4",
"label": "STAGE",
"connectorMpn": "SM08B-GHS-TB(LF)(SN)",
"pins": [
{
"pin": 1,
"signal": "GND",
"direction": "return"
},
{
"pin": 2,
"signal": "STEP",
"gpio": 10,
"modulePin": 14,
"direction": "output",
"seriesOhms": 68,
"externalPull": "10k to GND"
},
{
"pin": 3,
"signal": "DIR",
"gpio": 11,
"modulePin": 15,
"direction": "output",
"seriesOhms": 68
},
{
"pin": 4,
"signal": "EN_N",
"gpio": 12,
"modulePin": 16,
"direction": "output",
"seriesOhms": 68,
"activeLow": true,
"externalPull": "10k to local 3V3"
},
{
"pin": 5,
"signal": "UART",
"gpio": 13,
"modulePin": 17,
"direction": "bidirectional",
"seriesOhms": 68,
"protocol": "TMC2209 PDN_UART, 3.3 V, single-wire half duplex"
},
{
"pin": 6,
"signal": "HOME",
"gpio": 14,
"modulePin": 19,
"direction": "input",
"seriesOhms": 68,
"externalPull": "10k to local 3V3"
},
{
"pin": 7,
"signal": "3V3",
"direction": "reference output",
"seriesOhms": 75,
"maxCurrentMa": 50,
"usage": "High-impedance logic reference only, with external stage power"
},
{
"pin": 8,
"signal": "GND",
"direction": "return"
}
],
"source": {
"wikiRelease": "1.3.1",
"hardwareVersion": "1.3.0",
"commit": "6d3a6d14449e51ad5af9844f4878dc03655f46fe",
"file": "design/control-map.json",
"sha256": "b007cfeae0ae5330152316e9b8f86a7f9c9f7d427e78f4e70a513b02ef1f45a6"
},
"stageConnector": {
"reference": "J1",
"mpn": "BM08B-GHS-TBT(LF)(SN)",
"matchedPins": 8,
"harness": "Straight-through by pin number",
"boardRevision": "0.2",
"nativePinNets": [
"GND",
"MAIN_STEP",
"MAIN_DIR",
"MAIN_EN_N",
"MAIN_UART",
"HOME",
"MAIN_REF",
"GND"
]
},
"electricalQualification": {
"status": "design screening",
"reference": {
"pin": 7,
"divider_Ohm": [
1000000,
681000
],
"maximumSenseLoad_uA": 2.07,
"usage": "Main-board-present sense only. Stage VCC_IO and bias are supplied by the local LDO."
},
"isolation": {
"switch": "TMUX1511",
"enable": "Both logic rails valid",
"channels": [
"STEP",
"DIR",
"EN_N",
"UART"
],
"home": "Passive switch to ground. Main-board 10k pull-up only."
},
"verification": "Measure off-state rail lift and cable edge transients on the assembled pair."
}
},
"motion": {
"motor": "STEPPERONLINE 17HS08-1004S",
"fullStepsPerRev": 200,
"microstepsPerFullStep": 16,
"screwLead_mm": 0.5,
"leverInput_mm": 50,
"leverOutput_mm": 5,
"nominal_nm_per_pulse": 15.625,
"geometryOnly_nm_per_pulse": [
14.64,
16.65
],
"geometryAssumptions": "Local lead ±2%; effective input and output arm lengths each ±0.20 mm. Estimate only. Actual single-pulse error is unmeasured.",
"travelFromHome_pulses": [
0,
1600
],
"nominalTravel_um": 25,
"positiveDirection": "Away from HOME; set DIR polarity during commissioning",
"stepActiveEdge": "rising",
"stepHighMin_us": 2,
"stepLowMin_us": 2,
"dirSetupMin_us": 2,
"dirHoldMin_us": 2,
"defaultRate_pulses_s": 160,
"maxRate_pulses_s": 640,
"enable": "Active low. Pull EN_N high in hardware. Firmware keeps it high through configuration and on fault or link loss. Position becomes invalid after disable or suspected lost steps."
},
"uart": {
"physical": "Half-duplex 3.3 V PDN_UART. Release host output immediately after stop bit. No direct push-pull driving while driver replies.",
"address": 0,
"baud": 115200,
"format": "8N1, TMC CRC-8",
"registers": {
"GCONF": {
"address": "0x00",
"i_scale_analog": 0,
"internal_Rsense": 0,
"en_spreadCycle": 0,
"pdn_disable": 1,
"mstep_reg_select": 1,
"multistep_filt": 0,
"spread_note": "SPREAD pin is high and inverts this bit, so a zero register bit selects SpreadCycle.",
"value_hex": "0x000000C0"
},
"GSTAT": {
"address": "0x01",
"use": "Read and clear reset; faults disable motion"
},
"IFCNT": {
"address": "0x02",
"use": "Require modulo-256 increment for each successful write"
},
"SLAVECONF": {
"address": "0x03",
"SENDDELAY": 2,
"value_hex": "0x00000200"
},
"IHOLD_IRUN": {
"address": "0x10",
"IHOLD": 27,
"IRUN": 27,
"IHOLDDELAY": 0,
"use": "Constant current during recorded motion, including dwells",
"value_hex": "0x00001B1B"
},
"VACTUAL": {
"address": "0x22",
"value": 0
},
"CHOPCONF": {
"address": "0x6C",
"TOFF": 3,
"HSTRT": 4,
"HEND": 3,
"TBL": 2,
"MRES": 4,
"intpol": 0,
"dedge": 0,
"vsense": 0,
"value_hex": "0x040101C3"
},
"DRV_STATUS": {
"address": "0x6F",
"use": "Monitor temperature and driver faults"
},
"IOIN": {
"address": "0x06",
"use": "Verify driver version and SPREAD high before enabling"
}
}
},
"current": {
"senseOhm": 0.47,
"nominalRms_A": 0.41,
"nominalPeak_A": 0.58,
"fullScaleRms_A": 0.469,
"requirement": "Commission against measured winding current; fixed set point during acquisition."
},
"home": {
"input": "Normally closed switch to GND, main-board pull-up. Open/high means asserted or disconnected.",
"algorithm": "From low, approach negative at 80 pulses/s. Stop at first high. Verify high for 5 ms. Back off positive until low and 32 further pulses, then re-approach at 32 pulses/s. Establish zero on the final opening edge. Initial high permits a positive release search only. Fail on stuck input or search timeout.",
"maxSearch_pulses": 1920,
"maxInitialRelease_pulses": 128,
"limits": "Before homing, allow only bounded homing motion. After homing, reject any move outside 0..1600. Unexpected HOME during normal motion disables and invalidates position. Use an independent mechanical stop at each end."
},
"firmwareCommands": {
"transport": "Existing command framing, with sequence-based duplicate suppression for all moves. Retry returns the cached result without issuing new STEP pulses.",
"home": "stage home",
"step": "stage step <signed-pulse-count>",
"speed": "stage speed [<pulses-per-second>]",
"current": "stage current",
"status": "Implemented in the software 1.3.1 release. See the firmware guide for transport and simulator checks.",
"stop": "stage stop",
"selftest": "stage selftest",
"off": "stage off",
"move": "stage move <absolute-pulse-position>"
},
"selftest": {
"origin_pulses": 128,
"deltas_pulses": [
128,
128,
128,
128,
-128,
-128,
-128,
-128
],
"dwell_ms": 1000,
"nominalDisplacement_nm_per_rung": 2000,
"nominalFringes_per_rung": 6.079,
"analysis": "Fit displacement against cumulative pulses with a time drift term, compare matched forward and reverse plateaus and verify the return. For sub-fringe validation, separately fit a local optical phase curve from raw samples and compare repeated small pulses at the same phase."
},
"motorSupply": {
"connector": "J4",
"mpn": "S2B-PH-SM4-TB",
"pins": {
"1": "12 V input",
"2": "GND"
},
"nominal_V": 12,
"benchRange_V": [
10,
13.2
],
"provisional": "Confirm main 1.4 STAGE PWR orientation and fuse on release.",
"protection": [
"Schottky reverse blocking",
"TPS26600 overvoltage cutoff and current limit",
"VM TVS"
]
}
}