Skip to content

Arduino_de_EtherCAT

A demo of an EtherCAT network where both the master and slave are made with Arduono.

Control a 4-axis arm robot with 4 knobs.

WIZnet

Published November 02, 2023

Original author: lipoyang · JapanOriginal source (new tab)

Arduino_de_EtherCAT

Components

Hardware components
W5500 Ethernet Shield

x 1


Project description

Demo of EtherCAT with Arduino

A demo of an EtherCAT network where both the master and slave are made with Arduono.

Control a 4-axis arm robot with 4 knobs.

Demo of EtherCAT with Arduino

Overall view

Overall view

master

Obtain the values ​​of the 4 potentiometers from slave 1 and set the command values ​​of the 4 micro servos to slave 2.

slave 1

Create four analog signals of 0 to 5V using four potentiometers with knobs attached, and input them to A0 to A3 of Arduino Uno. These become the command values ​​for the shoulders, elbows, wrists, and finger joints of slave 2's arm robot.

slave 2

Connect four micro servos SG90 to pins 3, 4, 5, and 6 of Arduino Due. The power for the servo should not be taken from the Arduino's 5V, but should be supplied separately. The micro servo is attached to the arm robot and drives the joints of the shoulders, elbows, wrists, and fingers. The following kit was used for the arm robot.

*This kit says to use SG92R for the elbow joint, which requires the most torque, but I found that using SG92 caused significant vibration, so I used SG90 for all joints. (It may depend on the lot.)

movie

IMAGE ALT TEXT HERE

Impressions

It is a control system that can be easily overspecified.

Arduino_de_EtherCAT, Impressions

The communication cycle of EtherCAT was actually measured to be approximately 1.3 msec. A serious Ethernet should not be like this, but the jitter is suppressed to less than a few usec. In the first place, the micro servo control pulse has a cycle of 20 msec, so even a communication cycle of 1.3 msec is too fast and is a waste of time.

reference

Other compatible boards

The master sketch has been confirmed to work with the following hardware in addition to Arduino Due + Ethernet Shield 2.

  • GR-SAKURA
  • GR-ROSE

We have also confirmed the operation of the following Mbed version master.

In addition, the slave sketch has been confirmed to work with the following hardware in addition to Arduino Uno.

  • GR-SAKURA

     

Documents

Comments

Similar projects you might like

Comments