Difference between revisions of "Wiegand-26"

From Let's Control It
Jump to navigation Jump to search
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
----
+
= Introduction =
[[Bestand:WiegandRFID_1.jpg|320px]]
+
The ESP can also be used to read out RFID Tag Readers that are using the Wiegand-26 protocol.
[[Bestand:RFIDTags.png|320px]]
 
----
 
= Introductie =
 
De ESP is in staat om het signaal van een RFID Tag Reader te ontvangen die met het Wiegand-26 protocol werkt.
 
  
De RFID reader moet worden aangesloten op twee ingangen van de ESP module. De ESP gebruikt een special interrupt routine om de Wiegand-26 bitstroom te verwerken. De RFID reader zal een event genereren op de ESP.
+
The RFID reader has to be connected to two GPIO pins on the ESP module. The ESP uses an interrupt routine to decode the Wiegand-26 bitstream. The RFID reader will send a message to your Home Automation controller containing the unique RFID Tag ID.
  
 
= Hardware =
 
= Hardware =
Een Wiegand-26 RFID TAG Reader is o.a. te koop via eBay. Let erop dat de unit met 5 volt werkt en de IO pinnen van de ESP zijn niet bestand tegen deze spanning!
+
[[File:WiegandRFID_1.jpg|320px]]
 +
[[File:RFIDTags.png|320px]]
  
Zie hier een voorbeeld van een RFID reader die het Wiegand-26 protocol gebruikt. Deze unit is spatwaterdicht dus geschikt voor buiten montage. Beschikt tevens over een ingebouwde LED en buzzer. De LED kleurt standaard blauw en als je een tag ervoor plaatst dan licht deze kortstondig groen op. Tevens hoor je de interne buzzer even piepen. Als je op eBay zoekt op "Wiegand 26" tref je diverse varianten aan. We hebben echter alleen deze getest:
+
The Wiegand-26 RFID TAG Reader can be found on eBay. Please note that the outputs uses 5 volts signals and they should not directly be connected to the ESP. Use a level shifter!
  
De Wiegand-26 RFID Reader herkent tags die voldoen aan de EM4001 ISO gebaseerde RFID IC standaard, op een frequentie van 125kHz.
+
This is just a sample of an RFID reader using the Wiegand-26 protocol.
  
=== Aansluitingen ===
+
This Wiegand-26 RFID Reader works with tags compliant with EM4001 ISO standard, on a frequentie of 125kHz.
 +
 
 +
== Connections ==
 
<span style="color:red">
 
<span style="color:red">
Let op: De unit gebruikt 5 volt signalen die niet geschikt zijn voor de ESP module. Een levelshifter is noodzakelijk tussen de datapinnen van de reader en de ESP!!!</span>
+
WARNING: The unit uses 5V signals that can not be used on the ESP module. You must use a levelshifter!</span>
 +
 
 +
The reader needs at least 6V. Do not connect VCC to the VCC on the ESP, it will most likely fry your unit.
 +
(The unit will turn on at 5V, the led will turn on, but detection of RFID tags will fail.)
  
Op de ESP01:
 
We geven hier de aansluitingen van de unit zoals op de foto is afgebeeld.
 
Let erop dat de Wiegand Reader een spanning nodig heeft van minimaal 6 volt. Daarom de VCC NIET verbinden met de ESP!!!
 
(De unit gaat wel aan op 5 volt, ledje brand, maar detectie van tags lukt dan niet)
 
 
   Wiegand ESP-01
 
   Wiegand ESP-01
   Zwart GND
+
   Black   GND
   Rood  6-12 Volt
+
   Red    6-12V
   Groen GPIO 0 (via levelshifter!!!)
+
   Green GPIO 0 (via levelshifter)
   Wit GPIO 2 (via levelshifter!!!)
+
   White GPIO 2 (via levelshifter)
 
 
= Software =
 
 
 
== Custom Sketch ==
 
  
== ESP Easy ==
+
'''Do not use GPIO 16''' for this plugin, it will not work properly.
Op de ESP Easy stel je via de webinterface het IDX in van het device in Domoticz. Op dit moment is dit nog in test en gebruiken we een "text device in Domoticz. De waarde van de tag verschijnt dan in het device. Nog uitzoeken hoe dit in de event processor kan worden gebruikt.
 
  
== ESP Connexio ==
+
= ESP Easy =
Op de ESP Conneexio komt het event komt als volgt binnen:
+
Use the device tab on the ESP Easy webinterface and create a new task by editing one of the available tasks. Select "RFID Reader" from the dropdown box.
''<nowiki>RFID <reader nr>,<tag id></nowiki>''
 
  
{| border="1" style="border-collapse:collapse; border:1px solid silver;text-align:left;width:50%;"
+
[[File:EasyConfigRFID.png]]
! Parameter:
 
! Beschrijving:
 
! Bereik:
 
! Opmerking:
 
|-
 
| ''reader nr''
 
| Nummer van de reader die is aangesloten
 
| 1 of 2
 
|
 
|-
 
| ''tag id''
 
| Unieke TAG ID van de gebruike RFID tag
 
| 1..2^26
 
|
 
|}
 
  
=== Voorbeeld ===
+
Enter the IDX found in the Domoticz device page. Also select the two GPIO pin that you have used to connect the reader. That should be all.
RFIDWG 1,0x1234AB
 
  
Voorbeeld programmeren van een event naar commando in de eventlist:
+
== Optional settings ==
  
EventlistWrite; RFIDWG 1,0x1234AB; ??;
+
[[ EasyValueNames | Use of value names]]

Latest revision as of 08:20, 10 October 2017

Introduction

The ESP can also be used to read out RFID Tag Readers that are using the Wiegand-26 protocol.

The RFID reader has to be connected to two GPIO pins on the ESP module. The ESP uses an interrupt routine to decode the Wiegand-26 bitstream. The RFID reader will send a message to your Home Automation controller containing the unique RFID Tag ID.

Hardware

WiegandRFID 1.jpg RFIDTags.png

The Wiegand-26 RFID TAG Reader can be found on eBay. Please note that the outputs uses 5 volts signals and they should not directly be connected to the ESP. Use a level shifter!

This is just a sample of an RFID reader using the Wiegand-26 protocol.

This Wiegand-26 RFID Reader works with tags compliant with EM4001 ISO standard, on a frequentie of 125kHz.

Connections

WARNING: The unit uses 5V signals that can not be used on the ESP module. You must use a levelshifter!

The reader needs at least 6V. Do not connect VCC to the VCC on the ESP, it will most likely fry your unit. (The unit will turn on at 5V, the led will turn on, but detection of RFID tags will fail.)

 Wiegand 	ESP-01
 Black 	  	GND
 Red   	  	6-12V
 Green		GPIO 0 (via levelshifter)
 White		GPIO 2 (via levelshifter)

Do not use GPIO 16 for this plugin, it will not work properly.

ESP Easy

Use the device tab on the ESP Easy webinterface and create a new task by editing one of the available tasks. Select "RFID Reader" from the dropdown box.

EasyConfigRFID.png

Enter the IDX found in the Domoticz device page. Also select the two GPIO pin that you have used to connect the reader. That should be all.

Optional settings

Use of value names