flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Heap > design a something that could detect door open / close

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 6650
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
design a something that could detect door open / close
objective:

to implement a system that could detect and record, what time, this door is close, and open, (about 10 doors in total)

hardware: raspberry pi or etc devices that could complete objective, a laptop / pc,

requirement:
1. minimum cost
2. minimum cost
3. minimum cost

any idea you want to share?
Post 23 Apr 2017, 09:09
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 14924
Location: 6EQUJ5
I'm sure there are literally hundreds of existing security systems out there that can do this. Some of them are really cheap to buy with all the sensors and cabling. Perhaps the major cost will be the installation. If you can do it yourself that saves a large portion of the cost.
Post 23 Apr 2017, 09:28
View user's profile Send private message Visit poster's website Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7637
Location: 22° 15' N | 114° 10' E
revolution is right on this. Just buy the physical locks and then write programs to manipulate the data for your needs.

For example:
http://www.yaleasia.com/en/yale/yale-asia/products/yale-digital-door-locks/

Wink
Post 23 Apr 2017, 09:35
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6650
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
it supposes to be a diy like project, no need to lock or unlock doors through system, owner prefer traditional method of using keys to lock or unlock,

we just want to track if the door is open, what time it opens, if door is close, what time it closes, and we don't have to track if there is no electricity,

just want to grab some ideas, how to achieve such objective, with minimum cost,
Post 23 Apr 2017, 09:37
View user's profile Send private message Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7637
Location: 22° 15' N | 114° 10' E
You may consider using passive infrared sensors:

https://en.wikipedia.org/wiki/Passive_infrared_sensor

Wink
Post 23 Apr 2017, 09:42
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 14924
Location: 6EQUJ5
PIR sensors are for motion detection. I'd expect that a simple magnet and reed switch is really all that is needed. They are cheap and don't require external power, just a two wire cable.
Post 23 Apr 2017, 11:50
View user's profile Send private message Visit poster's website Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7637
Location: 22° 15' N | 114° 10' E
Also consider a laser door alarm:

http://www.electroschematics.com/4929/laser-based-door-alarm/

Just modify the receiver part to send the signal to a data logger.

Wink
Post 23 Apr 2017, 12:22
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6650
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
thanks for ideas, YONG & revolution,

i draw something later, maybe you all could give me some more ideas if it would works or no, thanks,
Post 24 Apr 2017, 01:50
View user's profile Send private message Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7637
Location: 22° 15' N | 114° 10' E

sleepsleep wrote:
thanks for ideas, YONG & revolution

You are welcome.


sleepsleep wrote:
i draw something later

No. Don't draw anything. Your drawing will end up like your thought experiments -- it will never work! Laughing

Seriously, you should just build the setup in your client's place, and then test & modify the setup using trial and error.

Wink
Post 24 Apr 2017, 02:28
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6650
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
here my drawing,

Image

D = iot device with wifi

when the door is closes, plate A will causes the circuit to complete, current able to go through, so i know door is closes,

when door is opens, plate A will detach itself from the circuit, iot device no longer detects current, small current, means door is open,

i think this should be the simplest way to detect door opens / closes, with minimal installation,

i have no idea about power required by iot device and this continuous current, i intend to use only single cmos battery, or 2 double A?, and function for 1 year, or i expecting too much?

damn, i don't know electricity, Crying or Very sad Crying or Very sad
Post 26 Apr 2017, 15:29
View user's profile Send private message Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7637
Location: 22° 15' N | 114° 10' E

sleepsleep wrote:
here my drawing,

I told you not to draw anything. Why didn't you listen to me? Mad

Wink
Post 27 Apr 2017, 01:59
View user's profile Send private message Visit poster's website Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7637
Location: 22° 15' N | 114° 10' E

sleepsleep wrote:
Image

Seriously, there are lots of issues with your design.

1. Fire Hazard

There will be electric arcs whenever someone opens or closes the door.

2. Oxidation of Plate A & the opposite plates

Because of the electric arcs, plate A & the opposite plates will undergo oxidation very quickly -- unless they are made of some relatively-expensive metal alloy that resists oxidation.

3. Power Consumption

The battery will run out very quickly. Expect to replace it every few days, or even daily.


You should just use the magnet & reed switch approach suggested by revolution or the laser door alarm approach suggested by me. Both approaches (i) are non-contact, (ii) do not have metallic parts that are exposed in the air, and (iii) consume very little power.

Wink
Post 27 Apr 2017, 02:31
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6650
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699

YONG wrote:

sleepsleep wrote:
here my drawing,

I told you not to draw anything. Why didn't you listen to me? Mad

Wink


sorry, the mspaint.exe opens itself and start to draw, can't control, Laughing

btw, i thought of, why not just use the mechanism in refrigerator? a simple switch that detect you open refrigerator and lights up,

to conserve power / current / electric or whatever term it is,

switch cut power when door is closes, and allow current to flow when door is opens,
Post 27 Apr 2017, 07:06
View user's profile Send private message Reply with quote
Trinitek



Joined: 06 Nov 2011
Posts: 256

sleepsleep wrote:
sorry, the mspaint.exe opens itself and start to draw, can't control, Laughing

btw, i thought of, why not just use the mechanism in refrigerator? a simple switch that detect you open refrigerator and lights up,

to conserve power / current / electric or whatever term it is,

switch cut power when door is closes, and allow current to flow when door is opens,

That would be a SPST-NC switch.
Post 27 Apr 2017, 07:52
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 6650
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
Trinitek, thanks for the term, because i google refrigerator light switch just now Embarassed Embarassed Embarassed
Post 27 Apr 2017, 07:54
View user's profile Send private message Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7637
Location: 22° 15' N | 114° 10' E

sleepsleep wrote:
sorry, the mspaint.exe opens itself and start to draw, can't control

Human should never trust AI, which, at the end of the day, can't be controlled.

Wink
Post 27 Apr 2017, 08:08
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >

Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.