Actions

Occupancy Sensor

From HacDC Wiki

Revision as of 22:31, 12 April 2015 by Mirage335 (talk | contribs)

Status

WRT54GL based occupancy sensor currently providing valid data. NetPLC has been tested, ready for installation.

Maintenance

NetPLC

Repositories

https://github.com/mirage335/NetPLC https://github.com/HacDC/NetPLC-HacDC-Firmware

Workstation

The WYSE terminal labeled "NetPLC-Workstation" has been provided a bootable Knoppix USB stick with a simple serial-terminal interactive shell script. With the workstation turned on, and NetPLC hardware connected by USB, type "NetPLC_Term.sh" to begin.

CLI

Configuration is by command-line interface (CLI). Type "commands" for the built-in reference, or check the source. Parameters are tab separated by tabs only.

Reference

Some of the fimware-included commands are as follows.

commands
shownet
readout
recentTag
formatMembers
countMembers
showMembers
addMember <shortName> <tagID> <1/0>
delMember <recno>
enableMember <recno>
disableMember <recno>
closeSpace
openSpace

Note the database is limited to short names and about 50 members, at ~500B EEPROM storage.

Planned Upgrades

  • ) SD card support is easy to provide to AVR/Arduino platforms, offering virtually unlimited storage capacity.
  • ) RN171 (WiFi) should be moved to software serial port, completely freeing the hardware UART for external peripherials.
  • ) An ATmega2560, rather than ATMega32U4, would offer enough flash space to include telnet-style networked CLI functionality alongside existing requirements.

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