Skip to content
This repository was archived by the owner on Oct 23, 2019. It is now read-only.
This repository was archived by the owner on Oct 23, 2019. It is now read-only.

Heavy noise when using Ultrasonic Ranger #26

@zeroskyx

Description

@zeroskyx

Greetings,

whenever I'm using one of the Ultrasonic Rangers (http://www.seeedstudio.com/wiki/Grove_-_Ultrasonic_Ranger) on a Raspberry Pi 3 with Windows 10 IOT 14376 I get heavy noise when using the following code:

IUltrasonicRangerSensor Sensor = DeviceFactory.Build.UltraSonicSensor( Pin.DigitalPin2 );
while( true )
{
System.Diagnostics.Debug.WriteLine( $"{Sensor.PhysicalPort.MeasureInCentimeters()}" );
await Task.Delay( 100 );
}

The distance in cm ranges from -200 to +100 when doing nothing; the median of ten samples usually generate the correct value.
However, in order to reliably check the actual distance, I actually need about a second of samples which is not really nice...

Is this a known issue of the Ultrasonic Ranger, the Grove Pi+ or the current version of the software?

Help is greatly appreciated; thanks in advance!
-Simon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions