1
\$\begingroup\$

Our company use a fail safe electric bolt with a remote control for the entry door. It closes when the power is ON and vice versa.

It does work normally but I want to make a hot button for the receptionist to open/close it using her keyboard.

I'm a newbie in electrical and after spending a half day for googling I have found 2 way that I feel it may work:

  1. Connect the receptionist's PC directly with the door controller through computer port (USB/Serial).
  2. Use an ethernet relay.

Honestly, I have searched a lot but still found nothing fit my need. I want to solder the circuit myself so buying a complete controller is not in the category.

Btw, I intend to make the application using .NET framework (C#).

Any help would be appreciated!

P/S: Sorry for my English if you do not understand.

\$\endgroup\$
1
  • \$\begingroup\$ Hi all, after spending one more day for research, I think I found something that will work for my project. Use ENC28J60 with ATMEGA32! Letme explain in details, the system will use 1-channel relay to control the power of fail-safe electric bolt (12v) via ethernet. I still searching but could not find any completed tutorial for a brand-newbie guy like me, unluckily. \$\endgroup\$ Dec 10, 2015 at 2:54

2 Answers 2

2
\$\begingroup\$

One cheap and wire-clutter free way to do it would be to use ESP8266 modules. They come in many flavors and ESP-07 is my favorite. This will allow you to control the door wirelessly over a wi-fi network.

There is a project which allows you to program ESP modules using Arduino IDE. This will get you up and running quickly. You will need the wiring diagram given on this page.

If you choose to use ESP-07, then you can safely use GPIO - 4, 5, 12, 13, 14 and 16. There are a few more but you need to be careful while using them. For your purpose six pins seem to be more than enough.

Once the ESP module is ready, you need to select a suitable relay. Better idea is to select a 5V coil relay (i'll explain why). Don't forget the freewheeling diode.

Powering everything up:

1) ESP requires 3.3 V for operation. If you have used 5V relay, then get a 5V adapter and use a cheap 3.3V linear regulator (1117-3v3 for example). If your relay used higher voltage such as 12V, the linear regulator would have gotten quite hot.

2) Relay can be powered directly using the 5V that is coming from the adapter.

Controlling the lock:

ESP can connect to your office wifi as a client. You can write a PHP application and send the signals to ESP using your web browser to control the lock.

\$\endgroup\$
2
  • \$\begingroup\$ Could you suggest me another non-arduino based solution? \$\endgroup\$ Dec 9, 2015 at 8:00
  • \$\begingroup\$ Same ESP can be used as a communication device (like an RF module). Use another micro-controller of your choice. ESP will act as a communication bridge. You can use AT commands to communicate to ESP with your chosen micro-controller. \$\endgroup\$ Dec 9, 2015 at 8:05
1
\$\begingroup\$

I believe it would not be easy with ethernet way if you have no much experience with suitable components.

As about RS232 - see, here is a TXD line and GND line. If you just want to send some signal, you can send anything - bytes like 0x55 or 0x00 will anyway produce some recognizable pattern on a line.

Just read a bit about RS232 port to get idea what voltage levels there are. I believe you can interface them with a diode or two and pull-up resistor. Then you'll need a kind of one-shot timer which, when detect the signal on the line, will generate long enough control impulse to open your door - browse the manual for 555 timer, probably. Use optocoupler or mechanic relay to control the power-line of the door latch if necessary.

The only trick is to make the RS232 working with no more wires. I believe you need to short-circuit 1-4-6 pins between themselves and also 7-8 pins. Check internet for "RS232 3-wire" schematics for more details. Use low baud rate (even 300) to get more detectable signal - you'll be able to see it with led, for example.

If you use USB-to-UART cable of some kind, you need not short-circuit anything and the level interfacing is going to be somewhat simpler as there should be normal logical levels.

Sorry for this is not the most detailed instruction :)

\$\endgroup\$
2
  • \$\begingroup\$ Thanks for your answer, honestly, just like I said, I barely know nothing about circuit and electrical. What I'm trying is to find a working and simple schematic, buy required items and solder them myself. \$\endgroup\$ Dec 9, 2015 at 7:57
  • \$\begingroup\$ It would not harm if you will try to learn a bit "about circuit and electrical". Otherwise I suggest you simply bring the cable from the door and install separate button at the reception. Why need to connect it to PC (so that PC should be up and running in order to open door). You will anyway need to write some software to control it also. All this looks like unnecessary headache if you prefer easy and robust solution. \$\endgroup\$ Dec 9, 2015 at 8:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.