3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Tweeting Attendant

Tweeting Attendant
«
  • IMG_2792.jpg
  • IMG_2783.jpg
  • Installed.jpg
We work in a smallish office of (typically) 15 people. When we first moved into the current location, two shared restrooms seemed to be plenty; however, as the number of people has increased and we have more frequent visits from co-workers that typically work remotely, there are many times when a restroom just isn't available. You may expect a line at the restroom when you're at the movies or a sporting event, but at work?

We had originally planned to create a notification system that would work with our corporate instant messaging system to show the 2 restrooms as contacts that were either Available or Busy. When we heard about the Adafruit Make It Tweet Challenge, we switched gears and the Tweeting Attendant was born!

It is a basic system with a magnetic switch connected to a battery powered XBee module on one end and a Netduino Plus and XBee shield on the other.

The battery powered XBee module is an endpoint that is set up for one second polling of digital pin 3 which is connected to the magnetic switch and configured for cyclic sleep to conserve battery power.

The Netduino Plus and XBee shield monitors the incoming data from the endpoint and sends a tweet when the pin state changes (i.e. the door is opened or closed). In order to prevent unwanted tweets due to the switch bouncing, there is a minimum delay of 15 seconds between change notifications.

Parts List
Netduino Plus
XBee x 2 (we're using Series 2 modules) and some method for programming them
SparkFun XBee Explorer Regulated
SparkFun XBee Shield
Arduino Stackable Header Kit
Adafruit Magnetic Contact Switch
Battery holder (ours is from our local electronic parts shop)
Project box of your choice (also from our local electronic parts shop)
Headphone jack and plug (or some other type of connector to connect the switch to the box)
Magnets, Velcro, or some other method of attaching the finished project box within reach of the door sensor

You will also need the Attendant software for the Netduino Plus which can be found at http://TweetingAttendant.codeplex.com.

You can see the current activity at http://twitter.com/#!/RoomAttendant. Later we'll be adding another endpoint for the other restroom.



6 comments
Mar 14, 2012. 2:09 PMnomuse says:
I take it you are using the 3.3V regulator on the Explorer to run off 3x AA. What is the battery life like on the sleep cycle you are using?
Feb 13, 2012. 6:56 PMremainseated says:
very neat! how long did the batteries end up lasting?
Jun 27, 2011. 3:34 AMBuckarooBanzai says:
You could mod this further by adding an RFID reader into the mix, and make your colleagues endure "the walk of shame" by tweeting how long each individual has been spending in the restroom, or swiftly identify the guilty party when someone commits a crime against the clean air act!

:-O

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
1
Followers
1
Author:naturallyresistant