Giter VIP home page Giter VIP logo

arduino_de_ethercat's Introduction

ArduinoでEtherCATのデモ

マスターもスレーブもArduonoで作ったEtherCATネットワークのデモ。

4つのノブで4軸のアームロボットをコントロールする。

全体図

全体図

マスター

スレーブ1から4個のポテンショメータの値を取得し、スレーブ2へ4個のマイクロサーボの指令値を設定する。

スレーブ1

ノブを取り付けた4個のポテンショメータで0~5Vのアナログ信号を4つ作り、Arduino UnoのA0~A3に入力する。それらがスレーブ2のアームロボットの肩、肘、手首、指の関節の指令値となる。

スレーブ2

4個のマイクロサーボSG90をArduino Dueの3,4,5,6番ピンに接続する。サーボの電源はArduinoの5Vからは取らず別途供給すること。マイクロサーボはアームロボットに組付けて、肩、肘、手首、指の関節を駆動する。アームロボットは下記のキットを用いた。

※このキットではいちばんトルクを要する肘関節にはSG92Rを用いるように書かれているが、SG92を用いると著しい振動が見られたのですべての関節にSG90を用いた。(ロットによるかもしれない。)

動画

IMAGE ALT TEXT HERE

所感

オーバースペックにもほどがある制御系である。

EtherCATの通信周期は実測で約1.3msecであった。本気のEthernetはこんなものではないはずだが、ジッタは数usec以下に抑えられている。そもそもマイクロサーボの制御パルスは20msec周期であるから、通信周期1.3msecでも速すぎて宝の持ち腐れである。

参考

他の対応ボード

マスターのスケッチは、Arduino Due + Ethernet Shield 2 の他に下記のハードウェアでも動作確認できている。

  • GR-SAKURA
  • GR-ROSE

また、Mbed版のマスターとして下記のものも動作確認できている。

また、スレーブのスケッチは、Arduino Uno の他に下記のハードウェアでも動作確認できている。

  • GR-SAKURA

arduino_de_ethercat's People

Contributors

lipoyang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.