Studying a Hallowe’en LED flasher

A friend kindly gave us some flashing-light stickers for Hallowe’en, and the natural thing to do with them once the festivities were over was to dissect them. So we did this, and found that each contained a square circuit board about 25mm on a side. When you press a little button in the middle, three coloured LEDs — red, green, blue — flash rapidly for about twenty seconds. It looked like they were flashing round in a circle, but too quickly for me to be sure of the sequence. To investigate, I set up the flasher approximately vertically, held in a lump of Blu-tack: Then I turned off the lights, pressed the flasher’s button, and took some pictures with a

Continue reading

A set of Scratch worksheets

The school my three youngest children go to runs after-school activities, and I was part of a group of volunteers who ran an ‘Advanced Scratch‘ course. This was aimed at 10–12-year-olds who had done a reasonable amount of Scratch already, and wanted to explore more. We spent several sessions developing a much-simplified version of the great puzzle game SpaceChem, and then a few standalone projects. It went pretty well, with most of the students getting a lot done. As part of this, I wrote a set of worksheets, which I’ve now tidied up and made available under CC-BY-SA in case they’re of interest to anyone else: Scratch worksheets 2017/18 (Image above contains content copyright The Scratch Team, used under CC-BY-SA-2.0.

Continue reading

An interesting piece-fitting puzzle

Via mathblogging.org, I came across Math=Love’s blog entry describing a piece-fitting puzzle, and thought it would be interesting to solve it exhaustively and answer the question in the blog entry: So far, we have found two different possible solutions. I’m looking forward to collecting data to help determine if there are more! I did this via a Jupyter notebook, and the results are here. I confirmed that the two known solutions are the only ones, up to symmetries.

Continue reading

‘Splat the zombies’ 3D game

I recently got another long-running collaboration to the point of having something to show — a first-person shooter in the browser. This was an idea which Sally, my youngest, had. She drew a bunch of house fronts, and also some ‘zombies’, and then a map of the world where the action takes place. The result is hosted on GitHub pages: It requires a WebGL-capable browser, and I have not put effort into graceful behaviour if this requirement isn’t met. There are some more details, and also the repo itself, on GitHub, although it’s just a dump of the final state of the work rather than a useful history. It was good to experiment with Blender and BabylonJS in the implementation

Continue reading

Joining and mapping government data sets

A while ago, the principal at the primary school my children attend remarked at how time-consuming it was for her to manually collate two different sources of information on schools, and cross-reference against a map of schools’ locations. Her task, as I understand it, was to find nearby schools who might want to pool their ‘resource hours’ with our school and thereby share a resource teacher. To allow schools to do this, the relevant state bodies publish PDFs listing the resource hours allocated to each school, as well as the number of ‘permanent resource posts’, which is also relevant to the pooling discussions. The department also have on their website a mechanism for finding a school by map. Separately, I’d

Continue reading