<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fingerprint an einem ESP8266]]></title><description><![CDATA[<p dir="auto">Hallo,</p>
<p dir="auto">hat wer von euch schonmal einen Fingerprint-Sensor mit einem ESP8266 zum Laufen bekommen?</p>
<p dir="auto">Ich habe den Fingerprint-Sensor mit dem AS608-Chip drauf (<a href="https://de.aliexpress.com/item/AS608-Fingerprint-Reader-Sensor-Modul-Optische-Fingerprint-Fingerprint-Modul-F-r-Arduino-Schl-sser-Serielle-Kommunikation/32962793512.html?spm=a2g0s.9042311.0.0.2f2f4c4dvFdBwT" rel="nofollow ugc">Link zum Sensor auf aliexpress</a>). Die Pins habe ich folgendermaßen verbunden:<br />
VCC --&gt; 3,3V (auch mit 5V versucht)<br />
TX --&gt; RX (GPIO3)<br />
RX --&gt; D4 (GPIO2 - TX)<br />
GND --&gt; GND<br />
TCH und VA habe ich nicht auf dem ESP verbunden, da nirgends davon etwas stand.</p>
<p dir="auto">Das hier ist mein Code (ist das Beispiel aus der Bibliothek), aber er gibt immer "Did not find fingerprint sensor" aus. Ich bin schon am verzweifeln. :-(</p>
<pre><code>#include &lt;Adafruit_Fingerprint.h&gt;

// On Leonardo/Micro or others with hardware serial, use those! #0 is green wire, #1 is white
// uncomment this line:
//#define mySerial Serial1

// For UNO and others without hardware serial, we must use software serial...
// pin #2 is IN from sensor (GREEN wire)
// pin #3 is OUT from arduino  (WHITE wire)
// comment these two lines if using hardware serial
SoftwareSerial mySerial(2, 3);

Adafruit_Fingerprint finger = Adafruit_Fingerprint(&amp;mySerial);

void setup()  
{ 
  Serial.begin(9600);
  while (!Serial);
  delay(100);
  Serial.println("\n\nAdafruit finger detect test");

  finger.begin(57600);
  
  if (finger.verifyPassword()) {
    Serial.println("Found fingerprint sensor!");
  } else {
    Serial.println("Did not find fingerprint sensor :(");
    while (1) { delay(1); }
  }
}

void loop()
{
}
</code></pre>
<p dir="auto">Ich hoffe, mir kann einer von euch weiterhelfen, da ich einfach nicht mehr weiterkomme. Im Internet finde ich immer nur dieselbe Vorgehensweise, welche ich aber befolge und trotzdem nicht funktioniert. Ich befürchte ja schon, dass der Fingerprint-Sensor nur mit einem Arduino funktioniert und nicht mit einem ESP8266, aber so recht kann ich mir das auch nicht vorstellen.</p>
<p dir="auto">Vielen Dank schonmal für eure Hilfe!</p>
<p dir="auto">Liebe Grüße<br />
Thomas</p>
]]></description><link>https://forum.iobroker.net/topic/23398/fingerprint-an-einem-esp8266</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 23:45:59 GMT</lastBuildDate><atom:link href="https://forum.iobroker.net/topic/23398.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Jun 2019 08:12:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Tue, 15 Feb 2022 13:30:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralla66" aria-label="Profile: ralla66">@<bdi>ralla66</bdi></a> sagte in <a href="/post/762701">Fingerprint an einem ESP8266</a>:</p>
<blockquote>
<p dir="auto">ESP Softwareserial</p>
</blockquote>
<p dir="auto">Neuen Tag neues Glück, hat heute geklappt</p>
]]></description><link>https://forum.iobroker.net/post/762881</link><guid isPermaLink="true">https://forum.iobroker.net/post/762881</guid><dc:creator><![CDATA[locito09]]></dc:creator><pubDate>Tue, 15 Feb 2022 13:30:54 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Mon, 14 Feb 2022 21:21:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/locito09" aria-label="Profile: locito09">@<bdi>locito09</bdi></a></p>
<p dir="auto">Läuft bei mir durch mit dem Sketch vom 24 Aug 2019 ohne die 128.<br />
Unter Bibliothek ist die <strong>ESP</strong> Softwareserial eingebunden ?</p>
<p dir="auto"><img src="/assets/uploads/files/1644872036406-fp.jpg" alt="fp.jpg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://forum.iobroker.net/post/762701</link><guid isPermaLink="true">https://forum.iobroker.net/post/762701</guid><dc:creator><![CDATA[Ralla66]]></dc:creator><pubDate>Mon, 14 Feb 2022 21:21:01 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Mon, 14 Feb 2022 16:04:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralla66" aria-label="Profile: ralla66">@<bdi>ralla66</bdi></a><br />
bei mir kommt immer diese fehler meldung beim versuch den Scetch hochzuladen auf einen Wemos D1 Mini</p>
<p dir="auto">'SoftwareSerial' does not name a type; did you mean 'HardwareSerial'?<br />
ketch_feb14a:191:10: error: 'FINGERPRINT_OK' was not declared in this scope<br />
if (p != FINGERPRINT_OK) return -1;<br />
^~~~~~~~~~~~~~<br />
sketch_feb14a:194:10: error: 'FINGERPRINT_OK' was not declared in this scope<br />
if (p != FINGERPRINT_OK) return -1;<br />
^~~~~~~~~~~~~~<br />
sketch_feb14a:197:10: error: 'FINGERPRINT_OK' was not declared in this scope<br />
if (p != FINGERPRINT_OK) return -1;<br />
^~~~~~~~~~~~~~<br />
sketch_feb14a:202:1: error: 'client' was not declared in this scope<br />
client.subscribe("print/Confidence");<br />
^~~~~~<br />
C:\Users\migue\Documents\Arduino\sketch_feb14a\sketch_feb14a.ino:202:1: note: suggested alternative: 'cnt'<br />
client.subscribe("print/Confidence");<br />
^~~~~~</p>
]]></description><link>https://forum.iobroker.net/post/762477</link><guid isPermaLink="true">https://forum.iobroker.net/post/762477</guid><dc:creator><![CDATA[locito09]]></dc:creator><pubDate>Mon, 14 Feb 2022 16:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sat, 12 Jun 2021 05:22:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/exitus" aria-label="Profile: exitus">@<bdi>exitus</bdi></a> bei mir funktioniert es .. aber zum anlernen immer skech aufspielen</p>
]]></description><link>https://forum.iobroker.net/post/641773</link><guid isPermaLink="true">https://forum.iobroker.net/post/641773</guid><dc:creator><![CDATA[Julian Raab]]></dc:creator><pubDate>Sat, 12 Jun 2021 05:22:49 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Wed, 12 May 2021 21:41:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/julian-raab" aria-label="Profile: julian-raab">@<bdi>julian-raab</bdi></a> das würde mich auch intressieren hat jemand es schon am laufen???</p>
]]></description><link>https://forum.iobroker.net/post/628027</link><guid isPermaLink="true">https://forum.iobroker.net/post/628027</guid><dc:creator><![CDATA[exitus]]></dc:creator><pubDate>Wed, 12 May 2021 21:41:27 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sun, 28 Mar 2021 06:12:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/t%C3%B6%C3%B6%C3%B6" aria-label="Profile: tööö">@<bdi>tööö</bdi></a> Hallo, ich bin absoluter neuling habe mir den Fingerprint Sketch auch zugelegt was auch funktioniert .. jedoch mit dem MQTT auszügen komm ich nicht klar.<br />
Könntest du mir evtl. den Sketch komplett zur verfügung stellen damit ich den Fingerprint in IObroker intigrieren kann,</p>
<p dir="auto">Hab es nun hinbekommen, spielt ihr eure Finger immer mit dem Sketch auf oder gibt es die Möglichkeit auf eine grafischen Oberfläche ähnlich die von Home Assistant?</p>
<p dir="auto">Grüße Julian</p>
]]></description><link>https://forum.iobroker.net/post/600392</link><guid isPermaLink="true">https://forum.iobroker.net/post/600392</guid><dc:creator><![CDATA[Julian Raab]]></dc:creator><pubDate>Sun, 28 Mar 2021 06:12:17 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sat, 26 Sep 2020 20:01:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ws" aria-label="Profile: WS">@<bdi>WS</bdi></a> sagte in <a href="/post/296393">Fingerprint an einem ESP8266</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralla66" aria-label="Profile: Ralla66">@<bdi>Ralla66</bdi></a> Vielen Dank für Deine Mühe!!</p>
<p dir="auto">Ich habe mir erlaubt, Deinen Sketch ein wenig zu überarbeiten. Er läuft jetzt bei mir mit allen mqtt-Versionen ohne Verbindungsabbrüche. (Habe ihn 'mal angehängt)<br />
Grüße<br />
Wolfgang<br />
</p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">Spoiler</button><section style="display:none" class="spoiler-content"><br />
/***************************************************<br />
Fingerprint am Wemos D1 mini per MQTT nach IO Broker<br />
<strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>/<br />
#include &lt;Adafruit_Fingerprint.h&gt;<br />
//#include &lt;WiFiClient.h&gt;<br />
#include &lt;ESP8266WiFi.h&gt; // Aus Wifi Mqtt<br />
#include &lt;PubSubClient.h&gt; // Aus Wifi Mqtt<br />
#include &lt;SoftwareSerial.h&gt;<br />
#include &lt;NTPClient.h&gt;<br />
/</strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong><br />
Pinbelegung Fingerprint Sensor ist GND,Rx,TX,Vcc<br />
Am Wemos Rx ist D6 also GPIO 12<br />
Am Wemos Tx ist D5 also GPIO 14<br />
*****************************************************/<p></p>
<p dir="auto">SoftwareSerial mySerial(14, 12, false, 128);</p>
<p dir="auto">Adafruit_Fingerprint finger = Adafruit_Fingerprint(&amp;mySerial);</p>
<p dir="auto">// Eigene Daten eintragen</p>
<p dir="auto">const char* ssid = ""; // Netzwerknahme<br />
const char* password = ""; // PW Netzwerk<br />
const char* mqttServer = ""; // Broker PI<br />
const int mqttPort = 1883; // Broker PI Port<br />
const char* mqttUser = ""; // Broker PI Name<br />
const char* mqttPassword = ""; // Broker PI Password</p>
<p dir="auto">// Ab hier nix mehr machen</p>
<p dir="auto">char* mqttio = "12345"; // Broker PI Wert<br />
char* confidence = "67890"; // Broker PI Wert</p>
<p dir="auto">WiFiClient espClientfp;<br />
PubSubClient client(espClientfp);</p>
<p dir="auto">int cnt=300;</p>
<p dir="auto">void setup()<br />
{</p>
<p dir="auto">// set the data rate for the sensor serial port<br />
finger.begin(57600);</p>
<p dir="auto">if (finger.verifyPassword()) {<br />
Serial.println("Found fingerprint sensor!");<br />
} else {<br />
Serial.println("Did not find fingerprint sensor :(");<br />
while (1) { delay(1); }<br />
}</p>
<p dir="auto">finger.getTemplateCount();<br />
Serial.print("Sensor contains "); Serial.print(finger.templateCount); Serial.println(" templates");<br />
Serial.println("Waiting for valid finger...");</p>
<p dir="auto">Serial.begin(115200); // Baud Wemos nach IDE Serieller Monitor</p>
<p dir="auto">WiFi.begin(ssid, password);</p>
<p dir="auto">while (WiFi.status() != WL_CONNECTED) {<br />
delay(500);<br />
Serial.println("Connecting to WiFi..");<br />
}<br />
Serial.println("Connected to the WiFi network");<br />
Serial.print("=&gt; ESP8266 IP Adresse: ");<br />
Serial.println(WiFi.localIP());</p>
<p dir="auto">client.setServer(mqttServer, mqttPort);<br />
client.setCallback(callback);</p>
<p dir="auto">}<br />
void reconnect(){</p>
<p dir="auto">while (!client.connected()) {<br />
Serial.println("Connecting to MQTT...");</p>
<p dir="auto">if (client.connect("ESP8266Clientfp", mqttUser, mqttPassword)) {</p>
<p dir="auto">Serial.println("connected");</p>
<p dir="auto">} else {</p>
<p dir="auto">Serial.print("failed with state ");<br />
Serial.print(client.state());<br />
delay(5000);<br />
}</p>
<p dir="auto">}<br />
client.subscribe("print/Confidence");<br />
client.subscribe("print/FingerprintNr1");<br />
client.publish("print/FingerprintNr1","Print verbunden");<br />
client.publish("print/Confidence","Genauigkeit verbunden");<br />
}</p>
<p dir="auto">void callback(char* topic, byte* payload, unsigned int length) {</p>
<p dir="auto">Serial.print("Message arrived in topic: ");<br />
Serial.println(topic);</p>
<p dir="auto">Serial.print("Message:");<br />
for (int i = 0; i &lt; length; i++) {<br />
Serial.print((char)payload[i]);<br />
}</p>
<p dir="auto">Serial.println();<br />
Serial.println("-----------------------");</p>
<p dir="auto">}</p>
<p dir="auto">void loop() { // run over and over again</p>
<p dir="auto">if (!client.connected()) {<br />
reconnect();<br />
}</p>
<p dir="auto">if(cnt==0){<br />
Serial.println("Reset...");<br />
ESP.restart();<br />
}<br />
cnt--;<br />
delay(1000);<br />
Serial.println(cnt);</p>
<p dir="auto">client.loop();</p>
<p dir="auto">getFingerprintIDez();<br />
delay(50); //don't ned to run this at full speed.<br />
}</p>
<p dir="auto">uint8_t getFingerprintID() {<br />
uint8_t p = finger.getImage();<br />
switch (p) {<br />
case FINGERPRINT_OK:<br />
Serial.println("Image taken");<br />
break;<br />
case FINGERPRINT_NOFINGER:<br />
Serial.println("No finger detected");<br />
return p;<br />
case FINGERPRINT_PACKETRECIEVEERR:<br />
Serial.println("Communication error");<br />
return p;<br />
case FINGERPRINT_IMAGEFAIL:<br />
Serial.println("Imaging error");<br />
return p;<br />
default:<br />
Serial.println("Unknown error");<br />
return p;<br />
}</p>
<p dir="auto">// OK success!</p>
<p dir="auto">p = finger.image2Tz();<br />
switch (p) {<br />
case FINGERPRINT_OK:<br />
Serial.println("Image converted");<br />
break;<br />
case FINGERPRINT_IMAGEMESS:<br />
Serial.println("Image too messy");<br />
return p;<br />
case FINGERPRINT_PACKETRECIEVEERR:<br />
Serial.println("Communication error");<br />
return p;<br />
case FINGERPRINT_FEATUREFAIL:<br />
Serial.println("Could not find fingerprint features");<br />
return p;<br />
case FINGERPRINT_INVALIDIMAGE:<br />
Serial.println("Could not find fingerprint features");<br />
return p;<br />
default:<br />
Serial.println("Unknown error");<br />
return p;<br />
}</p>
<p dir="auto">// OK converted!<br />
p = finger.fingerFastSearch();<br />
if (p == FINGERPRINT_OK) {<br />
Serial.println("Found a print match!");<br />
} else if (p == FINGERPRINT_PACKETRECIEVEERR) {<br />
Serial.println("Communication error");<br />
return p;<br />
} else if (p == FINGERPRINT_NOTFOUND) {<br />
Serial.println("Did not find a match");<br />
return p;<br />
} else {<br />
Serial.println("Unknown error");<br />
return p;<br />
}<br />
}</p>
<p dir="auto">int getFingerprintIDez() {<br />
uint8_t p = finger.getImage();<br />
if (p != FINGERPRINT_OK) return -1;</p>
<p dir="auto">p = finger.image2Tz();<br />
if (p != FINGERPRINT_OK) return -1;</p>
<p dir="auto">p = finger.fingerFastSearch();<br />
if (p != FINGERPRINT_OK) return -1;</p>
<p dir="auto">sprintf(mqttio,"%d",finger.fingerID);<br />
sprintf(confidence,"%d",finger.confidence);</p>
<p dir="auto">client.subscribe("print/Confidence");<br />
client.publish("print/Confidence", confidence);</p>
<p dir="auto">client.subscribe("print/FingerprintNr1");<br />
client.publish("print/FingerprintNr1", mqttio);</p>
<p dir="auto">Serial.print("Erkannter Fingerabdruck Nr. "); Serial.print(mqttio);<br />
Serial.print(" mit einer Genauigkeit von "); Serial.println(confidence);</p>
<p dir="auto">return finger.fingerID;</p>
<p dir="auto">client.loop();<br />
}<br />
</p></section></section><p></p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ws" aria-label="Profile: WS">@<bdi>WS</bdi></a> ich bekomme immer Fehler beim kompilieren.<br />
meine SoftwareSerial.h läßt nur 3 Argumente zu.  Im Sketch werden aber vier Argumente angegeben.</p>
<pre><code>SoftwareSerial mySerial(14, 12, false, 128);
</code></pre>
<p dir="auto">(ich verwende Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\SoftwareSerial)<br />
benötige ich eine andere library?</p>
<p dir="auto">NACHTRAG: Hat sich erledig, einfach ohne das dritte Argument: SoftwareSerial mySerial(14, 12, false);</p>
]]></description><link>https://forum.iobroker.net/post/494353</link><guid isPermaLink="true">https://forum.iobroker.net/post/494353</guid><dc:creator><![CDATA[Frank_y]]></dc:creator><pubDate>Sat, 26 Sep 2020 20:01:09 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Wed, 12 Aug 2020 08:09:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hansi1234" aria-label="Profile: Hansi1234">@<bdi>Hansi1234</bdi></a> gleich mal ein Daumen hoch verteilt! Da müssen aber noch einige kommen... Sind erst zwei....</p>
]]></description><link>https://forum.iobroker.net/post/472894</link><guid isPermaLink="true">https://forum.iobroker.net/post/472894</guid><dc:creator><![CDATA[Dragon]]></dc:creator><pubDate>Wed, 12 Aug 2020 08:09:42 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Wed, 12 Aug 2020 08:05:12 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://github.com/ioBroker/AdapterRequests/issues/391" rel="nofollow ugc">Hier</a> wurde ein Request zu d Thema gestartet</p>
]]></description><link>https://forum.iobroker.net/post/472892</link><guid isPermaLink="true">https://forum.iobroker.net/post/472892</guid><dc:creator><![CDATA[Hansi1234]]></dc:creator><pubDate>Wed, 12 Aug 2020 08:05:12 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sat, 27 Jun 2020 09:34:56 GMT]]></title><description><![CDATA[<p dir="auto">Hallo alle miteinander</p>
<p dir="auto">Habe mich hier durch den Fred gelesen und muss mittlerweile sagen viel Informatives, aber leider auch viel verwirrendes....</p>
<p dir="auto">Etwas weiter oben gab es einen Post in dem Stand hier noch einmal der ganze Sketch... leider ist ein Post vorher etwas geschrieben, was in diesem leider nicht eingebaut ist. Gibt es einen Sketch den ich so übertragen kann und der out of the Box funktioniert?</p>
<p dir="auto">Wie lerne ich Fingerabdrücke an und wie lösche ich sie wieder?</p>
<p dir="auto">Habe das Problem, dass Hardwarebasteleien und auch Blockly mir viel Spaß machen aber mit der programmiererei habe ich so meine Probleme.<br />
Bestellt sind ein Wemos D1 mini und AS608 Sensor... Hoffe es gibt da etwas Hilfe für mich Mausklicker....</p>
<p dir="auto">LG<br />
David</p>
]]></description><link>https://forum.iobroker.net/post/455441</link><guid isPermaLink="true">https://forum.iobroker.net/post/455441</guid><dc:creator><![CDATA[Dragon]]></dc:creator><pubDate>Sat, 27 Jun 2020 09:34:56 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Thu, 25 Jun 2020 10:39:10 GMT]]></title><description><![CDATA[<p dir="auto">Habe gesehen, dass jemand ein request dazu gestartet hat. Wäre hier ein Adapter aufwendig?<br />
Würde auch gerne sehen wie man ihn erstellt. Hätte nämlich noch andere Projekte, die es schon auf Github gibt ;)</p>
<p dir="auto">Hier der link<br />
<a href="https://github.com/ioBroker/AdapterRequests/issues/391" rel="nofollow ugc">link text</a></p>
]]></description><link>https://forum.iobroker.net/post/454557</link><guid isPermaLink="true">https://forum.iobroker.net/post/454557</guid><dc:creator><![CDATA[Hansi1234]]></dc:creator><pubDate>Thu, 25 Jun 2020 10:39:10 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Tue, 22 Oct 2019 18:04:04 GMT]]></title><description><![CDATA[<p dir="auto">Servus,</p>
<p dir="auto">dank eurer Hilfe habe ich den Fingerprint-Reader jetzt halbwegs am Laufen, allerdings habe ich ein reproduzierbares, seltsames Problem:</p>
<p dir="auto">Nach fünf Scans, oder einer Wartezeit von ca. 20 Sek. passiert einfach nichts mehr. Keine Scanns werden mehr angenommen. Das passiert sowohl mit meinem umfangreichen Sketch, als auch mit dem sehr einfachen Adafruit Beispiel - Sketch. Nach Reset oder Stromlosschalten des Boards funktioniert es wieder für fünf Scans oder ca. 20 Sek. Auch ein Abklemmen der VCC-Leitung des FP-Readers für fünf Sek. reicht (meistens), um ihn wieder zum Leben zu erwecken - aber nur wieder für kurze Zeit. Hat jemand ne Idee, woran das liegen kann?</p>
<p dir="auto">Meine Konfiguration:</p>
<ul>
<li>LoLin Wemos Mini D1 ESP8266</li>
<li>FP-Reader "Wald und Wiese" DY50-2V1 17-12-22 Chip: AS608 QCCF TR9S1B (3,3 - 6V)</li>
<li>Levelshifter baugleich wie oben angegeben</li>
<li>Relais (zum Öffnen eines E-Öffners einer Tür)</li>
<li>Display 20x4</li>
<li>Taster mit Pulldown-Widerstand(100K) zum Initiieren des Anlernens der Finger</li>
</ul>
<p dir="auto">Verkabelung:</p>
<ul>
<li>VCC, GND über Levelshifter, wie oben angegeben</li>
<li>RX, TX über D5(GPIO14) und D6(GPIO14)</li>
<li>Signalleitung D3, VCC 5V und GND an Relais</li>
<li>D1, D2 für Display + VCC 5V, GND</li>
<li>D7 PD-Widerstand und Taster an GND</li>
</ul>
<p dir="auto">Was ich versucht habe:</p>
<ul>
<li>nackte Verkabelung ohne Display, Taster, PD, Relais</li>
<li>neues Lolin Board</li>
<li>Lolin nodeMCU V3 12E (damit habe ich gar keinen Kontakt zum FP bekommen)</li>
<li>alternativen Levelshifter</li>
<li>verschiedene USB-Netzteile und direkt am PC</li>
</ul>
<p dir="auto">Danke vorab</p>
<p dir="auto">Grüße! Benki</p>
]]></description><link>https://forum.iobroker.net/post/314897</link><guid isPermaLink="true">https://forum.iobroker.net/post/314897</guid><dc:creator><![CDATA[Benki]]></dc:creator><pubDate>Tue, 22 Oct 2019 18:04:04 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Mon, 02 Sep 2019 09:57:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralla66" aria-label="Profile: Ralla66">@<bdi>Ralla66</bdi></a> Vielen Dank für Deine Mühe!!</p>
<p dir="auto">Ich habe mir erlaubt, Deinen Sketch ein wenig zu überarbeiten. Er läuft jetzt bei mir mit allen mqtt-Versionen ohne Verbindungsabbrüche. (Habe ihn 'mal angehängt)<br />
Grüße<br />
Wolfgang<br />
</p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">Spoiler</button><section style="display:none" class="spoiler-content"><br />
/***************************************************<br />
Fingerprint am Wemos D1 mini per MQTT nach IO Broker<br />
<strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>/<br />
#include &lt;Adafruit_Fingerprint.h&gt;<br />
//#include &lt;WiFiClient.h&gt;<br />
#include &lt;ESP8266WiFi.h&gt; // Aus Wifi Mqtt<br />
#include &lt;PubSubClient.h&gt; // Aus Wifi Mqtt<br />
#include &lt;SoftwareSerial.h&gt;<br />
#include &lt;NTPClient.h&gt;<br />
/</strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong><br />
Pinbelegung Fingerprint Sensor ist GND,Rx,TX,Vcc<br />
Am Wemos Rx ist D6 also GPIO 12<br />
Am Wemos Tx ist D5 also GPIO 14<br />
*****************************************************/<p></p>
<p dir="auto">SoftwareSerial mySerial(14, 12, false, 128);</p>
<p dir="auto">Adafruit_Fingerprint finger = Adafruit_Fingerprint(&amp;mySerial);</p>
<p dir="auto">// Eigene Daten eintragen</p>
<p dir="auto">const char* ssid = ""; // Netzwerknahme<br />
const char* password = ""; // PW Netzwerk<br />
const char* mqttServer = ""; // Broker PI<br />
const int mqttPort = 1883; // Broker PI Port<br />
const char* mqttUser = ""; // Broker PI Name<br />
const char* mqttPassword = ""; // Broker PI Password</p>
<p dir="auto">// Ab hier nix mehr machen</p>
<p dir="auto">char* mqttio = "12345"; // Broker PI Wert<br />
char* confidence = "67890"; // Broker PI Wert</p>
<p dir="auto">WiFiClient espClientfp;<br />
PubSubClient client(espClientfp);</p>
<p dir="auto">int cnt=300;</p>
<p dir="auto">void setup()<br />
{</p>
<p dir="auto">// set the data rate for the sensor serial port<br />
finger.begin(57600);</p>
<p dir="auto">if (finger.verifyPassword()) {<br />
Serial.println("Found fingerprint sensor!");<br />
} else {<br />
Serial.println("Did not find fingerprint sensor :(");<br />
while (1) { delay(1); }<br />
}</p>
<p dir="auto">finger.getTemplateCount();<br />
Serial.print("Sensor contains "); Serial.print(finger.templateCount); Serial.println(" templates");<br />
Serial.println("Waiting for valid finger...");</p>
<p dir="auto">Serial.begin(115200); // Baud Wemos nach IDE Serieller Monitor</p>
<p dir="auto">WiFi.begin(ssid, password);</p>
<p dir="auto">while (WiFi.status() != WL_CONNECTED) {<br />
delay(500);<br />
Serial.println("Connecting to WiFi..");<br />
}<br />
Serial.println("Connected to the WiFi network");<br />
Serial.print("=&gt; ESP8266 IP Adresse: ");<br />
Serial.println(WiFi.localIP());</p>
<p dir="auto">client.setServer(mqttServer, mqttPort);<br />
client.setCallback(callback);</p>
<p dir="auto">}<br />
void reconnect(){</p>
<p dir="auto">while (!client.connected()) {<br />
Serial.println("Connecting to MQTT...");</p>
<p dir="auto">if (client.connect("ESP8266Clientfp", mqttUser, mqttPassword)) {</p>
<p dir="auto">Serial.println("connected");</p>
<p dir="auto">} else {</p>
<p dir="auto">Serial.print("failed with state ");<br />
Serial.print(client.state());<br />
delay(5000);<br />
}</p>
<p dir="auto">}<br />
client.subscribe("print/Confidence");<br />
client.subscribe("print/FingerprintNr1");<br />
client.publish("print/FingerprintNr1","Print verbunden");<br />
client.publish("print/Confidence","Genauigkeit verbunden");<br />
}</p>
<p dir="auto">void callback(char* topic, byte* payload, unsigned int length) {</p>
<p dir="auto">Serial.print("Message arrived in topic: ");<br />
Serial.println(topic);</p>
<p dir="auto">Serial.print("Message:");<br />
for (int i = 0; i &lt; length; i++) {<br />
Serial.print((char)payload[i]);<br />
}</p>
<p dir="auto">Serial.println();<br />
Serial.println("-----------------------");</p>
<p dir="auto">}</p>
<p dir="auto">void loop() { // run over and over again</p>
<p dir="auto">if (!client.connected()) {<br />
reconnect();<br />
}</p>
<p dir="auto">if(cnt==0){<br />
Serial.println("Reset...");<br />
ESP.restart();<br />
}<br />
cnt--;<br />
delay(1000);<br />
Serial.println(cnt);</p>
<p dir="auto">client.loop();</p>
<p dir="auto">getFingerprintIDez();<br />
delay(50); //don't ned to run this at full speed.<br />
}</p>
<p dir="auto">uint8_t getFingerprintID() {<br />
uint8_t p = finger.getImage();<br />
switch (p) {<br />
case FINGERPRINT_OK:<br />
Serial.println("Image taken");<br />
break;<br />
case FINGERPRINT_NOFINGER:<br />
Serial.println("No finger detected");<br />
return p;<br />
case FINGERPRINT_PACKETRECIEVEERR:<br />
Serial.println("Communication error");<br />
return p;<br />
case FINGERPRINT_IMAGEFAIL:<br />
Serial.println("Imaging error");<br />
return p;<br />
default:<br />
Serial.println("Unknown error");<br />
return p;<br />
}</p>
<p dir="auto">// OK success!</p>
<p dir="auto">p = finger.image2Tz();<br />
switch (p) {<br />
case FINGERPRINT_OK:<br />
Serial.println("Image converted");<br />
break;<br />
case FINGERPRINT_IMAGEMESS:<br />
Serial.println("Image too messy");<br />
return p;<br />
case FINGERPRINT_PACKETRECIEVEERR:<br />
Serial.println("Communication error");<br />
return p;<br />
case FINGERPRINT_FEATUREFAIL:<br />
Serial.println("Could not find fingerprint features");<br />
return p;<br />
case FINGERPRINT_INVALIDIMAGE:<br />
Serial.println("Could not find fingerprint features");<br />
return p;<br />
default:<br />
Serial.println("Unknown error");<br />
return p;<br />
}</p>
<p dir="auto">// OK converted!<br />
p = finger.fingerFastSearch();<br />
if (p == FINGERPRINT_OK) {<br />
Serial.println("Found a print match!");<br />
} else if (p == FINGERPRINT_PACKETRECIEVEERR) {<br />
Serial.println("Communication error");<br />
return p;<br />
} else if (p == FINGERPRINT_NOTFOUND) {<br />
Serial.println("Did not find a match");<br />
return p;<br />
} else {<br />
Serial.println("Unknown error");<br />
return p;<br />
}<br />
}</p>
<p dir="auto">int getFingerprintIDez() {<br />
uint8_t p = finger.getImage();<br />
if (p != FINGERPRINT_OK) return -1;</p>
<p dir="auto">p = finger.image2Tz();<br />
if (p != FINGERPRINT_OK) return -1;</p>
<p dir="auto">p = finger.fingerFastSearch();<br />
if (p != FINGERPRINT_OK) return -1;</p>
<p dir="auto">sprintf(mqttio,"%d",finger.fingerID);<br />
sprintf(confidence,"%d",finger.confidence);</p>
<p dir="auto">client.subscribe("print/Confidence");<br />
client.publish("print/Confidence", confidence);</p>
<p dir="auto">client.subscribe("print/FingerprintNr1");<br />
client.publish("print/FingerprintNr1", mqttio);</p>
<p dir="auto">Serial.print("Erkannter Fingerabdruck Nr. "); Serial.print(mqttio);<br />
Serial.print(" mit einer Genauigkeit von "); Serial.println(confidence);</p>
<p dir="auto">return finger.fingerID;</p>
<p dir="auto">client.loop();<br />
}<br />
</p></section></section><p></p>
]]></description><link>https://forum.iobroker.net/post/296393</link><guid isPermaLink="true">https://forum.iobroker.net/post/296393</guid><dc:creator><![CDATA[WS]]></dc:creator><pubDate>Mon, 02 Sep 2019 09:57:55 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sun, 25 Aug 2019 15:07:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hansi1234" aria-label="Profile: Hansi1234">@<bdi>Hansi1234</bdi></a><br />
Wofür denn Uart für welche Anwendung ?<br />
Hatte ja oben geschrieben :<br />
Das ist bei den meisten NodeMCU / Wemos mit an Board über Mini Usb.<br />
TTL &lt;-&gt; RS232<br />
Du kannst ja in der Arduino IDE per Mini USB über einen Com Port auf dem Wemos zugreifen.<br />
Das ist ja Uart. Möglich auch an RX TX.<br />
Wlan brauchste nicht unbedingt,<br />
Lan kannste ja mit einem Arduino Uno verwirklichen.<br />
Da du nicht proggen kannst bleibt ja das Problem mit dem Sensor und deren Auswertung.<br />
Fertige Routinen kenne ich nicht mit FP,Schließer und PIR.<br />
Es gibt aber im Netz fertige Routinen für Fingerprint Door opener, ohne PIR.</p>
<p dir="auto">Na ja, ich persönlich würde mit 2 Wemos und Wlan arbeiten.<br />
So ist auch meine Statusanzeige mit FP geplant.<br />
Brauchst keine Routine umschreiben und Tasmota bietet dir ja an viele Sensoren einzubinden.<br />
Na klar kannste mit Tasmota auch Relais schalten oder Reedkontakte verwalten.<br />
Dein Projekt wird ja wachsen und irgend wann willste Led Stripes einbinden.<br />
Das bietet Tasmota ja auch.<br />
Warum einen schweren Weg gehen wenn es einfacher geht.<br />
Und denk an eine manuelle Entriegelung falls der FP mal ausfällt.</p>
<p dir="auto">Wenn du unbedingt RPI und FP nutzen möchtest ist das ein ganz eigenes Projekt.<br />
Hier ging es um Wemos ( ESP8266 ) mit FP.<br />
Dann mach bitte einen eigenen Fred auf RPI trifft FP.<br />
Eine ganz andere Welt.<br />
Denke das verwirrt viele wenn wir jetzt hier ESP und RPI mischen.<br />
Danke :-)</p>
<p dir="auto">Link:<br />
<a href="https://tutorials-raspberrypi.de/raspberry-pi-fingerprint-sensor-authentifizierung-nutzen/" rel="nofollow ugc">https://tutorials-raspberrypi.de/raspberry-pi-fingerprint-sensor-authentifizierung-nutzen/</a></p>
]]></description><link>https://forum.iobroker.net/post/293909</link><guid isPermaLink="true">https://forum.iobroker.net/post/293909</guid><dc:creator><![CDATA[Ralla66]]></dc:creator><pubDate>Sun, 25 Aug 2019 15:07:13 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sun, 25 Aug 2019 06:33:15 GMT]]></title><description><![CDATA[<p dir="auto">Guten Morgen Ralla66,<br />
danke für deine Auflistung. Ich habe unten deine Fragen beantwortet.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralla66" aria-label="Profile: Ralla66">@<bdi>Ralla66</bdi></a> said in <a href="/post/293670">Fingerprint an einem ESP8266</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hansi1234" aria-label="Profile: Hansi1234">@<bdi>Hansi1234</bdi></a></p>
</blockquote>
<ul>
<li>Hi :-)</li>
</ul>
<blockquote>
<p dir="auto">Was soll denn passieren wenn ein Fingerprint erkannt wurde ?</p>
</blockquote>
<ul>
<li>In Meinem Fall den 12V Schnapper vom Schloss öffnen. Kabel liegt bereits an.</li>
</ul>
<blockquote>
<p dir="auto">Was soll denn passieren wenn eine Bewegung erkannt wurde ?</p>
</blockquote>
<ul>
<li>Dann sollte der Fingerprint selber erstmal aktiviert werden (Licht vom Fingerprint geht an). Wäre aber auch nicht zwingend. Dann leuchtet der FP eben immer. Hier muss aber der retriggerbaren Monoflop beachtet werden (evtl. mit einem zusätzlichen Arduino Nano? FP -&gt; Arduino Nano -&gt; RPI?)</li>
</ul>
<blockquote>
<p dir="auto">Wann soll  welches Licht ausgeschaltet werden das vom FP ?</p>
</blockquote>
<ul>
<li>Nach z.B. 2 Minuten</li>
</ul>
<blockquote>
<p dir="auto">Wenn ja geht das Licht nur aus wenn der FP kein Strom bekommt.</p>
</blockquote>
<ul>
<li>Das habe ich mir gedacht. Aber wie gesagt, ist nicht schlimm wenn er dauernd leuchtet.</li>
</ul>
<blockquote>
<p dir="auto">Könntest den Strom des FP mit Relais schalten.<br />
Wenn Bewegung erkannt -&gt; Relais ein.<br />
Danach ein Timeout 2 min -&gt; Relais aus.<br />
Mit oder ohne IoBroker ?</p>
</blockquote>
<ul>
<li>Mit natürlich :-) Habe auch schon einen Reedkontakt angebracht, welchen ich auch in io integriere.</li>
</ul>
<blockquote>
<p dir="auto">Mit IOBroker relativ einfach umzusetzen.<br />
Ohne mußt du die Routine / Sketch selbst umschreiben.<br />
Liegt mehr oder weniger daran welche Fähigkeiten du hast.</p>
</blockquote>
<ul>
<li>Daran wird es scheitern. Alles was ich bis jetzt umgesetzt habe, stand iwo hier im Forum oder habe ich bei Google gefunden. Außer die VIS, diese habe ich selber erstellt und passe ich selber an meine Bedürfnisse an.</li>
</ul>
<blockquote>
<p dir="auto">Bewegungsmelder kannst du ein PIR HC-SR501 nehmen.</p>
</blockquote>
<ul>
<li>Liegen bereits einige hier ;-)</li>
</ul>
<blockquote>
<p dir="auto">Solltest du nicht proggen können und du mit IO arbeitest, könntest du<br />
2 Wemos nehmen.</p>
</blockquote>
<ul>
<li>Von diesen Wemos habe ich zum ersten Mal in diesem Forum gelesen. Ich würde es gerne aber alles per Kabel machen. Wireless nur wenn absolut nötig. Ein RPI mit LAN und Strom kann ich in der Laube sehr leicht unterbringen</li>
</ul>
<blockquote>
<p dir="auto">An Wemos 2 könntest du noch Temp, Luftdruck , Wasserstand der Regentonne usw anschließen.</p>
</blockquote>
<ul>
<li>An einem RPI aber ebenso ;-)</li>
</ul>
<blockquote>
<p dir="auto">siehe Bild :-)</p>
<p dir="auto"><img src="/assets/uploads/files/1566657458998-wemos_2_mal..jpg" alt="Wemos_2_mal..jpg" class="img-markdown  img-fluid" /></p>
</blockquote>
<ul>
<li>
<p dir="auto">Oben habe ich bereits erfragt, warum kein UART benutzt wird. Die Antwort habe ich nicht so richtig verstanden. Aber ist auch nicht weiter wild, wenn ich den FP direkt an zB. den RPI anstecke.</p>
</li>
<li>
<p dir="auto">Sorry für die vielen Fragen. Aber ist ja erstmal alles nur Theorie. Danke für die Hilfe</p>
</li>
</ul>
]]></description><link>https://forum.iobroker.net/post/293824</link><guid isPermaLink="true">https://forum.iobroker.net/post/293824</guid><dc:creator><![CDATA[Hansi1234]]></dc:creator><pubDate>Sun, 25 Aug 2019 06:33:15 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sat, 24 Aug 2019 18:24:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coyote" aria-label="Profile: coyote">@<bdi>coyote</bdi></a><br />
ja IoBroker Log.<br />
Das hatte ich ja auch mit dem Verbindungsabbruch bis zum Versionswechsel.<br />
Dann kann das ja nur Npm oder js.controller oder so was sein.<br />
Da hab ich aber überhaupt keine Ahnung von.<br />
Da müssen die Profis helfen.</p>
]]></description><link>https://forum.iobroker.net/post/293716</link><guid isPermaLink="true">https://forum.iobroker.net/post/293716</guid><dc:creator><![CDATA[Ralla66]]></dc:creator><pubDate>Sat, 24 Aug 2019 18:24:28 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sat, 24 Aug 2019 18:06:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralla66" aria-label="Profile: Ralla66">@<bdi>Ralla66</bdi></a> meinst du iobroker Log?</p>
<p dir="auto">Ich habe noch 3 ESP im Netzwerk hängen, die laufen aber stabil.<br />
Werde mir das morgen vllt mal anschauen, ob ich da was finde. Es ist immer ca. 6-10 Sekunden nach dem der letzte Fingerprint erkannt wurde. Löse ich alle 5 Sekunden den Fingerprint aus, bleibt die Verbindung stehen</p>
]]></description><link>https://forum.iobroker.net/post/293714</link><guid isPermaLink="true">https://forum.iobroker.net/post/293714</guid><dc:creator><![CDATA[coyote]]></dc:creator><pubDate>Sat, 24 Aug 2019 18:06:15 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sat, 24 Aug 2019 17:48:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/coyote" aria-label="Profile: coyote">@<bdi>coyote</bdi></a><br />
Alles ruhig bei mir, keine Verbindungsabbrüche.<br />
Was steht denn im Log bei dir bezüglich Verbindung ?<br />
Da sollte ja was zu sehen sein.<br />
Port ist bei mir 1883 kein SSL.<br />
Auf die schnelle fällt mir nur ein auf dem Wemos mal Tasmota flashen<br />
und dort Mqtt einrichten.<br />
Dann schauen ob diese Verbindung stabil bleibt.<br />
In der Tasmota Console siehst du dann was kommuniziert wird.<br />
Eben schauen ob mqtt.0 oder Routine zicken macht.<br />
Wenn Tasmota auch abbricht kann das nur richtung Adapter sein.</p>
]]></description><link>https://forum.iobroker.net/post/293700</link><guid isPermaLink="true">https://forum.iobroker.net/post/293700</guid><dc:creator><![CDATA[Ralla66]]></dc:creator><pubDate>Sat, 24 Aug 2019 17:48:17 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sat, 24 Aug 2019 16:20:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralla66" aria-label="Profile: Ralla66">@<bdi>Ralla66</bdi></a> Verbindungsabbrüche hast du keine mehr? Habe auch jetzt die 2.0.1 ausprobiert, ist da aber genau so</p>
]]></description><link>https://forum.iobroker.net/post/293697</link><guid isPermaLink="true">https://forum.iobroker.net/post/293697</guid><dc:creator><![CDATA[coyote]]></dc:creator><pubDate>Sat, 24 Aug 2019 16:20:58 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sat, 24 Aug 2019 15:06:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hansi1234" aria-label="Profile: Hansi1234">@<bdi>Hansi1234</bdi></a><br />
Was soll denn passieren wenn ein Fingerprint erkannt wurde ?<br />
Was soll denn passieren wenn eine Bewegung erkannt wurde ?<br />
Wann soll  welches Licht ausgeschaltet werden das vom FP ?<br />
Wenn ja geht das Licht nur aus wenn der FP kein Strom bekommt.<br />
Könntest den Strom des FP mit Relais schalten.<br />
Wenn Bewegung erkannt -&gt; Relais ein.<br />
Danach ein Timeout 2 min -&gt; Relais aus.<br />
Mit oder ohne IoBroker ?<br />
Mit IOBroker relativ einfach umzusetzen.<br />
Ohne mußt du die Routine / Sketch selbst umschreiben.<br />
Liegt mehr oder weniger daran welche Fähigkeiten du hast.<br />
Bewegungsmelder kannst du ein PIR HC-SR501 nehmen.</p>
<p dir="auto">Solltest du nicht proggen können und du mit IO arbeitest, könntest du<br />
2 Wemos nehmen.<br />
An Wemos 2 könntest du noch Temp, Luftdruck , Wasserstand der Regentonne usw anschließen.</p>
<p dir="auto">siehe Bild :-)</p>
<p dir="auto"><img src="/assets/uploads/files/1566657458998-wemos_2_mal..jpg" alt="Wemos_2_mal..jpg" class="img-markdown  img-fluid" /></p>
]]></description><link>https://forum.iobroker.net/post/293670</link><guid isPermaLink="true">https://forum.iobroker.net/post/293670</guid><dc:creator><![CDATA[Ralla66]]></dc:creator><pubDate>Sat, 24 Aug 2019 15:06:07 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sat, 24 Aug 2019 12:40:25 GMT]]></title><description><![CDATA[<p dir="auto">Hallo zusammen,<br />
ich finde das Projekt hier sehr spannend und hätte dafür auch ein sinnvolles Einsatzgebiet. Ich würde gerne einen Fingerabdrucksensor an meine Gartenlaube hängen. Dann muss ich nicht immer meinen Schlüssel dabei haben.<br />
Könnte man das auch mit einem Auslöser, zB. einer Lichtschranke oder Bewegungsmelder koppeln? Dass das Licht nicht ständig leuchtet?</p>
]]></description><link>https://forum.iobroker.net/post/293667</link><guid isPermaLink="true">https://forum.iobroker.net/post/293667</guid><dc:creator><![CDATA[Hansi1234]]></dc:creator><pubDate>Sat, 24 Aug 2019 12:40:25 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Sat, 24 Aug 2019 10:45:32 GMT]]></title><description><![CDATA[<p dir="auto">Hier noch mal der gesamte Sketch mit Confidence :</p>
<p dir="auto"></p><section class="spoiler-wrapper"><button class="spoiler-control btn btn-default">Spoiler</button><section style="display:none" class="spoiler-content"><br />
/***************************************************<br />
Fingerprint am Wemos D1 mini per MQTT nach IO Broker<br />
****************************************************/<p></p>
<p dir="auto">#include &lt;Adafruit_Fingerprint.h&gt;<br />
#include &lt;ESP8266WiFi.h&gt; // Aus Wifi Mqtt<br />
#include &lt;PubSubClient.h&gt; // Aus Wifi Mqtt</p>
<p dir="auto">/****************************************************<br />
Pinbelegung Fingerprint Sensor ist GND,Rx,TX,Vcc<br />
Am Wemos Rx ist D6 also GPIO 12<br />
Am Wemos Tx ist D5 also GPIO 14<br />
*****************************************************/</p>
<p dir="auto">SoftwareSerial mySerial(14, 12, false, 128);</p>
<p dir="auto">Adafruit_Fingerprint finger = Adafruit_Fingerprint(&amp;mySerial);</p>
<p dir="auto">// Eigene Daten eintragen</p>
<p dir="auto">const char* ssid = "abc"; // Netzwerknahme<br />
const char* password =  "abc"; // PW Netzwerk<br />
const char* mqttServer = "abc"; // Broker PI<br />
const int mqttPort = 1883; // Broker PI Port<br />
const char* mqttUser = "abc"; // Broker PI Name<br />
const char* mqttPassword = "abc"; // Broker PI Password</p>
<p dir="auto">// Ab hier nix mehr machen</p>
<p dir="auto">char* mqttio = "12345"; // Broker PI Wert<br />
char* confidence = "67890"; // Broker PI Wert</p>
<p dir="auto">WiFiClient espClient;<br />
PubSubClient client(espClient);</p>
<p dir="auto">void setup()<br />
{</p>
<p dir="auto">// set the data rate for the sensor serial port<br />
finger.begin(57600);</p>
<p dir="auto">if (finger.verifyPassword()) {<br />
Serial.println("Found fingerprint sensor!");<br />
} else {<br />
Serial.println("Did not find fingerprint sensor :(");<br />
while (1) { delay(1); }<br />
}</p>
<p dir="auto">finger.getTemplateCount();<br />
Serial.print("Sensor contains "); Serial.print(finger.templateCount); Serial.println(" templates");<br />
Serial.println("Waiting for valid finger...");</p>
<p dir="auto">Serial.begin(115200); // Baud Wemos nach IDE Serieller Monitor</p>
<p dir="auto">WiFi.begin(ssid, password);</p>
<p dir="auto">while (WiFi.status() != WL_CONNECTED) {<br />
delay(500);<br />
Serial.println("Connecting to WiFi..");<br />
}<br />
Serial.println("Connected to the WiFi network");</p>
<p dir="auto">client.setServer(mqttServer, mqttPort);<br />
client.setCallback(callback);</p>
<p dir="auto">while (!client.connected()) {<br />
Serial.println("Connecting to MQTT...");</p>
<p dir="auto">if (client.connect("ESP8266Client", mqttUser, mqttPassword )) {</p>
<pre><code>  Serial.println("connected");  

} else {

  Serial.print("failed with state ");
  Serial.print(client.state());
  delay(2000);

}
</code></pre>
<p dir="auto">}</p>
<p dir="auto">}</p>
<p dir="auto">void callback(char* topic, byte* payload, unsigned int length) {</p>
<p dir="auto">Serial.print("Message arrived in topic: ");<br />
Serial.println(topic);</p>
<p dir="auto">Serial.print("Message:");<br />
for (int i = 0; i &lt; length; i++) {<br />
Serial.print((char)payload[i]);<br />
}</p>
<p dir="auto">Serial.println();<br />
Serial.println("-----------------------");</p>
<p dir="auto">}</p>
<p dir="auto">void loop()                     // run over and over again<br />
{<br />
getFingerprintIDez();<br />
delay(50);            //don't ned to run this at full speed.<br />
}</p>
<p dir="auto">uint8_t getFingerprintID() {<br />
uint8_t p = finger.getImage();<br />
switch (p) {<br />
case FINGERPRINT_OK:<br />
Serial.println("Image taken");<br />
break;<br />
case FINGERPRINT_NOFINGER:<br />
Serial.println("No finger detected");<br />
return p;<br />
case FINGERPRINT_PACKETRECIEVEERR:<br />
Serial.println("Communication error");<br />
return p;<br />
case FINGERPRINT_IMAGEFAIL:<br />
Serial.println("Imaging error");<br />
return p;<br />
default:<br />
Serial.println("Unknown error");<br />
return p;<br />
}</p>
<p dir="auto">// OK success!</p>
<p dir="auto">p = finger.image2Tz();<br />
switch (p) {<br />
case FINGERPRINT_OK:<br />
Serial.println("Image converted");<br />
break;<br />
case FINGERPRINT_IMAGEMESS:<br />
Serial.println("Image too messy");<br />
return p;<br />
case FINGERPRINT_PACKETRECIEVEERR:<br />
Serial.println("Communication error");<br />
return p;<br />
case FINGERPRINT_FEATUREFAIL:<br />
Serial.println("Could not find fingerprint features");<br />
return p;<br />
case FINGERPRINT_INVALIDIMAGE:<br />
Serial.println("Could not find fingerprint features");<br />
return p;<br />
default:<br />
Serial.println("Unknown error");<br />
return p;<br />
}</p>
<p dir="auto">// OK converted!<br />
p = finger.fingerFastSearch();<br />
if (p == FINGERPRINT_OK) {<br />
Serial.println("Found a print match!");<br />
} else if (p == FINGERPRINT_PACKETRECIEVEERR) {<br />
Serial.println("Communication error");<br />
return p;<br />
} else if (p == FINGERPRINT_NOTFOUND) {<br />
Serial.println("Did not find a match");<br />
return p;<br />
} else {<br />
Serial.println("Unknown error");<br />
return p;<br />
}</p>
<p dir="auto">// found a match!<br />
Serial.print("Found ID #"); Serial.print(finger.fingerID);<br />
Serial.print(" with confidence of "); Serial.println(finger.confidence);</p>
<p dir="auto">return finger.fingerID;<br />
}</p>
<p dir="auto">// returns -1 if failed, otherwise returns ID #<br />
int getFingerprintIDez() {<br />
uint8_t p = finger.getImage();<br />
if (p != FINGERPRINT_OK)  return -1;</p>
<p dir="auto">p = finger.image2Tz();<br />
if (p != FINGERPRINT_OK)  return -1;</p>
<p dir="auto">p = finger.fingerFastSearch();<br />
if (p != FINGERPRINT_OK)  return -1;</p>
<p dir="auto">// found a match!<br />
Serial.print("Found ID #"); Serial.print(finger.fingerID);<br />
Serial.print(" with confidence of "); Serial.println(finger.confidence);</p>
<p dir="auto">sprintf(mqttio,"%d",finger.fingerID);<br />
sprintf(confidence,"%d",finger.confidence);</p>
<pre><code>  client.subscribe("Confidence"); 
   client.publish("Confidence", confidence);
   
 client.subscribe("FingerprintNr"); 
   client.publish("FingerprintNr", mqttio);
    
return finger.fingerID; 

client.loop(); 
</code></pre>
<p dir="auto">}<br />
</p></section></section><p></p>
]]></description><link>https://forum.iobroker.net/post/293638</link><guid isPermaLink="true">https://forum.iobroker.net/post/293638</guid><dc:creator><![CDATA[Ralla66]]></dc:creator><pubDate>Sat, 24 Aug 2019 10:45:32 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Fri, 23 Aug 2019 11:40:42 GMT]]></title><description><![CDATA[<pre><code>   #include &lt;NTPClient.h&gt;
   #include &lt;WiFiUdp.h&gt;
   WiFiUDP ntpUDP;
   NTPClient timeClient(ntpUDP,"europe.pool.ntp.org", 0, 300000); //Offset, Abfrageintervall

 timeClient.begin(); 

 timeClient.update();
</code></pre>
<p dir="auto">So in etwa. Ich nutze einfach <em>NTPClient</em>. ".begin" steht in der Setup-loop, ".update" holt dann bei mir im 5-Minuten-Zyklus (ist in der Main-loop, da ich alle 5 min. Werte vom Sensor lese) die aktuelle Uptime. Dann noch ein MQTT-Publish auf einen Topic (ich habe da einfach /x/y/z/alive ).</p>
]]></description><link>https://forum.iobroker.net/post/293355</link><guid isPermaLink="true">https://forum.iobroker.net/post/293355</guid><dc:creator><![CDATA[SBorg]]></dc:creator><pubDate>Fri, 23 Aug 2019 11:40:42 GMT</pubDate></item><item><title><![CDATA[Reply to Fingerprint an einem ESP8266 on Thu, 22 Aug 2019 19:37:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sborg" aria-label="Profile: SBorg">@<bdi>SBorg</bdi></a> sagte in <a href="/post/284593">Fingerprint an einem ESP8266</a>:</p>
<blockquote>
<p dir="auto">Deswegen sende ich einfach alle 5 Minuten die Uptime des ESP in einen "Alive-Topic".</p>
</blockquote>
<p dir="auto">Hast du da mal ein BeispielCode? Das könnte ich in einem anderen Programm auch gut gebrauchen. Und auch hier bricht mir nach paar Sekunden die Verbindung zum MQTT ab,</p>
]]></description><link>https://forum.iobroker.net/post/293204</link><guid isPermaLink="true">https://forum.iobroker.net/post/293204</guid><dc:creator><![CDATA[coyote]]></dc:creator><pubDate>Thu, 22 Aug 2019 19:37:16 GMT</pubDate></item></channel></rss>