Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:instructions:lampmulticolor [2018/04/24 16:33] – kniwwelino | en:instructions:lampmulticolor [2018/07/13 14:32] (current) – [Needed materials] kniwwelino | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Multicolor Lamp ===== | ||
+ | A small lamp, made from a sheet of paper which is folded using a simple Origami technique, and illuminated through the RGB LED. With the two buttons of the Kniwwelino, you can change the color of the lamp and its blinking effect. | ||
+ | {{: | ||
+ | |||
+ | To program the lamp, you will need to use blocks from the buttons, the LEDs, the variables, logics, and functions. | ||
+ | |||
+ | ==== Needed materials ==== | ||
+ | |||
+ | * 1 Kniwwelino | ||
+ | * 1 USB cable | ||
+ | * 1 power source (powerbank or USB charger) | ||
+ | * 1 A4 sheet of white paper | ||
+ | * scissors and glue | ||
+ | * 1 rubber band | ||
+ | * 1 ice cream stick | ||
+ | * double-sided tape | ||
+ | * cardboard | ||
+ | |||
+ | ==== Programming ==== | ||
+ | |||
+ | === Step 1: set the color of the LED === | ||
+ | To set the color of the LED, use the following block and put it into '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | === Step 2: make the LED blink === | ||
+ | To make the LED blink, change set the block option to '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | === Step 3: change the colour of the LED when you click on button A === | ||
+ | * To be able to change the colour when you click on button A, you need to use a variable which keeps track on how often you clicked on button A. First, initialise your variable in '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * Now you want this variable to be increased each time you click button A. However, it should only count to 5, after that it should restart at 0: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * For each of the values of '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * Now call the function '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | === Step 4: change the blinking effect when you click on button B === | ||
+ | * Use a second variable '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * Inside the function '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | | ||
+ | |||
+ | |||
+ | |||
+ | === Solution === | ||
+ | Open Project in [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | ==== Crafting ==== | ||
+ | |||
+ | |||
+ | === Model === | ||
+ | The model for the multicolor lamp is available here: {{ : | ||
+ | |||
+ | === Instructions === | ||
+ | * Use the rubber band to fix the ice cream stick onto the Kniwwelino | ||
+ | {{: | ||
+ | \\ | ||
+ | |||
+ | * Use a piece of double-sided tape, to fix the Kniwwelino onto the piece of cardboard | ||
+ | {{: | ||
+ | \\ | ||
+ | |||
+ | * Print and cut the model. | ||
+ | {{: | ||
+ | \\ | ||
+ | |||
+ | * First fold the paper on the two small horizontal lines (while opening the second fold again). Then fold it at the smaller vertical line. Then fold all the remaining verical, horizontal and diagonal lines and cut the vertical lines for the cover. | ||
+ | {{: | ||
+ | \\ | ||
+ | |||
+ | * Join both vertical ends with some glue. | ||
+ | {{: | ||
+ | \\ | ||
+ | |||
+ | * Close the cover by fixing the different parts with glue. | ||
+ | {{: | ||
+ | \\ | ||
+ | |||
+ | * Cut three holes at the border for the ice cream stick and the USB cable. Add the labels for the ice cream stick. | ||
+ | {{: |