Course Websites‎ > ‎

Scratch Budapest 2017

Breaking the Ice - making a buddy with air-drying clay, LEDs and a coin cell.
Because often, when introducing physical computing, you need to review some basic electronics.

The crab is made from air-drying clay (a mixture of resin and wood-pulp).
The chick is made with a 3D pen (using PLA).

LED Buddies

Click on the image for a larger version

What can you do with your buddy? 
Make it a playing piece in a computer moderated boardgame!
(Just add conductive tape or glue some aluminum foil to its base to work with a Makey-Makey).

Computer Moderated Boardgames

YouTube Video

Pioneering Pranks

Hide and Seek and the Pioneering Prank were both examples of a short , focused 1-2 hour project.
We borrowed the idea of the Pioneering Pranksters from the Raspberry Pi Foundation's Pioneers
The Intelligent Nightlights and Chocolate Box Arcade were longer (10 hour) projects.

Intelligent Nightlights - Brief Description

The Nightlights project is a great opportunity to introduce S4A or work with GPIO pins on a Raspberry Pi.

Chocolate Box Arcade

Click on the image for a link to a presentation

This year, we've experimented with a more open-ended approach for an extended project.
Spreading the project over a longer period of time has resulted in a wider number of iterations for each of the four ideas highlighted.
Each is still a work in progress with new innovations under discussion.

Plastic Steampunk

The Faeriequarium

This project has it all...

Mathematics: use Scratch to design nets for the fairies' home
Literature: Sir Arthur Conan-Doyle (yes, an odd choice, Professor Challenger is probably the least likeable steampunk protagonist).
Fake News: The Cottingley Fairies  - two young girls set out to dupe the Edwardian world into believing they had photographed fairies at the bottom of their garden; and Sir Arthur fell for it, hook, line and sinker!

The project was initially proposed by a student who had previously worked on a Pioneering Prank to fool his siblings that little people lived in his sofa (so he could watch TV in peace). That project required a Makey-Makey, speakers and a home made pressure sensor. This one would be more elaborate.

Their plan: build a house which appears to be inhabited by creatures who interact with their environment. They tried different design ideas for a mushroom house made of wood effect, metallic and transparent PLA. Sensors investigated included microphone, light sensor and proximity sensor. Output would include LEDs switching on/off in sequence with audio output. 

A New Iteration for #ScratchBUD.

One issue had not been discussed by the students (yet). What if someone picked up the model? How would the inhabitants react?
The obvious sensor to experiment with is an accelerometer. 

NB: Scratch can interact with an Android smartphone or tablet's accelerometer via Scratcher Control.

This Faeriequarium uses an accelerometer to detect if it has been picked up or rotated. If it has, it plays Saint Saens' Aquarium as six sprites float downwards. Rotate the Faeirequarium, turn it upside down, and the sprites change their direction of motion to match the direction of gravity. Put it down, the music stops and the sprites disappear.  

What Next?

Why not add a Pi Camera, and have augmented reality sprites interacting with the environment?

Faeriequarium links

The quarium2 Arduino sketch

#include <Keyboard.h>
// Must use Leonrdo board for this library

void setup() {
  //Serial used to check values from accelerometer via monitor

void loop() {  
  // Delay needed here to make it easier to correct errors!
  int myX = analogRead(A0);
  int myY = analogRead(A1);

  int myZ = analogRead(A2);
  //This sketch doesn't actually use Z axis - but later modifications could

  Serial.print(" - ");
  Serial.print(" - ");

  if (myX < 300)
    if (myX > 400)
    if (myY < 300)
    if (myY > 400)
  //Values of 300 and 400 determined experimentally 

Link to quarium1 Scratch program (because sometimes Google Drive will be the simplest way to move a .sb file from a student laptop to a Pi via wifi in school - the url shortener makes this task much simpler).