Page 1 of 1

Raspberry pi2 and Electromagnetic lock

Posted: Mon Mar 21, 2016 12:20 pm
by gigi5
Is it possible to give signal directlly from raspberry to Electromagnetic lock, to open ?
http://www.electro-tech-online.com/cust ... ocks-1.jpg

Re: Raspberry pi2 and Electromagnetic lock

Posted: Mon Mar 21, 2016 1:05 pm
by klricks
Not directly. You will need to add external circuit(s) such as a relay board. Give a link to a data sheet or user manual for the lock.

Re: Raspberry pi2 and Electromagnetic lock

Posted: Mon Mar 21, 2016 3:55 pm
by gigi5

Re: Raspberry pi2 and Electromagnetic lock

Posted: Tue Mar 22, 2016 1:58 am
by klricks
A relay board wired to the release button terminals should work.

Re: Raspberry pi2 and Electromagnetic lock

Posted: Tue Mar 22, 2016 4:22 pm
by gigi5
What relay board would be best ? and i didnt understod part about "release button terminals"

Re: Raspberry pi2 and Electromagnetic lock

Posted: Tue Mar 22, 2016 5:09 pm
by klricks
gigi5 wrote:What relay board would be best ? and i didnt understod part about "release button terminals"
How far away from the lock will the RPi be? You can use a 5V relay board powered from the RPi or a 12V 24V relay if powered by the lock power supply depending on which voltage you want to use for the lock.

Something like this: http://www.sainsmart.com/arduino-pro-mini.html

Look at the wiring diagram in your link and find the release button(s).

Re: Raspberry pi2 and Electromagnetic lock

Posted: Tue Mar 22, 2016 5:21 pm
by gigi5
rpi will be very close, i mean almost in same position.

Re: Raspberry pi2 and Electromagnetic lock

Posted: Tue Mar 22, 2016 7:22 pm
by solar3000
All you need are two transistors, some resistors, a diode and a relay.

Re: Raspberry pi2 and Electromagnetic lock

Posted: Tue Mar 22, 2016 7:39 pm
by klricks
solar3000 wrote:All you need are two transistors, some resistors, a diode and a relay.
You forgot one very important item. The circuit board. Not feasible for most novice users though a 'proto' board would work.
The off the shelf relay boards contain all the needed parts and are so cheap it's not worth making your own boards.