Control motor velocity using PID

OP (Company: student) #2349746
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?
Moderator (Company: Titel) #2349801
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"

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.