I am trying to implement a model predictive controller to control my soft robot. Right now, the robot is being controlled in an open loop. I have written python code for the MPC but the codes are not running very fast. I don't think the computation time is sufficient for my purpose. Is it possible to interface an FPGA board with the Pi? or Is it possible to do the main computations on a PC and communicate with the Pi.