Speed control of DC motor using Encoder (by hari )
Can somebody help me out how to write ladder logic program to control dc motor using ENCODER i am using Atmega-8 micro-controller.
(no subject) (by MGP)
@Hari, we need more information, do you have a schematic?
To write a program, we need to know exactly what you want to do!
(no subject) (by Ziggy)
While it is true as MPG says LDmicro is slow, You can use encoder for speed and positional information within the limits of the loop cycle limits.
I am using an encoder and a divider so as to be able to divide only one bit stream down to a frequency the PLC will understand.
Typically, I think, the bit stream should be at most a quarter of the PLC loop frequency.
I intend to apply the signal to an input pin which will drive a counter to accumulate the pulses. Over a time frame it will provide speed and positional information without the direction feedback.
I hope to have this running during the coming week.
If i tun up crying... well be kind to me.
On a serious note a 16F84 was used in this fashion to establish a high speed servo amplifier.
Namely the counter input pin ( this time hardware counter within the micro was setup in this fashion with direction and count flags to update the hardware counter and generate control signals.
My quadrature cents worth.