Changes between Version 61 and Version 62 of UserGuideGit


Ignore:
Timestamp:
Nov 13, 2017, 3:35:31 PM (8 years ago)
Author:
fma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UserGuideGit

    v61 v62  
    161161[[Image(py4bot-gui-servocal.png, 300px)]]
    162162
    163 Most servos have a range of 180°. So, it is important to mount them on the robot so the servo neutral position (''SNP'') match the joint neutral position (''JNP''). Here is the leg neutrals usually used for a 3 DoF leg:
     163Most servos have a range of 180°. So, it is important to mount them on the robot so the servo neutral position (''SNP'') matches the joint neutral position (''JNP''). Here is the leg neutrals usually used for a 3 DoF leg:
    164164
    165165[[Image(IK3DoF_neutral.png, 300px)]]
     
    169169In the above position, ''SNP'' are all 90°, as it is standard servo neutral position for 1500µs.
    170170
    171 Looking how '''Py4bot''' internally manages angles (http://www.py4bot.org/wiki/UserGuideGit#a3DoFlegs), we can see that in this same position, ''JNP'' are:
     171Looking how '''Py4bot''' internally manages angles (http://www.py4bot.org/wiki/UserGuideGit#a3DoFlegs), we can see that in this position, ''JNP'' are:
    172172
    173173 * coxa = 0°
     
    181181Offsets and ratios are defined in the {{{SERVO_CALIBRATION}}} table. This table also has a '''pulse90''' param, to fine tune the ''SNP'' (it is not always possible to mount the servo so 1500µs is the perfect ''JNP'').
    182182
    183 Py4bot has a graphical tool, '''{{{py4bot-gui-servocal.py}}}''', to help set up this table once the robot is build. Here is how to use it.
     183Here is how to use '''{{{py4bot-gui-servocal.py}}}'''.
    184184
    185185We first need to enable the servo, by clicking the '''Enable''' checkbox. Then, we need to check if the servo rotates the right direction: increasing the pulse value should make the joint turning in the trigonometric sense regarding our previous schematic. If it is not the case, click the '''Invert''' checkbox (usually, coxa joints are all the same, and other joints should be inverted for legs of one side, but it depends if there is a symmetry in the mechanics or not). Note that from within this tool, the servo direction won't change! But the ratio will be inverted, so '''Py4bot''' computes angles the right way.