Passo 1: Projeto
O que é?
Use the micro:bit's accelerometer and radio features to make a prototype of a device to help scientists track polar bears or other animals and discover how they are being affected by climate change.
This project is part of a series created to offer problem-solving and prototyping activities designed to explore technology as a solution to the challenges of the Global Goals for Sustainable Development.
O que você aprenderá
- How to make a prototype for a larger project
- How radio communication between electronic devices can be used for scientific study
- This program uses the micro:bit's radio feature to make a prototype for tracking the movements of an animal. You can use it in the MakeCode simulator or flash the code on to 2 or more micro:bits. One would be attached to the animal, the other would be used by the scientist as a receiver.
- First, it sets the radio group to 7. Groups are like channels, so make sure both your micro:bits are using the same group.
- If several of you are making this project in pairs, make sure each pair uses a unique radio group number. You can pick any group number you like from 0-255.
- It takes readings from the built-in accelerometer and transmits them by radio.
- The receiver shows the accelerometer readings on the LED display. Larger numbers mean quicker movements. You can use these numbers to make inferences about an animal's behaviour, for example if it's looking for food, a new habitat or staying in one place to make a home.
O que você precisa
- 2 micro:bits (ou simulador MakeCode)
- Editor MakeCode ou Python
- bateria (opcional)
Passo 2: É hora de programar
Passo 3: Vamos melhorar
- This program measures movement in the Y-axis. The micro:bit's accelerometer can measure forces in other directions, and also give an overall reading of strength. Experiment using different axis measurements to see which works best.
- Depending on the axis you measure and how you attach the sensor micro:bit, you may notice readings even when the animal is still. This is because of the Earth's gravity, which the micro:bit can also measure! How would you make sure this doesn't affect your readings?
- What other sensors on the micro:bit could you use to transmit data about an animal?