mobile robot using sonar

Status
Not open for further replies.

falleafd

New Member
I'm in that project, and I intend to use SRF04 for my robot.
Who know bout schemes to build SRF driver using serial port interface, pls show me how to make it.

I use old algorithm of Hans Moravec with Bayesian prob.

Thanks indeed.
 
I don't know if you saw the example code using Basic Stamp, OOPIC, etc., but it is available. Also, the timing diagrams for connecting the device are all over the internet for your viewing.

By serial port, you mean through the serial port on a PC? How can it be mobile if this is the case?

You need to simply bring the input high for 10uS and low again. This will set the echo output high immediately, then when the ping is recieved, it will fall low again. A simple solution is to use an internal timer on a micro. Find how long it is for each increment, or prescale it internally to a desired value that will fit your counter. Then simply multiply this value by the speed of sound, then you have the distance!

As far as the algorithm, I am not familiar with it.

Steve
 
I'll bring a laptop with my robot
I wanna know exactly which board can be responsible for contacting with serial port.

I bought Devantage SRF04 13$. It has 5 pins
And I don't know how to connect to my PC.

Do it need any other driver to connect to PC or connect it directly to PC?

Pls explain meeh bout it.
 
Hey,

Do some searching for software to control that specific device, it would be a lot easier. I will not be able to help you any further since it would require a lot of time that I unfortunately do not have currently. You will need to use 16 bit resolution, rather then 8 bit for this..
Look for software, otherwise you will probably not be able to write your own,

Steve
 
So may you show meeh how to connect SRF04 to the serial port of PC? I cannot find any tutorial on it. They all sell their perfect board, but I wanna build myself.

Do I have to use a microcontroller go between SRF04 and the serial port?

It have 4 pin available on SRF04, but unfortunately, I don't know how it works.

If you have free time, pls show meeh.

Thanks indeed and best regards.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…