Level: New Member

Joined: Sun. Mar 4, 2018

Posted by sanvipatel:
Sun. Mar 4, 2018 - 06:55 AM
Here, I want to calculate distance travelled by robot in atmega 2560? I know the formula distance = Wheel's circumference * motor's rotation in rpm. But I am not getting how to apply this formula for the following problem.

What is the approximate distance covered by the robot in 2 seconds, if OCR5AL=OCR5BL=0xB2. Given that, maximum speed at which the motors rotate is 300 rpm and wheels have a radius of 2.8cm.
Where
OCR5AL is Output compare register low value for Left Motor
OCR5BL is Output compare register low value for Right Motor
Maximum speed is attained, when OCR5AL =OCR5BL =0xFF.

## Tags:

Last Edited: Sun. Mar 4, 2018 - 01:53 PM