gigi5
Posts: 11
Joined: Sun Dec 27, 2015 6:22 pm

Raspberry pi2 and Electromagnetic lock

Mon Mar 21, 2016 12:20 pm

Is it possible to give signal directlly from raspberry to Electromagnetic lock, to open ?
http://www.electro-tech-online.com/cust ... ocks-1.jpg

klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Raspberry pi2 and Electromagnetic lock

Mon Mar 21, 2016 1:05 pm

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.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.


klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Raspberry pi2 and Electromagnetic lock

Tue Mar 22, 2016 1:58 am

A relay board wired to the release button terminals should work.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

gigi5
Posts: 11
Joined: Sun Dec 27, 2015 6:22 pm

Re: Raspberry pi2 and Electromagnetic lock

Tue Mar 22, 2016 4:22 pm

What relay board would be best ? and i didnt understod part about "release button terminals"

klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Raspberry pi2 and Electromagnetic lock

Tue Mar 22, 2016 5:09 pm

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).
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

gigi5
Posts: 11
Joined: Sun Dec 27, 2015 6:22 pm

Re: Raspberry pi2 and Electromagnetic lock

Tue Mar 22, 2016 5:21 pm

rpi will be very close, i mean almost in same position.

User avatar
solar3000
Posts: 1051
Joined: Sat May 18, 2013 12:14 am

Re: Raspberry pi2 and Electromagnetic lock

Tue Mar 22, 2016 7:22 pm

All you need are two transistors, some resistors, a diode and a relay.
Antikythera

klricks
Posts: 7172
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Raspberry pi2 and Electromagnetic lock

Tue Mar 22, 2016 7:39 pm

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.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

Return to “General discussion”