Go Down

Topic: arduino robot with parallax ping sensor and servos (Read 4851 times) previous topic - next topic


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.
Google forum search: Use Google Advanced Search and use Http://forum.arduino.cc/index in the "site or domain:" box.


Aug 15, 2010, 10:43 am Last Edit: Aug 15, 2010, 11:46 am by babis1098 Reason: 1
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.


Aug 17, 2010, 07:44 pm Last Edit: Aug 17, 2010, 07:46 pm by babis1098 Reason: 1
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!!!


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?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


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?


Aug 17, 2010, 10:46 pm Last Edit: Aug 17, 2010, 10:47 pm by babis1098 Reason: 1
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!! ::) ::) ::)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() {

void loop() {

       while (Serial.available()) {
         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) {
     int n;
     n = atoi(readString); //convert string to number
Google forum search: Use Google Advanced Search and use Http://forum.arduino.cc/index in the "site or domain:" box.


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


Aug 19, 2010, 11:11 pm Last Edit: Aug 19, 2010, 11:11 pm by babis1098 Reason: 1
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?
Per Arduino ad Astra


Aug 20, 2010, 02:53 pm Last Edit: Aug 20, 2010, 03:00 pm by babis1098 Reason: 1

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 ;) ;)


Hey loyla,

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

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131