Skip to content

Activiteit

Light experiment

Gevorderd | MakeCode | Knoppen, LED scherm, Licht sensor, Luidspreker, Radio | Herhalingen (iteratie), Invoer/Uitvoer, Licht, Materiaal, Sensoren, Variabelen, Wetenschappelijk werken

Stap 1: Voorbereiden

Wat is het?

Investigate materials to see if they are transparent, translucent, or opaque using a torch and two BBC micro:bits.

This project is developed in partnership with White Rose Science for science teachers and allows students to explore the properties of materials and the effect of placing objects in the path of a beam of light. Students can also learn about using sequences, variables, and loops in a computer program.

Deze video legt uit hoe het project werkt en hoe het experiment moet worden uitgevoerd.

Zo werkt het

  • The same code is used on both micro:bits.
  • One micro:bit is put into a box while another stays with you.
  • You cover the open end of the box with the different materials you are testing and shine a torch through the materials into the box.
  • The micro:bit in the box measures the light penetrating the material and sends its measurements by radio to the micro:bit in the room.
  • The micro:bit in the room displays the light readings.
  • Readings range from 0 (completely dark) to 100 (very bright). Lower readings suggest opacity and higher readings suggest transparency.

Benodigdheden

  • a torch
  • a long narrow box, paper cup, or cardboard tube with the lid removed
  • materials to test such as a piece of paper, bubble wrap, felt, and a clear plastic sleeve, each big enough to cover the open end of the box
  • twee micro:bits
  • at least one battery pack with new batteries

Stap 2: Onderzoek

  1. Download the hex file and put the code onto both micro:bits. You do not need to write the code for this project yourself to do the experiment, but if you are interested in coding it, visit the Step 3: Code it section below.
  2. Attach a battery pack to at least one micro:bit. Put the micro:bit with the battery pack into the bottom of the box with the LEDs face up. Put the battery pack under the micro:bit so it doesn’t obscure the light.
  3. Turn on the torch and hold it at the opening of, but not inside, the box. Press button B on the micro:bit in the room to measure the light level at the bottom of the box. Note the reading. For accuracy, complete the test three times and work out the average. This is your control reading, which you should take as a reference, because your maximum light readings will depend on the strength of your torch.
  4. Now place a piece of the material you are testing over the end of the box. Shine the torch through the material, keeping it in the same position in relation to the box as before. Press button B again and note the reading.
  5. Herhaal voor andere materialen.
  6. Vergelijk je resultaten. Zijn ze wat je verwachtte?

Tips

  • You may like to conduct this investigation with someone else, as it can be difficult to hold the torch and material while taking readings.
  • Als u onverwachte metingen van 0 krijgt tijdens het onderzoek, probeer de accupakketten los te koppelen en opnieuw aan te sluiten of druk op de reset knop aan de achterkant van de micro:bits.
  • Some materials may let some light through that the micro:bit does not detect. Place the torch against the material sample to achieve the best results.
  • Two-digit numbers will scroll across the micro:bit's LED display. Encourage students to practise reading numbers from the display before the experiment.

Dit experiment doen in een klas of coderingsclub

Als je dit experiment doet in een klas of coderingsclub, dan moeten elk paar micro:bits verschillende overeenkomende radio-groepnummers hebben. Dit zorgt ervoor dat elke ontvanger micro:bit de metingen van de juiste zender micro:bit ontvangt.

Open the project in Microsoft MakeCode and enter a unique number in the radio set group block, then download that hex file onto two micro:bits. Hou ze samen met een elastische band of in een kleine zak. Herhaal voor elk paar micro:bits die worden gebruikt in de klas.

Stap 3: Codeer het

Bekijk deze video om te zien hoe je het project kunt coderen:

Als je geïnteresseerd bent in het wijzigen van de code voor dit project, klik dan op een van de knoppen hieronder:

White Rose Science

This project is developed in partnership with White Rose Science.