Lighting Automation: Difference between revisions
No edit summary |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{project|image=File:Lighting at DMMF12.jpg|type=infrastructure|primary=[[Team:Infrastructure]]|status=Dormant|created=26/04/2012|dormantdate=12/12/2014}} | ||
==The Problem== | ==The Problem== | ||
The existing lighting in the hackspace is a real mess.<br /> | The existing lighting in the hackspace is a real mess.<br /> | ||
Line 6: | Line 7: | ||
==The Fix== | ==The Fix== | ||
This | This summer's big hackspace infrastructure project is to rewire the lighting throughout the whole space.<br /> | ||
Of course being a hackspace we are adding our own techno touch to this job :)<br /> | Of course being a hackspace we are adding our own techno touch to this job :)<br /> | ||
Thanks to an unnamed member we have a growing stock of second hand fittings that will be used to replace the existing 8ft fittings.<br /> | Thanks to an unnamed member we have a growing stock of second hand fittings that will be used to replace the existing 8ft fittings.<br /> | ||
Line 19: | Line 20: | ||
These relays can of course be switched by an Arduino or other micro and giving us ultimate control over the hackspace lights.<br/> | These relays can of course be switched by an Arduino or other micro and giving us ultimate control over the hackspace lights.<br/> | ||
The Light switches around the hackspace will be replaced with | The Light switches around the hackspace will be replaced with micros and pushbuttons<br /> | ||
Having micro's in the systems means we can easily do multi-way switching and not just from custom control | Having micro's in the systems means we can easily do multi-way switching and not just from custom control boards but also from webpages or mobile apps<br/> | ||
==The Plan== | ==The Plan== | ||
[[File:Lighting at DMMF12.jpg|thumb|350px|right]] | [[File:Lighting at DMMF12.jpg|thumb|350px|right]] | ||
The 17 zones will be split across two control | The 17 zones will be split across two control boxes, 7 to a board in the workshop and 10 to a board in the members storage room.<br/> | ||
===[[Lighting Automation/Control Box|Control Box]]=== | ===[[Lighting Automation/Control Box|Control Box]]=== | ||
Each control box will house | Each control box will house contactors, relays and a networked micro-controller.<br /> | ||
A contactor is a 240v electrically controlled switch, like a relay but for much higher current<br /> | A contactor is a 240v electrically controlled switch, like a relay but for much higher current<br /> | ||
Each contactor is switched via a 12vdc relay, which in turn is switched via an arduino and MOSFET setup<br /> | Each contactor is switched via a 12vdc relay, which in turn is switched via an arduino and MOSFET setup<br /> | ||
5vdc Relays would remove the need for the MOSFET but they are much harder to acquire and cost a lot more<br /> | 5vdc Relays would remove the need for the MOSFET but they are much harder to acquire and cost a lot more<br /> | ||
Micro-controller in each control board is likely to be a Xino (arduino clone) and a Wiznet Ethernet shield<br /> | Micro-controller in each control board is likely to be a Xino (arduino clone) and a Wiznet Ethernet shield<br /> | ||
Again thanks to generous donations we have 17 | Again thanks to generous donations we have 17 contactors and relay holders already at the space.<br /> | ||
The 12vdc relays will be ordered from rapid code 60-0905, along with appropriate | The 12vdc relays will be ordered from rapid code 60-0905, along with appropriate MOSFETs<br/> | ||
===[[Lighting Automation/Switch| | ===[[Lighting Automation/Switch|Switches]]=== | ||
Two main switch panels and various smaller control points will be mounted around the space<br/> | Two main switch panels and various smaller control points will be mounted around the space.<br/> | ||
Two larger panels, one in the workshop and one by the last man out switch in the comfy area.<br /> | Two larger panels, one in the workshop and one by the last man out switch in the comfy area.<br /> | ||
The two large panels will be custom laser etched | The two large panels will be custom laser etched boxes with plan view maps of the hackspace, each lighting zone will have a momentary push switch, possible lit when the lights are out<br/> | ||
Again for control in the large panels we will use | Again for control in the large panels we will use Xinos and Wiznet shields<br /> | ||
Each panel will need a 5v power supply and network connection | Each panel will need a 5v power supply and network connection | ||
Smaller 1 or 2 button switch | Smaller 1 or 2 button switch boxes will be mounted in the following areas. | ||
* Textiles room | * Textiles room | ||
* Between the kitchen & toilets | * Between the kitchen & toilets | ||
Line 48: | Line 49: | ||
* Members box room | * Members box room | ||
* Hall way | * Hall way | ||
The smaller switches will be build from | The smaller switches will be build from XRFs possible with a ATtiny2313, but only if it can't be done in LLAP firmware on the XRFs<br/> | ||
These will only need a 5v power supply as communication will be done over the existing LLAP<>MQTT bridge<br/> | These will only need a 5v power supply as communication will be done over the existing LLAP<>MQTT bridge<br/> | ||
===Light Fittings=== | ===Light Fittings=== | ||
After the control | After the control boxes and the wire runs are in place the job of swapping the light fittings over will begin, most of the 8fts will be replaced with 5ft fittings and tubes.<br /> | ||
There will be a call for help when we get round to this stage.<br /> | There will be a call for help when we get round to this stage.<br /> | ||
Line 64: | Line 65: | ||
See the [[Lighting Automation/Control Software|Control Software]] page for more details on how this works.<br /> | See the [[Lighting Automation/Control Software|Control Software]] page for more details on how this works.<br /> | ||
===Backup System=== | ===Backup System=== | ||
Just in case there will be old fashioned override switches located near each of the control | Just in case there will be old fashioned override switches located near each of the control boxes | ||
==Cool ideas== | ==Cool ideas== | ||
The system will include an ambient light sensor to detect if its dark outside, this will be used to automatically turn certain | The system will include an ambient light sensor to detect if its dark outside, this will be used to automatically turn certain lights on.<br/> | ||
If | If it's dark the hallway light will turn on for 5 minutes any time either of the doors is opened.<br /> | ||
On entering the closed space from the hallway, the walkway lights (comfy area & studio) between the last man switch and the workshop will automatically turn on.<br /> | On entering the closed space from the hallway, the walkway lights (comfy area & studio) between the last man switch and the workshop will automatically turn on.<br /> | ||
On closing the space (last man | On closing the space (last man switch) any light left on will be automatically turned off.<br /> | ||
A web page interface can | A web page interface can be built into the hackspace intranet site.<br /> | ||
Mobile phone app<br /> | Mobile phone app<br /> | ||
Toilet lights can be on a 30minute(adjustable) timer so they don't get left on.<br/> | Toilet lights can be on a 30minute(adjustable) timer so they don't get left on.<br/> | ||
Line 83: | Line 81: | ||
[[Category:Infrastructure]] | [[Category:Infrastructure]] | ||
[[Category:Instrumentation]] | [[Category:Instrumentation]] | ||
[[Category: | [[Category:Archived Pages]] | ||
[[Category:Lighting]] |
Latest revision as of 10:32, 3 March 2019
Lighting Automation | |
---|---|
Primary Contact | Team:Infrastructure |
Created | 26/04/2012 |
Dormant | 12/12/2014 |
Status | Dormant |
Type | Hackspace Infrastructure |
QR code |
The Problem
The existing lighting in the hackspace is a real mess.
Switching is all over the place and its hard to get hold of replacement tubes for the massive fittings.
The current lighting is split across 9 switches/zones.
The Fix
This summer's big hackspace infrastructure project is to rewire the lighting throughout the whole space.
Of course being a hackspace we are adding our own techno touch to this job :)
Thanks to an unnamed member we have a growing stock of second hand fittings that will be used to replace the existing 8ft fittings.
The plan to rewire also includes a move to better zoning of the lights and will call for 17 zones over the existing 9.
This quick plan shows the various zone that will be individually controllable
The Tech
Now being a hackspace good old fashioned light switches are just not going to cut it.
So it was suggested that we could build an integrated system by having the lights wired back to central control boards, fitted with contractors and relays.
These relays can of course be switched by an Arduino or other micro and giving us ultimate control over the hackspace lights.
The Light switches around the hackspace will be replaced with micros and pushbuttons
Having micro's in the systems means we can easily do multi-way switching and not just from custom control boards but also from webpages or mobile apps
The Plan
The 17 zones will be split across two control boxes, 7 to a board in the workshop and 10 to a board in the members storage room.
Control Box
Each control box will house contactors, relays and a networked micro-controller.
A contactor is a 240v electrically controlled switch, like a relay but for much higher current
Each contactor is switched via a 12vdc relay, which in turn is switched via an arduino and MOSFET setup
5vdc Relays would remove the need for the MOSFET but they are much harder to acquire and cost a lot more
Micro-controller in each control board is likely to be a Xino (arduino clone) and a Wiznet Ethernet shield
Again thanks to generous donations we have 17 contactors and relay holders already at the space.
The 12vdc relays will be ordered from rapid code 60-0905, along with appropriate MOSFETs
Switches
Two main switch panels and various smaller control points will be mounted around the space.
Two larger panels, one in the workshop and one by the last man out switch in the comfy area.
The two large panels will be custom laser etched boxes with plan view maps of the hackspace, each lighting zone will have a momentary push switch, possible lit when the lights are out
Again for control in the large panels we will use Xinos and Wiznet shields
Each panel will need a 5v power supply and network connection
Smaller 1 or 2 button switch boxes will be mounted in the following areas.
- Textiles room
- Between the kitchen & toilets
- Blue room
- Member storage room
- Members box room
- Hall way
The smaller switches will be build from XRFs possible with a ATtiny2313, but only if it can't be done in LLAP firmware on the XRFs
These will only need a 5v power supply as communication will be done over the existing LLAP<>MQTT bridge
Light Fittings
After the control boxes and the wire runs are in place the job of swapping the light fittings over will begin, most of the 8fts will be replaced with 5ft fittings and tubes.
There will be a call for help when we get round to this stage.
Wire Runs
Heavy feeds will be run from the distribution boards to the new control boards and then wire runs from the control board to each zones first light will be added.
Runs between fitting may be reused from the old lighting if appropriate.
Control Software
Of course getting all this to talk is going to need several bits of firmware and a possible controller process on Holly
Basic idea is the switch panels will send an MQTT message say toggle a zone, the controllers will then update the zone and publish back the new state
See the Control Software page for more details on how this works.
Backup System
Just in case there will be old fashioned override switches located near each of the control boxes
Cool ideas
The system will include an ambient light sensor to detect if its dark outside, this will be used to automatically turn certain lights on.
If it's dark the hallway light will turn on for 5 minutes any time either of the doors is opened.
On entering the closed space from the hallway, the walkway lights (comfy area & studio) between the last man switch and the workshop will automatically turn on.
On closing the space (last man switch) any light left on will be automatically turned off.
A web page interface can be built into the hackspace intranet site.
Mobile phone app
Toilet lights can be on a 30minute(adjustable) timer so they don't get left on.