# data[].attributes.body
Multiple connected using the radio to report on people in need of food or water supplies.

# data[].attributes.body
https://sdgs.un.org/goals

# data[].attributes.headline
SDG 12-responsible consumption and production

# data[].attributes.subject
SDG 12-responsible consumption and production

# data[].attributes.headline
SDG 11-Sustainable cities and communities

# data[].attributes.subject
SDG 11-Sustainable cities and communities

# data[].attributes.attachment_link.readable_text
Step 1: Make it

What is it?

Newly-hatched sea turtles use moonlight to find their way to the sea. Tall, bright lights can confuse them. Build a prototype of beach lighting for paths that guides humans safely but doesn't distract turtles.

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.

What you'll learn

How to make a prototype for a larger project

How computers take readings from inputs, process the data to make different outputs depending on the value of sensor readings

How it works

This project uses the micro:bit's LEDs as a light sensor input. Cover the display with your hand and it should light up with the turtle picture.

It could be used at ground level to guide humans along a beach path at night, without confusing sea turtle hatchlings with tall, bright lights that they may mistake for the moon.

The program uses selection to sense if the light falling on the micro:bit falls below a certain level, if it is less than (<) 100. If it is dark, it lights up the micro:bit display, else it clears the screen so the LEDs are dark.

You may need to adjust the threshold number 100 depending on the lighting conditions where you are. If you're in a very bright place, you may need a smaller number.

What you need

micro:bit (or MakeCode simulator)

MakeCode or Python editor

battery pack (optional)

Step 2: Code it

Step 3: Improve it

Create your own picture to show on the LED display

Add an animation

Change the display to show arrows to make sure people walk on the correct side of the path

You may also like

# data[].attributes.attachment_link.description
Use the micro:bit's light sensor to build a prototype of beach lighting that does not distract sea turtle hatchlings

# data[].attributes.attachment_link.readable_text
Step 1: Make it

What is it?

Turn your BBC micro:bit into a step counter (or pedometer) to help you track how active you are - and learn some coding at the same time!

These two videos show you what you'll make and how to code it:

How it works

Download the code onto a micro:bit and attach a battery pack.

Attach the micro:bit and battery pack to your shoe or ankle, place it inside your sock, or just hold it in your hand and shake it as you walk.

The code uses the micro:bit's accelerometer sensor input to sense when your leg is moving.

The code counts how many times the micro:bit has been shaken. It stores this number in a variable called 'steps'.

Variables are containers for storing data, which can be accessed and updated while a program is running.

Every time the micro:bit accelerometer input senses a shake, the program increases the number held in the variable by 1, and shows the new number on the LED display output.

What you need

micro:bit (or MakeCode simulator)

MakeCode or Python editor

battery pack

something to attach the micro:bit to your shoe or leg - elastic band, a pipe cleaner, tape or Velcro.

Step 2: Code it

Step 3: Improve it

Modify the code so it shows your current step count when you press a button.

If you find that the code only counts every other step, modify the code to multiply the 'steps' variable by two when it's displayed.

Measure the length of your average stride and get your micro:bit to multiply this by the number of steps to calculate the distance you've walked.

You may also like

# data[].attributes.attachment_link.description
Use the micro:bit's accelerometer to make a step counter or activity tracker.

# data[].attributes.body
13.3 Improve education, awareness-raising and human and institutional capacity on climate change mitigation, adaptation, impact reduction and early warning

# data[].attributes.body
15.4 By 2030, ensure the conservation of mountain ecosystems, including their biodiversity, in order to enhance their capacity to provide benefits that are essential for sustainable development

# data[].attributes.body
By 2020, protect and restore water-related ecosystems, including mountains, forests, wetlands, rivers, aquifers and lakes

# data[].attributes.body
15.7 Take urgent action to end poaching and trafficking of protected species of flora and fauna and address both demand and supply of illegal wildlife products

# data[].attributes.body
15.4 By 2030, ensure the conservation of mountain ecosystems, including their biodiversity, in order to enhance their capacity to provide benefits that are essential for sustainable development

# data[].attributes.body
15.7 Take urgent action to end poaching and trafficking of protected species of flora and fauna and address both demand and supply of illegal wildlife products

# data[].attributes.attachment_link.title
SL91 white-bellied pangolin male juvenile_(c) Sangha Pangolin Project 1600wide