I have been trying to build a Thermometer with an ATtiny85 a LM1637 (4 Digit Display) and a DHT11. I used an arduino nano in a protoboard as a reference. I am aware that there are dedicated DHT libraries for the Attiny.
I am facing the same issue as some guys had in the past, i tried the past recommendations but i have not being successful. My display still shows 0 and 255 while reading the Temperature and Humidity from the DHT11. There were several recommendations for newer or special libraries (one from Adafruit tinyDHT and the latest from Rob Tillart but my issue persists.
What I tried:
- using other ATtiny pins,
- changing DHT11 sensors,
- using Pullup (10k, 27k, 100k...) between VCC and Data
- different voltage supplies (through Nano, through USB, through Voltage source...)
- different ATtiny85 and protoboards
- using ATTiny84 (just tried with the first 3 digital pins, PB0, PB1, PB2)
- i tried changing types to store the temperature/Humidity in the different libraries (using floats as in the examples, or int/int16_t, int8_t) -
- I changed a #define Timeout (varied to 1000, 10000 and several other values,
for the latest Library from Rob Tillart i get following the following DHTLIB_ERROR_TIMEOUT ( i debugged through my sketch).
So, if not simple issue by finding the right library, is it because i need to burn the bootloader in the ATtiny? I have checked in the osicilloscope and the DigitalPort connected to the data pin of the DHT is not sending /receiving anything, if i compare it with what i see in my setup with the nano.
i found this DIY Funk-Wetterstation mit DHT22, ATtiny85 und RadioHead | cryCode.de (in german), but related to my issue, so my question is
-where and how should I set the LOW Fuse Presets? how to set the Byte lfuse
auf 0xE2
??
At the beginning (a while ago) i uploaded the ArduinoISP sketch into my nano. Now i just select the ATtiny board and MHz and use the nano as a programmer (Arduino as ISP). I do not burn the bootloader in my ATTinys when i upload sketches into them.
sorry guys if my description is quite chaotic, i will refine my observations with the oscilloscope (now i bought a digital one) and would like to try that with the bootloader,
thanks in Advance!