Need a code!
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
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
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
Thanks again
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
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.