メインコンテンツへスキップ
見出し画像

主婦がSO101ロボットアームを買ってみた【5】

    Raspberry Pi 5を使って、ロボットアームを動かすことに、挑戦しようと思います。SO-ARM101 Low-Cost AI Arm Kit Proの組み立てから行います。 家事やペットの世話の合間で、まとまった時間がなかなか取れない中、果たしてうまくいくでしょうか?取り留めのないnoteを、シリーズで投稿していきます。


    今回は、12V電源のフォロワーアームについて、作業したいと思います。

    まず、モーターにラベルを貼ります

    接続順/割り当てられるID/対応関節/ギア比/ラベル


    1番目に接続/ID = 6/グリッパー/「1/345」/F6
    2番目/ID = 5/手首ロール(wrist_roll)/「1/345」/F5
    3番目/ID = 4/手首フレックス(wrist_flex)/「1/345」/F4
    4番目/ID = 3/肘(elbow_flex)/「1/345」/F3
    5番目/ID = 2/肩リフト(shoulder_lift)/「1/345」/F2
    6番目(最後)/ID = 1/肩パン(shoulder_pan・基部)/「1/345」/F1

    フォロワーは全部同じギア比なので、極論どのモーターをどのF番号にしても機構的には壊れませんが、あとで迷わないように「F1」〜「F6」とラベルを貼っておきます。

    画像

    ラズパイを起動してターミナルを開きます

    プロンプトの先頭は(base)に戻っています。

    conda activate lerobot

    を打つ入力すると、プロンプトの先頭は(lerobot)に変わります。

    12V電源を接続したモーターインターフェースボードを、付属のUSBケーブルでラズパイと接続します。

    画像
    lerobot-find-port

    を入力します。

    Finding all available ports for the MotorsBus.
    Ports before disconnecting: ['/dev/ttyACM0', '/dev/ttyprintk', '/dev/tty63', '/dev/tty62', '/dev/tty61', '/dev/tty60', '/dev/tty59', '/dev/tty58', '/dev/tty57', '/dev/tty56', '/dev/tty55', '/dev/tty54', '/dev/tty53', '/dev/tty52', '/dev/tty51', '/dev/tty50', '/dev/tty49', '/dev/tty48', '/dev/tty47', '/dev/tty46', '/dev/tty45', '/dev/tty44', '/dev/tty43', '/dev/tty42', '/dev/tty41', '/dev/tty40', '/dev/tty39', '/dev/tty38', '/dev/tty37', '/dev/tty36', '/dev/tty35', '/dev/tty34', '/dev/tty33', '/dev/tty32', '/dev/tty31', '/dev/tty30', '/dev/tty29', '/dev/tty28', '/dev/tty27', '/dev/tty26', '/dev/tty25', '/dev/tty24', '/dev/tty23', '/dev/tty22', '/dev/tty21', '/dev/tty20', '/dev/tty19', '/dev/tty18', '/dev/tty17', '/dev/tty16', '/dev/tty15', '/dev/tty14', '/dev/tty13', '/dev/tty12', '/dev/tty11', '/dev/tty10', '/dev/tty9', '/dev/tty8', '/dev/tty7', '/dev/tty6', '/dev/tty5', '/dev/tty4', '/dev/tty3', '/dev/tty2', '/dev/tty1', '/dev/tty0', '/dev/tty', '/dev/ttyAMA10']
    Remove the USB cable from your MotorsBus and press Enter when done.

    USBケーブルを抜いて「Enter」を押しました。

    The port of this MotorsBus is '/dev/ttyACM0'
    Reconnect the USB cable.

    USBケーブルを戻しました。

    ポート確認できた様です。
    モーターの設定に進みます。

    lerobot-setup-motors --robot.type=so101_follower --robot.port=/dev/ttyACM0

    を入力します。(ポート番号は、lerobot-find-portで表示されたポート番号を入力します)

    Connect the controller board to the 'gripper' motor only and press enter.

    「F6」のラベルのモーターを接続して「Enter」を押します。

    'gripper' motor id set to 6
    Connect the controller board to the 'wrist_roll' motor only and press enter.

    「F6」のモーターを取り外し、「F5」のモーターを接続して「Enter」を押します。

    'wrist_roll' motor id set to 5
    Connect the controller board to the 'wrist_flex' motor only and press enter.

    「F5」のモーターを取り外し、「F4」のモーターを接続して「Enter」を押します。

    'wrist_flex' motor id set to 4
    Connect the controller board to the 'elbow_flex' motor only and press enter.

    「F4」のモーターを取り外し、「F3」のモーターを接続して「Enter」を押します。

    'elbow_flex' motor id set to 3
    Connect the controller board to the 'shoulder_lift' motor only and press enter.

    「F3」のモーターを取り外し、「F2」のモーターを接続して「Enter」を押します。

    'shoulder_lift' motor id set to 2
    Connect the controller board to the 'shoulder_pan' motor only and press enter.

    「F2」のモーターを取り外し、「F1」のモーターを接続して「Enter」を押します。

    'shoulder_pan' motor id set to 1

    モーターの設定が終了しました。

    次回は、いよいよ組み立ての準備。「SO-ARM101 Low-Cost AI Arm 3Dプリントパーツキット」を確認します。


    オープンソースロボットSO101の、組み立て動画を公開しました。


     
     
    エンジニア→介護福祉士→介護機器を独りで開発しています。市販品で作る、高齢者支援装置をnoteで紹介しています

    あなたへのおすすめ