Activity Sheet: Detecting and Logging Magnetism with a micro:bit (Python) Overview In this activity, you turn a BBC micro:bit into a magnetism data logger using Python. The micro:bit's built-in compass sensor measures magnetic force; your program sends the readings down the USB cable so the computer can draw live graphs of them. Based on the blog post Detecting and Logging Magnetism with a micro:bit . Time: about 45–60 minutes Learning objectives By the end of this activity, you will be able to: • Explain that the micro:bit's compass is a sensor that measures magnetic fields. • Write a Python loop that reads a sensor over and over. • Send labelled data from the micro:bit to a computer using serial . • Read a live graph and describe how a moving magnet changes the readings. What you need Item ...
Robots and Physical Computing
Robots and getting computers to work with the physical world is fun; this blog looks at my own personal experimenting and building in this area.