Difference between revisions of "Project/LightingTheFacade"
Jump to navigation
Jump to search
(Project finished) |
|||
Line 12: | Line 12: | ||
** 2x30W on the street | ** 2x30W on the street | ||
** 2x10W on the internal entryway | ** 2x10W on the internal entryway | ||
* For each of these we have a small relay | * For each of these we have a [http://erelement.com/power-supplies/relay-5v small relay] | ||
* All relays are controlled through a [http://www.ipnetcontrol.net/en/item-products-en/8r1t1a neomontana netcontrol] via SNMP. | * All relays are controlled through a [http://www.ipnetcontrol.net/en/item-products-en/8r1t1a neomontana netcontrol] via SNMP. | ||
Revision as of 19:50, 23 January 2016
Lights on the facade of the lab
Status
- Plan - to have all the lights on the outside controllable from software
- github issue
- The system is ready and operational
Implementation
- We installed LED lights on the facade
- 2x30W on the street
- 2x10W on the internal entryway
- For each of these we have a small relay
- All relays are controlled through a neomontana netcontrol via SNMP.
Cabling
- For each relay, we have a pair going to it though the cabling of the house
- We push 5V on those pairs
- All relays go to the patch panel in the work room:
- Lecture room - pp 15
- Work room - pp 18
- Hackvarium - pp 7
- From that patch panel over pp 5 through cable WR2 they go to the rack in the coridor, to pp 2, and from it to the neomontana netcontrol
- On the netcontrol we use relays 5-7 to control this, and push 5V from a normal power supply.
Logic
- It's all implemented in an extremely hacky php/shell script, screenshot.
- It loops every 60 seconds
- Fetches the status of the lamps, the door, if it's light or dark outside
- If the lights are on:
- If it's day and the lamps aren't forced on, they're turned off;
- If it's night, the door is locked and more than 15 minutes have passed since the locking, the lamps are turned off;
- If the lamps are off:
- If they're forced, they're turned on;
- If it's night and the door is unlocked (e.g. there are people in the lab), the lamps are turned on;