Shop OBEX P1 Docs P2 Docs Learn Events
Propeller and Ping Sensor — Parallax Forums

Propeller and Ping Sensor

JP88JP88 Posts: 1
edited 2010-06-29 03:29 in Accessories
hello

i just got a Propeller Microcontroller and i want to use the ultrasonic ping sensor.. and i also donwload the ICCV7 for propeller: i want to program the ping in C..

does someone know how do i start this project??

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-06-29 03:29
    You start this project like any other ... First make sure you understand the device (PING in this case) and how to make it work, then you make sure you understand the capabilities of the tools you have to use it (like the ICCV7 compiler/libraries).

    In the case of the PING you have to generate a pulse on an I/O pin of a particular width (described in the documentation), then you have to switch the I/O pin to input mode, wait a specific amount of time from the original "start" pulse, then time the width of the input pulse. When you have specific questions, ask. In the meantime, you have some learning (and experimentation) to do. Don't just read the documentation, try out things. You'll learn more and faster that way.
Sign In or Register to comment.