Hackspace Instrumentation: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
Dex (talk | contribs)
No edit summary
Tidy up a bit
Line 1: Line 1:
{{Clean Up}}
{{Clean Up}}
Our always-on little server [[Network#Holly|Holly]] will be used to collect data from the HackSpace and provide a number of interfaces for the presentation of that data. This will be for "the things we want to know about" and various interesting statistics. The end-data, or a subset thereof, should really be published to [http://www.pachube.com/ pachube] to contribute to the Internet of Things. Internally we should be using [http://mqtt.org/ MQTT] to communicate between nodes.


* door contacts
Our [[Network#Holly|Holly]] VM, on [[Collective]], is used to collect data from the HackSpace and provide a number of interfaces for the presentation of that data. This will be for "the things we want to know about" and various interesting statistics. The end-data, or a subset thereof, should really be published to [http://www.pachube.com/ pachube] to contribute to the Internet of Things. Internally we are using [http://mqtt.org/ MQTT], powered by the [http://mosquitto.org/ Mosquito] message broker, to communicate between nodes - see [[MQTT_Topics]] for information currently being published.
** main door on black and white core --[[User:Lwk|Lwk]] 21:41, 2 March 2011 (GMT)
 
** main door magnetic release green and yellow cores --[[User:Lwk|Lwk]] 18:57, 8 May 2011 (BST)
Whilst not exactly well defined, the hackspace instrumentation project probably includes:
** We'll want to do the main HackSpace door first
==Currently==
** I got a nice reed-magnet contact switch from expolinkalarms.co.uk on ebay for £1.65
* [[Gatekeeper]] - The hackspace access control system. Also runs the studio door bell and the last man out switch. Publishes on the door being opened/closed, door bell being rang, and the state of the last man out switch changing.
** I taped it next to the door to install next weds [[User:Msemtd|Michael Erskine]] 13:21, 10 February 2011 (GMT)
 
** I brought in some Tyco 6-core alarm cable - there's lots of this in my free-issue cable store.
* [[LED Matrix]] - Large scrolling LED display in the comfy area. As well as displaying the topic of the latest google group email / twitter stuff and message set from IRC, it is also logging [[Temperature_Monitoring|temperatures]] for the comfy area, studio and blue room
** RepRap Matt has now installed the switch and run 6-core alarm cable over to Holly.
 
* temperature
* [[Mini-matrix]] - Similar to the [[LED Matrix]], but smaller and in the blue room. Also logs the temperature of the [[Snackspace]] fridge, and displays the username of anyone coming in to the hackspace.
* light level
 
* PIR
* [[Vending_Machine|Vending machine]] - Has a custom [[Vending Machine/Cashless Device Implementation|cashless device]] that records purchases and tweets
* dance-mat floor pressure switch (!)
 
** I have one in the store room
* [[WorkshopMQTT]] - aka workshop doorbell. Also logs the temperature in the Workshop, and is likely to be connected to doorbell button on door at the back of the workshop at some point.
** it might be useful to use it on the floor just inside the store room
 
* RFID reader fun
* Network device count - [[Holly]] is also recording and [http://lspace.nottinghack.org.uk/addr_graphs/ graphing] a count of the number of network devices currently connected to the hackspace network (with static devices excluded).
* fingerprint readers! I have left two in the store room
 
* webcams - naturally!
* [[Nh-holly|IRC bot]] - Outputs to IRC when the door is opened or the door bell rang. Essentially an MQTT to IRC bridge.
* [[HAL 9000]] [http://en.wikipedia.org/wiki/HAL_9000] eye with webcam showing the spooky view!
 
* [[GERTY]] from ''Moon'' [http://en.wikipedia.org/wiki/Moon_%28film%29] - a cheap colour LCD for the smiley face and what-have-you for the rest.
* [[Cacti]] graphs. Currently hackspace temperature and stats for [[Holly]].
 
==Closely related==
* [[HMS]] - Hackspace Management System
 
* [[JARVIS]] - VM on [[Collective]] that any member can log on to. Probably the easiest way of getting access to the above. Log in and run <code>mosquitto_sub -v -t '#'</code> to see events/readings as they are published. Use mosquitto_pub to send, e.g. to make the IRC bot, [[Nh-Holly]] speak: <code>mosquitto_pub -t nh/irc/tx -m "Hello World!"</code>. See the [[MQTT_Topics|topic list]] for others.
 
==In progress / ideas for the future==
* Light sensors - probably to be added the LED matrix & WorkshopMQTT node.
 
* [[Lighting_Automation|Lighting Automation]] - Sorting out the mess that is lighting in the hackspace. Significant progress has already been made, but the scope has since been reduced to not include the workshop.


I have started to map out [[The_Space]] with http://sourceforge.net/projects/sweethome3d/
* Make use the PIR sensors already installed


== PC I/O ==
* [[Energy Monitoring]]


* serial and parallel ports available
* There was a plan originally to add RFID access to the blue room and members storage, but I this has pretty much been abandoned
* USB ports available
* we could arduino it if we want


== PC storage and user interfaces ==
==Old ideas==
* Added "instrumentation" account on holly (uid=1005)
Don't think these are being worked on
* RRD http://en.wikipedia.org/wiki/RRDtool
* [[HAL 9000]] [http://en.wikipedia.org/wiki/HAL_9000] eye with webcam showing the spooky view!
* syslog?
* [[GERTY]] from ''Moon'' [http://en.wikipedia.org/wiki/Moon_%28film%29] - a cheap colour LCD for the smiley face and what-have-you for the rest.
* IRC bot would be entirely appropriate
* web interface of course!
* hook into the website
* daily summary as RSS feed
* daily summary as RSS feed
* everybody loves graphs!
* more graphs
[[User:Msemtd|Michael Erskine]] 13:21, 10 February 2011 (GMT)


== Crazy Cool Mobile Phone Hack ==
==Old... miscellaneous==
=== Crazy Cool Mobile Phone Hack ===


Every wanted to phone a server and tell it to do something? Or perhaps have the server phone or text you when something happens!
Every wanted to phone a server and tell it to do something? Or perhaps have the server phone or text you when something happens!
Line 50: Line 54:
[[User:Msemtd|Michael Erskine]] 09:33, 15 February 2011 (GMT)
[[User:Msemtd|Michael Erskine]] 09:33, 15 February 2011 (GMT)


== Matt's List ==
=== Matt's List ===
A quick copy of the big ToDo list that [[User:Lwk|&#39;RepRap&#39; Matt]] put together
A quick copy of the big ToDo list that [[User:Lwk|&#39;RepRap&#39; Matt]] put together.
With done stuff since removed by [[User:Daniel|Daniel]] ([[User talk:Daniel|talk]]) 19:08, 5 October 2013 (EST)


* Hackspace instrumentation:-
* Hackspace instrumentation:-
* MQTT running form Holly
* Sensors can be added via arduino's/nanodes publish to topics
* All useful data to be graphed using cacti? Scripts for cacti the subscribe mqtt and then graph as needed?
* Irc bot and twitter bot to publish/subscribe to own topics
* Use scripts on Holly to reprocess topics for twitter and irc
* Port mqtt to nanode
* Port mqtt to nanode
* [[Gatekeeper]] RFID door control
* Power at supply shared with led matrix or power over cat 5
* Nanode
* RFID reader (newsoftserial)
* Doorbell button (plasterboard back box) (interrupt pin)
* magnetic relasse (MOSFET switch 12v)
* Magnetic contact (interrupt pin)
* Doorbell sounder (MOSFET or relay) pull of wall and see if it will work?
* Status led's red green linked to mag relase  
* Status led's red green linked to mag relase  
* Push to irc twitter cacti and log
* Card numbers in mysql db, script on Holly to check
* Web page to manage mqsl db, intranet only, htacess passwd
* Db possible for other members details? Name, twitter, email, address, phone numbers, fee's, join date.
* Need a project box due to location in members box room
* Status board
* Nanode???
* Or mega with ethshield?
* Power from at supply,
* Cat 5
* Looking John's code for frame buffer
* Add strobe light (for doorbell and ?beacons)
* Add strobe light (for doorbell and ?beacons)
* Subscribe from irc and twitter dm (show for how long? Till change)
* Clear board button? (big red one!!!)
* Clear board button? (big red one!!!)


* [[Energy Monitoring]]
* Openenergymonitor.org
* Current transformers in place, forgot to note down models
* Owl wireless meter? Not much use if can talk to USB over Linux
* Nanode
* Open energy monitor show voltage sense using 9v ac-ac wall wart (?need one for each phase?)
* Push to cacti
* Query form irc
* Possible led display either flashed on led matrix or own display allways on?
* http://openenergymonitor.org/emon/emontx
** plausible way to do CT monitor using 2 RFM12B nuts, would mean not stuffing a nanode in the cupboard and losing access to spare pins
* Irc stats to cacti? London do it (nick there scripts from github)
* Irc stats to cacti? London do it (nick there scripts from github)


* [[Temperature  Monitoring]]
* Temp sensors dotted around space
* Nanode again
* Small wireless units or daisy chain of dalas one wires?
* Humidity sensor's?
* Humidity sensor's?
* Push to cacti
* Query from irc


* Last man out switch
* Last man out switch
* Knife switch (back to RFID nanode)
** Can rest space occupancy if needed
* Push to twitter/irc
** Should turn off some plugs? Kettles, water heaters?
* Query from irc
* Can rest space occupancy if needed
* Should turn off some plugs? Kettles, water heaters?
 
 
   
   
* Occupeancy counter
* Occupancy counter
* Nanode
* Nanode
* Laser beams count in and out, embed in unsed door?
* Laser beams count in and out, embed in unsed door?
* how to detect lasers. Photo diodes enuff?
* how to detect lasers. Photo diodes enough?
* Two beams in entrance  
* Two beams in entrance  
* Push to cacti
* Push to cacti
Line 134: Line 82:
* Can use door magnetic contact and last man out switch to keep accuracy
* Can use door magnetic contact and last man out switch to keep accuracy
* Project box
* Project box


* Back door bell
* Back door bell


* RFID to blue office and members storage
* RFID to blue office and members storage
Line 144: Line 90:
* Push to cacti and log?
* Push to cacti and log?
* Don't really need to irc twitter
* Don't really need to irc twitter


* Sound meters??
* Sound meters??
* Push to cacti
* Push to cacti


* Pir's??
* Pir's??


* Vending Machine and Snackspace
* take over the logic of the vending machine
* install RFID
* members can RFID to buy on tick
* you enter a code for product, then either deposit correct money into vending machine or swipe rfid, it then vends the item
* can email members there invoice once a month
* possibly add a magnetic lock to the fridge and have code's for fridge products unlock that once paid for
* possibly add a magnetic lock to the fridge and have code's for fridge products unlock that once paid for
** causes issue with milk access
** causes issue with milk access





Revision as of 00:08, 6 October 2013

Template:Clean Up

Our Holly VM, on Collective, is used to collect data from the HackSpace and provide a number of interfaces for the presentation of that data. This will be for "the things we want to know about" and various interesting statistics. The end-data, or a subset thereof, should really be published to pachube to contribute to the Internet of Things. Internally we are using MQTT, powered by the Mosquito message broker, to communicate between nodes - see MQTT_Topics for information currently being published.

Whilst not exactly well defined, the hackspace instrumentation project probably includes:

Currently

  • Gatekeeper - The hackspace access control system. Also runs the studio door bell and the last man out switch. Publishes on the door being opened/closed, door bell being rang, and the state of the last man out switch changing.
  • LED Matrix - Large scrolling LED display in the comfy area. As well as displaying the topic of the latest google group email / twitter stuff and message set from IRC, it is also logging temperatures for the comfy area, studio and blue room
  • Mini-matrix - Similar to the LED Matrix, but smaller and in the blue room. Also logs the temperature of the Snackspace fridge, and displays the username of anyone coming in to the hackspace.
  • WorkshopMQTT - aka workshop doorbell. Also logs the temperature in the Workshop, and is likely to be connected to doorbell button on door at the back of the workshop at some point.
  • Network device count - Holly is also recording and graphing a count of the number of network devices currently connected to the hackspace network (with static devices excluded).
  • IRC bot - Outputs to IRC when the door is opened or the door bell rang. Essentially an MQTT to IRC bridge.
  • Cacti graphs. Currently hackspace temperature and stats for Holly.

Closely related

  • HMS - Hackspace Management System
  • JARVIS - VM on Collective that any member can log on to. Probably the easiest way of getting access to the above. Log in and run mosquitto_sub -v -t '#' to see events/readings as they are published. Use mosquitto_pub to send, e.g. to make the IRC bot, Nh-Holly speak: mosquitto_pub -t nh/irc/tx -m "Hello World!". See the topic list for others.

In progress / ideas for the future

  • Light sensors - probably to be added the LED matrix & WorkshopMQTT node.
  • Lighting Automation - Sorting out the mess that is lighting in the hackspace. Significant progress has already been made, but the scope has since been reduced to not include the workshop.
  • Make use the PIR sensors already installed
  • There was a plan originally to add RFID access to the blue room and members storage, but I this has pretty much been abandoned

Old ideas

Don't think these are being worked on

  • HAL 9000 [1] eye with webcam showing the spooky view!
  • GERTY from Moon [2] - a cheap colour LCD for the smiley face and what-have-you for the rest.
  • daily summary as RSS feed
  • more graphs

Old... miscellaneous

Crazy Cool Mobile Phone Hack

Every wanted to phone a server and tell it to do something? Or perhaps have the server phone or text you when something happens!

Inspired by some crazy phone hacks on Instructables, I'd like to involve some old mobile phones to act as inputs/outputs. I've started a page on my vebug.com webpage at [3] and I'll transcribe it here.

Michael Erskine 09:33, 15 February 2011 (GMT)

Matt's List

A quick copy of the big ToDo list that 'RepRap' Matt put together. With done stuff since removed by Daniel (talk) 19:08, 5 October 2013 (EST)

  • Hackspace instrumentation:-
  • Port mqtt to nanode
  • Status led's red green linked to mag relase
  • Add strobe light (for doorbell and ?beacons)
  • Clear board button? (big red one!!!)
  • Irc stats to cacti? London do it (nick there scripts from github)
  • Humidity sensor's?
  • Last man out switch
    • Can rest space occupancy if needed
    • Should turn off some plugs? Kettles, water heaters?
  • Occupancy counter
  • Nanode
  • Laser beams count in and out, embed in unsed door?
  • how to detect lasers. Photo diodes enough?
  • Two beams in entrance
  • Push to cacti
  • Query from irc
  • Own led counter? Similar to Power meter
  • Can use door magnetic contact and last man out switch to keep accuracy
  • Project box
  • Back door bell
  • RFID to blue office and members storage
  • Again monitor access
  • just one reader, opens both doors use magnetic contact to see which is opened
  • Push to cacti and log?
  • Don't really need to irc twitter
  • Sound meters??
  • Push to cacti
  • Pir's??
  • possibly add a magnetic lock to the fridge and have code's for fridge products unlock that once paid for
    • causes issue with milk access