Connect Crowtail-Ultrasonic Ranging Sensor, Crowtail-Buzzer and Crowtail-9G Servo to P13&P15,
P0 and P1 ports of Crowtail-Base shield for Micro:bit.
Note: You need to connect 12V power supply
for the Crowtail-Base shield for Micro:bit.
The hardware connections are as follows:
Programming and note
Just as Crowtail-Temperature&Humidity Sensor, we need to add the extension package for
Crowtail-Ultrasonic Ranging Sensor before we use it. Follow the steps below to add extension
package of ultrasonic ranging sensor:
Step 1
: Click on the Extensions, then search “sonar” in the
search bar.
Step 2
: Add sonar package to your Makecode and you
can see it.
32