Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
3
Help us understand the problem. What is going on with this article?
@hitokuno

OctoPiでUSB Webcam

More than 3 years have passed since last update.

概要

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
    
  4. /boot/octopi.txtに下記2行を追加。
    2行目の""で囲われた中に3.で調べたProduct IDを入れる。

    /boot/octopi.txt
    camera="auto"
    additional_brokenfps_usb_devices=("1908:2310")
    
  5. Raspberry Piを再起動

動いた!

3
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
hitokuno

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
3
Help us understand the problem. What is going on with this article?