Traffic survey data logger
View full project on microbit.org
To code this project yourself, right click on the background of the workspace and choose ‘delete all blocks’, then follow the coding video below. You can find the forever and on start blocks in the Basic section.
What is it?
Use your BBC micro:bit as a data-logger to survey things you see, like different kinds of traffic or wildlife, or answers to questions.
Introduction
https://www.youtube.com/watch?v=7Jb-31_72nc
Coding guide
https://www.youtube.com/watch?v=2E2i8WjuX-0
At the press of a button, the micro:bit records what you have seen and stores the data in a table so you can analyse it later.
Data stays on your micro:bit even if you disconnect the batteries or USB cable, so you can study it when you’re back at your computer.

Visit the projects page on microbit.org for a full description of this and other projects.
Open this page at https://jaqster.github.io/microbit-traffic-logger/
Use as Extension
This repository can be added as an extension in MakeCode.
- open https://makecode.microbit.org/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/jaqster/microbit-traffic-logger and import
Edit this project
To edit this repository in MakeCode.
- open https://makecode.microbit.org/
- click on Import then click on Import URL
- paste https://github.com/jaqster/microbit-traffic-logger and click import
Metadata (used for search, rendering)
- for PXT/microbit