loading
Picture of Tempduino - Arduino Based Temp and Humidity Display
The temperature in my office at work varies quite a bit depending on the time of day, season, and the whims of the other people I share the floor with. When I’m sitting at my desk shaking uncontrollably or sweating profusely it would be nice to know if it’s due to the temperature or just work related stress. A simple $5.00 thermometer would suffice, but where’s the fun in that? Making my own thermometer might cost ten times as much, but I might learn something in the process and it would be way cooler than any cheap store bought thing? I’d rather make something myself even if I have to pay a “maker’s premium.”
 
ssarunrat1 year ago

help me pleaseeeeee

Capture.PNG
did you ever figure your problem out with declaring dht?
Would it be possible to add the schematic view from Fritzing as well? It may make it clearer which components are connected.
Ktulu_1 (author)  tonymcdaniel2 years ago
The Perma-Proto part does not act like a breadboard in Fritzing. Connections made on the Perma-Proto in the breadboard view do not translate to the schematic screen. The schematic view only has the components on it.
mikeasaurus2 years ago
Would you mind pasting the sketch here, instead of the picture?
Ktulu_1 (author)  mikeasaurus2 years ago
Sure.

=====================================

//tempduino (temperature and humidity display)
//by jeff clymer (jeff@techunboxed.com)
//2013.01.14 http://techunboxed.com
//version 3.1

#include "DHT.h"
#include
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"

#define DHTPIN 2 //DHT22 is connected to digital pin 2
#define DHTTYPE DHT22 //set the type of sensor

DHT dht(DHTPIN, DHTTYPE);
Adafruit_7segment matrix = Adafruit_7segment();

void setup() {
  dht.begin();
  matrix.begin(0x70);
  matrix.setBrightness(1);
}

void loop() {
  float h = dht.readHumidity(); //h = DHT humidity
  float t = dht.readTemperature(); //t = DHT temp

    matrix.print(t*1.8+32); //display temp in fahrenheit
    matrix.writeDisplay(); delay(30000); //wait 30 seconds
    matrix.print(h); //display humidity percentage
    matrix.writeDisplay();
    delay(10000); //wait 10 seconds
}
Thanks! (but I meant in the body of the instructable so everyone can read it on that step) :)