Coder Social home page Coder Social logo

hayesall / informatics-temperature-study Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17.08 MB

๐Ÿ”ฅ How hot is the IU School of Informatics? A short study in temperature sensing using a SparkFun RedBoard.

Home Page: https://hayesall.com/blog/arduino-temperature-study/

License: MIT License

C++ 89.74% Python 10.26%
arduino temperature sparkfun sparkfun-projects sparkfun-redboard sparkfun-boards environment-monitoring environment-sensor indiana-university

informatics-temperature-study's Introduction

How Hot is the IU School of Informatics? A Temperature Sensing Study

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

What are some of the challenges of sensing temperature in both indoor and outdoor environments? We will attempt to peer into some of the challenges over the next five steps. Each step will involve recording the temperature while either performing an activity or going to a location around the Informatics Building.

This short study was proposed by Rob M. Long for a Methods Activity as part of Professor James Clawson's "Field Deployments" course.

Instructions

First Run:

Manually record the start and end time for each event.

  1. ProHealth Office:
  • Let the sensor collect data for five minutes while sitting at your desk.
  • Copy and paste your data.
  1. Outside:
  • Exit Informatics East through the north-east connector space door.
  • Walk around the building (moving left through the parking lot) and stop in the courtyard.
  • Sit at a bench for three minutes.
  • Walk inside, stop recording, and copy and paste your data.
  1. A Classroom:
  • Find an empty classroom. Record the room temperature for one minute.
  • Turn off the lights in the room for two minutes.
  • Turn the lights back on and continue recording for one more minute.
  • Stop recording, copy and paste your data.
  1. The Break Room:
  • Turn on the sensor and record for one minute.
  • Place the sensor inside the fridge (or freezer) for three minutes.
  • Remove the sensor, copy and paste your data.
  1. The Random Walk:
  • Start recording from the Informatics East Lobby.
  • Walk around the building for about five minutes, record where you go.

Second Run:

Repeat steps 2 & 3. This time: increase the delay time to ten seconds.

void loop() {
  // --snip--
  delay(10000);
  startTime += 10;
}

Methods

This activity requires a "SparkFun Digital Temperature Sensor Breakout TMP102" for measuring temperature, a "SparkFun RedBoard", a breadboard, and a five wires.

One limitation is that all results are printed to the Serial Monitor. This means that a laptop will need to be carried to provide power and collect results.

The following schematic shows how to wire the sensor to the board.

The wires do not need to be the exact same colors. The labels are included so they can match the colors used here:

Results

Data are contained in the data/ directory, split into data1.txt and data2.txt. The first contains steps 1-5, and the second contains steps 2-3 when they were repeated with higher delay time.

data1.txt uses a 2-second delay time. data2.txt uses a 10-second delay time.

src/plot_data.py can be used to plot temperature vs. an integer.

  • The integers displayed on the x-axis represent the number of seconds after 12:00:02 for the first set, and the number of seconds after 12:31:30 for the second set.
  • Since the temperatures and the dynamics were more of interest than the actual times, the timestamps are left in the raw form.
  • The y-axis represents the temperature in degrees Fahrenheit, and the label specifies which activity the temperatures correspond to.

informatics-temperature-study's People

Contributors

hayesall avatar imgbotapp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.