ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

I am looking at getting fpga to generate pwm and quadrature decoders for dc motor and then interface fpga to ROS.

asked 2014-07-31 17:26:44 -0600

Glory gravatar image

Please I want to find out if FPGA can interface with ROS. Any previous work on that. I really need guidance on that. Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-31 20:21:47 -0600

ahendrix gravatar image

I'm not aware of an existing FPGA to ROS framework.

It shouldn't be terribly difficult to do, but an FPGA is probably overkill for most applications.

There are number of implementation details that you'll have to work out:

  • You'll have to come up with a way to wire your FPGA to your ROS computer. Serial, USB and Ethernet may all be choices here.
  • You'll need to find or write a protocol that defines how the FPGA communicates with the computer. This could be a simple serial protocol, or it could be UDP over Ethernet, or something else.
  • You'll need to program the FPGA appropriately. This is usually done in Verilog or VHDL. This will include writing the appropriate hardware to generate your PWM signals, read your encoders, and communicate with your PC over the chosen protocol.
  • You'll need to write a ROS node which communicates with your FPGA and publishes and subscribes to ROS topics.

Unless you really need the flexibility or speed of an FPGA, there are better, pre-built solutions for interfacing ROS to motors and encoders such as ros_arduino_bridge

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-07-31 17:26:44 -0600

Seen: 268 times

Last updated: Jul 31 '14