Getting Started Guide
March 1, 2026 · View on GitHub
Prerequisites
- Hardware: STEVAL-STWINBX1 (STWIN.box) with USB-C cable
- Firmware: FP-SNS-DATALOG2 (recommended) flashed on the board
- FP-AI-MONITOR2 is supported mainly for legacy serial workflows
- Software:
- Python 3.10+
- uv package manager
- Claude Desktop (or API access)
Step 1: Flash the Firmware
- Download FP-SNS-DATALOG2 from ST
- Flash using STM32CubeProgrammer via the ST-LINK connector
- If needed, FP-AI-MONITOR2 can still be used for serial-only workflows
Step 2: Install MCP Servers
# Clone the repository
git clone https://github.com/LGDiMaggio/claude-stwinbox-diagnostics.git
cd claude-stwinbox-diagnostics
# Install both servers (uv handles virtual environments automatically)
cd mcp-servers/stwinbox-sensor-mcp
uv sync
cd ../vibration-analysis-mcp
uv sync
Step 3: Configure Claude Desktop
Edit your Claude Desktop configuration file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the MCP servers:
{
"mcpServers": {
"stwinbox-sensor": {
"command": "uv",
"args": [
"--directory", "C:/path/to/mcp-servers/stwinbox-sensor-mcp",
"run", "stwinbox_sensor_mcp"
]
},
"vibration-analysis": {
"command": "uv",
"args": [
"--directory", "C:/path/to/mcp-servers/vibration-analysis-mcp",
"run", "vibration_analysis_mcp"
]
}
}
}
Replace C:/path/to/ with the actual path to your clone.
Step 4: Install Skills
Option A: Claude.ai (Web)
- Zip each skill folder individually:
skills/machine-vibration-monitoring/→machine-vibration-monitoring.zipskills/vibration-fault-diagnosis/→vibration-fault-diagnosis.zipskills/operator-diagnostic-report/→operator-diagnostic-report.zip
- Upload each zip in Claude.ai project settings under "Skills"
Option B: Claude Desktop
- Place the skill folders in your Claude Desktop skills directory
- Or reference them in the project configuration
Step 5: Connect the STWIN.box
- Connect the STWIN.box to your PC via USB-C
- Check that a COM port appears (Windows) or
/dev/ttyACM*(Linux/Mac) - Start Claude Desktop and try:
"Connect to the STWIN.box and show me the available sensors"
Claude will use the machine-vibration-monitoring skill to:
- Connect over USB-HID (
datalog2_connect) when SDK support is available - List active sensors and ODR/FS (
datalog2_list_sensors) - Fall back to serial COM tools only if DATALOG2 support is unavailable
Step 6: First Measurement
Ask Claude:
"I have a centrifugal pump running at 1470 RPM with 6205 bearings. Can you take a vibration measurement and tell me if everything looks healthy?"
Claude will:
- Configure the IIS3DWB sensor for wideband vibration
- Acquire 2+ seconds of data
- Compute the FFT spectrum
- Calculate bearing fault frequencies for 6205 at 1470 RPM
- Run envelope analysis for bearing condition
- Classify any detected faults
- Report ISO 10816 severity
- Present findings in plain language
Troubleshooting
Board not detected
- Check USB cable (must support data, not charge-only)
- Try a different USB port
- On Windows, check Device Manager for the COM port
- Install ST USB drivers if needed
Serial connection timeout (legacy fallback path)
- Ensure the correct firmware is flashed
- Try baud rate 115200 (default for FP-AI-MONITOR2)
- Reset the board (press the reset button)
- Prefer FP-SNS-DATALOG2 + USB-HID when possible for deterministic acquisition timing
No vibration data
- Check sensor configuration (use
list_sensorsandget_sensor_config) - Ensure the sensor is enabled and ODR is set
- For IIS3DWB: ODR is fixed at 26667 Hz
MCP server not appearing in Claude
- Check
claude_desktop_config.jsonsyntax (valid JSON) - Verify the path to the MCP server directory
- Ensure
uvis installed and in PATH - Restart Claude Desktop after config changes