https://github.com/mark-mdo47/sharksandlasers
Mark's Garage Door Closer Sharks and Lasers Project
https://github.com/mark-mdo47/sharksandlasers
destruct-button garage-door light-detectors raspberry-pi sensors sharks speaker
Last synced: about 1 month ago
JSON representation
Mark's Garage Door Closer Sharks and Lasers Project
- Host: GitHub
- URL: https://github.com/mark-mdo47/sharksandlasers
- Owner: Mark-MDO47
- License: unlicense
- Created: 2015-09-10T03:48:57.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-12-21T04:18:33.000Z (over 4 years ago)
- Last Synced: 2025-01-22T22:43:25.449Z (over 1 year ago)
- Topics: destruct-button, garage-door, light-detectors, raspberry-pi, sensors, sharks, speaker
- Language: Python
- Size: 37.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SharksAndLasers
Mark's Garage Door Closer Sharks and Lasers Project



This code supports a personal garage door monitor project for Mark Olson.
It involves lasers and light detectors to monitor garage door position.
The laser goes through a beam splitter and then to two light detector targets:
one is called "LaserCheck" and the other is called "Bond" (see below).
The LaserCheck should always be off when the laser is off and on when the laser
is on. The Bond should be off when the laser is off; when the laser is on and
the garage door is fully open Bond obstructs the laser and it is off; otherwise
Bond is on.
Also there are "hall effect" magnetic sensors; both off when the garage door is
in between else either HallSensorClosed or HallSensorOpen for full closed or open.
Additionally there is a light sensor for the garage opener light, which comes on
for a while whenever the garage door is operated.
There is an output for a relay that will either close or open the door. We try
to use all our sensors to be really sure we are closing the door and not opening.
There is a momentary contact self-destruct button which causes us to play a
self-destruct countdown on the "bomb" speaker - a small speaker in the shape
of a bomb. I don't know why these were ever manufactured but I found one at Fry's.
Frys.com 7073311 Manufacturer: DGL GROUP
UPC 822248838241 Model HY-527-WNK
See below for explanation of why we do this.
When we think the door is open we can close it and we can send an SMS text
message to some telephone numbers from a text file we read. We will only
try to close the door once but we may send periodic text messages; not sure
yet how I want that to work.
We log info to a Network Attached Storage NAS disk. We make efforts to
reconnect and write saved status lines if it goes offline for a while.
We create two simple web pages and try to keep the webserver operating
if we notice it died. The webpages give status. One for a cell phone,
one for a large screen.
Why Bond?
Because where there are lasers, there must be sharks, and therefore there
must be sharks shooting lasers at James Bond, and there must be a self-destruct
button. That much is clear.
The original James Bond laser scene
* https://www.youtube.com/watch?v=DoQwKe0lggw
The original James Bond shark scene
* https://www.youtube.com/watch?v=JPDhxTbWjuc
The first Austin Powers sharks with lasers scene
* https://www.youtube.com/watch?v=Bh7bYNAHXxw
The second Austin Powers sharks with lasers scene
* https://www.youtube.com/watch?v=Nh5Lh-tTSZQ