5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OctoPiでUSB Webcam

Posted at

概要

OctoPiにUSB Webカメラを付けても映らないので/boot/octopi.txtを修正して映るようになった。

環境

  • OctoPrint version : 1.3.4
  • OctoPi version : 0.14.0
  • Raspberry Pi 2
  • USB Webカメラ : AliExpressで買った箱にも入っていないノーブランド

手順

  1. OctpPiに従ってMicro SDカードにインストール

  2. USB WebカメラのDevice IDを調べる。
    Class=VideoのDevを見る。

$ lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
|__ Port 3: Dev 4, If 0, Class=Vendor Specific Class, Driver=ch341, 12M
|__ Port 5: Dev 5, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 5: Dev 5, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 5: Dev 5, If 2, Class=Audio, Driver=snd-usb-audio, 480M
|__ Port 5: Dev 5, If 3, Class=Audio, Driver=snd-usb-audio, 480M


3. USB WebカメラのProduct IDを調べる。
  2.で調べたDevice IDと同じ行のIDがProduct ID。 例では"1908:2310"

    ```コマンド
$ lsusb
Bus 001 Device 005: ID 1908:2310 GEMBIRD 
Bus 001 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  1. /boot/octopi.txtに下記2行を追加。
    2行目の""で囲われた中に3.で調べたProduct IDを入れる。

    /boot/octopi.txt

camera="auto"
additional_brokenfps_usb_devices=("1908:2310")


6. Raspberry Piを再起動

### 動いた!
5
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?