28041 PING Laser sensor

edited 2020-07-09 - 23:56:50 in BASIC Stamp
I am using the PING Laser sensor 28041 on a BS2 and am having some odd fluctuation in the time signal returned. It varies from 1181 to 1404 (approximately) with a static setup, no movement. Do I need to do averaging of a number of data points to get a stable response (would this be accurate, I doubt it) or is there something else I should be doing to get a stable signal? The Ping ultrasonic sensor returns a rock solid signal using the standard Parallax Ping Test program (copy below), same program is used for both sensors.

Thanks for looking at this,
' {$STAMP BS2}
' {$PBASIC 2.5}

time VAR Word

  PULSOUT 15, 5
  PULSIN 15, 1, time

  DEBUG HOME, "time = ", DEC5 time

  PAUSE 250



  • Check the signal with your scope if you have one. Could be the reflective surface, distance, color etc.. Spec. sheet list -/+ 15% accuracy at short range.
Sign In or Register to comment.