en:instructions:hotwiregame

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:instructions:hotwiregame [2018/10/17 15:43]
kniwwelino [Programming]
en:instructions:hotwiregame [2018/10/17 15:52] (current)
kniwwelino [Solution]
Line 1: Line 1:
 +===== 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.
  
 +{{:en:hotwire.jpg?400|}}
 +
 +==== Needed materials ====
 +  * 1 Kniwwelino 
 +  * 1 USB cable
 +  * 1 power bank
 +  * insulated copper wire
 +  * 1 cutting pliers
 +  * 1 pliers
 +  * 1 alligator clip
 +
 +==== Crafting ====
 +  * Cut a small piece (about 8 cm), and a larger piece (about 20 cm) of the insulated copper wire.
 +{{:en:instructions:wire_game_1.jpg?direct&400|}}
 +
 +\\
 +  * Remove the insulation from the small piece and bend the wire to create a little wand with a hook.
 +{{:en:instructions:wire_game_2.jpg?direct&400|}}
 +
 +\\
 +  * Remove the insulation from the longer piece.
 +  * Cut two small (2 cm) pieces of the insulation and shift it on both ends of the longer piece of the wire.
 +{{:en:instructions:wire_game_3.jpg?direct&400|}}
 +
 +\\
 +  * Bend the copper wire and lead it through the pins D5, D6 and D7 as shown on the image.
 +{{:en:instructions:wire_game_4.jpg?direct&400|}}
 +
 +\\
 +  * Add the wand to one end of the alligator clip.
 +  * The other end is connected to pin GND.
 +{{:en:instructions:wire_game_5.jpg?direct&400|}}
 +
 +==== 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 {{:en:instructions:play.png?direct&30|}}.
 +
 +=== Step 1 ===
 +Show an X on the matrix and switch on the LED in red.
 +
 +{{:en:instructions:wire_s1.png?direct|}}
 +\\
 +
 +=== 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.
 +
 +{{:en:instructions:wire_s2.png?direct|}}
 +\\
 +
 +=== 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.
 +
 +{{:en:instructions:wire_s3.png?direct|}}
 +\\
 +
 +=== 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.
 +
 +{{:en:instructions:wire_s4.png?direct|}}
 +
 +\\
 +=== (Optional) Step 5 ===
 +Show the green light only in case I do not touch the wire during the whole path.
 +
 +{{:en:instructions:wire_s5.png?direct|}}
 +
 +\\
 +=== (Optional) Step 6 ===
 +Measure the time I need to do the path.
 +
 +{{:en:instructions:wire_s6.png?direct|}}
 +
 +\\
 +=== (Optional) Step 7 ===
 +Show the time at the end of the game.
 +
 +{{:en:instructions:wire_s7.png?direct|}}
 +
 +\\
 +
 +==== Solution ====
 +{{:en:instructions:wire_solution1.png?direct|}}
 +
 +Short instructions to download and print: {{ :en:instructions:180621_fly_instructions_hotwire_v03.pdf |}} or open project in [[https://code.kniwwelino.lu/?xml=examples/Hot_Wire_Game_05.xml|KniwwelinoBlockly]]