opennirscap-build
БесплатноБез исполняемых скриптовНе проверенBuild an OpenNIRScap 24-channel fNIRS brain cap from open-source hardware — Altium conversion, BOM sourcing, PCB fab, assembly, firmware flash
от plurigrid★ 73 звезды на GitHubОб этом скилле
OpenNIRScap Build
Open-source 24-channel fNIRS wearable brain cap. Kim et al. 2025, University of Toronto.
Source
- Repo: https://github.com/tonykim07/fNIRS
- Paper: https://arxiv.org/abs/2505.20509
- License: BSD-3-Clause
- Hardware: Altium Designer files (PcbDoc, SchDoc)
- Firmware: STM32 C (STM32L476RET6)
- Software: Python Flask-SocketIO GUI
Architecture
- 24 detector modules (VBPW34S photodiode + AD8618 TIA, 25mm circular PCB)
- 8 dual-wavelength source emitters (VSMD66694: 660nm + 940nm)
- 1 ECU (STM32L476 + 8x TMUX1104 analog MUX + PCA9685 PWM, 112x112mm PCB)
- 35mm source-detector separation (cortical depth sensitivity)
- 1 kHz effective sampling, 52.3 dB SNR, 12-bit ADC
- USB isolated (ADUM4160), LiPo powered (1100mAh, >5hr)
Blocker: Altium to Gerber Conversion
Repo has Altium .PcbDoc source files, no exported gerbers or CSV BOMs.
PCBs to convert
| Project | File | Description |
|---|---|---|
| fNIRS_sensor_module | SensorModulePCB.PcbDoc | 25mm circular, combined emitter+detector |
| fNIRS_ECU | fNIRS_PCB.PcbDoc | 112x112mm main control board |
| DetectorOptode | DetectorOptode.PcbDoc | Detector-only variant |
| SourceOptode | SourceOptode.PcbDoc | Source-only variant |
| STLINK_Breakout | STLINK_Breakout.PcbDoc | Programming adapter |
Conversion approaches (in order of preference)
- KiCad 8 built-in importer — File > Import > Altium .PcbDoc. Best fidelity. Needs KiCad installed.
- altium2kicad (Perl, 933 stars) —
perl convertpcb.pl file.PcbDoc. Repo: thesourcerer8/altium2kicad. Needsunpack.plfirst. - Altium 365 Viewer (free web) — View online, manual export. No CLI.
- GitHub Issue — Ask authors to export gerbers. Repo is active (last push 2026-03).
Attempted and failed
altium-cli(Rust, akiselev) — broken workspace deps, won't buildpyaltium— crashes on Python 3.14 (missing dateutil dep)altium2kicadunpack.pl worked but convertpcb.pl couldn't find unpacked files
Next step
Install KiCad 8 (brew install --cask kicad or nix shell nixpkgs#kicad), import PcbDoc, export gerbers + BOM + CPL from KiCad.
BOM — Semiconductors (DigiKey)
| Part | MPN | Qty | DigiKey URL |
|---|---|---|---|
| Photodiode | VBPW34S | 24 | https://www.digikey.com/en/products/detail/vishay-semiconductor-opto-division/VBPW34S/4073399 |
| Quad op-amp | AD8618ARUZ | 12 | https://www.digikey.com/en/products/detail/analog-devices-inc/AD8618ARUZ/1993937 |
| Dual LED 660/940nm | VSMD66694 | 8 | https://www.digikey.com/en/products/detail/vishay-semiconductor-opto-division/VSMD66694/7681025 |
| N-ch MOSFET | BSD840NH6327XTSA1 | 16 | https://www.digikey.com/en/products/detail/infineon-technologies/BSD840NH6327XTSA1/5409567 |
| MCU | STM32L476RET6 | 1 | https://www.digikey.com/en/products/detail/stmicroelectronics/STM32L476RET6/5177041 |
| Analog MUX | TMUX1104DBVR | 8 | https://www.digikey.com/en/products/detail/texas-instruments/TMUX1104DBVR/9685876 |
| PWM/IO | PCA9685PW,118 | 3 | https://www.digikey.com/en/products/detail/nxp-usa-inc/PCA9685PW-118/2034325 |
| USB isolator | ADUM4160BRWZ | 1 | https://www.digikey.com/en/products/detail/analog-devices-inc/ADUM4160BRWZ/1861340 |
BOM — Passives (0603 SMD, from schematic)
Core known values (exact values need Altium schematic export):
- 60.4k 1% x24 (TIA feedback)
- 200pF x24 (TIA bandwidth, fc~13kHz)
- 100nF x60 (bypass, 2 per board + ECU)
- 4.7k x4 (I2C pullups)
- LED current limit resistors x16
BOM — Amazon
| Item | URL |
|---|---|
| 3.7V 1100mAh LiPo JST | https://www.amazon.com/Qimoo-Battery-Rechargeable-Connector-Electronic/dp/B0CNLNGBT4 |
| ST-LINK V2 programmer | https://www.amazon.com/ST-Link-Programming-Emulator-Downloader-Random/dp/B08YZ4K3Z5 |
| 8-pin ribbon cable IDC | https://www.amazon.com/DMiotech-Ribbon-Digital-Cameras-Computers/dp/B0CJYV768J |
| PLA filament 1.75mm | https://www.amazon.com/ELEGOO-PLA-Filament-1-75mm-Printers/dp/B0C14PXRZH |
| Velcro strips | https://www.amazon.com/VELCRO-Brand-Sticky-Fasteners-Perfect/dp/B00006IC2L |
| 3M Micropore tape | https://www.amazon.com/Micropore-Medical-Dispenser-Friendly-NonSterile/dp/B00PZ2F1Q6 |
| Neoprene headband | https://www.amazon.com/Headband-Neoprene-Hairband-Non-Slip-Snorkeling/dp/B0FB8Y968R |
BOM — PCBs (JLCPCB, after gerber export)
- 24x sensor module (25mm circular)
- 1x ECU (112x112mm, 4-layer)
- 1x STLINK breakout
Cost Summary
| Category | Cost |
|---|---|
| Semiconductors | ~$130 |
| Passives | ~$15 |
| PCBs | ~$13 |
| Amazon | ~$150 |
| Total | ~$310-420 |
Assembly
- Export gerbers from KiCad (after Altium import)
- Order PCBs from JLCPCB
- Order DigiKey + Amazon parts
- Solder sensor modules (24x, SMD 0603 + photodiode + LED)
- Solder ECU (QFP-64 MCU, SOT-23 MUXes, TSSOP PWM)
- Wire cable harnesses (8 groups of 3 sensors)
- 3D print sensor capsules (STL from repo or design in OpenSCAD)
- Flash firmware via SWD (ST-LINK)
- Connect USB
Установить opennirscap-build в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл opennirscap-build?
Build an OpenNIRScap 24-channel fNIRS brain cap from open-source hardware — Altium conversion, BOM sourcing, PCB fab, assembly, firmware flash
Как установить скилл opennirscap-build?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл opennirscap-build запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic