Author Topic: Arduino IDE  (Read 1641 times)

0 Members and 1 Guest are viewing this topic.

Offline Adityav95Topic starter

  • Full Member
  • ***
  • Posts: 62
  • Helpful? 0
Arduino IDE
« 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
« Last Edit: December 27, 2010, 10:34:13 AM by Adityav95 »

Offline ballbreaker

  • Full Member
  • ***
  • Posts: 78
  • Helpful? 1
Re: Roboduino object avoider HELP!
« Reply #1 on: December 26, 2010, 03:46:21 AM »
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
For Those About To Rock, We Salute You!

Offline Adityav95Topic starter

  • Full Member
  • ***
  • Posts: 62
  • Helpful? 0
Re: Roboduino object avoider HELP!
« Reply #2 on: December 26, 2010, 10:07:03 AM »
@ 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.

Offline greasemonkey94

  • Jr. Member
  • **
  • Posts: 29
  • Helpful? 1
Re: Arduino IDE
« Reply #3 on: December 27, 2010, 10:57:35 AM »
Hello,

The arduino IDE is really easy to use and makes it less difficult for beginners,

try here ---------->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.
« Last Edit: December 27, 2010, 11:03:49 AM by greasemonkey94 »

Offline Graynomad

  • Full Member
  • ***
  • Posts: 79
  • Helpful? 7
    • Skype - grayn0mad
Re: Arduino IDE
« Reply #4 on: December 27, 2010, 05:27:56 PM »
Have a look at this page from the Arduino site for many coding examples

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

Dozens of experts regularly spend time helping beginners with hardware amd software problems.

EDIT: Just realised Greasemonkey already posted the tutorials link.

« Last Edit: December 27, 2010, 05:33:08 PM by Graynomad »
Scattered showers my arse -- Noah, 2348BC.

Offline Adityav95Topic starter

  • Full Member
  • ***
  • Posts: 62
  • Helpful? 0
Re: Arduino IDE
« Reply #5 on: December 27, 2010, 10:25:14 PM »
Thnx Greynomad and greasemonkey94. I guess it should be pretty easy to program now....

Offline Abhigiri

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
Re: Arduino IDE
« Reply #6 on: December 29, 2010, 01:05:24 AM »

aditya how about i make the program and help u out
« Last Edit: December 29, 2010, 01:06:45 AM by Abhigiri »

 


Get Your Ad Here

data_list