Actions

Occupancy Sensor: Difference between revisions

From HacDC Wiki

(→‎Technical Overview: Update to current data about system and how to keep operational)
No edit summary
Line 2: Line 2:
[[Category:Occupancy_Sensor]]
[[Category:Occupancy_Sensor]]


== HacDC Lab Occupancy Sensor ==
=History=
HacDC's occupancy sensor has been an evolving project, with several generations of hardware and software contributed by many members. In addition to the hardware designs listed below, members like "haxwithaxe" and "eryc" have contributed supporting infrastructure like [[WOPR]].


HacDC's lab occupancy sensor is now operational.
==NetPLC==
Open-source hardware designed by mirage335. Both RFID and Occupancy Sensing functions are supported. Compatible with Arduino Leonardo bootloader, based on an ATMega32U4 microcontroller, with on-board provisions for wired and wireless connectivity.


Key features include:
==WRT54GL==
# Real-time and historical occupancy data is available for your projects. Perhaps a twitter bot, data visualization heat map or remote occupancy indicator?
Second occupancy sensor, configured by mirage335, using a WRT54GL with barebones AVR chip hardwired to internal serial TX/RX pads. Data was relayed directly to internet resources (eg. front page icon) by the router over wired and/or wireless connectivity as available.
# The underlying architecture demonstrates an approach allowing bidirectional communications between many microcontrollers and many application
# The Google Calendar "hacdcdoorman@gmail.com" is updated every five minutes with current occupancy data


== Technical Overview ==
==Arduino==
First occupancy sensor was configured by Martin, consisting of an Arduino, a Radioshack photoresistor (276-1657) and a Quest passive infrared motion detector. Data was retrieved by a desktop computer via USB, then published to internet resources (eg. Google Calendar).


The current system is a WRT54G with the described hardware below attached to GPIO on the CPU of the router instead of on a PC. Normal functionality was supposed to be done over wireless, however due to AP changes this has not been updated on the device side for altered SSIDs. Currently, to ensure functionality, the WAN port of the router must be plugged in via wired network for operation. Currently, this is a Cisco FastHub 108T due to the failure of the existing switch (In process of being re-capped/repaired, there were 4 bulged capacitors). This is also where the payhone ATA is currently connected to the network as well.
==Credits==
 
Martin Rothfield
----- The information below is out of date ----
haxwithaxe
 
eryc
Martin configured a sensor system consisting of an Arduino, a Radioshack photoresistor (276-1657) and a Quest passive infrared motion detector as shown in the following schematic diagram.
Many More
 
[[Image:OccupancySensor.png]]
 
This Arduino is connected to the jukebox computer via USB and monitored by a simple Python script that forwards occupancy sensor data to a Spread messaging system (see spread.org).  Several "agent" applications receive occupancy status messages via Spread and perform tasks such as updating a Google Calendar and data logging.
 
All software developed as part of this project is GPLed and available via LaunchPad at: https://launchpad.net/hacdcoccupancy
 
A demonstration agent is also included in the distribution, providing a convenient starting point for your projects.  This demo agent currently toggles LEDs in my house based on HacDC lab occupancy status.
 
== [https://www.google.com/calendar/embed?src=hacdcdoorman%40gmail.com&ctz=America/New_York HacDC Doorman Google Calendar] ==
<include iframe src="//www.google.com/calendar/embed?mode=WEEK&amp;height=600&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=hacdcdoorman%40gmail.com&amp;color=%23A32929&amp;ctz=America%2FNew_York" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"></iframe>

Revision as of 22:08, 12 April 2015

History

HacDC's occupancy sensor has been an evolving project, with several generations of hardware and software contributed by many members. In addition to the hardware designs listed below, members like "haxwithaxe" and "eryc" have contributed supporting infrastructure like WOPR.

NetPLC

Open-source hardware designed by mirage335. Both RFID and Occupancy Sensing functions are supported. Compatible with Arduino Leonardo bootloader, based on an ATMega32U4 microcontroller, with on-board provisions for wired and wireless connectivity.

WRT54GL

Second occupancy sensor, configured by mirage335, using a WRT54GL with barebones AVR chip hardwired to internal serial TX/RX pads. Data was relayed directly to internet resources (eg. front page icon) by the router over wired and/or wireless connectivity as available.

Arduino

First occupancy sensor was configured by Martin, consisting of an Arduino, a Radioshack photoresistor (276-1657) and a Quest passive infrared motion detector. Data was retrieved by a desktop computer via USB, then published to internet resources (eg. Google Calendar).

Credits

Martin Rothfield haxwithaxe eryc Many More