FPGA servo motor controller

ei anyone can help me with the algorithm on how to control a servomotor... cause we are gonna use it on our thesis... by the it's
called "FPGA based intravenous infusion monitoring and control system"
can anyone help us out on how to control a servomotor...will be using the servomotor to clamp the tube of an I.V.(intravenous) tube... the flow of the algorithm will bw this... first a personnel will input how many dosage a patient gets and then the servomotor will clamp the I.V. tube so that the desired dosage is achive... by the way will be using optical sensors to monitor the drops of the I.V. fluid i will be placed at the outside of the drip chamber...
but we have a problem what if the drip of the fluid change how will the servomotor adjust it so that the dosage will be maintained...will use a feedback but how are we gonna implement it on FPGA..
got any suggestion on the algorithm... or any sites that can help us solve this problem
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
A peristaltic pump (try Google) is the traditional way to do this. The flow can be very precisely controlled with a stepper motor.
Are the drips all the same size?

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

That sounds like an interesting thesis title.
But I'm concerned that maybe you chose the thesis title BEFORE you did any research into how you will accomplish it.
My first thoughts are:
1) There are $25 microprocessors that will do all the PID/servomotor work for you, so what justifies using an FPGA in this project? 2) Oh BOY, you are going to have some fun getting this working in and FPGA if you are using either schematic capture or VHDL, and it's your first project. Maybe using Matlab and a C-to-VHDL module will work, but it will be a real test. 3) Medical devices are a thing to run away from as fast as you can.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
If you *have* to use an FPGA for some reason - and have access to MATLAB/Simulink, one way would be to simulate the system in Simulink and convert the controller to VHDL using System Generator. http://www.xilinx.com/xlnx/xebiz/designResources/ip_product_details.jsp?sGlobalNavPick=PRODUCTS&sSecondaryNavPick sign+Tools&key=dr_dt_system_generator
Kevin

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.