View Issue Details

IDProjectCategoryView StatusLast Update
0001327Microcontrollers, shields, automation, arduino[All Projects] Generalpublic2022-05-30 19:23
ReporterDigitalMy 
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary0001327: Make door lock system with access control
DescriptionBased on arduino UNO contoller board with ethernet shield W5100
Keypad digital panel with RFID (card) reader Mifare 13.56MHz
Magnetic door holder 12V
Open button
TagsNo tags attached.

Relationships

related to 0005399 assignedDigitalMy Make electric magnet door lock system with access control by original wireless tag 

Activities

DigitalMy

2020-08-27 18:44

administrator   ~0003948

Last edited: 2020-08-30 17:37

View 7 revisions

Use Dahua DHI-ASR1101A panel with
Wiegand 34/26 protocol (default version is 34 , confirmed by library Wiegand.h)
Power 12V DC (same as for Arduino UNO)
Pins have 4.2V high level (5.0V tolerant) and 0.0V low level
Reader for MIFARE 13.56 MHz cards, also read smartphone NFC signal fine

Wiring (connector pinout):
(1) Red - 12V power DC - Card reader power
(2) Black GND to GND (common controller)
(3) Blue - CASE - Card reader protection alarm (default signal from reader is LOW) - connects to Arduino PIN 6
(4) White D1 - DATA1 of Wiegand - connects to Arduino PIN 3 (INT1)
(5) Green D0 - DATA0 of Wiegand - connects to Arduino PIN 2 (INT0)
(6) Brown - LED - connects to Arduino PIN 7 - with intermadiate resistor 150 Ohm (default signal is HIGH +5.0V , same for non valid read). Use 1.0sec LOW signal after received code for "success" beep
(7) Yellow - RS485-
(8) Purple - RS485+

DigitalMy

2020-08-28 17:44

administrator   ~0003950

Last edited: 2020-09-02 09:40

View 3 revisions

Use "low level activation" relay,
connect lock to NC terminal
#define LOCK_PIN 4

it works fine
default "closed" state of this PIN = HIGH (5.0V)

DigitalMy

2020-08-28 21:04

administrator   ~0003951

Last edited: 2020-09-02 09:42

View 2 revisions

Attach button (low-level activation = GND) to pin 5
Use PULLUP mode for this pin (default "off" mode is HIGH 5.0V)
add 50 Ohm resistor to button
it works fine

DigitalMy

2020-08-30 22:51

administrator   ~0003952

Last edited: 2020-09-03 21:39

View 3 revisions

Arduino Uno with this chip ATmega 328P got some defect in "String" length...
In one of those functions I cannot "add" symbol (save char to "buffer") more than length: 323

Decided to remake functions: read data by line - done

Removed all global variables of "String" type

General problem with this microcontroller: not stable work, especially ethernet functions (using local String variables)


Found that wg loop function makes +2200 bytes RAM usage (overflow)
wg class added 20 byte only...

DigitalMy

2020-09-02 09:48

administrator   ~0003953

Arduino Uno has got issue with 12.0V power: significant overheating AMS1117
On USB 5.0V power there is no any overheat

DigitalMy

2020-09-04 00:46

administrator   ~0003957

Last edited: 2020-09-04 20:16

View 2 revisions

Before this system there was no-name reader with 7-wire
red +12V
black GND
white DATA0
brown DATA1
green LED g
yellow LED y
blue Beep

and popular controller Z-5R (IronLogic)



DigitalMy

2020-09-10 19:48

administrator   ~0003965

Tested Nano version

got issue with WG read 0 randomly in idle ...