Sonar:bit is a 3-wire ultrasonic module with the working voltage between 3-5V. It is available to be used to 3.3V or 5V micro-controller system. With only one 3-wire(GVS) cable, it can work properly. Compared to the normal 4-wire ultrasonic module, it has saved one IO port. The measurement range of sonar:bit is 4cm-400cm. It can output stable and accurate measurement data with ±1cm tolerance only.
It can connect to the Ring:bit with an expansion board.
Input voltage:3V~5V and can be driven by micro:bit directly.
Standard 3-wire GVS connecotr, which occupies 1 IO port only.
|Name||Ring:bit car v2 sonar:bit||-|
|Working Voltage||DC 3-5V||-|
|Connection||3pin GVS connection||-|
|Dimmension||40.60mm * 51.60mm||-|
7.5. Quick to Start¶
Connect the acrylic transition board to the back board with the rivets.
Connect the Sonar:bit to the other side of the acrylic transition board with rivets.
Connect the Sonar:bit to the Ring:bit breakout board with a 3-pin wire.
https://github.com/elecfreaks/pxt-sonarbitin the dialogue box and click it to download it.
Programme to measure the distance with ultrasonic in makecode on-line editor.
You can download it directly below:
The value measured by Sonar:bit is showing on the micro:bit.