Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
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.
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.
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,
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.