View on GitHub

logger_

A MakeCode project

Coding for Conservation

Micro:bit program for tracking light and temperature in native bee hives

Used in combination with Sensor

About

Planet Bee Foundation is programming BBC Micro:bits with Microsoft’s Makecode in order to bring conservation efforts to student’s classrooms across America! This program, a WIP, is being designed in combination with a Sensor script, so there will be one Micro:bit on the native bee home collecting the datapoints (the “Sensor”), and another Micro:bit within its bluetooth range that stores the data away from the nest, so the user can safely retrieve it without disturbing the home (the “Logger”).

How to use

  1. Open this project in makecode following the edit this project below
  2. Download the hex file (bottom left corner)
  3. Put the file on your Micro:bit
  4. Must be used with Sensor on another Micro:bit

Once you have both Micro:bits set up, press “A+B” on your Logger chip. It sends the start signal to the sensor chip. You can leave them alone, and they will record until the logs are full. Right now, it is logging every 10 minutes, but that can be adjusted.

To adjust the logging time:

There are three points that need to be changed. (1) the watchdog timer, in seconds (2) the waits at the end of each script, in microseconds

To collect the data:

  1. Plug your Logger Micro:bit into a computer.
  2. Locate your Micro:bit drive.
  3. Open the “MY_DATA.HTM” file in your browser.
  4. Download the csv file.
  5. IF you left them on and cycling, and want to restart their cycles, press “A” on the Logger.

Use as Extension

This repository can be added as an extension in MakeCode.

Edit this project

To edit this repository in MakeCode.