Height Measurement Using micro:bit and Ultrasonic

Height Measurement Using micro:bit and Ultrasonic

Height measurement device is a useful and simple device used to measure the height of a person who stands under it. let’s learn the science behind it and gain some experience while making it.


Video Tutorial


Components Required



By following the diagram above:

  • Connect ultrasonic sensor to the first grove port in REKA:BIT (P1 to Trig, P0 to Echo)



Connect your REKA:BIT to your computer and open MakeCode editor to start programming.

  • Add (REKA:BIT), and (makerbit-ultrasonic) extensions and follow the code block in the picture above
  • After completing the code, download it on microbit

You can also view and edit the code by clicking here!


Project Complete

The device will be installed at a certain height and when someone stands under the device, the device will measure the height of the person by subtracting the distance between the device and the person under it from the height at which the device is installed.