arduino robot with parallax ping sensor and servos

i have made a robot with two servos for movement and one servo for rotate the ping sensor but i can find any code!!!there is???

There is a forum search function at the top of the page that might produce some previously posted info.

i have search but i can find any code which work perfect !!!
i ask if there is any code which work perfect with two continius servo for movement and parallax ping sonar sensor which rotate on servo to make a avoid object robot!!
please if there is any code which has tested and work perfect , post it here!!!thanks!

i have search but i can find any code which work perfect !!!

So write some!

Or post some that doesn't quite work, and explain what doesn't quite work, and we'll help you get it working, if it is possible.

for example i try the code for roving robot!!!
my robot turn all the time and nothing more
if there is any code ready for my robot please post it here!!!
thank!!#

You haven't described thr geometry, configuration or performance of your robot, so how do you expect anyone to be able to post code for it?

How about I send you my address, and you send me your computer, your robot, and your requirements. I'll program it, and send it back to you.

Then, where will be the sense of accomplishment at having achieved a working robot?

my computer run win xp
i have two continuous servos for movement, one parallax ping sonar sensor and one servo which turn the sensor
i want to make a avoid object robot
something like this

this is boe bot with ping sonar
i believe that this code it all right for my robot
my mail is babis10981098@yahoo.gr
i am looking forward!! ::slight_smile: ::slight_smile: ::)for someone to helpme!!

Go download the sweep tutorial and try it out.
If you have difficulties with it, tell us about it and we will help you.

Bottom is some code you can use to test your servos. You will need to get the below wstring library.

//zoomkat 7-30-10 serial servo test
//type servo position 0 to 180 in serial monitor
//for writeMicroseconds, use a value like 1500

#include <WString.h> //provides easy string handling
String readString = String(100);
#include <Servo.h>
Servo myservo; // create servo object to control a servo

void setup() {
Serial.begin(9600);
myservo.attach(9);
}

void loop() {

while (Serial.available()) {
delay(10);
if (Serial.available() >0) {
char c = Serial.read(); //gets one byte from serial buffer
readString.append(c); } //makes the string readString
}

if (readString.length() >0) {
Serial.println(readString);
int n;
n = atoi(readString); //convert string to number
myservo.writeMicroseconds(n);
//myservo.write(n);
readString="";
}
}

i had test my continuous servos and the 0-180!!it all right with it!!

there is any code for beo bot robot with ping sensor which working with arduino???

is any code for beo bot robot

Not sure, but there probably is some for a boe bot.

If there isn't, why don't you write some, and post it here for others to share?

if i know it i will to it!!
but i ask it because i do not know so well to programing arduino!!!
so if there any code for beo bot with arduino board i will convert it for my robot :wink: :wink:

Hey loyla,

That's ok, how much programming experience do you have?

hi!!!
not at all!!!
only the basic!!

So, start with the basics.
Look at tutorials and look at how to connect and drive a single servo.
Get it to sweep.
Then look at how to control continuous rotations "servos", how to stop and reverse them consistently.
Then look at how to drive two continuous rotation "servos" and one standard servo.
Then look at how to read the range finder.

Baby steps, or you'll just get someone else's code that you don't understand.

Or to put it another way, make sure you understand the fundamentals of an Arduino sketch first: http://arduino.cc/en/Tutorial/Sketch

Then go here http://arduino.cc/en/Tutorial/Sweep and make sure you understand everything about that sketch (just moves a servo from side to side).

Then maybe branch out a bit into controlling multiple servos (for instance here: http://www.fabiobiondi.com/blog/2009/11/manage-two-servos-using-arduino-and-a-protoshield-board/)

or reading a range finder: http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor

You won't get anyone to write complete code for you, and you won't learn anything unless you try. Why did you build a robot that you had no prospect of controlling? If you just want a ready made toy go and buy a BigTrak (http://www.firebox.com/product/2734/Bigtrak), they're cool.

Andrew

i have done all this!!but i do not know how to combine all this to make a robot like boe bot!!!!

i have done all this!!but i do not know how to combine all this to make a robot like boe bot!!!!

Then if you want a boe bot, you will just have to buy one.