S
S
Sergey Sodin2016-08-22 09:40:41
Arduino
Sergey Sodin, 2016-08-22 09:40:41

Attiny85 and dht11. How to force to determine the temperature?

I try to measure the temperature using attiny85 and dht11, everything works on arduino uno, all you have to do is transfer the code to attiny85 and I get either 0 or 54 at any temperature. I also tried the dht library included in the arduino 1.0.6 kit and several third-party ones, from amps, for example. On the Internet, advice with the standard library to run attiny85 at 8 mhz, and not at 1mhz, but it didn’t work out either. Why does a seemingly common temperature sensor and the library not work properly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
evgeniy_lm, 2016-08-22
@evgeniy_lm

But is it that Attiny85 and Atmega 328 (arduino uno) are different MKs? A program compiled for one will not work on the other.
Boards compatible with Arduino IDE on Attiny85. You need to install the appropriate gadget in the IDE and select the necessary board when compiling. Of course, you need to know the correspondence between the pins of the board and the conclusions of the MK. It's even better not to bother, but write in AVR Studio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question