How to build an Obstacle Avoider Robot?

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,
I am working on a project that avoid obstacle.
I have a car chassis.
 

I am want to usage HC-SR04 ultrasonic sensor for measuring obstacle distance.
And now I am able to measure distance.

Now my question is How to control two DC motor via L293D?

শূন্য  - The ZeRo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Rony,

 

Have a read of this and come back with questions if you have any.

 

https://electrosome.com/interfac...

 

And by the way this is the first link returned when I googled "AVR L293D". Who would have thought?

 

Cheers,

 

Ross

 

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Go to Pololu http://www.pololu.com/ and buy an infrared distance sensor, feed it to one of your ADC and then decide when to stop or start the motor according to the readings.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

John,

I am almost as confused as you ... cheeky

 

eRony says...

And now I am able to measure distance.

then

How to control two DC motor via L293D?

then

I am control my DC motor .

So it seems he can control the dc motors and measure the distance to obstacles. Maybe he doesn't understand that he should turn the car chassis a little and then measure the obstacle distance again. If distance is greater than the avoidance value, go forward, if not turn a little more, rinse and repeat.

 

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

eRony wrote:

Dear Valusoft,
 

Ur right yes

 

i am not understand that i should turn the car chassis a little and then measure the obstacle distance again. If distance is greater than the avoidance value, go forward, if not turn a little more, rinse and repeat.

 

actually now i am need help for this.

 

I suggest you grab a piece of paper and draw a diagram of what you want your diagram to do?

Ok, you want it to avoid obstacles: how? flying? turning? moving them?

 

When your answer that: How will it do it? 

 

Also what will your robot do: search for obstacles? advance all the way until it finds and osctacle? burn the building (hope not)?

 

DRAW IT!

 

And then START CODING SOMETHING!

 

Do not start asking things that you can find 'easily' (start googling) on your own.

It's a waste of our time and yours as well.