PDA

View Full Version : want help on building ultrasonic obstacle avoiding robot



manjula123
08-21-2013, 10:16 AM
Hi !, :)
I'm going to build simple ultrasonic obstacle avoiding robot .I know that it can be easily done if I bought motor control board,but I'm looking for a project that I can build motor control board too,then the only component that I want to buy is Ultrasonic sensor,other parts would make my self by assembling parts.I think you can understand what I'm looking for.I'm looking for a diagram that can detect sensor's signals and control the speed of the motors.
thank you! :happy:

CasperH
08-21-2013, 03:00 PM
A Google search for "obstacle avoiding robot circuit diagram" resulted in:

http://www.roboticsbible.com/project-obstacle-avoiding-robot.html
http://letsmakerobots.com/node/17316?page=5

However, could you be slightly more specific? Are you looking for a beam type robot i.e. only circuit no controller?

Since you want to assembly yourself, maybe a kit that requires soldering is something for you?

http://www.pololu.com/catalog/category/3
http://www.trossenrobotics.com/rovers-wheeled.aspx

manjula123
08-22-2013, 03:28 AM
yes I can soldering and programming (just copy code to PIC via PIC programmer ) and I have those resources :happy:

manjula123
08-22-2013, 04:15 AM
hello dear,
your information on first 2 links are very helpful but I'm looking for ultrasonic sensor circuit diagrams not the IR sensor diagrams.I'm very greatful if you can give me a circuit diagram for ultrasonic sensor robot :happy:

CasperH
08-22-2013, 02:21 PM
Looking at the robot project from the first link, it has 2 IR sensors that run from 0 to 5 V, you can replace these with a 0 - 5 V ultrasonic sensor that provides analog output. Like this one:

http://www.maxbotix.com/Ultrasonic_Sensors/MB1010.htm

And the info on what it provides for analog output:

http://www.maxbotix.com/articles/016.htm

Any particular reason you want ultra sonic?

Owh uhm... I just read a bit further it doesn't seem to be that easy. As I am not that much of an expert with electronics, maybe someone else in the forum can help. Or maybe it is, now I am completely unsure. Can any one comment? :tongue:

shimniok
08-22-2013, 08:02 PM
Break the problem up and work on each smaller problem.

You need a motor controller. Presumably for a brushed DC motor? If so, time to research motor control circuits, H-bridges, and various ICs that can do this. There are several popular ICs that can help, as well as using discrete MOSFETs.

You might be ahead of the game if you buy Intermediate Robot Building by David Cook which goes into all of this, as well as other helpful topics.

You can base the circuit on known working open source controllers. I have a motor controller I did with MOSFETs for my AFRON robot project, for example. I'm sure there's a lot of IC-based controllers out there.

You can build it on a proto board, bread board, or etch your own PCB or design and order it from OSHPark.

The microcontroller can be built. You can build your own Arduino clone. I have a breadboard version of this on my blog, for example. Or you could use another MCU that comes in a through hole version so it's easy to breadboard or stick into a proto board. Or you could use SMD if you are good at pcb etching or order a board from OSHPark. You can base your design on simpler boards. E.g., for Propeller, base it on the Schmartboard, for Arduino base it on a Pro Mini or Sparkfun Arduino Pro. Make sure there's a way to interface to the motor control and sonar boards. Possibly even incorporate the motor controller onto the MCU board. Might as well leave a way to expand to other sensors, actuators and capabilities.

Does this help?

manjula123
08-25-2013, 04:56 AM
I have Arduino Uno - Atmel Atmega 328-PU board and Arduino Compatible H-Bridge Motor Driver.I want to make Ultrasonic obstacle avoiding robot with 2wd wheels.I'm looking for suitable program for it.I'm grateful if one of you can provide me a code and say how to install it to arduino board

CasperH
08-25-2013, 06:00 AM
Why not post in your original thread?

http://forums.trossenrobotics.com/showthread.php?6385-want-help-on-building-ultrasonic-obstacle-avoiding-robot
(http://forums.trossenrobotics.com/showthread.php?6385-want-help-on-building-ultrasonic-obstacle-avoiding-robot)
I can tell you that your can find plenty of example code in this book (I have it, just checked).

http://www.amazon.com/Arduino-Robotics-John-David-Warren/dp/1430231831

manjula123
08-25-2013, 09:44 AM
Why not post in your original thread?

http://forums.trossenrobotics.com/showthread.php?6385-want-help-on-building-ultrasonic-obstacle-avoiding-robot
(http://forums.trossenrobotics.com/showthread.php?6385-want-help-on-building-ultrasonic-obstacle-avoiding-robot)
I can tell you that your can find plenty of example code in this book (I have it, just checked).

http://www.amazon.com/Arduino-Robotics-John-David-Warren/dp/1430231831

drear CasperH,
on my previous thread I hope to do it with my own board with IC basis.now I bought 2 boards that I mention above now I'm looking for the code that I want.I think buying book is worth less to me because I'm making only this robot so I'm looking for only it's code.not a full book of various project.I'm very thankful to you for paying your attention and helping on my both threads :happy:

manjula123
08-25-2013, 09:47 AM
after considering your ideas I bought Arduino Uno - Atmel Atmega 328-PU board and Arduino Compatible H-Bridge Motor Driver.I want to make Ultrasonic obstacle avoiding robot with 2wd wheels.I'm looking for suitable program for it.I'm grateful if one of you can provide me a code and say how to install it to arduino board

CasperH
08-25-2013, 10:59 AM
drear CasperH,
on my previous thread I hope to do it with my own board with IC basis.now I bought 2 boards that I mention above now I'm looking for the code that I want.I think buying book is worth less to me because I'm making only this robot so I'm looking for only it's code.not a full book of various project.I'm very thankful to you for paying your attention and helping on my both threads :happy:

Thats ok, I prefer books, that is sort of my way. Besides the code examples (which I think are almost 90% of what you are looking for) it also contains lots and lots of information on both mechanical assembly and electronic circuit diagrams. Given you wanted a more assemble everything yourself it seemed appropriate.

Chapter five has a 2 wheeled (tracked) robot with an sonic distance sensor called Wally the Wall-Bot. You can check out a sample here, if you register:

http://my.safaribooksonline.com/book/hardware/arduino/9781430231837/wally-the-wall-bot/how_wally_works

Out of curiosity, don't you want to come up with your own code? It might seem a bit daunting ( I have been there) but it can be very rewarding.

Here is a nice tutorial on interfacing Arduino with an h bridge motor controller.

http://mad-science.wonderhowto.com/how-to/robot-basics-using-h-bridge-move-your-bot-backwards-0137740/

Given that you request information on how to install the application, have you worked with Arduino before? You will need the IDE, an interface cable (USB) from your pc to your Arduino and a "sketch" (Arduino code). It works quite simple, you can find loads of information on www.arduino.cc

manjula123
08-25-2013, 11:30 AM
No I'm never work with arduino. don't know whether they are in the vehicles(RCs and toys) I used before.the board comes with a USB cable that alowes to connect board with PC.

CasperH
08-25-2013, 11:52 AM
No I'm never work with arduino. don't know whether they are in the vehicles(RCs and toys) I used before.the board comes with a USB cable that alowes to connect board with PC.

Have a look at this page:

http://arduino.cc/en/Guide/Windows

escott76
08-25-2013, 12:15 PM
No I'm never work with arduino. don't know whether they are in the vehicles(RCs and toys) I used before.the board comes with a USB cable that alowes to connect board with PC.
You said you did research before selecting the Arduino, but it appears that you did not do that much research. To be honest, asking other people for the code you need to do the project you want and just expecting that they will provide it and the instructions for how to use it is kind of rude. These hobbies reward you based on the effort that you put in. You are telling everyone here that you are unwilling to put in the effort to learn things, even something as minimal as how to compile and upload Arduino code. Start by reading at arduino.cc . Use the search function there. It is free, so you won't have to buy a book. Take some steps on your own, and if you run into trouble ask specific questions here or on the arduino forums.

shimniok
08-26-2013, 12:13 AM
I don't know how much success or learning you'll get out of reusing other code.

I said, break up the problem. So, you have an Arduino. Now try to read values from the Sensor. Learn how to program that much from examples on the internet. Just search for arduino maxbotics code examples

Next, motor. You need a chassis. Like the Magician Chassis from Sparkfun. Then get a motor driver (I don't think theirs has one) from Pololu. Learn how to make that work with your Arduino.

Now put them together.

manjula123
08-26-2013, 02:47 AM
You said you did research before selecting the Arduino, but it appears that you did not do that much research. To be honest, asking other people for the code you need to do the project you want and just expecting that they will provide it and the instructions for how to use it is kind of rude. These hobbies reward you based on the effort that you put in. You are telling everyone here that you are unwilling to put in the effort to learn things, even something as minimal as how to compile and upload Arduino code. Start by reading at arduino.cc . Use the search function there. It is free, so you won't have to buy a book. Take some steps on your own, and if you run into trouble ask specific questions here or on the arduino forums.

yes got it.I want to pay my attention on this work harder