<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    <div class="moz-signature">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      Dobrý den,
      <br>
      <br>
      to bude. Proudem 0.053mA. To ta baterka ani nepozná.<br>
      <br>
      S pozdravem,<br>
      <pre class="moz-signature" cols="72">-- 
 Aleš Filip
 Kutná Hora
 <a class="moz-txt-link-freetext" href="http://xanadu.khnet.info">http://xanadu.khnet.info</a></pre>
      <div id="quoteDIV"> </div>
    </div>
    <div class="moz-cite-prefix">Dne 10.02.2021 v 10:33 Ladislav Vaiz
      napsal(a):<br>
    </div>
    <blockquote type="cite"
      cite="mid:3e18a0af-9595-38b4-aa16-cb3c9b9ca990@nagano.cz">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>To mi ale dělič bude zbytečně vybíjet baterku. Chtěl bych
        využít možnost interního měření.</p>
      <p>L.</p>
      <p><br>
      </p>
      <div class="moz-cite-prefix">Dne 10.2.2021 v 10:27 Aleš Filip
        napsal(a):<br>
      </div>
      <blockquote type="cite"
        cite="mid:15d31e66-8cac-4855-0634-556404dfb947@khnet.info">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <br>
        <div class="moz-signature">
          <meta content="text/html; charset=UTF-8"
            http-equiv="Content-Type">
          Dobrý den, <br>
          <br>
          Je potřeba připojit baterku k A0 přes odporový dělič. Já jsem
          to udělal takto, a ukazue to správné napětí: <a
            class="moz-txt-link-freetext"
            href="http://xanadu.khnet.info/wemosd1meteo.php"
            moz-do-not-send="true">http://xanadu.khnet.info/wemosd1meteo.php</a><br>
          <br>
          S pozdravem,<br>
          <pre class="moz-signature" cols="72">-- 
 Aleš Filip
 Kutná Hora
 <a class="moz-txt-link-freetext" href="http://xanadu.khnet.info" moz-do-not-send="true">http://xanadu.khnet.info</a></pre>
          <div id="quoteDIV"> </div>
        </div>
        <div class="moz-cite-prefix">Dne 10.02.2021 v 7:39 Ladislav Vaiz
          napsal(a):<br>
        </div>
        <blockquote type="cite"
          cite="mid:c91c3888-0e37-0050-44a1-628eb568d128@nagano.cz">Ahoj,
          <br>
          <br>
          na ESP8266 mi nefunguje měření napájecího napětí. Zkoušeno na
          ESP-01 a Lolin V3. Čte se někdy kolem 2.8V, někdy kolem 3.7V,
          ale je tam 3.3V. Na A0 je 0V. Na webových fórech mi žádná rada
          nepomohla. Nefunguje ani příklad, který někomu prý funguje.
          Netušíte někdo, co s tím? <br>
          <br>
          <br>
          <br>
          ADC_MODE(ADC_VCC); <br>
          <br>
          void setup(){ <br>
          } <br>
          <br>
          void loop() { <br>
            Serial.begin(9600); <br>
            Serial.println(); <br>
          <br>
            uint16_t v = ESP.getVcc(); <br>
            float_t v_cal = ((float)v/1024.0f); <br>
            char v_str[10]; <br>
            dtostrf(v_cal, 5, 3, v_str); <br>
            sprintf(v_str,"%s V", v_str); <br>
            Serial.println(v_str); <br>
            delay(3000); <br>
          } <br>
          <br>
          <br>
          Díky L. <br>
          <br>
          <br>
          _______________________________________________ <br>
          HW-list mailing list  -  sponsored by <a
            class="moz-txt-link-abbreviated" href="http://www.HW.cz"
            moz-do-not-send="true">www.HW.cz</a> <br>
          <a class="moz-txt-link-abbreviated"
            href="mailto:Hw-list@list.hw.cz" moz-do-not-send="true">Hw-list@list.hw.cz</a>
          <br>
          <a class="moz-txt-link-freetext"
            href="http://list.hw.cz/mailman/listinfo/hw-list"
            moz-do-not-send="true">http://list.hw.cz/mailman/listinfo/hw-list</a>
          <br>
        </blockquote>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
HW-list mailing list  -  sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz" moz-do-not-send="true">www.HW.cz</a>
<a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz" moz-do-not-send="true">Hw-list@list.hw.cz</a>
<a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list" moz-do-not-send="true">http://list.hw.cz/mailman/listinfo/hw-list</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
HW-list mailing list  -  sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
<a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
<a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>