Skip to content
Snippets Groups Projects
Commit 6b48d2e5 authored by Pixi's avatar Pixi
Browse files

Update Readme

parent 4cba76f6
No related branches found
No related tags found
No related merge requests found
source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -13,12 +13,14 @@ Pony-Card-WRS4i2o is a Wiegand/RS485 capable card for access controle powered by ...@@ -13,12 +13,14 @@ Pony-Card-WRS4i2o is a Wiegand/RS485 capable card for access controle powered by
# Main feature # Main feature
- Powered by PoE or 12V/2A input - Powered by PoE or 12V/2A input
- Power sercurity device like badge reader in 12V/0.5A - Power sercurity device like badge reader in 12V/0.5A
- Comunicate in Wiegand, RS485 or digital input (3V to 24V) - Wiegand or RS485 input selectable by switch
- In Wiegand mode, 1 digital output (e.g for drive 5V Led or buzzer from badge reader)
- 4 digital input (3V to 24V)
- Drive 2 output NO/NC relay (230V/5A Max) - Drive 2 output NO/NC relay (230V/5A Max)
- Can run on WiFi and/or Ethernet (e.g for failover) - Can run on WiFi and/or Ethernet (e.g for failover)
- Ready to Home assistant with EspHOME (Sample config avaliable) - Ready to Home assistant with EspHOME (Sample config avaliable)
- Ready to MQTT with Tasmota - Ready to MQTT with Tasmota (Base firmware avaliable)
- -40C° +60C° capability - -20C° +60C° running continous capability
- Fit in DIN PLC Box like [this](https://fr.aliexpress.com/i/1005004933689728.html) - Fit in DIN PLC Box like [this](https://fr.aliexpress.com/i/1005004933689728.html)
- Dimention : 92.4mm X 87.5 - Dimention : 92.4mm X 87.5
...@@ -53,7 +55,102 @@ Pony-Card-WRS4i2o is a Wiegand/RS485 capable card for access controle powered by ...@@ -53,7 +55,102 @@ Pony-Card-WRS4i2o is a Wiegand/RS485 capable card for access controle powered by
# Wiegand ESPHome example # Wiegand ESPHome example
```bloc code``` ``` esphome:
name: Pony Card WRS4i2o
friendly_name: Pony_Card_WRS4i2o
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key:
ota:
password:
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
power_pin: GPIO12
globals:
- id: autorized_badge
type: int64_t
restore_value: no
initial_value: '5562314525698'
wiegand:
- id: badgereader
d0: GPIO13
d1: GPIO14
on_raw:
- if:
condition:
labda : 'return value == id(autorized_badge);
then:
- switch.toggle: r1
else:
- switch.toggle: r2
- delay : 1s
- switch.toggle: r2
binary_sensor:
- platform: gpio
pin:
number: 34
inverted: true
name: "input1"
- platform: gpio
pin:
number: 35
inverted: true
name: "input2"
- platform: gpio
pin:
number: 36
inverted: true
name: "input3"
- platform: gpio
pin:
number: 39
inverted: true
name: "input4"
output:
- platform: gpio
pin: 32
id: 'Relay_1'
- platform: gpio
pin: 33
id: 'Relay_2'
switch:
- platform: output
name: "Relay 1"
id: "r1"
output: 'Relay_1'
- platform: output
name: "Relay 2"
id: "r2"
output: 'Relay_2'
- platform: gpio
name: "LED"
id: "led"
pin:
number: 15
inverted: true
```
# Misc # Misc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment