Shop OBEX P1 Docs P2 Docs Learn Events
Ping code — Parallax Forums

Ping code

pshorepshore Posts: 1
edited 2010-11-04 20:59 in Accessories
I am working on a project using the ping with an arduino to play sound files when the sensor is triggered. The ping seems to be the best sensor but I'm having a difficult time with the code... I am completely new at this. Does anyone have code samples for a ping in "c"?
Thanks for any help.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-11-02 11:11
    I believe there are some C examples on the Arduino website. Have a look there.
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-11-04 20:59
    There is actually a demo for the PING)) located in the Arduino IDE...If you are using the newest version then it is under, File>> Examples >> Sensors >> PING..

    I have used that code before and it works great...
Sign In or Register to comment.