Cheap and Open Hardware for Robotics ?

Important Notice wrote:

It seems Beckhoff Automation is unable to support an open source (GPL/LGPL) EtherCat implementation due to (incompatible) license restrictions and their way in how they protect patented technology. As the EtherCat Master Library (EML) points out on , you're not encouraged to create an ethercat application based on open source software.

Let's start right away with an example and sum up the parts of the last controller I was working on with Orocos:

* Industrial Single Board Computer (SBC) (PIV 3.4GHz) with 11 PCI slots. Brand: [Amplicon, Type: Ventrix 4003|]
* National Instruments PCI cards: NI 6602, NI 6713, NI 6503 for counters, analog output and relays respectively, [supported by Comedi|]
* RTL 10/100 ethernet card, supported by [RTNet|].
* [Peak Systems CAN card|], supported in Linux and Xenomai.

Ok, before you start building this system for your robot, you should know that the application was not in traditional robotics. But that's not the point. The point is the __price tag__. The PC was quite cheap, about 1500 euro (2250USD). The NI hardware was a bit harder to digest: 2500 euro (3650USD) for reading/generating block waves, analog and digital signals and closing some relays. We might have had a cheaper setup using some Advantech cards for example. But even then, the number of PCI cards often forces you into going for SBC's, backplanes and rack-cases like the Ventrix.

So that's what we bought eventually because it was supported under Linux. Now what did we ''really'' need controller side ?

* An ATX or small form factor PIV PC running (real-time) Linux
* A high-speed bus to connect to an IO island having dedicated encoder inputs, analog and digital IO.
* A PCI card interfacing connecting the PC to that bus.

Now what if that bus was plain Ethernet ? And what if that IO island had a completely open interface and runs firmware selected or compiled by you? You'd have an end-to-end open hardware system for robot control.

Where would you buy or how would you build such a system ? There is a standard, [EtherCat|], which is an [open real-time device protocol over Ethernet|http://]. There is one ''master'' sending packets to devices and each ''slave'' device modifies or extends the packet in microseconds and forwards it to the next device. The last device sends the packet back to the master. It's clearly a centralised controller solution, and it's main aim is to collect or send vast amounts of IO in real-time. Nothing constrains you however from networking the controllers themselves using another, not centralised, protocol.

There are already initial [master|] [implementations|] in (real-time) Linux. The devices are mainly Beckhoff (but many vendors are jumping onboard) and a bit cheaper than National Instruments IO. However, it is not so cheap to extend this bus with your own hardware. Because the device reacts to the EtherCat packet using an FPGA chip, you'll have to ''buy'' your FPGA core if you want to attach a home made device. You can't find that yet on [Open Cores|]. But its a great step forward, away from [a pretty darn closed protocol|].

The EtherCat organization works like CAN does: anyone can freely create a master (read: controller), but if you want to create slave devices, you have to pay your share (by buying an FPGA core) of the development effort of the protocol. I'm sure this works very well in an industrial context, where (re-)liability is worth something, but where does this leave us, poor robot builders ?

I can't help wonder how this would be solved in an [open hardware community|]. Are we saved by collectively writing an EtherCat core and let it spoil EtherCat's business model ? I think both can live perfectly together: an industrial grade core for industries, willing to pay for the added value of commercial support, while a growing community is supporting itself in the open source way.

Heard such a story before ? Yes we did, and [to which side is industry crossing nowadays|]? [Let's not wait for them|].

Hardware community

It is really exciting to know these information which we can use for ourself while developing the new project robotics where you are using this with the Ethernet device protocol unit.

This is really a very important points you made thanks for sharing such a valuable information.

Cheap and Open Hardware for Robotics ?

Hi Peter,
Did you used the Orocos RTAI build for this system? If so, how did you manage the data exchange between your component and the Peak Systems GNU/Linux driver?

I did not found a RTAI CAN Bus driver, so i'm looking for a solution to use a GNU/Linux CAN Bus driver within an Orocos application running with RTAI.

Thank you,

Philippe Hamelin

Technologix 500Mhz ARM with 11K FPGA

I wonder if these might be a good fit, thought I haven't used one yet - I was just getting ready to purchase one when I came across this page.

500Mhz ARM processor with 11K FPGA
$270, plus a bit more once off for developer support kit

with these option cards