leosac / access-control

Leosac Access Control - Open Source Physical Access Control System
https://leosac.com
GNU Affero General Public License v3.0
240 stars 40 forks source link

Raspi interface (hardware / board) #129

Open nixator opened 4 years ago

nixator commented 4 years ago

Hi, finally I decided to make custom PCB because previous version of my build was horrible "tangled cables" style horror and I was scared about safety because there weren't any fuses and so on... Here is result:

https://photos.app.goo.gl/cX6htVHS83aTDqEaA

Jindra

knight-of-ni commented 4 years ago

Very nice. So it looks like you built yourself an 8 door controller. What are the pinouts for each rj45? Wiegand + lock relay? Anything else?

nixator commented 4 years ago

Yes, each RJ-45 contain all necessary for one door 4 wires for wiegand reader and 2+2 for lock. 8 maybe 9 doors without SPI I/O epander is possible to do only with level shifter. It runs for 3 years without any issue. I can provide eagle files or gerbers...

Jindra

knight-of-ni commented 4 years ago

Good idea doubling up on the lock power pairs.

jayjlow commented 4 years ago

Yes, each RJ-45 contain all necessary for one door 4 wires for wiegand reader and 2+2 for lock. 8 maybe 9 doors without SPI I/O epander is possible to do only with level shifter. It runs for 3 years without any issue. I can provide eagle files or gerbers...

Jindra

Hi Jindra,

If you can supply the eagle and gerber files, that would be amazing!

-Joaquin

nixator commented 4 years ago

Yes, each RJ-45 contain all necessary for one door 4 wires for wiegand reader and 2+2 for lock. 8 maybe 9 doors without SPI I/O epander is possible to do only with level shifter. It runs for 3 years without any issue. I can provide eagle files or gerbers... Jindra

Hi Jindra,

If you can supply the eagle and gerber files, that would be amazing!

-Joaquin

http://www.jindrichnikles.cz/?p=178

Maxhy commented 4 years ago

👍

jeremy-walker commented 4 years ago

@nixator, This is a really impressive project. Leosac in and of itself is a very impressive effort and sorely needed in this space, and your work on top of it is really amazing.

I have 8 doors with magnetic door locks and corresponding Wiegand RFID card readers that is currently controlled by a horrible proprietary system running on Windows XP that the vendor refuses to provide upgrades for or support. They would rather we throw these perfectly functioning devices out, and buy new ones so that they can provide support for it.

Unfortunately I'm not terribly skilled at electronics so building one of these is beyond my skills. Would you consider building one of these out for me? I will be happy to pay for your time and materials and some more to make it worth your while.

Do let me know.

nixator commented 4 years ago

@nixator, This is a really impressive project. Leosac in and of itself is a very impressive effort and sorely needed in this space, and your work on top of it is really amazing.

I have 8 doors with magnetic door locks and corresponding Wiegand RFID card readers that is currently controlled by a horrible proprietary system running on Windows XP that the vendor refuses to provide upgrades for or support. They would rather we throw these perfectly functioning devices out, and buy new ones so that they can provide support for it.

Unfortunately I'm not terribly skilled at electronics so building one of these is beyond my skills. Would you consider building one of these out for me? I will be happy to pay for your time and materials and some more to make it worth your while.

Do let me know.

Hi, I'm able to make another four devices, because PCB supplier do only batch of 5 pieces... So answer is yes, I can provide one unit for you.

jeremy-walker commented 4 years ago

That's great to hear. Let me know if I should email you directly to work out the details.

nixator commented 4 years ago

@jeremy-walker Yes, contact me here: jnikles (a) seznam dot cz

RIVA-Theo commented 3 years ago

Hi, I'm able to make another four devices, because PCB supplier do only batch of 5 pieces... So answer is yes, I can provide one >unit for you.

Hi Nixator.

I know it's been a while since you replied to this thread but i would also be interested if you still have a spare board for your Leosac/Pi setup. I am interested in setting up my own implementation.

nixator commented 3 years ago

Hi, I still have two PCB's, where are you from?

Jindra

Dne 12.04.2021 v 22:40 RIVA-Theo napsal(a):

Hi, I'm able to make another four devices, because PCB supplier do
only batch of 5 pieces... So answer is yes, I can provide one
>unit for you.

Hi Nixator.

I know it's been a while since you replied to this thread but i would also be interested if you still have a spare board for your Leosac/Pi setup. I am interested in setting up my own implementation.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/leosac/leosac/issues/129#issuecomment-818203987, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIA6VMGIE7Q5W3U5GVYCLTTINLFTANCNFSM4O4EBOAA.

RIVA-Theo commented 3 years ago

Hi, I still have two PCB's, where are you from? Jindra Dne 12.04.2021 v 22:40 RIVA-Theo napsal(a): Hi, I'm able to make another four devices, because PCB supplier do only batch of 5 pieces... So answer is yes, I can provide one >unit for you. Hi Nixator. I know it's been a while since you replied to this thread but i would also be interested if you still have a spare board for your Leosac/Pi setup. I am interested in setting up my own implementation. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#129 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIA6VMGIE7Q5W3U5GVYCLTTINLFTANCNFSM4O4EBOAA.

I am from New York City. I sent you an email to the address you listed above.

onlinegill commented 3 years ago

Hi, I still have two PCB's, where are you from? Jindra Dne 12.04.2021 v 22:40 RIVA-Theo napsal(a): Hi, I'm able to make another four devices, because PCB supplier do only batch of 5 pieces... So answer is yes, I can provide one >unit for you. Hi Nixator. I know it's been a while since you replied to this thread but i would also be interested if you still have a spare board for your Leosac/Pi setup. I am interested in setting up my own implementation. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#129 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHIA6VMGIE7Q5W3U5GVYCLTTINLFTANCNFSM4O4EBOAA.

Hi, I sent you email.

onlinegill commented 3 years ago

@nixator, This is a really impressive project. Leosac in and of itself is a very impressive effort and sorely needed in this space, and your work on top of it is really amazing.

I have 8 doors with magnetic door locks and corresponding Wiegand RFID card readers that is currently controlled by a horrible proprietary system running on Windows XP that the vendor refuses to provide upgrades for or support. They would rather we throw these perfectly functioning devices out, and buy new ones so that they can provide support for it.

Unfortunately I'm not terribly skilled at electronics so building one of these is beyond my skills. Would you consider building one of these out for me? I will be happy to pay for your time and materials and some more to make it worth your while.

Do let me know.

Hi Jeremy were you able to get it? I am also looking to setup one as we have same issue like you.

jeremy-walker commented 3 years ago

Hi @onlinegill,

Yes, I was able to get it, and @nixator was kind enough to not only build one out for me, but also help me set it up and sort out some installation issues specific to my setup. So if @nixator is willing to build you one, I strongly recommend you go for it. This is way better a solution than the crap they sell in the market place. Especially since it's paired with a standard linux box (raspi), it opens up a world of possibilities.

Good luck.

cheers -Jeremy

onlinegill commented 3 years ago

Hi @onlinegill,

Yes, I was able to get it, and @nixator was kind enough to not only build one out for me, but also help me set it up and sort out some installation issues specific to my setup. So if @nixator is willing to build you one, I strongly recommend you go for it. This is way better a solution than the crap they sell in the market place. Especially since it's paired with a standard linux box (raspi), it opens up a world of possibilities.

Good luck.

cheers -Jeremy

Thanks for reply. I sent him email couple days ago but got no response. I was wondering if you have alternative contact information. How many doors are you using?also looks like leosac hasn't updated since long time. I can make pcb but due to lack of parts I don't know if there are alternative parts can be used.

fabkoh commented 3 years ago

hi @nixator , apologies for pulling up this old thread. I was wondering if you could share how you wired up for multiple card readers to the Pi?

nixator commented 3 years ago

hi @nixator , apologies for pulling up this old thread. I was wondering if you could share how you wired up for multiple card readers to the Pi?

Hi, here is schematic in Eagle sch file: http://www.jindrichnikles.cz/?p=178

fabkoh commented 3 years ago

hi @nixator , apologies for pulling up this old thread. I was wondering if you could share how you wired up for multiple card readers to the Pi?

Hi, here is schematic in Eagle sch file: http://www.jindrichnikles.cz/?p=178

Awesome, thanks very much. I am working on a similar project for industrial implementation. Would it be OK if I reached out to you if I bump into any problems further down the road?

Maxhy commented 3 years ago

@fabkoh the purpose of Leosac was also to be used on industries and later one big companies. It has been designed this way at least. I know there was no much activities these past years but better to contribute to this one than to start again from scratch IMOO unless you see architecture downsides... I still have hope for future contribution from @xaqq and myself :).

fabkoh commented 3 years ago

@fabkoh the purpose of Leosac was also to be used on industries and later one big companies. It has been designed this way at least. I know there was no much activities these past years but better to contribute to this one than to start again from scratch IMOO unless you see architecture downsides... I still have hope for future contribution from @xaqq and myself :).

Hi Max, will definitely start off with the leosac libraries (Python in particular) and contribute any generic changes I make.

I have my own codes for the user authentication/database layer, and was hoping to find something here to help with parsing the Wiegand inputs coming in from the reader. Will dig into the repo and come back if I have any questions.

Thanks for all the awesome work!

onlinegill commented 3 years ago

@fabkoh the purpose of Leosac was also to be used on industries and later one big companies. It has been designed this way at least. I know there was no much activities these past years but better to contribute to this one than to start again from scratch IMOO unless you see architecture downsides... I still have hope for future contribution from @xaqq and myself :).

Hi Max, will definitely start off with the leosac libraries (Python in particular) and contribute any generic changes I make.

I have my own codes for the user authentication/database layer, and was hoping to find something here to help with parsing the Wiegand inputs coming in from the reader. Will dig into the repo and come back if I have any questions.

Thanks for all the awesome work!

Hi, please let me know if It can be used in bussines warehouse. Currently we are using old s2 netbox. I would love to use it if has web portal to create cards etc. I can also test things as I have Wiegand 26 cards and readers.

fabkoh commented 3 years ago

@fabkoh the purpose of Leosac was also to be used on industries and later one big companies. It has been designed this way at least. I know there was no much activities these past years but better to contribute to this one than to start again from scratch IMOO unless you see architecture downsides... I still have hope for future contribution from @xaqq and myself :).

Hi Max, will definitely start off with the leosac libraries (Python in particular) and contribute any generic changes I make. I have my own codes for the user authentication/database layer, and was hoping to find something here to help with parsing the Wiegand inputs coming in from the reader. Will dig into the repo and come back if I have any questions. Thanks for all the awesome work!

Hi, please let me know if It can be used in bussines warehouse. Currently we are using old s2 netbox. I would love to use it if has web portal to create cards etc. I can also test things as I have Wiegand 26 cards and readers.

We are just starting on the journey, will keep you posted as we go along.

@Maxhy , looking through the hardware setup on the documentation page, may I know if we can control multiple LEDs on the reader using the LED library? E.g. green/red

Many standard readers out there have 1 wire for the LED but have both red/green lights coming through.

fabkoh commented 3 years ago

hi @nixator , apologies for pulling up this old thread. I was wondering if you could share how you wired up for multiple card readers to the Pi?

Hi, here is schematic in Eagle sch file: http://www.jindrichnikles.cz/?p=178

Awesome, thanks very much. I am working on a similar project for industrial implementation. Would it be OK if I reached out to you if I bump into any problems further down the road?

@nixator , thanks again for this. I read the schematic diagram and would like to clarify a few things. Would it be ok if I reach out over another channel? Would like to find out more on how you setup the power for the EM locks and the relay control. Would also like to get your thoughts on incorporating buzzer and LED control.

fabkoh commented 3 years ago

Hi @Maxhy , was wondering if you could point to the code where you do the processing of key presses on the Wiegand keypad please?

onlinegill commented 2 years ago

Hi @Maxhy , was wondering if you could point to the code where you do the processing of key presses on the Wiegand keypad please? Hi any progress on it ?

Maxhy commented 2 years ago

@nixator I would like to include your PCB schemas as an example to the default Leosac documentation. Would that be OK? I would like to highlight the license as well, any chance for you to pick a license popular on open hardware community? Thanks!

nixator commented 2 years ago

Hi, no problem, no secret there...

Maxhy commented 2 years ago

The community has a lot of issues with the hardware setup since Piface Digital got discontinued. I would also like to prepare the project for the next phase now that there is some activity again, to be more "robust" and that goes through having proper hardware support.

Based on what you did @nixator I believe the basic requirements for a "door unit board" that would match most use cases are: Type Quantities Details Remarks
Power 1 12 VDC 24 VDC support at the same time would be a plus
Reader connectors 4 - D0 / Rx+ for Wiegand or RS485 input
- D1 / Rx- for Wiegand or RS485 input
- VDC+
- GRND
- Green LED output (for Wiegand)
- Red LED output (for Wiegand)
- Buzzer output (for Wiegand)
- Tamper switch/alarm input
Outputs and tamper switch wire could be global to the board
Door relays 4 NO or NC
Exit Request connectors 4 NO or NC
Door Sensor inputs 4
DIP Switch 2 For RS485 bus address and network/factory reset triggering
Jumpers ? To switch from Wiegand to RS485 for instance, except if it can be properly managed software side only
LED Activity 4 Will blink on transmission from reader data inputs
MCU connector 1 This should be generic enough to work with several hardware (BeagleBone, OrangePi, Raspberry Pi etc...) We probably don't want it to be manufactured as a HAT board (or it should requires intermediate HAT board as adapter?)
Press Button 1 - Restart button

Could be bumped to 8 doors/readers or 4 doors with 8 readers (for in/out scenarios) but it may be difficult to make it fit. This new board should support RS485 as well for reader connection as Wiegand readers are unsecure. Some RS485 readers (eg. OSDP) has been recently implemented with the new LLA module.

Connectors should be "removable" to facilitate the wiring, that's also what the industry is used to afaik. Now, we should also think about the following options:

The schematics should be under an explicit and permissive open hardware license.

Looking for feedbacks😄.

omnisci3nce commented 2 years ago

I would suggest having a physical RESET button to graceful shutdown or power cycle the RPi or equivalent Single-Board-Computer without having to unplug and plug in the power supply from/to the board.

Maxhy commented 2 years ago

Good point @omnisci3nce. Not sure if this reset button should be accessible without removing the case (if any) as you may not want to facilitate powering off of such unit when going live.

omnisci3nce commented 2 years ago

Yeah. If the case is easy enough to take off then I see no reason why not. Once you have the button you can allow it to do multiple things too based on how long it has been held down for. This is what various other access control manufacturers do.