Posts Tagged ‘smarthome’

Card Access Complete Write-up

Sunday, February 21st, 2010

So you want to setup a card access system?  Well assuming you don’t mind being locked out of your home for a few hours here is how it’s done…

First let’s cover how they work—

There are four parts to a card access system:

  1. Control Interface
  2. Cards
  3. Readers (Either card readers, keypads, or a combination of both)
  4. Card Access Control Panel(s)
  5. Outputs (electromagnetic locks, electric strikes, contacts)

The Control Interface lets you add/delete cards, delegate access, define time schedules, configure hardware, monitor events.

The Cards identify the owner—there are very technologies these cards can be, MagStripe, Wiegand, 125kHz Prox and some other proprietary stuff.

The Readers must be compatible with the type of card you choose—usually the readers only talk to one type of card. The readers are “dumb” they have no information on any access privileges nor do they tell a lock to unlock (sorry to break your hearts Hollywood movie criminals)

The Card Access Control Panel receives data from readers, they are the only part of the system that have the information on access privileges, the panels energize relays to unlock doors. When a panel receives information from a reader many things are checked—is the card known? Is the card within a valid date/time range for usage? Does it have access to whatever output is controlled by the reader sending it’s data?

The Outputs are whatever mechanism you are going to use to unlock your door. There are a variety of things you can put on the outputs—I use a set of contacts on my garage door opener to open my garage. I plan to use an electric strike plate on my front door at a later date. If I had a cabinet in my garage I wanted to secure I would use a small electromagnetic lock.

Know that you have an understanding of the system lets do the deep dive into how it all goes together. This write up is vendor specific using mainly Northern Computers components but the basic principles of the system/wiring/etc. is the same no matter the manufacture you decide to use.  This information is things I’ve picked up just fooling around with this stuff, I’ve never implemented or designed a system other than my house and some friend’s homes so don’t try anything based on these instructions.

Card Access Panel

We will start with the core if the system which is your card access (CA) panel.  I prefer Northern Computers (they are a part of Honeywell) panels because they are typically readily available on eBay, craigslist, etc.  I choose an N-1000-II–this panel supports 2 card readers and 4 relay outputs (and a bunch of contacts since you can use this panel as an alarm panel too but this guide won’t go into that…) So really just focusing on the fact that this panel can  provide card access to two different doors.

Power Supply

You need to power this CA panel, below are the power requirements

  • The N-1000-II requires a 12 VAC, 40 VA, 60 HZ or 12 VDC linear (2 amp continuous) power supply.
  • The N-1000-III/IV requires a 16.5 VAC, 50 VA, 60 HZ or 12 VDC linear (2 amp continuous) power supply.

Battery Backup

Many panels have batteries built into their cabinets to provide power to the panel in the event of power loss.  Think of it as a built in UPS for your CA panel.  If you bought the panel used off eBay spend the extra bucks and buy new batteries for it to ensure you can use your system in the event of power loss.  To maintain the maximum back-up time, you should replace the battery every 2-4 years–2 years if you are going to use the panel in high temperatures (like a garage in South Florida). The picture to the right shows a battery mounted on a cabinet door for a CA panel.

  • N-1000-II uses a 8 VDC (4 amp/hr.) battery that provides about three hours of full operational backup if the battery is in good shape.
  • N-1000-III/IV uses a 12 VDC (4 amp/hr.) battery that provides about four hours of full operational backup if the battery is in good shape.

Communication Bus

Now that you have your panel picked out you need to figure out how to communicate with it, the N-1000-II has a number of methods, the comm bus is 20mA current loop. I used a Northern Computers C100A 20MA serial loop converter–It is a communication interface from your PC/Modem to N1000 panels.  This requires a power supply as well, a 12VAC power supply at that–the N-1000-II also needs 12VAC–Now if you can get a large enough power supply you will be able to wire both your CA panel into it and the serial converter.

Your other options are a Northern Computers network adapter that is basically a serial server as far as I know, priced at about $200 on eBay.

If you purchase a N-1000-III or N-1000-IV you use the N-485-PCI-2 adapter, this is an RS485 to serial adapter for PC connections only.

I used an off the shelf serial server attached to my C100A so I can program from the comfort of my desk.  This is recommended so you don’t have to take a laptop over to your panel to make changes (adding/removing keyfobs/cards)

Outputs (Doors you want to control)

With all your panel stuff sorted out decide what do you want do you want to control access to with your panel–Garage Door, Exterior Door, Interior Door, Kitchen Cabinet?  These all basically are controlled the same way, just the lock mechanism is different depending on the door.

Garage Doors

The garage door is usually the easiest to do because 99% of openers simply connect two wires momentarily to operate the door.  We can wire this directly into the CA panel and leaving the garage door’s existing open/close button intact also having a card access to the garage door with no other parts.

Electric Strikes

Electric strikes replace the strike plate in the door frame.  There are two main types, Fail-Safe and Fail-Secure.  Fail-Safe strikes usually require power 24/7 to keep them locked, when power is lost they unlock for safety.  Fail-Secure strikes stay locked until they are energized, and are what I would use.  Remember–the door handle still works, you can always exit in the event of an emergency by using the handle of the door as long as the lock is unlocked (I don’t think this is a problem in homes because you are exiting to the outside and you can unlock the door if it’s locked)

Strikes are available in AC or DC power requirements, the AC units are the kind that buzz when you energize them so I wouldn’t recommend them for a home.  The DC units are silent except for maybe a click when they change state (energized/de-energized).  You may have heard this buzzing at convenience stores in shady parts of town…

Electromagnetic Locks

Many commercial buildings have interior doors that close during a fire alarm–these work with automatic door closer and a magnetic hold open device.  These magnetic locks are just much much stronger versions and instead of holding a door open they hold them locked.  There are many different sizes, smaller ones that you can use on a kitchen cabinet, display case, or file cabinet and larger ones for various size doors.  These require constant power to remain locked, when power is lost they will unlock unless you have battery backup in your power supply.

Card Readers

Proximity Readers

These are the most popular now ‘adays many of you likely use these at work, and see the HID logo on your badge and readers.  HID is the biggest manufacture of these readers and many other company’s simply rebrand HID readers and market them under their name.  There are like hundreds of designs and you typically need to use the same reader as the manufacture of the cards you want to use.  I use HID readers with: Duo-Prox cards, ProxProII cards, and Prox Keyfobs.  I feel these are the only kind of readers that should be used in the home due to the fact you can use a card or a keyfob. You can even use active transponders that you put in your car so your panel will open a gate or garage when the vehicle is close enough (these have like 20-30ft range) however that kind of install is outside of the scope of this guide so have fun with that…

Swipe Card Readers

Security professionals will smite me for placing all these in one category but I feel they are all the same.  Swipe Card Readers use a variety different technologies, from Magstripe, Barcode, and some other stuff I know far to little to talk about.  These are prone to failure
more easily in my opinion–everyone I know has demagnetized a hotel key card accidentally at least one time in their life… and Barcodes can scratch off or with regular wear be difficult to scan.  For these reasons I don’t recommend these types of readers.  However there is one more type of swipe reader called Wiegand.  Wiegand cards are very similar to mag-stripe except they have magnetic wires embedded into the card.  These make them much more durable than any other kind of swipe card.

Keypads

You can forgo the card readers all together and simply use keypads.  These take more time and are less convenient then a card reader but they are good for a backup in case you lose your card.  Many keypads are available that are also card readers so you only need to moun
t a single unit to have both readers.  You can also program the panel to require both the keypad with correct code entry and having the user read a card to unlock a door to be really 007.

Biometrics

Fingerprint, and Hand Geometry are the most popular, I haven’t seen anything like a iris or retina reader before.  I’ve seen software for voice analyzing but never a hardware solution that can be integrated into a access control system.

Key Readers

I don’t know much about them, I believe they are all using Dallas iButton (1-Wire technology oh ya!) readers/buttons.  These use a button key to be inserted into the reader momentarily.  Don’t worry about the elements, these keys/buttons are sealed, and are mounted on a flat plastic strip with a hole to go on your key ring.

SmartCard Readers

These are out of my price range so I haven’t toyed with it at all.  The readers I’ve seen are all contact less so don’t think about using that fedex kinkos card to open a door–yet…

Install

Now that you have a grasp on all this you can proceed to install, there are a few things you need to be aware of with the install though:

  • Run all wiring for inductive loads (door locks/strikes) and panel primary power apart from each other–I ran the power supply for the panel in from the left side and all output wiring straight out the top.
  • Use shielded cables or metal conduit on data cables to reduce interference.
  • Do not mount the power supplies, modem, or external relays inside the N-1000-II enclosure.
  • Do not “string” wire across the face of the N-1000-II panel.
  • Do not use the same power supply for both locks and control panel or locks and readers.
  • Do not mount the control panel in or near an area that has electric noise (e.g., next to a large electric motor or power transformer).

Panel/Comm Interface

  1. Mount the CA Panel Cabinet in a location close to an outlet that can be used 24/7 (not to be unplugged to charge your drill or something if you do this in the garage)
  2. Mount whatever comm interface you have next, I stuck mine right next to my CA cabinet because I plan to use a serial server, not programming the panel using a pc connected directly to the panel.  If you do not use a serial server you can extend the cables on your comm interface, refer to the manual for the maximum cable length.
  3. Wire up the comm interface into the panel–this was 4 wires, refer to the manual of the comm interface for a diagram.
  4. Attach your cabinet ground to your house ground.  I used a conduit ground clamp because in my garage the conduit is exposed.
  5. Wire in your power supply to the comm interface and panel–depending on your comm interface/panel you may be able to use one power supply for both–read your panel and comm interface manual to see if this applies to you.
  6. Connect the battery on the door of your cabinet to your panel, ensure the 3V coin battery is also installed in your panel.  This battery is just like the one on your PC’s motherboard to save the BIOS info on your PC, this saves the programming of your panel in the event of extended power loss.
  7. Plug in the power supply(s) for the CA panel and comm interface
  8. Plug the serial cable into a PC and test the comm interface out using HyperTerminal to test the panel and comm interface now that it’s on the wall.  Refer back to the testing section for this.

Card Readers (CRs)

Following the instructions that came with your card reader mount it where you want, ADA requires that the reader be at a height of 54″

Outputs

If you are using any inductive load’s on the outputs you MUST use a S-4 Suppressor Kit, one on the panel and one at load.  Polarity doesn’t matter with the S-4 suppressors just wire them in.


S-4 Suppressor Kit Installation

Do not use the panel/comm interface/reader power supply(s) to also power locks or loads.  This will break your shit.
You should keep the relay output wires and any other wires separated (don’t zip tie them together or run them parallel to each other unless they are at least 12″ apart—this is what Honeywell says…)

I haven’t installed an electric strike on my home system yet but will soon.

Programming the Panel

Now the fun begins, fire up HyperTerminal and connect to your C-100-A1, using the baud rate set on the dip switches on the CA panel.

Remember to prefix EVERY command with a space.  This is why the manual has _ before every command so you know to hit spacebar!  I didn’t read that part and banged my head against the wall for awhile when I first got my panel…

Initialize the panel

I believe this is the command that resets and clears everything—I didn’t have to use this as my panel was wiped when I received it.

“_I=1_R”

Set Buffer/Print Options

We want verbose output, we need to see all activity on the panel so we can know a card is read properly among other things

“_M=1_L”

Panel 1 will buffer and now outputs all activity

Time & Date

Setting the time and date for accurate logging of events.

Set Time:

“_T=1_hh:mm”

Set Date:

“_D=1_mm/dd_day”

Day = 1-7, 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday. Consult manual if you are setting this in a leap year…

Set Format

This is how the panel will interperate card data. I used:

“_F=pn_1_26_S_1_D_1_B1_B2_B3_B4″

This is for CR-1 Wiegand Card Swipe Reader—but it worked for my HID Prox readers…consult the manual for other types of cards

Assign Names

You can set names to Panels, and Outputs.  This makes understanding the output of your panel much easier. (12 characters max)

Name your panel:

“_N=1_R_0_GARAGEPANEL”

Name your output:

“_N=1_O_1_GARAGEDOOR”

Add codes (cards/keycodes)

It’s time to program your cards/keycodes into the CA panel. I usually just swipe the card to make sure the reader sees it and watch the output in HyperTerminal—this ensures the card works.

“_C=1_card#_1_1_2″

Assign CR to O’s

Finally you program what CR activates what O

“_A=1_1_O_1″

Now go test, you should see your output energize when you use your card. Now the thoughts come into your mind to have more outputs and readers…

Controlling more doors

So you maxed out your panel and are craving more control, the great thing about these panels is they can be linked together very easily, but read below to ensure you do it right…


N-1000-IV and two N-1000-II in a multi-drop configuration

N-1000-II

Now if in the future you decide to make more doors card access you can simply connect another panel into the first using the comm bus that communicates via a 20mA current loop. If you want to mix in N-1000-III or N-1000-IV panels you need to use the Northern Computers N-485-API-2 (Access Control Panel Interface) which provides an RS485 communications interface to your existing N-1000-II. The N-485-API-2 interface converts the 20mA current loop supplied by the N-1000-II to an RS485 signal.  N-1000-III & N-1000-IV panels communicate using RS485 not the 20ma current loop on the N-1000-II.

N-1000-III & N-1000-IV

You should use more N-1000-III or N-1000-IV panels, there is a door expander panel available for the N-1000-IV that I don’t know the part # for off the top of my head…

Commercial

In the event you decide you want to do this in your office or something here are a few things to be aware of that don’t typically apply to homes.

Power Transfer Devices

If you use electric panic bars, or other kinds of commercial electric locks you may need to use a power transfer device to get power inside of the door.  These are the different kinds of parts you can use. One is a door cord and the other is a transfer hinge.

Code

I’m told NFPA requires card readers be mounted at a height between 40 and 48 inches from the floor.  There is an ADA requirement as well but I would think NFPA is stricter and would be within the ADA requirements.

REX (Request to Exit)

REX is either a button or a motion sensor–think about when you exit a grocery store the doors automatically slide apart to let you exit because a motion sensor detects your presence.  This is an example of a REX motion sensor.  Many stores and warehouses on their emergency exit doors have REX panic bars coupled with and magnetic locks–the ones that say do not open alarm will sound.  These will not unlock immediately when pressed, instead you trigger the alarm and then you have to hold the panic bar pressed in for 15 seconds before the door will will unlock.  This prevents a shoplifter from making a quick get-away, (NFPA requires that they open in either 15 or 30 seconds depending on the area I’m told.) Examples of REX devices to the right are PIR (like a motion sensor, and buttons)

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

INSTEON IRLinc Control with Harmony Remote

Sunday, January 24th, 2010

So this was a challenge–I wanted to eliminate the X10 remote and disable X10 on my INSTEON switches for the home theater.  In doing so I wanted to use the INSTEON IRLinc to convert IR signals to INSTEON.  This would allow me complete control via my Logitech Harmony Remote.

I hooked up the IRLinc and paired up my devices to Scenes A/B and everything worked fine with the IRLinc credit card remote.  To get the Harmony setup I had to add custom commands for Scene A on/off (Screen Up/Down) and Scene B on/off (Wall Scones on/off).  These had to be learned on the Harmony using the IRLinc remote when I was done I quickly discovered control from the Harmony was very unreliable.  I toyed with this for a few days on and off and eventually got fed up and tossed it in a drawer to forget about.

Last night Ken was over and I decided to have two minds look at it :-P I knew it should work, and with a fresh pair of eyes we got it working.  We hooked it up and everything worked properly–I had previously added the INSTEON switches to the IRLinc’s scenes and it had retained those settings.  Testing it with the IRLinc’s credit card remote everything worked fine (as before) but with control via Harmony was very unreliable just as before.  We tried relearning the IR signals and that wasn’t getting us anywhere while sitting there staring at the screen we saw the “Custom” button on the IR Learn page in the Harmony software.  When we hit that we saw that all our learned commands had “Analyzed” next to them so we hit the new Learn Raw button that appeared once we hit the Custom button.  The learning process was a lot faster and we quickly updated the remote to test.  Success!  We learned that the Harmony doesn’t replicate IR codes it learns exactly.  By default the remote analyzes the IR signal and fixes any issues or interferance it encounters (sunlight in the room for example has IR light).  When the Harmony analyzed  the IRLinc’s signal it would clean the signal so much to the point that the IRLinc wasn’t able to respond because it wasn’t receiving the proper IR signal.  Hopefully this post helps others who have IRLinc’s in drawers from failed integration with Harmony remotes.

We mounted the IRLinc’s receiver on the front of my A/V receiver since I have no spare IR Emitters.  I don’t think I’ll even pickup another IR emitter for this since it’s always behind a closed door.

To get the Harmony setup I had to add custom commands for Scene A on/off (Screen Up/Down) and Scene B on/off (Wall Scones on/off).  These had to be learned via the Harmony for it to work and once learned they never worked properly.
  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Home Theater Part Five

Tuesday, June 30th, 2009

Prepared the INSTEON controls and PJ outlet for the attic.  Also mounted the relay board up in the attic and wired it all up.  Sconces are wired into this as well, programmed them so they ramp up/down.  Made a macro on my USB programmable INSTEON controller so whenever the screen goes up the Sconces ramp on, and when the screen goes down they ramp off.

TV is all wired up and center channel & sub RCA cabling is done.  TV wires look all gummy because the cheap electrical tape that wrapped around the plastic protecting all the connectors and binding the cables together left all the adhesive behind…and I pulled it off early so some insulation came in contact with it.  Will clean it up later on.

Clean speaker wire installs all done.  The mounts I used for the speakers suck–cheap plastic junk, no covers for the screws, ugly as hell… The cool part is I used a very handy tool from LSD (Labor Saving Devices) called a “Wet Noodle”  it’s a flexible bit of thin stiff tubing with a magnet on each end.  It comes with some ball chain attached to a split ring.  The way it works is from the attic you drill a hole through the top plate of the wall frame and drop the ball chain in the hole (split ring prevents the end from falling into the hole) and then drill a hole in the wall where you want to bring the wire out, and you retrieve it using by inserting the Wet Noodle and catching the ball chain on the magnetic tip affix your wire or poly and go back in the attic and pull the ball chain out and you got your wire through.  I was able to drill holes just a bit bigger then the gauge of the speaker wire and pull the speaker wire through using this tool/technique.  Well worth the 22 bucks, will definitely come in handy again.

IR connecting block installed and IR Receiver too.  Receiver went in the vaulted ceiling area since the screen being down would block it’s placement elsewhere.  Doing this again I wouldn’t use an inwall connecting block, it just added more wires traveling from the wall to the media cabinet, had I used the non-in wall version I would simply have a Cat5 cable coming across and that would be it.  This way I have 3 emitter cables traveling across, along with a power cable.

Wired in the HDMI and Component splitters to get output for both TV and PJ.  Super Cheap HDMI splitter, so far no issues.  Component picture really suffers on the PJ pretty sure I need to get a better VGA to component cable.

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Home Theater Part Duex

Sunday, June 21st, 2009

More progress–Paint and Wall Sconces all done.

Some more decisions made, Harmony 880 will control the entire system.  Xantech Connecting block & Emitters for IR distribution, Samsung 52″ LCD selected.  Receiver + Speakers will be my dad’s existing gear.

To control the motorized screen and wall sconces INSTEON was selected.  I was going to get the low voltage board for the motorized screen so I could control it via IR, RS-232, etc. but those options all would have cost me over $300.  My electrician buddy Kenneth “Teh Fuckin’ Man” Deli figured out a way to use INSTEON Controls, and a Relay to control the screen.  He also advised me on an IR to INSTEON adapter so my Harmony remote could control everything properly.  Did I mention I <3 DIN Rail???

Screen Testing!  Also set the limit switches were I think they should be…
Installed half the power bridge and cut in the LV mudring.

Setup my ghetto cable pulling rig–Since only one of the cable is on a spool this isn’t straight forward, but most of the cable is very stiff so it spins easily.  Still needed someone tending to this while the pull was going on but it made it a breeze running all the cables at one time.  I didn’t have any poly to use as a leader, so I used a bit of phone wire and staggered all the cable’s connectors so the pull wouldn’t just be a big ass ball of connectors.  Everything is neatly tied up and all connectors are protected as described in the previous post.

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

1-Wire Temperature Sensors

Monday, September 1st, 2008

Well I finally got some Dallas Semiconductor 1-Wire Tempature Sensors in.  I quickly threw a bunch on the breadboard to see how accurate they are and stuffs, pretty nifty, 2 wires is all it takes, ignore the 3rd leg of the sensors it doesn’t do anything…

Breadboard + 1-Wire Tempature Sensors

Breadboard + 1-Wire Temperature Sensors

I put white blocks in the picture because of the nonsense on the breadboard–it was just some toying of a segment display from awhile back…

I plan to use these sensors (along with many more) to build a weather station, and I’d like to place a few throughout the house to see the difference in tempature between the rooms.  Would be intresting to see the temp difference between the outside, attic and home on a graph.

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

HID Reader Installed

Wednesday, August 6th, 2008
So I got a pair of HID Readers today, MiniProx’s I expected them to be smaller but oh well, they work nice…  I mounted one up for the garage door outside properly, and used a terminal block to make the connections because it only has a 18″ pigtail.  I used STP Cat5 because honeywell/northern computers recommends sheilded cable, and STP Cat5 was lying around on a workbench…
Pics below:

HID Reader in Box

HID Reader in Box


(more…)

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Card Access System Installed & Operational

Friday, July 25th, 2008

So with a tip from a fellow on the internets, I was able to finish that last step in programming it, setting the link between a card reader and an output.  It was all working so I ran to install it, took a little under an hour and it works! w00t!!!111oneoneeleven

Pics:

N-1000-II Mounted

N-1000-II Mounted

(more…)

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Progress on the Card Access System

Sunday, July 20th, 2008

So I tinkered around today with it some more, and realized my mistake when I previously tried to program the panel.  Every command has to be prefixed with a space.  The other show stopper is the POS USB<->Serial Dongle I am using, it craps out after a few minutes and I have to change the com port, disable/reenable the device, or unplug/replug it in…

I made good progress today, Assigned the Reader to an Output, Added the Card to the Reader, and named the Panel, Reader and Output.  I cannot get the panel to energize the output when I have a successful read, however the LED status on the reader works now and I can see the actions in the terminal processing.  I know it has to do with the V command, but everything I’ve done thus far is invalid syntax, stupid Honeywell needs to improve on this documentation from 1995.  Perhaps I’ll try to get a firmware upgrade for this thing, apparently you have to send the EPROMM in to get it, PITA.   Heres a pic from my tinkering…

Access Control Progress

Also bidding on a Blackbox wireless serial server so once this is installed I can make whatever changes over the network…mmm disable someones proxcard (key) to the house via VPN–oh the joys…

Anyone else who wants to do something like this, the Northern Computers panels may be a cheaper solution since they are in surplus out of old buildings, however something like an ELK-M1 may prove to be more user friendly and alot less fustrating…

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Card Access Systems for Home use…

Tuesday, June 10th, 2008

So I picked up this Northern Computers N-1000-II Access control panel from fleabay for a few bucks.  I’m working to make my garage door have card access, and then maybe the front door of the house.  Still haven’t figured out howto program it, the serial port spews out timestamps of events (alarm conditions, card reads, etc) you can program one of the 2 card reader inputs to energize a relay output when an “authorized” card is read..

N-1000-II

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark

Wiring the house

Saturday, March 15th, 2008

So I picked up this wallmount rack a bit ago and finally threw it up there, it came with a bunch of patch panels filled with keystone jacks that will be installed throughout the house–since I already have a patch panel…  To the right is a Netbotz Wallbotz  300B to send me emails about the garage being 112 degrees….Florida fails.

wallrack

  • Delicious
  • Digg
  • Twitter
  • Share/Bookmark