Skip to content

活動

Light experiment

中級 | MakeCode | LED表示, スピーカー, ボタン, 光センサー, 無線 | センサー, , 入出力, 反復処理, 変数, 科学的に働く, 素材

ステップ 1:準備

説明

懐中電灯と2つのBBC micro:bitを使って、物質が透明、半透明、不透明であるかどうかを調べます。

このプロジェクトは、White Rose Scienceとの提携により理科教師向けに開発され、生徒が物質の特性や光線の進路上に物体を配置した場合の効果について学ぶことができます。 また、生徒はコンピュータプログラムにおけるシーケンス、変数、ループの使い方についても学ぶことができます。

この動画は、プロジェクトの仕組みと実験の方法について説明します。

動作の仕組み

  • 両方の micro:bit で同じコードが使用されます。
  • 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.

必要なもの

  • 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
  • 2台の micro:bit
  • at least one battery pack with new batteries

ステップ 2: 研究

  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. Repeat for other materials.
  6. Compare your results. Are they what you expected?

ポイント

  • You may like to conduct this investigation with someone else, as it can be difficult to hold the torch and material while taking readings.
  • If you get any unexpected readings of 0 during the investigation, try disconnecting and reconnecting the battery packs or pressing the reset button on the back of the 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.

Doing this experiment in a class or coding club

If you are doing this experiment in a class or coding club, each pair of micro:bits should have different matching radio group numbers. This will ensure each receiver micro:bit receives the readings from the correct transmitter micro:bit.

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. ゴムバンド、もしくは、小さな袋に入れて、2台の micro:bit が離れ離れにならないようにします。 Repeat for each pair of micro:bits being used in the class.

Step 3: Code it

Watch this video to find out how to code the project:

If you are interested in modifying the code for this project, click on one of the buttons below:

White Rose Science

This project is developed in partnership with White Rose Science.