Skip to content


Alerta luminoso de redes de pesca

Iniciante | MakeCode, Python | Sensor de luz, Som, Tela de LED | 14 Vida embaixo d'água, Entrada/saída, Seleção

Passo 1: Projeto

O que é?

Use your micro:bit to create a prototype of LED lights that can stop unwanted fish, turtles and birds from getting trapped in fishing nets.

Este projeto é parte de uma série que oferece atividades que procuram solucionar problemas e criar protótipos, concebida para explorar a tecnologia enquanto solução para o desafio dos Objetivos de Desenvolvimento Sustentável.


Coding guide

O que você aprenderá

  • 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

Como funciona

  • A prototype is a working model used to test ideas. Remember to keep your micro:bit away from real water!
  • This program uses the micro:bit's LEDs as a light sensor. It tells the micro:bit to turn on the LEDs when the light is less than a certain level (50).
  • Cover your micro:bit's LED display, to simulate being deep in the sea, and it should light up.
  • You may need to change the number 50 depending on the lighting conditions where you are. If it's lighting up too easily, use a smaller number.
  • If you have a speaker attached, or you're using the new micro:bit with sound, it also gives out a high frequency pulsed sound to help to keep other creatures away from the nets.

O que você precisa

  • micro:bit (ou simulador MakeCode)
  • Editor MakeCode ou Python
  • bateria (opcional)
  • speaker accessory or new micro:bit with sound (optional)

Passo 2: É hora de programar

Passo 3: Vamos melhorar

  • Change the LED pattern into an animation of a pulsing light
  • Create your own sounds to scare aware creatures you don't want to catch
  • Add radio to control the lights and sound remotely