Society of Robots - Robot Forum
Software => Software => Topic started by: Adityav95 on December 26, 2010, 02:51:23 AM
-
hey guyz,
I want to make a robot, details of which are given below but the thing is i have no knowledge of programming in the arduino software and have no idea about the code for my robot ???. Urgent help required. A general idea about coding in arduino or tutorial will ALSO be appreciated. :) SORRY THIS IS SO LONG!
I have the following parts with me:
1) The roboduino
2) 3 x Hitec HS-425BB
3) A GP2D12 Sharp IR sensor
4) A Tenergy 7.2V Battery pack which i will regulate to 6V.
I will be making the chassis and the wheel with the stuff lying around.
What i intend to make is a object avoiding robot that uses a servo to look around for another way etc.
This is what i would like my bot to do:
1) If there is nothing in front: obviously keep going straight...
2) If there is something in the front really close then stop, look around(using the servo on which the IR is placed).
3) If there is something not too close, then slow down(using fuzzy logic)
4) If there is a wall on 3 sides i.e. front, left and right, the robot should reverse for like 4-5 seconds and then look again for a new direction.
This might sound too ambitious for my first robot ever but I'm determined to build it.
Thnx in advance. ;D
-
you can do it easily if you know how to program so i recommend to learn programing before because it the only real skill you need for this one since you don't have to make the microcontroller and building it isnt that difficult if you want to keep it simple
-
@ ballbreaker: yeah, i would definitely love to learn programming but where do i learn programming in the arduino IDE? If there is a tutorial on the basics, pls let me know, i would be grateful.
-
Hello,
The arduino IDE is really easy to use and makes it less difficult for beginners,
try here ---------->http://arduino.cc/en/Tutorial/HomePage (http://arduino.cc/en/Tutorial/HomePage)
look at the servo sections,
here is the pseudo code
1)turn servo left ,
2)get sharp reading
3)turn servo right
4)get sharp reading
5)if(left reading< right reading) //object closer on left side
{
go right
}
else if(right reading < left reading) //object closer on right
{
go right
)
you can also define a danger threshold and if object is less than the threshold range, tell the robot t decide where to go.
I made a similar code somewhere ,I don't know if it works though ;) but I think it should.
-
Have a look at this page from the Arduino site for many coding examples
http://arduino.cc/en/Tutorial/HomePage (http://arduino.cc/en/Tutorial/HomePage)
The Arduino environment hides most of the low-level code from you which I think is good for beginners, you can get a simple working program running in minutes.
Another feature of Arduino is the support you'll get on the forum
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl (http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl)
Dozens of experts regularly spend time helping beginners with hardware amd software problems.
EDIT: Just realised Greasemonkey already posted the tutorials link.
-
Thnx Greynomad and greasemonkey94. I guess it should be pretty easy to program now....
-
aditya how about i make the program and help u out