DHT11 on Attiny not working. strange waveform


hi
i'm trying simple test dht11(i know horrible sensor :smiley-fat:) , struglling make work on attiny(85 or 84).
the same simple code works fine on arduino uno , i'm using arduino isp. i've uploaded simple blink demo attiny85  , works fine.
the code this:
code: [select]
#include <dht11.h>

dht11 dht11;
//int led = 13; //arduino
int led = 3; //attiny85
#define dht11pin 2

void setup()
{
  pinmode(led, output);
}

void loop()
{
  int chk = dht11.read(dht11pin);
  switch (chk)
  {
    case dhtlib_ok:
      digitalwrite(led, high);
      break;
    case dhtlib_error_checksum:
      break;
    case dhtlib_error_timeout:
      break;
    default:
      break;
  }
  delay(2000);
  digitalwrite(led, low);
  delay(2000);
}


the dht11 used same. move datapin between 2 chips. powered the arduino. have 5.k6 pullup on dht11 datapin.
when connecting pocket scope on datapin on arduino: (sorry bad pictures, don't have working sd card nano) see attached arduino.jpg
but on attiny start on data not looking correctly. see attiny.jpg

what doing wrong?
thanks
kim

pin 2 used serial comm..(has components connected it)
try change other pin..


Arduino Forum > Using Arduino > Sensors > DHT11 on Attiny not working. strange waveform


arduino

Comments

Popular posts from this blog

Authentication error while password reset - Raspberry Pi Forums

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums