본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)30k · #9356

hardware

하는 일

이 스킬은 에이전트가 Sipeed 보드에 연결된 센서, 디스플레이, 기타 하드웨어와 통신하게 합니다. 연결된 장치 검색, 값 읽기, I2C와 SPI로 명령 보내기를 다룹니다.

사용하는 경우

  • ✓Sipeed 보드에 연결된 온도 또는 습도 센서를 읽고 싶을 때.
  • ✓보드의 I2C 또는 SPI 버스에 어떤 장치가 연결되어 있는지 검색하고 싶을 때.
  • ✓보드에 연결된 디스플레이나 다른 주변 장치를 제어하고 싶을 때.

스킬 링크

https://github.com/sipeed/picoclaw/blob/main/workspace/skills/hardware/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sipeed/picoclaw/blob/main/workspace/skills/hardware/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“LicheeRV 보드의 I2C 버스를 검색하고, 연결된 센서에서 온도를 읽어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 사용 가능한 버스를 나열하고, 연결된 장치를 검색한 뒤, 내가 지정한 센서의 레지스터를 읽습니다. 쓰기 작업은 먼저 내 확인이 필요하며, 주소와 전송 크기는 제한값과 비교해 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Hardware (I2C / SPI)

Use the i2c and spi tools to interact with sensors, displays, and other peripherals connected to the board.

Quick Start

# 1. Find available buses
i2c detect

# 2. Scan for connected devices
i2c scan  (bus: "1")

# 3. Read from a sensor (e.g. AHT20 temperature/humidity)
i2c read  (bus: "1", address: 0x38, register: 0xAC, length: 6)

# 4. SPI devices
spi list
spi read  (device: "2.0", length: 4)

Before You Start — Pinmux Setup

Most I2C/SPI pins are shared with WiFi on Sipeed boards. You must configure pinmux before use.

See references/board-pinout.md for board-specific commands.

Common steps:

  1. Stop WiFi if using shared pins: /etc/init.d/S30wifi stop
  2. Load i2c-dev module: modprobe i2c-dev
  3. Configure pinmux with devmem (board-specific)
  4. Verify with i2c detect and i2c scan

Safety

  • Write operations require confirm: true — always confirm with the user first
  • I2C addresses are validated to 7-bit range (0x03-0x77)
  • SPI modes are validated (0-3 only)
  • Maximum per-transaction: 256 bytes (I2C), 4096 bytes (SPI)

Common Devices

See references/common-devices.md for register maps and usage of popular sensors: AHT20, BME280, SSD1306 OLED, MPU6050 IMU, DS3231 RTC, INA219 power monitor, PCA9685 PWM, and more.

Troubleshooting

Problem Solution
No I2C buses found modprobe i2c-dev and check device tree
Permission denied Run as root or add user to i2c group
No devices on scan Check wiring, pull-up resistors (4.7k typical), and pinmux
Bus number changed I2C adapter numbers can shift between boots; use i2c detect to find current assignment
WiFi stopped working I2C-1/SPI-2 share pins with WiFi SDIO; can't use both simultaneously
devmem not found Download separately or use busybox devmem
SPI transfer returns all zeros Check MISO wiring and device power
SPI transfer returns all 0xFF Device not responding; check CS pin and clock polarity (mode)
자주 묻는 질문

묻지 않고 장치 설정을 바꾸나요?

아닙니다. 모든 쓰기 작업은 먼저 나의 명시적인 확인이 필요합니다.

먼저 핀을 설정해야 하나요?

보통 그렇습니다. 많은 핀이 WiFi와 공유되므로, 사용 전에 설정하는 단계를 스킬에 포함하고 있습니다.

어떤 보드를 지원하나요?

LicheeRV Nano, MaixCAM, NanoKVM 같은 Sipeed 보드를 대상으로 작성되었습니다.

상세 정보

작성자의 원본 설명

Read and control I2C and SPI peripherals on Sipeed boards (LicheeRV Nano, MaixCAM, NanoKVM).

repo: sipeed/picoclaw

인기도

GitHub 스타
30k
순위
#9356
라이선스
MIT
업데이트
2026. 10. 30.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬