Difference between revisions of "Project/LightingTheFacade"

From initLab
Jump to navigation Jump to search
(Project finished)
Line 1: Line 1:
''' Lights on the facade of the lab '''
''' Lights on the facade of the lab '''


= stuff =
= Status=  


* Plan - to have all the lights on the outside controllable from software
* Plan - to have all the lights on the outside controllable from software
* [https://github.com/initLab/initLab/issues/20 github issue]
* [https://github.com/initLab/initLab/issues/20 github issue]
* Currently we have:
* The system is ready and operational
** The lights themselves, put and controllable with switches
 
** A relay controller with 8 relays, controllable over SNMP
= Implementation =
* What we need more:
 
** Small relays close to the switches, to control the lamps
* We installed LED lights on the facade
** Cabling from the switches to the relay controller
** 2x30W on the street
** Software to track/control everything
** 2x10W on the internal entryway
* For each of these we have a small relay
* All relays are controlled through a [http://www.ipnetcontrol.net/en/item-products-en/8r1t1a 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, [https://vasil.ludost.net/pics/20160123script.png 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;


= photos =
= photos =

Revision as of 20:49, 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;

photos

switchbox.jpg
dvor.jpg
street1.jpg
street2.jpg
street3.jpg