Did you ever get the SRF05 to work?
Jim,
I have been struggling with PULSOUT and PULSIN with a SRF05. The PULSIN command is writing zero into the range register even though my oscilloscope shows a perfectly good response coming from the proximity sensor.
Did you resolve your problem almost three years ago?
Ken Jones
I think I found a solution, but...
My problem was that the length of the PULSOUT pulse was way toooo long. This was true even if I did a PULSOUT trigfront, 1. I have no explanation for that behavior of a 16F887.
So I changed PULSOUT to:
Quote:
HIGH trigfront
PAUSE 1
LOW trigfront.
Followed by a PULSIN.
Why? I am modifying a hobby level radio control car to toggle between RC and autonomous control. The project has been the theme of
"PBP projects for R/C models" thread for a some months.
With the above fix the car seems to respond correctly on its blocks with me moving a oak cutting board in front and on the right side to simulate the inside a room with no furniture.
Thanks, gang. Whoever you are.
Ken
It works! But there may be a problem
I have the car running around on the floor being guided by its PIC. This is a hobby level car with electronic speed control and continuous servo steering.
The steering seems to respond too slowly. Particularly when told to steer straight. That is the position of no current into the servo. I'm not sure there is a fix for this short of going to a toy level car with a bang bang servo and a mechanically controlled neutral.
Ken
Ken