Shop OBEX P1 Docs P2 Docs Learn Events
Need a code! — Parallax Forums

Need a code!

NeptuneNeptune Posts: 3
edited 2006-11-22 18:05 in Robotics
Hello all,

I'm new to pbasic and to boe bot building. Matter of fact, this is my first post to this forum. My question- Can anyone provide me a source code that combines "Roaming with ping" and·"accelerometer use to prevent falling over on a hill" ?????

Thank you for any help- I'm desperate!!!!

Chris

Comments

  • crgwbrcrgwbr Posts: 614
    edited 2006-11-21 12:36
    Neptune,
    You'll soon find, as you work with robotics more, experamentation is one of the most fun things in all of electronics or programming. So, insteid of asking someone to write a program for you; you should try to learn to understand the code used to read a PING)) sensor, and understand the code used to read the Mesmic accelometer. Then you'll find that it isn't hard at all to write your own program to read bot sensors at once. Below, you'll find two links; they are links to old Nuts & Volts articles, the first one is about the PING)) sensor, the second about Mesmic Accelorometers.

    http://www.parallax.com/dl/docs/cols/nv/vol6/col/nv119.pdf

    http://www.parallax.com/dl/docs/cols/nv/vol3/col/nv92.pdf

    I think you'll find that you'll be able to write that program in no time.

    Happy Coding,
    crgwbr

    P.S. Shouldn't this thread be in the robotics forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    NerdMaster
    For
    Life
  • NeptuneNeptune Posts: 3
    edited 2006-11-21 15:48
    Thanks for the links, however I'm still not understanding the explanations. You're right, experimentation is fun- but when you're just starting in pbasic- its extremely frustrating. I'm the type of person who likes to experiment and "reverse-engineer" programs. That's how I learn best- so let me restate my request...I need to find a program that combines roaming with ping and one that deals with an accelerometer to prevent tipping over. And yes I'll also post this to the robotics forum- I origionally posted here because it is a completed project forum. Source codes are completed projects. Aren't they?

    Thanks again
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-11-21 17:56
    This thread is being moved from the·Completed Projects·Forum to the·Robotics Forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Steph LindsaySteph Lindsay Posts: 767
    edited 2006-11-22 18:05
    http://forums.parallax.com/showthread.php?p=560570

    The Stamps in Class "Mini Projects" thread at the above link has example applications for using the Ping))) sensor with the Boe-Bot, and for using the Memsic Dual-Axis accelerometer with the Boe-Bot, but not both together.· These examples should be more understandable if you have completed the activities in the Robotics with the Boe-Bot text, because they are written by the same author in the Stamps in Class format. Once you have tried these programs and "reverse engineered" them to see how they work, you will have the pieces you need to build a program that uses both sensors.

    Now for putting those pieces together:·for detailed examples of how to build·BS2 robotics programs that·coordinate·multiple sensors, try "Applied Robotics with the SumoBot" which is a free download from the bottom of this page:

    http://www.parallax.com/detail.asp?product_id=27402

    -Stephanie Lindsay
    Editor, Parallax Inc.
Sign In or Register to comment.