Actions

Occupancy Sensor: Difference between revisions

From HacDC Wiki

(Undo revision 3987 by Yrewevaca (talk))
(Put in link to HTML version of calendar... note that July 27 2010 is the last entry in the calendar)
Line 24: Line 24:
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.
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.


== HacDC Doorman Google Calendar ==
== [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>
<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 04:19, 15 August 2011

HacDC Lab Occupancy Sensor

HacDC's lab occupancy sensor is now operational.

Key features include:

  1. Real-time and historical occupancy data is available for your projects. Perhaps a twitter bot, data visualization heat map or remote occupancy indicator?
  2. The underlying architecture demonstrates an approach allowing bidirectional communications between many microcontrollers and many application
  3. The Google Calendar "[email protected]" is updated every five minutes with current occupancy data

Technical Overview

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.

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.

HacDC Doorman Google Calendar

<include iframe src="//www.google.com/calendar/embed?mode=WEEK&height=600&wkst=1&bgcolor=%23FFFFFF&src=hacdcdoorman%40gmail.com&color=%23A32929&ctz=America%2FNew_York" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"></iframe>