Skip to main content

Posts

Showing posts with the label python

Activity: Remote Data Logging with a micro:bit (Python)

In the last 60 minute activity the micro:bit became a magnetism data logger, but it had to stay tethered to the computer by its USB cable. This time we cut the cable. One micro:bit goes off on battery power to take the measurements, and a second micro:bit plugged into the computer catches the readings by radio and logs them. It works on a V1 micro:bit too, so it is a good use for those older boards sitting in the cupboard. Activity Sheet: Remote Data Logging with a micro:bit (Python) Overview In this activity, you split a data logger across two micro:bits. A battery-powered transmitter measures light and temperature and sends the readings by radio. A receiver plugged into the computer picks them up and draws them as live graphs. Time: about 60 minutes Learning objectives By the end of this activity you will be able to: Send sensor readings from one micro:bit to another using the built-in radio. Use a radio group so that two micro:bits only listen to each other. Use labels to tell ...

60 minute activity: Detecting and Logging Magnetism with a micro:bit (Python)

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 ...

Mapping the Hidden Connections in the National Teaching Repository

The National Teaching Repository (NTR) has just won a prestigious national award for teaching and learning — the Collaborative Award for Teaching Excellence 2026 . Good timing, then, to bring together two things I've been enjoying lately: being part of the NTR board, and playing with AI to solve problems. I wanted to see what happened if I pointed some vibe-coding and some AI-assisted analysis at the repository itself. Could I surface patterns in the NTR that aren't obvious just from browsing it — the invisible web of who has worked with whom, and what the collective body of work is actually about ? Two small activities, one feeding into the other. Activity 1: Mapping co-author connections The first idea was simple: go through the NTR's FigShare listing and map the links between authors, to see the inter-connectedness that has organically built up over the years. The prompt I used was: I would like to go through the https://figshare.edgehill.ac.uk/The_National_T...

Mapping the World's Earthquakes with Python — A Beginner's Data Project

The Earth is restless. In any given month, earthquakes rattle the planet — most too small to feel, but all carefully recorded by sensors around the globe. What if you could pull all of that data into Python and put it on a map in minutes? That is exactly what this project does. There is something compelling about real, live data. It is one thing to practise Python with made-up lists and fictional datasets; it is another to write a handful of lines of code and get back information about actual geological events happening right now. This project is a great entry point into the world of APIs — the digital doorways that let your programs reach out to the internet and bring back structured information. We are going to pull a month's worth of earthquake data from the US Geological Survey (USGS) , load it into a Python DataFrame, and then plot it on an interactive map. No specialist hardware required — just Python and curiosity. 💡 This project was inspired by the "Fetching Cu...