![]() |
![]() |
![]() |
|
|
|||||||
| Robotics Chat Specific to discussions about robots and the making of. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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.
__________________
Falleaf mail@falleaf.net English forums at PIC Vietnam - Vietnamese Electronics forums R&P Trading and Forwarding Co. Ltd. Distributor of Microchip in Vietnam |
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
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.
__________________
Falleaf mail@falleaf.net English forums at PIC Vietnam - Vietnamese Electronics forums R&P Trading and Forwarding Co. Ltd. Distributor of Microchip in Vietnam |
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
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.
__________________
Falleaf mail@falleaf.net English forums at PIC Vietnam - Vietnamese Electronics forums R&P Trading and Forwarding Co. Ltd. Distributor of Microchip in Vietnam |
|
|
|
|
|
|
(permalink) |
|
Oh, I got it
SRF04 may connect directly to PIC. Thanks
__________________
Falleaf mail@falleaf.net English forums at PIC Vietnam - Vietnamese Electronics forums R&P Trading and Forwarding Co. Ltd. Distributor of Microchip in Vietnam |
|
|
|
|