In the video you will see the walker move forward, backwards, turn to the left, turn to the right, and then move forward at a faster speed.

Description

Our robot walker is inspired by the following video:

Lack of pieces limited our design but the basic premise is the same:  two motors attached to a gear train that facilitate movement.

Image

Figure 1 - Plan View of Walker

You can see the basic frame of the walker here, with two motors on each side.

Image

Figure 2 - Side View of Walker

Here the back legs are what provide the friction necessary to move the walker. You can also see the gear train.

Code

!/usr/bin/env python3

ev3 = Device("this")

from time import sleep

def main():

MotorC = ev3.LargeMotor('outC')

MotorB = ev3.LargeMotor('outB')

MotorB.run_forever(speed_sp=300)

sleep(1)

Moving forward:

MotorB.run_forever(speed_sp=300)

MotorC.run_forever(speed_sp=300)

sleep(6)

MotorB.stop(stop_action='brake'); MotorC.stop(stop_action='brake')

sleep(1)

Moving backward:

MotorB.run_forever(speed_sp=-250)

MotorC.run_forever(speed_sp=-250)

sleep(4)

MotorB.stop(stop_action='brake'); MotorC.stop(stop_action='brake')

sleep(1)

Turning right:

MotorB.run_forever(speed_sp=350); MotorC.run_forever(speed_sp=-100)

sleep(6)

MotorB.stop(stop_action='brake');MotorC.stop(stop_action='brake'); sleep(1)

Turning left:

MotorC.run_forever(speed_sp=350); MotorB.run_forever(speed_sp=-100)

sleep(6)

MotorC.stop(stop_action='brake');MotorB.stop(stop_action='brake'); sleep(1)

Supa fast

MotorB.run_forever(speed_sp=500)

MotorC.run_forever(speed_sp=500)

sleep(10)

if name == 'main':

main()