9. Sonar:bit#

9.1. Introduction#

  • 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.

https://raw.githubusercontent.com/elecfreaks/learn-cn/master/microbitKit/ring_bit_v2/images/ring_bit_v2_sonar_01.jpg

9.2. Characteristics#

  • Input voltage:3V~5V and can be driven by micro:bit directly.

  • Standard 3-wire GVS connecotr, which occupies 1 IO port only.

9.3. Parameter#

Item Parameter Remark
Name Ring:bit car v2 sonar:bit -
SKU EF04089 -
Working Voltage DC 3-5V -
Connection 3pin GVS connection -
Output Signal Simulation -
Measuring Distance 4-400cm -
Dimmension 40.60mm * 51.60mm -
Net Weight 12g -

9.4. Outlook#

https://raw.githubusercontent.com/elecfreaks/learn-cn/master/microbitKit/ring_bit_v2/images/ring_bit_v2_sonar_02.jpg

9.5. Quick to Start#

Hardware Connection#

  • Connect the acrylic transition board to the back board with the rivets.

https://raw.githubusercontent.com/elecfreaks/learn-cn/master/microbitKit/ring_bit_v2/images/ring_bit_v2_sonar_03.jpg

  • Connect the Sonar:bit to the other side of the acrylic transition board with rivets.

https://raw.githubusercontent.com/elecfreaks/learn-cn/master/microbitKit/ring_bit_v2/images/ring_bit_v2_sonar_04.jpg

  • Connect the Sonar:bit to the Ring:bit breakout board with a 3-pin wire.

https://raw.githubusercontent.com/elecfreaks/learn-cn/master/microbitKit/ring_bit_v2/images/ring_bit_v2_sonar_05.jpg

Software Programming#

  • Choose sonar:bit in makecode.

  • Search ringbit in the dialogue box and click it to download it.

  • Programme to measure the distance with ultrasonic in makecode on-line editor.

../../_images/ring_bit_v2_sonar_06.png

Links: https://makecode.microbit.org/_RVrYuDaT9acp

You can download it directly below:

Result#

  • The value measured by Sonar:bit is showing on the micro:bit.

9.6. About#

case 10