ultrasonic distance project

Discussion in 'Embedded Systems and Microcontrollers' started by Sundhir52, Oct 7, 2009.

  1. Sundhir52

    Thread Starter New Member

    Oct 7, 2009
    hey guys,

    i'm new to the forum, and new to pic. i have a design project due soon and i am having a few problems.
    basically it as an ultrasonic distance measure, using 40 Khz transducers. display is 4 seven-segs, pic16f913, and measurement is done on the press of a push button switch

    I am using PWM to generate my pulses, timer0 to multiplex my displays, and i want to use timer1 to time the wave.

    Firstly how do i send a limited number of pulses?
    How do i stop the timer when the return wave occurs?
    and how do i read the return wave, as when i check on a scope it returns at 0.8 V, what do i do?

    any help and feedback you guys could provide my will be greatly appreciated.

    many thanks
  2. BMorse

    AAC Fanatic!

    Sep 26, 2009