Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Robotics Chat


Robotics Chat Specific to discussions about robots and the making of.

Reply
 
Thread Tools Display Modes
Old 22nd May 2003, 01:19 PM   (permalink)
Default mobile robot using sonar

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.
falleafd is offline  
Reply With Quote
Old 22nd May 2003, 07:17 PM   (permalink)
Default

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
Scubasteve is offline  
Reply With Quote
Old 23rd May 2003, 06:03 AM   (permalink)
Default

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.
falleafd is offline  
Reply With Quote
Old 23rd May 2003, 02:22 PM   (permalink)
Default

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
Scubasteve is offline  
Reply With Quote
Old 23rd May 2003, 06:28 PM   (permalink)
Default

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.
falleafd is offline  
Reply With Quote
Old 26th May 2003, 09:15 PM   (permalink)
Default

Oh, I got it

SRF04 may connect directly to PIC.

Thanks
falleafd is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 06:19 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.