Classrooms

The classroom availability portion of the Marauders Map indicates whether or not people are currently using the classrooms on the second floor of Anderson hall. This was done by using a myRIO to sense whether or not the lights are on and/or if there are people talking in the room. Each classroom being sensed had a myRIO placed in the front of the classroom with a photoresistor and a sound sensor.

Classroom detection unit (myRIO with light and sound sensor attached)

If the myRIO senses light or sound, it sets a boolean value to be true. In the video below you can see the boolean on the LabVIEW code change from false to true when the lights are turned from off to on. You can also see the LED on the sound sensor light up when the Piano is played (when there is sound present in the environment).

This boolean value is then sent to a code that compiles all the boolean values for each classroom being sensed, and formats that information into a JSON string. Next, that JSON is sent to the classroom property of the Marauders Map Thingworx thing so that the Map group can display the classroom availability on the map. Classroom names displayed in red are currently being used and classrooms in green are available.

Classroom availability data shown on Marauders Map

Originally, we planned to Particle Photons (small internet enabled microprocessors) as our classroom sensors. This would have enabled us to sense more classrooms and made for a much more discrete sensor. We successfully wrote the code to access the Photon API and read the data into LabVIEW, but were unable to get the Photons to stay connected to the Tufts wifi network and therefore had to use the myRIO instead. Click here to download the myRIO classroom use detection code.