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:wristband [2018/01/23 15:11]
kniwwelino
en:instructions:wristband [2019/11/13 09:27] (current)
kniwwelino [Solution]
Line 1: Line 1:
 +===== Best friends wristband =====
 +The wristband allows you to send icons or messages to your friends.
  
 +{{ :fr:instructions:best_friend_wristband.png?400 |}}
 +
 +To program this example you need to use the buttons, the matrix and the messages. 
 +
 +==== Programming ====
 +You can program the wristband 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: Showing an image when a button is pressed ===
 +  * You will say to Kniwwelino: « //If I press button A then show my image// ». Use the following blocks and add them to Kniwwelino loop forever:
 +
 +{{:en:instructions:wristband03.png?direct|}}{{:en:instructions:wristband01.png?direct|}}
 +
 +=== Step 2: Show different images when button A or B is pressed ===
 +  * You will say to Kniwwelino: « //If I press button A then show the first image, but if I press button B then show the second image// ». Add the following blocks:
 +
 +{{:en:instructions:wristband04.png?direct|}}{{:en:instructions:wristband02.png?direct|}}
 +
 +=== Step 3: Instead of showing images on your matrix, send them to your friends ===
 +
 +  * Create a group for your friends with a secret name like  «  mySecretFriends ». Only your friends, using the same name as you, will be able to exchange messages with you. You will say to Kniwwelino : « //Send my messages only to those Kniwwelinos who use the same group name as myself// ». Use the following block at the beginning of your program:
 +
 +{{:en:instructions:wristband05.png?direct|}}
 +
 +  * Connect your matrix to receive the messages of your friends. You will say to Kniwwelino : « //Show on my matrix all images which are send to the group of my friends// ». Use the following block at the beginning of your program:
 +
 +{{:en:instructions:wristband06.png?direct|}}
 +
 +  * Send the images to your friends. You will say to Kniwwelino: « //Send the images to my friends// ». Delete the violet matrix blocs and replace them with orange messaging blocks.
 +
 +{{:en:instructions:wristband08.png?direct|}} {{:en:instructions:wristband07.png?direct|}}
 +
 +==== Solution ====
 +[[en:instructions:wristband:solution1|]] or open solution in [[https://code.kniwwelino.lu/?xml=examples/bf.xml|KniwwelinoBlockly]]
 +
 +Print versions available for download in [[en:downloads:start|]].
 +
 +==== Crafting of the wristband ====
 +
 +
 +=== Needed material ===
 +
 +  * 1 piece of cellular rubber 20,5x6cm
 +  * [optional] 2 small pieces of cellular rubber of a different color
 +  * minimum 4 brads of 4mm diameter or thread and needle
 +  * 1 brad of 7 mm diameter or a button
 +  * Scissors
 +  * A punch or a cutter
 +
 +=== Model ===
 +
 +{{ :fr:instructions:wristband:model_braceleet.png?direct&100 |}}
 +{{ :fr:instructions:wristband:modele_bracelet.docx |Model}}
 +=== Instructions ===
 +  - Download, print and cut the model.
 +  - Copy the shape of the model on the cellular rubber with a pen and cut it.
 +  - Attach the Kniwwelino using the brads and the holes of the Kniwwelino.
 +  - Create two holes on one side of the wristband with the punch.
 +  - Attach the larger brad on the other side of the wristband.
 +
 +{{:fr:instructions:wristband:img_0337.jpg?400|}}{{:fr:instructions:wristband:img_0339.jpg?400|}}
 +
 +
 +{{ :fr:instructions:fin_bracelet_fr.png |}}
 +
 +
 +==== To go further ====
 +  * To send a text message to your friends, use the following block:
 +{{:en:instructions:wristband09.png?direct|}}
 +
 +  * To change the colour of the RGB LED of the Kniwwelinos in your group of friends, use the following blocks:
 +{{:en:instructions:wristband10.png?direct|}} {{:en:instructions:wristband11.png?direct|}}