Need help setting up my ultrasonic distance sensor


Results 1 to 19 of 19

Threaded View

  1. #1
    Join Date
    Nov 2009
    Location
    London
    Posts
    251

    Default Need help setting up my ultrasonic distance sensor

    Hi, I just bought my Ultrasonic distance sensor (Datasheet attached).
    I would like some help, may be few lines of code to give me a starting point for how to set it up for my purpose which is to sense the trigger pin going low when distance is less than 3 meters. I will be using 16F877A with this distance sensor which can take care of few other jobs as well.
    I would also like to know how I can do the similar thing i.e. take readings of PWM output and measuring the pulse to know the distance. Again few lines of code in Pickbasicish will be better than instructions in plain english. Thanks
    Attached Images Attached Images

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts