Shop OBEX P1 Docs P2 Docs Learn Events
Meet Fizgig (a work in progress) — Parallax Forums

Meet Fizgig (a work in progress)

skynuggetskynugget Posts: 172
edited 2010-01-24 23:59 in Robotics
Hey all,
I've been drooling over the idea of a walking robot for years, and have never been capable of building one from scratch, or affording a kit like the penguin (drool). I've been looking for a use for a MoboStamp-pe i had laying around, and i came across this video of the illusive MoBug.

With Phil Pilgrims permission I went ahead and built my own! If you have a dremel, a drill, and a file you can too! You just need a strip of aluminum, (acrylic might work) and an old metal coat hanger.

So far i have some basic walk routines figured out using the avr co-processor code from this post. Thanks again Phil!
You'd be surprised how big of a step you can make with 2 servos, he actually gets around very quickly. Soon i hope to load him up with lots of cool sensors for autonomous navigation. My wife, who named him, demands that he has antenna as well. I hope by posting this now, it will make me feel more obligated to actually finish a project [noparse]:)[/noparse]

At this very moment i'm using a couple of old xbox joysticks and a stamp homework board to control the servos, so i can explore some more complicated maneuvers to see what he can do. The motherboard has pull-up resistors on the available pins, so it makes rctime hard, so the homework board was my quick fix. My walk routines are too sloppy for public consumption yet, but here is the code to control him with pots. Just use the schematic for the "prefered" pot circuit from the RCTIME portion of the bs2 helpfile.


tilt      PIN    10
stride    PIN     9

tval      VAR     Word
sval      VAR     Word

Main:
  DO
    HIGH tilt                             ' charge the cap
    PAUSE 2                             '   for 1 ms
    RCTIME tilt, 1, tval               ' measure RC discharge time

    HIGH stride                             ' charge the cap
    PAUSE 2                             '   for 1 ms
    RCTIME stride, 1, sval               ' measure RC discharge time

    DEBUG HOME, DEC sval,CLREOL
    DEBUG CR,DEC tval, CLREOL              ' display value
    PAUSE 50


    sval = sval */ 185 ' Scale by 0.724.
    sval = sval + 450 ' Offset by 500.
    PULSOUT 5, sval ' Send pulse to servo.

    tval = tval */ 185 ' Scale by 0.724.
    tval = tval + 400 ' Offset by 500.
    PULSOUT 1, tval ' Send pulse to servo.

  LOOP
  END


1600 x 1200 - 577K

Comments

  • ercoerco Posts: 20,256
    edited 2010-01-20 21:19
    That's some sweet & effective minimalism in that video. Please keep updating with your walker's progress and post videos when you get it going.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-01-20 21:52
    Nicely implemented, skynugget! When it comes time to self-power the unit, consider using a pair of CR123s in series. These are lithium 3V primary cells; they're compact and last a long time.

    What did you use for feet? I had a hard time finding something that provided adequate traction on the front legs.

    -Phil
  • skynuggetskynugget Posts: 172
    edited 2010-01-20 22:37
    thank you sir!

    i have a 7v .7ah lion from a camera i plan on mounting in the underbelly as you did, its a lil bit thinner and lighter then the cr123's. im hoping i can figure out away for him to dock a set of antenna on to a charging clip or something.

    the best thing found for traction is to cut the hanger at about a 45 degree bevel on the end, but it was rough on the hardwood. So i ended up drilling out some pencil erasers and cinching them tight with heat shrink tubing. They are just about as effective, without scratching anything.
  • skynuggetskynugget Posts: 172
    edited 2010-01-24 17:04
    now he can finally see!

    i have him roaming around with ir now. it works pritty good, unless you have black furniture, lol. (took me a while to realize that, doh!)

    heres a video: www.youtube.com/watch?v=n-Ujtqk0eWg

    i attached the bs2 code, hes not very smart yet, so the code is priity easy to get.

    it flows like this:
    check for ir bump
    if no bump continue forward
    if bump
    back up, turn left, then continue forward
    



    thanks forum! would have taken so much longer to get where i am.
    2288 x 1712 - 759K
    2288 x 1712 - 810K
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-01-24 19:22
    'Looks like you got the gait figured out. Very nice!

    -Phil
  • skynuggetskynugget Posts: 172
    edited 2010-01-24 23:59
    thanks phil, i almost have the gait figured out, its rather crude right now, and could probably smoothed up a bit. i can almost have him turn in place (pretty tight circle), its a rather spastic motion though, kinda like when Homer Simpson falls on the ground and runs in a circle.

    here's an interesting side bar, if you are looking to build a Lithium Ion battery charging circuit, this guy provides all the info you need:shdesigns.org/lionchg.html

    Post Edited (skynugget) : 1/25/2010 12:04:41 AM GMT
Sign In or Register to comment.