Pages: [1]   Go Down
Author Topic: Arduino Pro Mini robot  (Read 1315 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 14
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am young person with a arduino and I would want you help me with program for a robot that I make.

Motor 1 movement front behind.
Motor 2 left right.
The robot is moved front with Motor 1, when finds obstacle the left IR sensor Motor 1 stops, and turns Motor 2 for 1 second right, stops and repeats the movement front in Motor 1 The himself it becomes with the right IR of sensor making him Motor 2 turn for 1 second left.

http://www.arduino.cc/en/Main/ArduinoBoardProMini

http://www.sparkfun.com/commerce/product_info.php?products_id=8905

http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/IR/List/0/SortField/4/catpageindex/3/ProductID/172/Default.aspx

http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/IR/List/0/SortField/4/catpageindex/3/ProductID/177/Default.aspx

Thank you very much.  smiley
Logged

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

Some hints:

Start simple and build up.
Don't put it all together and expect it all to work, or be easy to debug.
Make sure you've got simple sketches to test all of your components in isolation from each other.
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.

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

i need a code.
Logged

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

Quote
i need a code.
We need an idea of how your robot is wired up.
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.

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

Thank you very much, I have the elements but I do not know how I connect him in Arduino :-[
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 54
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Gather all of the information that you can about each item you have (the links you provided have lots of information), useful Arduino libraries, similar system forum threads, etc.

Get each item to work on its own and then with the other subassembly parts (i.e. ir led with ir sensor, motor with motor controller). Make code to control each part/subassembly.

Combine all of the parts on a prototype board and try to combine the code so that everything works together how you want it.

Place all of the parts on permanent boards and structures.

I am relatively new to microcontrollers and I find that that is a good strategy. There is a steep learning curve but the more you work with various parts, the easier it is to make larger assemblies work. If your robot project gets too tough for you, think of easier/smaller projects to build up your knowledge.
« Last Edit: September 04, 2009, 05:38:33 pm by Lazer57 » Logged

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

Thank you very much for the answer but I cannot accomplish alone me such something. I believe that if I had my ready code it would be easier I see that it works. It does not tease, rather him I will abandon because to me it appears very difficult. I thank you, and my apology for English (http://babelfish.yahoo.com)
Logged

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

Have a look around the Playground and at the examples for the libraries.
There is plenty of working code with explanations there.
Until you have a clear idea of what it is you want to do, and how you think you want to get there, it is going to be difficult to be more specific.
Google is your friend.
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.

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

I didn't accomplish something,  help with code?
Logged

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

Are you saying you need to learn programming, or do you need help with a particular aspect of programming the Arduino?

Have you tried any of the examples in the Playground and examples?
Do you understand how they work and what is different about them and what you want to achieve?

Tell us what you have done, what you want to do and we'll probably be able to help, but asking for "code" when we've got no idea what you've got is pointless.
« Last Edit: September 07, 2009, 07:03:44 am by AWOL » 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.

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

I do not know  your arduino for this I ask help
Logged

Pages: [1]   Go Up
Jump to: