Passo 1: Projeto
O que é?
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.
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
- 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.
O que você precisa
- micro:bit (ou simulador MakeCode)
- Editor MakeCode ou Python
- bateria (opcional)
Passo 2: É hora de programar
Passo 3: Vamos melhorar
- 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