Use echo location to find the distance of objects around your PI2.

Take your Raspberry PI2 with Windows 10 IOT Core, Explorer HAT Pro, a PNP transistor, a few various resistors and some hookup wires and you can use the simple code to get a distance measurement from your HC-SR04 sonic range finder!

 

See the sample project on GitHub for code.

 

https://github.com/jakkaj/Xamling-IOT/tree/master/Samples/HC-SR04

 

Uses the Xamling-IOT Nuget package.