Regbot calibration

From Rsewiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "== Calibration == In the REGBOt GUI, the "robot" pane has the basic configuration 800px")
 
(Calibration)
Line 4: Line 4:
  
 
[[File:gui-robot.png | 800px]]
 
[[File:gui-robot.png | 800px]]
 +
 +
Figure 1. Basic robot settings.
 +
 +
* "Base WB [m]" is the distance between driving wheels. This is important for heading calculation and turning.
 +
* "gear N" is gear reduction - normally 9.68
 +
* "pulses per rev" is encoder configuration - number of pulses for one motor revolution - normally 48.
 +
* "wheel radius" is important for distance calculation, and a bit for velocity and turning.
 +
* "COG  tilt offset" is important when keeping balance, should be adjusted, so that "tilt" (lower right) is 0, when in balance (hand held).
 +
 +
== Encoder ==
 +
 +
Encoder calibration attempt to compensate for the uneven sized magnets in the magnetic encoder.
 +
 +
[[File:gui-encoder.png | 800px]]
 +
 +
Figure 2. Calibration the encoder. The graph shows for all 48 encoder tics the time between the tics at constant velocity. Ideally it should be a straight line.
 +
 +
* To calibrate check both "Get raw data regulary" and "Run motor at 3V" (wheels away from floor).
 +
This will show some rather uneven lines in the plot.
 +
* press the "Do calibration" button, once the velocity is stable.
 +
This should make the calibrated lines more straight.
 +
* NB! the calibration will only work as long as all encoder tics are counted, i.e. not after a reboot.

Revision as of 09:50, 9 February 2019

Calibration

In the REGBOt GUI, the "robot" pane has the basic configuration

Gui-robot.png

Figure 1. Basic robot settings.

  • "Base WB [m]" is the distance between driving wheels. This is important for heading calculation and turning.
  • "gear N" is gear reduction - normally 9.68
  • "pulses per rev" is encoder configuration - number of pulses for one motor revolution - normally 48.
  • "wheel radius" is important for distance calculation, and a bit for velocity and turning.
  • "COG tilt offset" is important when keeping balance, should be adjusted, so that "tilt" (lower right) is 0, when in balance (hand held).

Encoder

Encoder calibration attempt to compensate for the uneven sized magnets in the magnetic encoder.

Gui-encoder.png

Figure 2. Calibration the encoder. The graph shows for all 48 encoder tics the time between the tics at constant velocity. Ideally it should be a straight line.

  • To calibrate check both "Get raw data regulary" and "Run motor at 3V" (wheels away from floor).

This will show some rather uneven lines in the plot.

  • press the "Do calibration" button, once the velocity is stable.

This should make the calibrated lines more straight.

  • NB! the calibration will only work as long as all encoder tics are counted, i.e. not after a reboot.
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox