EmbDev.net

Forum: FPGA, VHDL & Verilog Control motor velocity using PID


von nmiguel s. (Company: student) (n_sa)


Rate this post
useful
not useful
Hello,

I´m new in VHDl Programming , i´m using a altera FPGA ... i need to read
the velocity from a dc motor to use a PID control.

Could some one help me how to do it?

Thanks

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
Need more input:
What kind of motor is it (manufacturer, type, ...)?
Does the motor have any kind of velocity output (analog, encoder, 
resolver, ...)?
Do you have a datsheet of the motor?

von nmiguel s. (Company: student) (n_sa)


Rate this post
useful
not useful
Thank you for your answer.

The moto is a Micromotors type HVE155 with hall efect, output is an 
encoder

.voltage : 12 Vdc
.Ratio to 1: 43,3;
• MAx. Torque: 18 Ncm;
. RPM: 155 rpm;
• Corrent no load: <140 mA;
• Max. Corrent with load: 580 mA;

I need some VHDL code or some function in the altera fpga to know " read 
" the input data from the encoder to aply with PID.

Could you help me in this?

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
nmiguel sa wrote:
> Could you help me in this?
For shure, but one question in advance: You ask only for the code to 
read the velocity. Do you have the PID already? How does it look like?

> output is an encoder
Try this with babelfish or something similar (its German):
http://www.lothar-miller.de/s9y/categories/46-Encoder
With this you get the position. And from there you can calculate the 
speed: eg. "how many increments per second"

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.