Go Down

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

loyla

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???

zoomkat

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.

loyla

#2
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!

PaulS

Quote
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.

loyla

#4
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!!!
thank!!#

AWOL

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.

PaulS

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?

loyla

#7
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
http://www.youtube.com/watch?v=_r1knQbsKbU
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!!

vinceherman

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

http://arduino.cc/en/Tutorial/Sweep


zoomkat

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

http://www.arduino.cc/en/Tutorial/TextString

Quote

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

loyla


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

loyla

#11
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???

Groove

Quote
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

loyla

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

InvalidApple

Hey loyla,

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


Go Up