(you are viewing a thread; or go back to
list of threads)
Speed control of DC motor using Encoder (by hari )
Hi,
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 Boris)
What do You need.
Encoder is for the position not for speed.
This is speed control.
(no subject) (by hari )
if possible please give me position also
thanks for help
(no subject) (by hari )
but this program is not read the encoder value and also how you increasing impuls block
(no subject) (by Kamen Pecov)
(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 MGP)
You cannot use this motor with encoder because LDmicro is too slow.
LDmicro can't handle 1330 counts per revolution.
You can use PWM without the encoder and a H-bridge for controlling the speed and direction.
(no subject) (by hari )
with out encoder i have already done it. ok i will change my motor. still if possible can you write ladder program i want to use only one encoder for speed only..!!
(no subject) (by Alex)
Hello, Do you have an example for speed control using h bridge L293D?
(no subject) (by Alex)
i am using a 6v dc gear motor
(no subject) (by Alex)
16f877a, 20Mhz crystal
(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.
(no subject) (by s.meiyazhakan)
H-bridge for controlling the speed and direction.
(no subject) (by s.meiyazhakan)
H-bridge for controlling the speed and direction. example
(no subject) (by Ihor Nehrutsa)
Currently, strictly speaking, ldmicro encoder makes sense only as a manual control device with not fast speed.
Currently ldmicro use a software algorithm with an LPC cycle time. This algorithm not for motor control.
Motor control needs an interrupt algorithm(not released now).
DC MOTOR PWM AND DIRCTION CONTROL (by s.meiyazhakan)
sir IAM USING THIS CIRCUITE HOW TO GENARATE PWM SEND EXPLE
IN1 AND IN2 EXPLAIN..
Post a reply to this comment:
|