SenseDHT

An app for the Kookaberry

Developed by
Tony Strasser

AustSTEM

This measures, logs, and transmits temperature (T) and relative humidity (RH) data using either the popular DHT11 sensor or the slightly more expensive (but with better specifications) DHT22.

Directions

Step 1: Setup

Set up app by plugging either a DHT11 or DHT22 sensor into P2. The DHT11 is the blue sensor on the left below.

   

Step 2: Running the app

Navigate to the the SenseDHT app and press Button B to run

What is showing on the Home screen?

  1. Row 1:  Name of peripheral being used; Kookaberry ID; Sensor being used (DHT11 or DHT22)
  2. Row 2: Temperature in degrees Celsius
  3. Row 3: Relative Humidity in %
  4. Row 4: Date and Time. [This can be set to real time using the Kookatime apps]
  5. Row 5: Button A for Exit. Time in seconds until start of next data logging sample. [This is set in the Kappconfig file with a default of every 2 seconds.]
Step 3: Using the app (Real time data logging)

  1. Set the real time [See Tutorial: Setting Real Time for Data Logging]. [This is not necessary if spot measurement, or simple elapsed time data logging is all that is required.]
  2. Run the app for as long as required. The data will be logged at the sampling interval set in the _Config file. The default is 2 secs but can be changed by simply overwriting the default value. For instance, making the interval 600 means that sampling will occur every 10 minutes.
  3. The logged data will be stored as a CSV file in its USB memory. The data can be retrieved when the Kookaberry is connected to a computer and displayed for analysis on the class monitor or whiteboard. The CSV file looks like this
  4. The logged data can also be displayed in a browser on a computer using the GraphCSV app.
  5. The measured data is transmitted (but without the date stamp) once per sensor sample over the packet radio. This can be seen in real time in the REPL window of the KookaIDE editor if connected to a computer when running the app.

Peripherals used by this app

Version:1


Last updated:1 week ago


Device:Kookaberry


Radio code:


App ID:...


lib_dependencies:Kapputils.py, kcpu.py, logger.py, doomsday.py


root_dependencies:Kappconfig.txt


Downloads

SenseDHT
SenseDHT.py


kcpu
kcpu-1.py


logger
logger.py


doomsday
doomsday-1.py


Download on GitHub
Image

Support

Issues resolved in the support forum:

8 out of 11
View support forum

Leave a Reply