TFT DHT11 Thermometer ATtiny85

by machloof in Circuits > Arduino

21 Views, 0 Favorites, 0 Comments

TFT DHT11 Thermometer ATtiny85

tft_dht11_85_i.jpg

TFT module is a 1.8" 128 X160 pixel and has the driver ST7735 is driven by SPI. DHT11 sensor sends 5 bytes of data for centigrade and humidity, degrees F is calculated.

Humidity is displayed at the bottom of the screen.

Temperature range is 0-50 centigrade with resolution of 0.1.

ATtiny45 can be used too.

The code is composed of parts of libraries because using Arduino libraries take memory more than the ATtiny85 has.

Screen can be turn to white by swapping the definition of BLACK and WHITE in the code.

ATtiny is programmed using Arduino IDE and Arduino as ISP. Use these instructions https://gist.github.com/ij96/804e731bd31dbb95b2b043e93c79ceab with the difference of burning bootloader with setting "Clock Source 16MHz (PLL)", "LTO enabled".

Supplies

ATtiny85 or ATtiny45

resistor 47ohm

resistor 47K

electrolitic cap 1uF

sensor DHT11

TFT 1.8" screen, ST7735 drive, 128x160, SPI

Circuit Diagram

tft_dht11_85_i.gif

1uF and 47K are for reset the screen on power up.

ATtiny, DHT11 and screen are powered by the same 5V supply.

47 ohm is for the background LED light of the screen.

Sketch

Downloads