Sonar range finder with PIC18F452

Thread Starter

priyangaambanwala

Joined Feb 8, 2010
2
I want to use sonar to find distance in my robotics project which uses a PIC18F452.The diagram of the circuit is attached below (Which I found from the web). But the resource I found it says I have to use PWM to drive it.Unfortunately I am already using my PWMs for motor controlling. So can anybody tell me how to use it without PWMs alongside my program.(I'm using mikroC language.)
Being new to PIC I don't know much about timers as well.
Thanks in advance...
 

Attachments

Last edited:

Thread Starter

priyangaambanwala

Joined Feb 8, 2010
2
t06afre thanx for the suggestion. but I can't afford 2mcus.(I'm using a readymade robot board. and it may be complicted.) Is there any way I can use 555 IC for the purpose? (I've seen it in IR proximity sensors to generate a 38KHz signal.)
 

retched

Joined Dec 5, 2009
5,207
You should be able to use a 555 for the PWM for the sonar transmitter. The reciever data can be interpreted by the uC.

[ed]
Here is a circuit using 555 for transmitter.
http://english.cxem.net/home/home44.php

The reciever is set as a switch, but you should be able to finagle the circuit to do what you want.
[/ed]
 
Last edited:
Top