User Tools

Site Tools

Sidebar

hal9k

Mailing lists

  • Announcements of talks, and major events. 1-2 mails/month.
  • Discussion of projects and other stuff. About 20-30 mails/month.

Chat
IRC channel #hal9k at Freenode. You can use Freenodes web-chat in your browser.

projects:whitehouse-lock

Whitehouse Lock

Foreløbig indkøbsliste

Låseblik:
  Abloy EL412 
Strøm:
  2x 12v lader (fra biltema)
  2x 12v blyakkumulator (fra biltema)
  Noget sikring til batteri + sikringsboks
Arduino:
  1x Arduino
  1x Strøm til Arduino (24v -> 5v)
  1x Prototyping shield til Arduino
Kommunikation:
  4x RS485 dil-pakker (MAX487) OK
  1x D-sub 9 hun OK
Dør og bipper:
  2x MOS-FET RFD14N05 + det løse
Adgangskontrol:
  2x RFID-læser til Arduino
  1x Matrix Keypad OK 
  2x RGB-lysdiode OK
  1x Bipper OK, bruger den fra nuværednde installation
  2x Kasse OK
Styring:
  1x Søkris net4801
  1x VT220 Terminal
  1x USB RFID
  1x Strømstik
  

RS485 communication

Example implementation http://pskillenrules.blogspot.com/2009/08/arduino-and-rs485.html

The MAX487 chip only allows half-duplex. This means that the receiver and transmitter must switch between RX and TX mode internally as well as on the enable pins on the level-converter.

The protocol will be Modbus RTU for which many implementations exists. The server (“grisen”) will be the master.

Bus connection

Pin out for the 8P8C modular plug socket in the server box (“Grisen”).

Position Use Colour code for EIA-568-B
Pos. 1 ++ (12 V dc) Orange/white
Pos. 2 ++ (12 V dc) Orange
Pos. 3 – (Common) Green/white
Pos. 4 “X-”/inverting Blue
Pos. 5 “X+”/non-inverting Blue/white
Pos. 6 – (common) Green
pos. 7 Not connected Brown/white
pos. 8 Not connected Brown

The Cat5e cable going to the front door is wired by the EIA-568-B colour code, whereas the other cables in the structured cabling uses EIA-568-A colours.

Registers

The door-arduino has the following registers:

1. status
2. rfid
...
x. pincode1-4
Permalink projects/whitehouse-lock.txt · Last modified: 2013/04/08 15:47 (external edit)

oeffentlich