Table of Contents

Hot Wire Game

To play this game you need to guide the metal wand along the wire circuit without touching it. To start the game you touch D5 with the wand, then you follow the wire. In case you touch the wire, an X and red light will be displayed. If you manage to reach the end (touch D7 with the wand) without touching the wire, a tick and a green light will be displayed. In addition, Kniwwelino measures the time you need and displays it at the end.

Needed materials

Crafting





Programming

You can program the game progressively. For each step, add the displayed blocks and put them in the right order. You can then test your program by clicking on .

Step 1

Show an X on the matrix and switch on the LED in red.


Step 2

Only if I touch the wire (and by this connecting D6 with GND), then show an X on the matrix and switch on the LED in red.


Step 3

In case I reach the end (and by this connecting D7 with GND), show a tick on the matrix and switch on the LED in green.


Step 4

In case I am at the start (and by this connecting D5 with GND), then switch off the LED and write “Go!” on the matrix.


(Optional) Step 5

Show the green light only in case I do not touch the wire during the whole path.


(Optional) Step 6

Measure the time I need to do the path.


(Optional) Step 7

Show the time at the end of the game.


Solution

Short instructions to download and print: 180621_fly_instructions_hotwire_v03.pdf or open project in KniwwelinoBlockly