HC-SR04 Ultrasonic Sensor Example by sparkfun

HC-SR04 Ultrasonic range finder example. The HC-SR04 is capable of sensing distances 2cm - 400cm.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:356078" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>

  • 2017-03-09 Diki Hariyanto Permana

    yeah, thanks

  • 2017-03-06 s-alancmorochobalvoa

    nerds