Distance Detector

Intermediate

Use an ultrasonic sensor to detect objects and display the distance on the OLED screen.

20 min7 steps
SensorOLEDUltrasonic
0 of 7 steps

Step 1 of 7

Connect the sensor

Plug your PyBot board in and click Connect. The ultrasonic sensor on your carrier board uses pins Trig: 0 and Echo: 1.

Ready to code? Practice this tutorial in the Blockly IDE.