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 1.4.0
892200b
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
{
"schema": "interferometer/control-map/1",
"hardwareVersion": "1.4.0",
"status": "rp2040-main",
"i2c": {
"controller": "I2C0",
"sda": {
"gpio": 4,
"packagePin": 6
},
"scl": {
"gpio": 5,
"packagePin": 7
},
"speedHz": 100000,
"devices": {
"dac": {
"mpn": "DAC7574IDGSR",
"address": "0x4c",
"addressPins": {
"A0": 0,
"A1": 0
},
"resolutionBits": 12,
"reference": "filtered PICO_3V3",
"location": "main",
"populatedControls": {
"B": "monitorOffset",
"C": "externalOffset"
}
},
"headIo": {
"mpn": "MCP23008T-E/SS",
"address": "0x20",
"resetDirection": "inputs; external pulldowns establish selector defaults"
},
"headAdc": {
"mpn": "ADS1115IDGSR",
"address": "0x49",
"location": "laser head",
"rateSamplesPerSecond": 128,
"addressStrap": "ADDR to HEAD_3V3"
},
"headDac": {
"mpn": "DAC121C085CIMM/NOPB",
"address": "0x09",
"broadcastAddress": "0x48 (reserved, do not use)",
"addressStrap": "ADR0 and ADR1 to GND",
"location": "laser head",
"resolutionBits": 12,
"reference": "REF2V5 from head REF5025",
"powerOnCode": 0,
"wireFormat": "two bytes, high byte first, bits 13:12 = 0, bits 11:0 = code"
}
}
},
"controls": {
"laserCurrent": {
"units": "mA",
"codeRange": [
0,
4095
],
"nominalRange": [
0,
110.376
],
"equation": "1000 * REF2V5 * dac_code/4096 * (1000 || 1010000) / (10200 + (1000 || 1010000)) / 2 * (1000000/1010000)",
"powerOnDefault": 0,
"limits": {
"rating_mA": 135,
"nominalIndependentCutoff_mA": 123.89,
"enablingInterlocks": [
"GP6 asserted through protected enable receiver",
"head I2C activity watchdog asserted",
"head supply supervisor good",
"head independent shunt cutoff clear",
"Head cuts off and discharges anode before pass-gate reset on a window or enable fault."
],
"fixedDividerOhms": {
"top": 10200,
"bottom": 1000
},
"faultCeiling": "min(135 mA, 1.01 * commanded current); off and disabled must stay off"
},
"driverLocation": "laser head",
"signal": "HEAD_DAC_LOCAL stays on the head. The Pico commands the DAC over J2 pin 9 (SDA) and pin 10 (SCL).",
"device": "headDac",
"commandMapping": {
"dacCodeEquation": "max(command_code - 45, 0)",
"disarmedCommandCodes": [
0,
45
],
"requestedFullScale_mA": 110.376,
"nominalPhysicalFullScale_mA": 109.163,
"reason": "Reserve 45 counts (nominally 1.213 mA) for positive DAC offset and transient error. Read back the physical current separately at the head ADC.",
"evidenceStatus": "Screened against the linked power-contact model at the selected corners. Full two-port acceptance remains open."
}
},
"laserEnable": {
"gpio": 6,
"units": "boolean",
"range": [
0,
1
],
"equation": "GP6 emits a 10 kHz carrier only after a verified nonzero head DAC command.",
"powerOnDefault": 0,
"safety": "Hardware defaults off. Head bus watchdog, undervoltage supervisor and shunt cutoff override the request. Drop GP6 before writes and start the 10 kHz carrier only after a matching readback. Poll the DAC readback at 2 ms intervals while armed.",
"cablePin": 11,
"packagePin": 8
},
"monitorOffset": {
"dacChannel": "B",
"units": "V",
"codeRange": [
0,
4095
],
"nominalRange": [
0,
3.2992
],
"equation": "Voffset = VDAC_SUPPLY * code / 4096; Vstage = (1 + K) * Voffset - K * Vbuffer",
"powerOnDefault": 0,
"limits": "Software must keep the stage within the ADC rails; trim with laser disabled and after settling."
},
"externalOffset": {
"dacChannel": "C",
"units": "V",
"codeRange": [
0,
4095
],
"nominalRange": [
0,
3.2992
],
"equation": "Voffset = VDAC_SUPPLY * code / 4096; Vstage = (1 + K) * Voffset - K * Vbuffer",
"powerOnDefault": 0,
"limits": "Software must keep the stage within the ADC rails; trim with laser disabled and after settling."
},
"headTiaGain": {
"expanderBit": 0,
"units": "ohm",
"values": {
"0": 1000,
"1": 4700
},
"equation": "Vout = Vbias +/- Iphoto * Rf; sign set by diode orientation",
"powerOnDefault": 1000,
"safety": "Permanent 4.7 k\u03a9 / 22 pF feedback, plus 1.27 k\u03a9 / 24 pF when GP0 is low. Keep the laser disabled when changing."
},
"headMonitorBias": {
"expanderBits": [
1,
2
],
"units": "V",
"values": {
"0": {
"label": "LOW",
"V": 0.252
},
"1": {
"label": "MID",
"V": 2.488
},
"2": {
"label": "HIGH",
"V": 4.649
},
"3": {
"label": "HIGH",
"V": 4.649
}
},
"equation": "Vbias = V(PROTECTED_HEAD_5V) * Rbottom/(Rtop + Rbottom); listed values use a 5.3 V reference rail.",
"powerOnDefault": "LOW",
"safety": "Select a bias compatible with the installed diode and pinout. Change with laser disabled."
},
"monitorSecondStageGain": {
"gpio": 7,
"units": "V/V",
"values": {
"0": -5,
"1": -20
},
"equation": "-Rfeedback / 1000",
"powerOnDefault": -5,
"safety": "Set channel offset again after changing gain.",
"packagePin": 9
},
"externalSecondStageGain": {
"gpio": 8,
"units": "V/V",
"values": {
"0": -5,
"1": -20
},
"equation": "-Rfeedback / 1000",
"powerOnDefault": -5,
"safety": "Set channel offset again after changing gain.",
"packagePin": 11
},
"externalTiaGain": {
"gpio": 9,
"units": "ohm",
"values": {
"0": 46836,
"1": 150000
},
"equation": "GP9 low enables the 68.1 k\u03a9 switched branch in parallel with the permanent 150 k\u03a9 feedback.",
"powerOnDefault": 46836,
"packagePin": 12
}
},
"readbacks": {
"monitorSignal": {
"gpio": 26,
"adc": 0,
"units": "V",
"equation": "code * VADC_REF / 4096",
"packagePin": 38
},
"externalSignal": {
"gpio": 27,
"adc": 1,
"units": "V",
"equation": "code * VADC_REF / 4096",
"packagePin": 39
},
"laserCurrent": {
"device": "ADS1115",
"location": "laser head",
"i2cAddress": "0x49",
"channel": "AIN0\u2013AIN1, differential Kelvin shunt",
"units": "mA",
"programmedFullScale_V": 0.512,
"shuntOhms": 2,
"equation": "1000 * (signed_code - zero_code) * 0.512 / (32768 * 2)",
"safety": "Diagnostic readback; hardware cutoff senses the Kelvin shunt independently.",
"firmwareConfig": "ADS1115 at 0x49, differential AIN0\u2013AIN1, \u00b10.512 V, 128 SPS, continuous. Configure and set conversion pointer while disarmed; armed access is read-only."
},
"mainAnalogRail": {
"gpio": 28,
"adc": 2,
"units": "V",
"source": "Main 5.3 V analog rail",
"dividerOhms": {
"upper": 10000,
"lower": 10000
},
"equation": "2 * code * VADC_REF / 4096",
"filter": "100 nF from ADC2 to ground",
"packagePin": 40
},
"laserSetpointRegister": {
"i2cAddress": "0x09",
"format": "read two bytes; check power-down bits 13:12 and code bits 11:0",
"scope": "Register confirmation of the transmitted DAC code. The ADS1115 measures physical current."
}
},
"reserved": {
"syncGpio": 15,
"dacChannelD": "unconnected",
"mainDacChannelA": "unconnected"
},
"requiredTestPoints": {
"retained": "existing TP1 through TP13 and any other populated release test points",
"added": [
"HEAD_DAC_LOCAL",
"DAC_B",
"DAC_C",
"LASER_ENABLE"
]
},
"startup": [
"Drive laser-enable low.",
"Write zero to the head DAC at 0x09 and verify the complete mode/code readback.",
"Validate differential head current at zero.",
"Configure gains, monitor bias and the main offset channels while disarmed.",
"For each laser setpoint, drive GP6 low before writing and verify the mapped DAC code. Assert GP6 only when that code is nonzero and poll the DAC during operation.",
"Drop GP6 on command or mode mismatch, I2C error or disconnect; a hardware watchdog also drops the head gate when SCL traffic stops."
],
"cable": {
"type": "12-position JST PH premade harness",
"assemblyMpn": "CON-JST-PH-12-FF",
"supplier": "ABRA Electronics",
"lengthMm": 200,
"connectorMpn": "S12B-PH-SM4-TB",
"reference": "J2 on both boards",
"pins": [
{
"pin": 1,
"signal": "LASER_SUPPLY",
"mainNet": "/MAIN_PORT_5V_OUTPUT",
"headNet": "/RAW_HEAD_5V"
},
{
"pin": 2,
"signal": "LASER_SUPPLY_RETURN",
"mainNet": "/CABLE_POWER_RETURN",
"headNet": "/GND"
},
{
"pin": 3,
"signal": "MONITOR_AMP_OUT",
"mainNet": "/MONITOR_JACK",
"headNet": "/MONITOR_JACK"
},
{
"pin": 4,
"signal": "ANALOG_RETURN",
"mainNet": "/ANALOG_RETURN_JACK",
"headNet": "/ANALOG_RETURN_JACK"
},
{
"pin": 5,
"signal": "HEAD_5V",
"mainNet": "/MAIN_PORT_5V_OUTPUT",
"headNet": "/RAW_HEAD_5V"
},
{
"pin": 6,
"signal": "HEAD_POWER_RETURN",
"mainNet": "/CABLE_POWER_RETURN",
"headNet": "/GND"
},
{
"pin": 7,
"signal": "GUARD_GND",
"mainNet": "/CABLE_POWER_RETURN",
"headNet": "/GND"
},
{
"pin": 8,
"signal": "GUARD_GND",
"mainNet": "/CABLE_POWER_RETURN",
"headNet": "/GND"
},
{
"pin": 9,
"signal": "SDA",
"mainNet": "/SDA_JACK",
"headNet": "/SDA_JACK"
},
{
"pin": 10,
"signal": "SCL",
"mainNet": "/SCL_JACK",
"headNet": "/SCL_JACK"
},
{
"pin": 11,
"signal": "LASER_EN",
"mainNet": "/LASER_EN_JACK",
"headNet": "/LASER_EN_JACK"
},
{
"pin": 12,
"signal": "SPARE_GND",
"mainNet": "/CABLE_POWER_RETURN",
"headNet": "/GND"
}
],
"headFeedNominal_V": 5.296,
"cableSideI2cPullUpOhms": 4700,
"i2cTransientLimitSeriesOhmsPerEnd": 180,
"watchdogs": {
"enableCarrier_Hz": 10000,
"firmwareReadbackInterval_ms": 2,
"busMonostableTiming": "100 k\u03a9 and 100 nF; exact guaranteed timeout pending component and circuit qualification"
},
"referenceNote": "Pins 1 and 5 share the regulated head feed. Pins 2 and 6 share the power return. Pin 4 is the dedicated analog monitor return. The laser current sink and the analog set-point are local to the head."
},
"firmwareCommands": {
"transport": "One text command per USB CDC line with the revision 1.2 Pico controller patch.",
"laser": "laser CODE (0\u20134095) or laser off",
"head": "head MASK (0\u20137, MCP23008 GP0\u20132)",
"gain": "gain MASK (0\u20137, Pico GP7\u20139)",
"offset": "offset B CODE or offset C CODE (0\u20134095)",
"selectorAndOffsetWrites": "disable the laser first; it stays disarmed until a fresh verified laser command",
"current": "laser current returns the signed ADS1115 conversion code, requested command code and transmitted DAC code in an INFO frame"
},
"stage": {
"reference": "J4",
"label": "STAGE",
"connectorMpn": "SM08B-GHS-TB(LF)(SN)",
"pins": [
{
"pin": 1,
"signal": "GND",
"direction": "return"
},
{
"pin": 2,
"signal": "STEP",
"gpio": 10,
"direction": "output",
"seriesOhms": 68,
"externalPull": "10k to GND",
"packagePin": 13
},
{
"pin": 3,
"signal": "DIR",
"gpio": 11,
"direction": "output",
"seriesOhms": 68,
"packagePin": 14
},
{
"pin": 4,
"signal": "EN_N",
"gpio": 12,
"direction": "output",
"seriesOhms": 68,
"activeLow": true,
"externalPull": "10k to local 3V3",
"packagePin": 15
},
{
"pin": 5,
"signal": "UART",
"gpio": 13,
"direction": "bidirectional",
"seriesOhms": 68,
"protocol": "TMC2209 PDN_UART, 3.3 V, single-wire half duplex",
"packagePin": 16
},
{
"pin": 6,
"signal": "HOME",
"gpio": 14,
"direction": "input",
"seriesOhms": 68,
"externalPull": "10k to local 3V3",
"packagePin": 17
},
{
"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"
}
],
"power": {
"label": "STAGE PWR",
"connectorMpn": "S2B-PH-SM4-TB(LF)(SN)",
"pins": [
{
"pin": 1,
"signal": "STAGE_12V"
},
{
"pin": 2,
"signal": "GND"
}
],
"enabledWhen": "Accepted 15 V / 2 A charger contract, SYS_12V established and PICO_3V3 high at the STAGE eFuse enable",
"dataOnly": "disabled",
"sustainedDesignA": 0.4334,
"limitResistorOhms": 3010,
"modeledCurrentLimitA": [
0.6281,
0.7823
],
"startupReservoirAllowA": 0.0841
}
},
"controller": {
"mpn": "RP2040",
"package": "QFN-56",
"pins": [
{
"gpio": 4,
"packagePin": 6,
"net": "I2C_SDA"
},
{
"gpio": 5,
"packagePin": 7,
"net": "I2C_SCL_R9650"
},
{
"gpio": 6,
"packagePin": 8,
"net": "LASER_ENABLE"
},
{
"gpio": 7,
"packagePin": 9,
"net": "MAIN_GAIN_MON_BIT"
},
{
"gpio": 8,
"packagePin": 11,
"net": "MAIN_GAIN_EXT_BIT"
},
{
"gpio": 9,
"packagePin": 12,
"net": "MAIN_EXT_TIA_BIT"
},
{
"gpio": 10,
"packagePin": 13,
"net": "STAGE_STEP_GPIO"
},
{
"gpio": 11,
"packagePin": 14,
"net": "STAGE_DIR_GPIO"
},
{
"gpio": 12,
"packagePin": 15,
"net": "STAGE_EN_N_GPIO"
},
{
"gpio": 13,
"packagePin": 16,
"net": "STAGE_UART_GPIO"
},
{
"gpio": 14,
"packagePin": 17,
"net": "STAGE_HOME_GPIO"
},
{
"gpio": 15,
"packagePin": 18,
"net": "SYNC_GPIO"
},
{
"gpio": 26,
"packagePin": 38,
"net": "ADC0"
},
{
"gpio": 27,
"packagePin": 39,
"net": "ADC1"
},
{
"gpio": 28,
"packagePin": 40,
"net": "ADC2_RAIL"
}
],
"statusLed": {
"gpio": 25,
"packagePin": 37,
"activeHigh": true
},
"dataVbusSense": {
"gpio": 24,
"packagePin": 36,
"net": "DATA_VBUS_GPIO",
"source": "DATA VBUS through 90.9k / 10k into TPS3710 SENSE",
"activeHigh": true
}
},
"powerInput": {
"connector": "PD",
"fixedPdoVolts": 15,
"requestAmps": 2,
"systemVoltage": 12,
"dataPort": "USB 2.0 only. The board requires the PD charger, including for USB enumeration."
}
}