Motor Encoders

6 posts / 0 new
Last post
zaf
Motor Encoders

Hi everyone,

I've just discovered this site (really cool project!) and have a question (probably already answered) about the MonsterBorg.

I'm not seeing any motor encoders - are there any? if not, how is speed controlled with the 4 motors?

Cheers!

dinotoo
Hi,

Hi,

No encoder on monsterborg

Power of each motor came from camera frames analysis and track recognition.

Dinotoo

Arron Churchill
Arron Churchill's picture
Motor speeds

The motors are driven by a PWM controlled output, which enables the MonsterBorgs to control the voltage to the left and right side motors.

For the racing we calibrate each robot so that they move at the same speed when 100% power is requested for both motors. This is achieved by adjusting the maximum allowed PWM level on each robot.

As Dinotoo says above it is also possible for the robots to determine how fast they are going by seeing how much objects have moved in the camera image. We use this technique with the coloured lanes on our track to correct for the robots drifting left or right when they are supposed to be driving straight :)

zaf
Thanks for the response.

Thanks for the response.

So there are 4 variables (0-100) one for each motors power level or 2 variables for the left and right side?

And what about handling reverse?

Arron Churchill
Arron Churchill's picture
Two power levels, left and right

There is a left and a right power level for each motor between 1.0 for 100% forwards to -1.0 for 100% reverse, with 0.0 meaning stopped.

Slower speeds can be given as fractional values, for example:

  • 0.9 is 90% forward
  • 0.33 is 33% forward
  • -0.75 is 75% reverse

The motors are controlled by one of our ThunderBorg motor controllers. The left pair of motors are wired in parallel to one of the outputs, and the right motors to the other one.

dinotoo
2 for 4 motors with the

2 for 4 motors with the formulapi code but maybe 4 for 4 with custom code ???

Motors can go reverse when stucked or flipped for example

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Syntax highlight code surrounded by the <pre class="brush: lang">...</pre> tags, where lang is one of the following language brushes: bash, cpp, perl, python.
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Comment Images
Files must be less than 10 MB.
Allowed file types: png gif jpg jpeg.
Comment Attachments
Files must be less than 10 MB.
Allowed file types: txt pdf nfo doc docx rtf jpg png gif bmp zip tar gz csv xls.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.