Skip to content

aaroncouts/Microbit_speedometer

Repository files navigation

This program requires a BBC Micro:bit wired with the following:

  1. An external normally-open button that, when pressed, routes VCC to pin 0.
  2. A distance sensor (RCWL-1602 recommended) with trigger on pin 1 and echo on pin 2.

To use, point the distance sensor at something that is leaving (such as someone running away from you) or approaching (such as someone running toward you, or at a wall you are walking toward. Hit the external button to take a speed reading.

The speed in miles per hour will display on the microbit's LED display.

After taking a reading, button A on the microbit will show the speed in kilometers per hour. Button B will show the miles per hour again.

Open this page at https://aaroncouts.github.io/microbit_speedometer/

Use as Extension

This repository can be added as an extension in MakeCode.

Edit this project Build status badge

To edit this repository in MakeCode.

Blocks preview

This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.

A rendered view of the blocks

Metadata (used for search, rendering)

  • for PXT/microbit
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>

About

Microbit Speedometer using ultrasonic sensor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published