This project illustrate how to make sht11 sensor routines work with atmel atmega8.

This page is not complete and detailed description are missing so use at your own risk. You must understand what you are doing or you will damage your equipment.

There are many comments in the source code and it should be easily readable so look at the code, please!

What you need.

Schematics

insert schematic image here

Picture

insert assembled picture here

Download

First download the latest version of the software, then compile it and install the .hex file into your MCU.

git clone http://tecnobrain.com/git/sht11.git

edit Makefile and change eventually the MCU type or the serial port used to connect to stk500.

Compile with

make

and program the MCU with

make program

or if you have different MCU, programmer or settings, program the MCU with the test_sht11.hex file in your enviroment.

Connect the SHT11-data pin to PC1 and SHT11-sck pin to PC0, look inside the code (file sht11_avr_io.h) to find out or change these values. On the stk500 connect portB pin 0 and 1 to switch 0 and 1, pin 2 and 3 to leds 2 and 3. Connect the stk500 to PC using rs-232 spare, use your prefered terminal client, use 9600 bps 8N1 no hardware or software control.

When evarything is ok turn on the board and hit switch 0, read the sht11 values on the terminal.


CategoryAvr CategoryProjects

TecnoBrain: Sht11AtMega8 (last edited 2010-04-09 15:02:19 by EnricoRossi)

© Tecno Brain di Rossi Enrico, via G. Marcovigi 2 - 40133 Bologna (Italy) - P.IVA: 04275850370
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 Italy License.