Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Volt kalibrierung

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] Volt kalibrierung

    This topic has been deleted. Only users with topic management privileges can see it.
    • Aphofis
      Aphofis last edited by Aphofis

      Ich habe einen pH Wert sensor, der sich leider per Offset nihct kalibrieren lässt.
      nun habe ich den Sensor kurz geschlossen was einen Volt wert von 2,5 also pH 7 haben muss.
      Der angezeigte analoge Volt wert ist 3,2776 der nun in einem neuen Datenpunkt kalibriert werden soll.
      das wäre der Faktor 0,777 volt abzug. um auf 2,5 volt zu kommen.
      Doch funktioniert meine Steuerung nihct richtig.
      Vielleicht, kann mir jemadn bei der Rechnung helfen.
      @paul53 vermutlich ist das auch ein klax für dich!!! 😉

      Bildschirmfoto 2019-12-30 um 20.34.34.png

      <xml xmlns="http://www.w3.org/1999/xhtml">
        <variables>
          <variable type="" id="$5I]gp~Txzo{y1-w]v%!">faktor</variable>
        </variables>
        <block type="schedule" id="~^R$?K-(|iH$zk`(S@[O" x="-1037" y="-263">
          <field name="SCHEDULE">*/2 * * * * *</field>
          <statement name="STATEMENT">
            <block type="variables_set" id="k(^.z*=TM,3Ycu!DAG0L">
              <field name="VAR" id="$5I]gp~Txzo{y1-w]v%!" variabletype="">faktor</field>
              <value name="VALUE">
                <block type="math_number" id="6Vx~Wzdd{$:Tf(l9n7;:">
                  <field name="NUM">0.777</field>
                </block>
              </value>
              <next>
                <block type="on_ext" id="VgSOZZ1Qcc[ZOIc%ki.3">
                  <mutation items="1"></mutation>
                  <field name="CONDITION">ne</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="(w12OAQ=uio)#QKbtrSB">
                      <field name="oid">i2c.0.0x48.1</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="N;1mfcR%29K!Z)Y,^:70">
                      <value name="IF0">
                        <block type="on_source" id="6,S?i=$b4Hn3cQnhV3Pk">
                          <field name="ATTR">state.val</field>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="variables_set" id="F1coV,dGZtIRBU[isydx">
                          <field name="VAR" id="$5I]gp~Txzo{y1-w]v%!" variabletype="">faktor</field>
                          <value name="VALUE">
                            <block type="math_arithmetic" id="bnkGwRrW=56S+(|%{Rvx">
                              <field name="OP">MINUS</field>
                              <value name="A">
                                <shadow type="math_number" id="-`Q?YY~dW0d(JWKy:6xX">
                                  <field name="NUM">1</field>
                                </shadow>
                                <block type="get_value" id="g/S|8L2Rd|O+1yrr0!/]">
                                  <field name="ATTR">val</field>
                                  <field name="OID">i2c.0.0x48.1</field>
                                </block>
                              </value>
                              <value name="B">
                                <shadow type="math_number" id="TL*-I#QG*x3/9i{5yz%h">
                                  <field name="NUM">0.777</field>
                                </shadow>
                                <block type="variables_get" id="tkcyD.jIEi6WT%#ftfy4">
                                  <field name="VAR" id="$5I]gp~Txzo{y1-w]v%!" variabletype="">faktor</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="update" id="jBkrgi$Jry:pgD}kVg(^">
                              <mutation delay_input="false"></mutation>
                              <field name="OID">Aqua_Control.0.Sensoren.pH_Volt_Kalibrierung</field>
                              <field name="WITH_DELAY">FALSE</field>
                              <value name="VALUE">
                                <block type="math_rndfixed" id="qJ*fw7[Kv}oY|w-)?ae-">
                                  <field name="n">3</field>
                                  <value name="x">
                                    <shadow type="math_number" id="hhN@zu}Vz_c6G5;a(=;u">
                                      <field name="NUM">3.1234</field>
                                    </shadow>
                                    <block type="variables_get" id="pVVG}DFZ@cRL]F%KY[Y^">
                                      <field name="VAR" id="$5I]gp~Txzo{y1-w]v%!" variabletype="">faktor</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </statement>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
          </statement>
        </block>
      </xml>
      
      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Aphofis last edited by paul53

        @Aphofis

        Blockly_temp.JPG

        <xml xmlns="http://www.w3.org/1999/xhtml">
         <variables>
           <variable type="" id="$5I]gp~Txzo{y1-w]v%!">offset</variable>
         </variables>
         <block type="variables_set" id="k(^.z*=TM,3Ycu!DAG0L" x="-1012" y="-287">
           <field name="VAR" id="$5I]gp~Txzo{y1-w]v%!" variabletype="">offset</field>
           <value name="VALUE">
             <block type="math_number" id="6Vx~Wzdd{$:Tf(l9n7;:">
               <field name="NUM">-0.777</field>
             </block>
           </value>
           <next>
             <block type="on_ext" id="VgSOZZ1Qcc[ZOIc%ki.3">
               <mutation items="1"></mutation>
               <field name="CONDITION">ne</field>
               <field name="ACK_CONDITION"></field>
               <value name="OID0">
                 <shadow type="field_oid" id="(w12OAQ=uio)#QKbtrSB">
                   <field name="oid">i2c.0.0x48.1</field>
                 </shadow>
               </value>
               <statement name="STATEMENT">
                 <block type="update" id="jBkrgi$Jry:pgD}kVg(^">
                   <mutation delay_input="false"></mutation>
                   <field name="OID">Aqua_Control.0.Sensoren.pH_Volt_Kalibrierung</field>
                   <field name="WITH_DELAY">FALSE</field>
                   <value name="VALUE">
                     <block type="math_rndfixed" id="qJ*fw7[Kv}oY|w-)?ae-">
                       <field name="n">3</field>
                       <value name="x">
                         <shadow type="math_number" id="hhN@zu}Vz_c6G5;a(=;u">
                           <field name="NUM">0</field>
                         </shadow>
                         <block type="math_arithmetic" id="-D|M`ATEo/w)J1}lY*K[">
                           <field name="OP">ADD</field>
                           <value name="A">
                             <shadow type="math_number" id="_kad[g/c-xth1LhVuw1w">
                               <field name="NUM">1</field>
                             </shadow>
                             <block type="on_source" id="6,S?i=$b4Hn3cQnhV3Pk">
                               <field name="ATTR">state.val</field>
                             </block>
                           </value>
                           <value name="B">
                             <shadow type="math_number" id="Vtlgtq=%?cdINry/AMp,">
                               <field name="NUM">1</field>
                             </shadow>
                             <block type="variables_get" id="pVVG}DFZ@cRL]F%KY[Y^">
                               <field name="VAR" id="$5I]gp~Txzo{y1-w]v%!" variabletype="">offset</field>
                             </block>
                           </value>
                         </block>
                       </value>
                     </block>
                   </value>
                 </block>
               </statement>
             </block>
           </next>
         </block>
        </xml>
        

        Aphofis 1 Reply Last reply Reply Quote 0
        • Aphofis
          Aphofis @paul53 last edited by Aphofis

          @paul53
          wie immer Läuft!!!
          Wie machst du das bloß !?
          Wert wird kalibriert und steht nun auf 2,5 Volt dann teste ich mal die Kalibrier Lösungen ob dr richtige wert angezeigt wird.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          678
          Online

          31.9k
          Users

          80.3k
          Topics

          1.3m
          Posts

          blockly
          2
          3
          288
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo