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:extensions [2018/05/07 13:52]
kniwwelino
en:extensions [2019/01/11 14:34] (current)
kniwwelino
Line 1: Line 1:
-===== Adding extensions to the Kniwwelino ===== +====== Adding extensions to the Kniwwelino ​====== 
-You can add additional components, such as sensors, LEDs, motors, buttons to the Kniwwelino by making use of the pins on the outer area, or the i2c connector.+You can add additional components, such as sensors, LEDs, motors, buttons to the Kniwwelino by making use of the pins on the outer area, or the i2c connector. ​There are different types of pins, each having a different role in the connection to the Kniwwelino.  
 + 
 +{{:​en:​extensions:​pins_colors.png?​direct&​400|}} 
 + 
 +Each component need to be connected to two or more of these pins, depending on the technical specification of the component. In the following we show you how standard components are connected to the Kniwwelino.  
 + 
 +The connection itself can be done in various ways. In the section [[en:​extensions#​connecting_extensions|Connecting extensions]] you can read 2 ways of connecting them without soldering. 
 +===== External LED ===== 
 +To switch on a light: you can give a feedback (for instance that you got a message) or just for decoration. 
 + 
 +To connect an LED: 
 +  * shorter leg goes to GND 
 +  * longer leg goes to pin D0, D5, D6 or D7 
 + 
 +{{:​en:​extensions:​ext_led_diagram.png?​direct&​250|}} 
 + 
 +To program external LED, you can use the following block: [[en:​programmingblocks:​led#​set_external_led|set external LED]]  
 + 
 +You can also find step-by-step instructions for connecting LEDs here: [[en:​extensions:​extled]] 
 + 
 +===== External push button ===== 
 +To trigger an event: you can press the button or click it (press and release). In this case the circuit is closed. 
 + 
 +To connect a button: 
 +  * One leg goes to D5, D6 or D7 
 +  * The leg aside to it goes to GND 
 + 
 +{{:​en:​extensions:​ext_button_diagram.png?​direct&​200|}} 
 + 
 +You can also find step-by-step instructions for connecting buttons here: [[en:​extensions:​extbuttons]] 
 + 
 +===== Buzzer ===== 
 +The buzzer allows you to play a musical note or a tone. 
 + 
 +To connect a buzzer: 
 +  * The leg labeled + goes to D5, D6 or D7 
 +  * The other leg goes to GND 
 + 
 +{{:​en:​extensions:​buzzer_diagram.png?​direct&​250|}} 
 + 
 + 
 +===== Servo motor SG90 ===== 
 +A servo is a motor able to turn to a predefined position. This position is an angle between 0° and 180°. It allows you, for instance, to build a mechanical arm. 
 + 
 +To connect a servo motor: 
 +  * Yellow cable goes to D5, D6 or D7 
 +  * Red cable goes to 3.3V 
 +  * Black cable goes to GND 
 + 
 +{{:​en:​servo_diagram.png?​direct&​300|}} 
 + 
 +You can find step-by-step instructions on how to connect a servo motor here: [[en:​extensions:​servo]] 
 + 
 +===== Neopixel LED strip ===== 
 +Switch on the LEDs and change their colour and effect to give a feedback or for decoration. 
 + 
 +To connect an LED strip: 
 +  * DI goes to pin D5, D6 or D7 
 +  * +5V goes to 3.3V 
 +  * GND goes to GND 
 + 
 +{{:​en:​extensions:​neopixel_diagram.png?​direct&​220|}} 
 + 
 +You can find detailed instructions for connecting an Neopixel RGB LED strip here: [[en:​extensions:​neopixel]]  
 + 
 +===== Proximity sensor ===== 
 +You can find detailed instructions for connecting a proximity sensor here: [[en:​extensions:​extothersensor]] 
 + 
 + 
 +===== Potentiometer ===== 
 +You can find detailed instructions for connecting a potentiometer here: [[en:​extensions:​extanalog]] 
 + 
 + 
 +===== i2C sensors ===== 
 +{{:​en:​extensions:​i2c_diagram.png?​direct&​220|}} 
 + 
 +You can find detailed instructions for connecting i2c sensors here: [[en:​extensions:​exti2csensor]] 
 + 
 + 
 +====== Connecting extensions ====== 
 +To connect your extensions (except for i2C sensors) you can either use alligator clips or silicon wire. Make sure to connect the right leg with the right pin as indicated in the diagrams above. 
 + 
 +Important! Before connecting any extensions, make sure to cut the power supply for the Kniwwelino. 
 + 
 +===== Connecting with alligator clips ===== 
 +For each connection:​ 
 +  * Take an alligator clip and connect one end to the leg of the component (as indicated in the diagrams above). 
 +  * Connect the other end to the pin on the Kniwwelino (as indicated in the diagrams above). 
 + 
 +{{:​en:​how_to:​extledm1_2.jpg?​600|}} 
 + 
 + 
 +===== Connecting with silicon wire ===== 
 +For each connection:​ 
 +  * Cut a piece of the silicon wire each (using scissors). The length depends on the project you want to use it for. 
 +  * Take off a part of the silicon protection at both ends (about 1 to 1.5cm). You can simply tear it off with your finger nail. 
 +  * Wind one end of the wire around the leg of the extension (as indicated in the diagrams above) and fix the connection with tape. 
 + 
 +{{:​en:​how_to:​extledm2_3.jpg?​600|}} 
 + 
 +  * Wind the other end of the wire around the pins on the Kniwwelino (as indicated in the diagrams above). 
 + 
 +{{:​en:​how_to:​extledm2_5.jpg?​600|}} 
 + 
 + 
 + 
 + 
 +====== All instructions ====== 
 + 
 +  * [[en:​extensions:​extled]] 
 +  * [[en:​extensions:​extbuttons]]  
 +  * [[en:​extensions:​extbuttons]] 
 +  * [[en:​extensions:​servo]]  
 +  * [[en:​extensions:​exti2csensor]] 
 +  * [[en:​extensions:​extothersensor]] 
 +  * [[en:​extensions:​extanalog]] 
 +  * [[en:​extensions:​neopixel]] ​
  
-[[en:​extensions:​extled|{{:​en:​how_to:​extledm2_5b.jpg?​direct&​200|}}]] ​ 
-**[[en:​extensions:​extled]]** \\ 
-\\\ 
-[[en:​extensions:​extbuttons|{{:​en:​extensions:​extbutton01.jpg?​direct&​200|}}]] ​ 
-**[[en:​extensions:​extbuttons]]** \\ 
-\\\ 
-[[en:​extensions:​servo|{{:​en:​extensions:​servo_2.jpg?​200|}}]] 
-**[[en:​extensions:​servo]]** \\ 
-\\\ 
-[[en:​extensions:​exti2csensor|{{:​en:​i2c_4.jpg?​direct&​200|}}]] 
-**[[en:​extensions:​exti2csensor]]** \\ 
-\\\ 
-[[en:​extensions:​extothersensor|{{:​en:​i2c_4.jpg?​direct&​200|}}]] 
-**[[en:​extensions:​extothersensor]]** \\ 
-\\\ 
-[[en:​extensions:​extanalog|{{:​en:​extensions:​analogsensor_1.jpg?​direct&​200|}}]] 
-**[[en:​extensions:​extanalog]]** \\ 
-\\\