Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers

Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th May 2004, 10:36 AM
New Member
zika1212 is on a distinguished road
 

Default controlling velocity

how can i control velocity of a motor (servo motor) using 16f876 when i have an analog input to select velocity and tachometer to measure the feedback velocity ?
zika1212 is offline   Reply With Quote
Old 25th May 2004, 11:12 AM
Experienced Member
bsodmike is on a distinguished road
 
 
Send a message via MSN to bsodmike
Default

I would imagine velocity would be achived via current or voltage control? As a PIC can only do logic operations per port (0-5v) I imagine you'll need to run your PWM signal through a DAC and have that in turn through a power FET/H-Bridge....
__________________
"Ambition is the last refuge of failure..." --Oscar Wilde
"Success is not final, failure is not fatal: it is the courage to continue that counts." -- Winston Churchill
bsodmike is offline   Reply With Quote
Old 25th May 2004, 12:48 PM
Experienced Member
motion is on a distinguished road
 
 
Default Re: controlling velocity

Quote:
Originally Posted by zika1212
how can i control velocity of a motor (servo motor) using 16f876 when i have an analog input to select velocity and tachometer to measure the feedback velocity ?

You enable two channels of the A/D converter to alternately sample the tachometer and the voltage input. Use a PID based algorithm to control the PWM output which in turn controls a driver circuit.

There is an application note in the microchip's website which describes servo control of a brushed DC motor. Although it is designed for position control, I think it can be easily converted to velocity control. It is for the PIC17C42 however.

http://ww1.microchip.com/downloads/e...tes/00532c.pdf
__________________
"Having to do with Motion Control"
motion is offline   Reply With Quote
Old 25th May 2004, 09:49 PM
Experienced Member
Oznog is a jewel in the roughOznog is a jewel in the rough
 
 
Send a message via AIM to Oznog
Default

Tachometer's pulses, so there is probably no reason to use the A/D converter. Just use it on the CCP input or external interrupt. The response will not be delayed by RC filter lag and will not be affected by varying voltage levels on the tach signal.
Oznog is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


All times are GMT. The time now is 11:53 PM.




Electronic Circuits  |  Radio Controlled
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0