Pages: [1] 2 3   Go Down
Author Topic: arduino robot with parallax ping sensor and servos  (Read 2852 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Tesla Member
***
Karma: 116
Posts: 8938
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
« Last Edit: August 15, 2010, 04:46:54 am by babis1098 » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 46107
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!!#
« Last Edit: August 17, 2010, 12:46:06 pm by babis1098 » Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 238
Posts: 24370
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 549
Posts: 46107
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!! :smiley :smiley ::)for someone to helpme!!
« Last Edit: August 17, 2010, 03:47:54 pm by babis1098 » Logged

Ohio
Offline Offline
Full Member
***
Karma: 0
Posts: 227
Arduino Hexapod
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

0
Offline Offline
Tesla Member
***
Karma: 116
Posts: 8938
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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="";
      }
   }
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

there is any code for beo bot robot  with ping sensor which working with arduino???
« Last Edit: August 19, 2010, 04:11:57 pm by babis1098 » Logged

UK
Offline Offline
Faraday Member
**
Karma: 16
Posts: 2883
Gorm deficient
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Per Arduino ad Astra

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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 smiley-wink smiley-wink
« Last Edit: August 20, 2010, 08:00:37 am by babis1098 » Logged

Melbourne, Australia
Offline Offline
Full Member
***
Karma: 0
Posts: 219
Have you tried turning it off and on again?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey loyla,

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

Logged

Pages: [1] 2 3   Go Up
Jump to: