Description
Sonar:bit is an ultrasonic module with a 3-5V working voltage. It is available to be used in a 3.3V or 5V microcontroller 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. You can use this module for occasions like short-distance measurement, smart cars, robots, micro:bit and Arduino teaching, etc.
Features
Input voltage: 3V~5V
Enable to drive micro:bit or Arduino directly.
Standard 3-wire GVS connector, which occupies 1 IO port only.
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/1_e8ceabd1-43cd-4567-a41c-c26f9262b101.png?v=1669790131)
Dimension
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/2_5e766de7-600a-4c3b-b7df-59d3ab434c2a.png?v=1669790143)
Definition
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/3_df7191d1-322b-4617-baa1-af96830c3f5e.png?v=1669790865)
Transmitter
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/4_ec98f31e-b862-483d-ba77-9c0305507b2e.png?v=1669790874)
Receiver
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/5_059223a8-e220-4fcf-a9b0-efeb5861eaac.png?v=1669790884)
MCU
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/6_e37f8da1-ac56-4a10-9d62-081ae657d922.png?v=1669790898)
Chip for Sending Signal
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/7_39f245ea-08f8-42bc-a88c-8807e38ba1c1.png?v=1669790907)
Chip for Receiving Signal
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/8_72a827a3-a78b-4c1a-a558-c6cf2caab668.png?v=1669790916)
G-V-S Port
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/9_5ae9d3a7-87bb-4ed1-abed-268c1b812fc8.png?v=1669791044)
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/10_c1485c46-24d3-4b48-8d66-c938f4ff2bdb.png?v=1669791125)
Result
We can see the distance between sonar:bit and the object is displayed on micro:bit in real-time. The unit is centimeters.
Aooπlication
![Octopus Sonar:bit - why.gr](https://shop.elecfreaks.com/cdn/shop/files/12_86de8973-41f9-4afa-b7e2-2524417a667a.png?v=1669791435)
Click to open Makecode online editor.
Write your program to assign the returned value of P2 to variable distance and display it on micro:bit screen.
You can see the whole program from the link