In mechatronics, as in many others fields, one of the main aspect is the prototyping. Since the mechatronics covers a lot of complex applications, the availability of a common digital platform to use in all of them is a valid help in the prototyping phase of the project. FPGAs are often used as software acceleration in reconfigurable computers (RC), in which the operating system is a standard off-the-shelf real time operating system such as Linux and VxWorks. The object of the first part of the work is to develop a hardware operating system for mechatronic applications, which means that the FPGA device does not host a soft core processor, able to execute one only operation at a time, but it executes many concurrent hard real time functions allowing the user to develop his own application code taking advantage of the main features of the device: concurrency, flexibility and determinism. The second part of the thesis is related to the project of an electronic module that integrates logic and power devices to drive piezoelectric stack actuators and demonstrate experimentally the results in terms of control of piezoelectric stack tip displacement on atest bench. The electronic module controls up to four piezoelectric stack actuators and guarantees that the correct tip displacement is reached starting from a desired profile. The various opening/closing phases of the actuators are tuned in terms of slew rate, timings and values to reach during all the controlled phase. The control parameters are passed to the control unit by means of a host human machine interface or by an external electronic control unit that acts as a supervisor. This part will illustrate all the passages of the design starting from the constitutive equations of the piezoelectric material up to the final architecture of the control law and implementation passing through: • creation of a FEM model of the piezoelectric stack; • construction of the modal residues model; • FEM model validation; • identification of the electrical equivalent circuit of the piezoelectric stack; • design of the power driver circuit; • design of the control loops; A complete model validation is then performed and experimental results are presente