Shop OBEX P1 Docs P2 Docs Learn Events
Receiving weird values back from PING))) sensor — Parallax Forums

Receiving weird values back from PING))) sensor

NecromancerNecromancer Posts: 6
edited 2008-07-16 07:43 in BASIC Stamp
Hi,

I've been trying to get my PING))) sensor working on my bot, using the BOE and the PING mounting kit.

I have it installed and it appears to be working (LED's flashing at the right times, etc.) however, the distance values I'm getting back seem to be bogus values.

Does anyone have any idea why I would be getting values such as these instead of numbers?

Scanning Full Left returns a distance of /
Scanning 45 Degrees to the Left returns a distance of Z
Scanning the Center returns a distance of

Comments

  • MSDTechMSDTech Posts: 342
    edited 2008-07-15 11:05
    You need to add a formatter on your DEBUG statements to convert the value stored in the word variable distance to a human readable number. IE DEBUG "Scanning Full Right returns a distance of ", DEC distance, CR
  • NecromancerNecromancer Posts: 6
    edited 2008-07-16 07:43
    Thanks - that was it!

    I'm getting real values now.
Sign In or Register to comment.