Save 15% on “active” status Pololu-brand products using code MEMORIALDAY26

Comments by stefan p.

  • How to make a Balboa robot balance, part 4: a balancing algorithm

    How to make a Balboa robot balance, part 4: a balancing algorithm

    - 29 January 2018

    ’m Back.
    Hey, with further sleuthing of code I’m guessing… are you folks reading the accelerometer values in Balance.cpp?
    It seems like there is testing if there is greater than 0 values in Z at rest . and a test with the x axis to run the standup code. I’m I right? Is it possible these tests are not > 0 at 90 degrees?

    thanks in advance.

  • How to make a Balboa robot balance, part 4: a balancing algorithm

    How to make a Balboa robot balance, part 4: a balancing algorithm

    - 29 January 2018

    Hi,

    I can get my balboa with arms installed to balance, if I start it standing up, but it will not stand up from a 90 or 85 degree angle lying down.(the angle the robot rests at lying down with the arms installed.)

    I have been changing these values in Balance.cpp:

    if (angleRate > -2 && angleRate < 2)
    {
    // It's really calm, so we know the angles.
    if (imu.a.z > 0)
    {
    angle = 110000; changed to 90000 or 80000
    }
    else
    {
    angle = -110000; changed to -90000 or -80000
    }
    distanceLeft = 0;
    distanceRight = 0;
    }
    }
    I am I on the wrong track?

    I cannot get the red led on with the initial standup code to engage when I press button A.

    What part of the balance program “sees” the resting angle when the robot is face down at 110 degrees?

    Where should I look to change it to about 87 degrees?

New Products

TPS2116 Power Multiplexer Carrier with USB Type-C Connector (non-USB priority)
Pololu Isolated Solid State Relay/Switch, SPST, 100V, 4.5A
MPQ6612A Single Brushed DC Motor Driver Carrier
QTRX-MD-01RC-S Reflectance Sensor: 1-Channel, 8mm Wide, RC Output, Low Current, Side-Entry Connector
Breakout for JST PH-Style Connector, 5-Pin Male Side-Entry, with SH
Glideforce GF01-122110-1-66 Micro Linear Actuator with Limit Switches: 12V, 8.1kgf, 6mm/s, 100mm Stroke
0.100″ (2.54 mm) Breakaway Male Header: 1×2-Pin, Straight, Black, 100-Pack
ACS37030LMYATR-025B3 Current Sensor Compact Carrier -25A to +25A, 3.3V
24V, 8A Step-Down Voltage Regulator D42V110F24
JST PH-Style Cable, 2-Pin, Female-Female, 25cm
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Menu
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors