Hi All ,
Have a nice day
I am designing a robot in real world and i want to plot everything in X,Y (Cartesian) coordinates , I just want to use the encoders of wheels to determine the current position of mobile robot and its orientation depending on a specific calculation formula even if it will lead to inaccurate calculations .
Actually , I found out this formula below to compute x, y coordinates from encoder data but I still confused in some sides of this formula
cm = conversion factor that translates encoder pulses into linear wheel displacement
Dn = nominal wheel diameter (in mm)
about 20 Cm
Ce = encoder resolution (in pulses per revolution)
Encoder resolution: 1000 state changes per 3 wheel rotations
n = gear ratio of the reduction gear between the motor (where the encoder is attached) and the
drive wheel.
Gearbox ratio: 86.8:1
I had a Rover 5 chassis form Dagu with two normal DC motors and two encoders (incremental rotary encoder) per each wheel, how could I translate the pulses of encoders or how to work out the x.y position of the robot based on the shaft encoder data.
There are also 4 small wires with female headers. RED is +5V for the encoder , BLACK is 0V (ground) , WHITE is signal A , YELLOW is signal B . The impotent wires in each encoder are signal A and signal B ,so
How to get values of NL , NR from the formula above according to signal A & signal B ?
Is the value of NL is the direct value from wire signal A or signal B ? the same question for NR .
Actually, also I found the post (https://www.robotshop.com/letsmakerobots/node/24031) that Mr. OddBot posted it which explain how to measures the speed and direction of a rotating shaft by using quadrature encoder, but I didn’t know how to function that post in useful way to solve my problem .
Thanks a lot