1
\$\begingroup\$

Trying to make a circuit for a door sensor. The objective is send a RF signal when door opens, another one when door closes (in the simulation, all RF part is simulated as a 1k resistor and door open/close is simulated as a switch: door open = switch off, door close=switch on).

In order to save energy, RF module will be powered only immediately after door is open and until a few seconds after door closed (to allow RF module to send the pending messages).

The first try is following circuit:

enter image description here

(simulation is here)

Problems:

1) There are a delay between open door and RF power on (mosfet open). This is not acceptable, because it means a fast door open-close could be not registered by the system.

2) Mosfet is in cut when door is closed, this is ok, and in linear mode when door is open, it could be better in saturation.

Could someone suggest some changes to reach these objectives?

Thanks.

\$\endgroup\$

1 Answer 1

3
\$\begingroup\$

Try using an EXOR gate with an RC to generate a pulse of limited duration when a switch opens or closes: -

enter image description here

The output pulse width is roughly equal to about R x C in time. It will produce a pulse when an edge is detected within tens of nano seconds (or less) and when the capacitor eventually charges, the pulse output will reset.

When the input changes state another pulse will be generated.

\$\endgroup\$
2
  • \$\begingroup\$ @pasabaporaqui I assume that by digital door you really mean digital gate? It's a bit confusing since you ask about a door sensor. \$\endgroup\$
    – pipe
    Commented Aug 1, 2017 at 9:42
  • \$\begingroup\$ It is need keep powered the RF module while door is open, to allow periodic retransmission of the "door open" message. Worst, this solution means that door open/closed must be "remembered" by the RF module, with the risk of a memory misalignment if one open or close is lost. No way with Mosfet instead of logic gates? \$\endgroup\$ Commented Aug 1, 2017 at 10:43

Your Answer

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

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