Widerstände:
Die Widerstände kann man auch in Reihe anschliessen. Dadurch wird der Lüfter immer langsamer.
Pin in der Mitte vom Transistor ◍-------▭---▭---▭--------◍ Raspberry Pin links neben dem Minus.
Konfiguration RPI-Monitor Adapter:
Häkchen setzen bei GPIOS = 14 = Ausgang Startwert 1
Auf die Bilder klicken. Beides kostet ink. Versand ca. 5.50 Euro auf Amazon
Code
- <xml xmlns="https://developers.google.com/blockly/xml">
- <block type="on" id="2cH*SBjT;9Ju;J2plqKI" x="62" y="87">
- <field name="OID">rpi2.0.temperature.soc_temp</field>
- <field name="CONDITION">any</field>
- <field name="ACK_CONDITION"></field>
- <statement name="STATEMENT">
- <block type="controls_if" id="%kwjJ}ome4_p#pjmuIR7">
- <mutation elseif="1"></mutation>
- <value name="IF0">
- <block type="logic_compare" id="]+vExVn.C@)Cxnc$Sc,8">
- <field name="OP">GTE</field>
- <value name="A">
- <block type="on_source" id="w:s^~bWCS4S=_Li/;R}/">
- <field name="ATTR">state.val</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="0e+U@w*DKja[zUvN/bGh">
- <field name="NUM">60</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO0">
- <block type="control" id="KU-i)jc`}$z`f7no~J_x">
- <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
- <field name="OID">rpi2.0.gpio.14.state</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="UJzfw,Ki9?(UCkN]cm-Q">
- <field name="BOOL">TRUE</field>
- </block>
- </value>
- </block>
- </statement>
- <value name="IF1">
- <block type="logic_compare" id="7q$!A`Qy4gzw6KFc[^|P">
- <field name="OP">LTE</field>
- <value name="A">
- <block type="on_source" id="6x(3T281{R,2{xG|Z441">
- <field name="ATTR">state.val</field>
- </block>
- </value>
- <value name="B">
- <block type="math_number" id="+{}_nEJfj`?|x[A*$%YP">
- <field name="NUM">40</field>
- </block>
- </value>
- </block>
- </value>
- <statement name="DO1">
- <block type="control" id="RnjW,:mA`HPxgo,I:h-T">
- <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
- <field name="OID">rpi2.0.gpio.14.state</field>
- <field name="WITH_DELAY">FALSE</field>
- <value name="VALUE">
- <block type="logic_boolean" id="{QAn6u!:fB@/Pcvrl6H:">
- <field name="BOOL">FALSE</field>
- </block>
- </value>
- </block>
- </statement>
- </block>
- </statement>
- </block>
- </xml>