Shop OBEX P1 Docs P2 Docs Learn Events
PENGUIN ROBOT Run - the Code — Parallax Forums

PENGUIN ROBOT Run - the Code

HumanoidoHumanoido Posts: 5,770
edited 2007-12-28 05:23 in Robotics
Title: Penguin Run
Code Name: penguin_run.bpx
Purpose: Create a motion control template to give Penguin robot
the ability to run


Penguin Robot - the Runner!

This new Penguin Robot template is a motion control program
that adds the function of run to penguin. Penguin will run a short
distance, then stop. Push reset to repeat.

The code can be used in other motion control software. By
making a few modifications to the code, the running distance
can be decreased or increased. The run speed can be made
faster or slower, or the run speed can be varied in real time.

(Note: Requires Servo Calibration. See code comments.)

Now try racing against BoeBot and see what happens!!!

humanoido

' Penguin Runner uses the Double Motion Control Engine (DMCE). This
' consists of two subroutines, each one is dedicated to a servo. With
' this technique, it's possible to add fuzzy logic effects by driving
' one servo motor and resting the other. Effects of coasting a servo
' through the DMCE and inertia can have some remarkable effects.

Post Edited (humanoido) : 12/28/2007 5:29:17 AM GMT
Sign In or Register to comment.