Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 25, 2024, 12:17:02 12:17


Login with username, password and session length


Pages: [1]
Print
Author Topic: SHT-11 with AVR by code vision demo  (Read 4691 times)
0 Members and 1 Guest are viewing this topic.
witsanukai
Junior Member
**
Offline Offline

Posts: 38

Thank You
-Given: 13
-Receive: 9


« on: February 20, 2013, 06:31:05 06:31 »

I just wat to share my project that is SHT 11 temp and humidity monitoring by CVAVR.
for some body interested. Smiley
Logged
Mozo1971
Newbie
*
Offline Offline

Posts: 22

Thank You
-Given: 43
-Receive: 13


« Reply #1 on: February 24, 2013, 01:10:27 13:10 »

Nice project! I received three SHT11 last week and want to start with it in the next days. So i studied your code and have some constructive critic.

- GOTOīs are not the fine way in "C". I thing a while loop with a small delay would be better.
- Why do you include the TWI lib? The SHT11 isnīt a I2C device!

Overall, nice project. I didnīt know, that proteus has a SHT11 device. I checked it out and find it.

Logged
witsanukai
Junior Member
**
Offline Offline

Posts: 38

Thank You
-Given: 13
-Receive: 9


« Reply #2 on: March 01, 2013, 06:36:47 06:36 »

Quote
GOTOīs are not the fine way in "C". I thing a while loop with a small delay would be better.
==> Yes you are right that is my problem due to my experince start from basic Language then i familiar with that, next time i will improve to standdard C coding Smiley


Code:
Why do you include the TWI lib? The SHT11 isnīt a I2C device!
Yes, we didn't use, from the origin i tried to find the sensor then i try to include the other libraries for furture support until got SHT11 then select and no more use and forget to cleaning my code.
Thanks advance for your inform Smiley
Logged
thunderer
Junior Member
**
Offline Offline

Posts: 61

Thank You
-Given: 19
-Receive: 69


I try to be patient


« Reply #3 on: March 02, 2013, 05:22:58 05:22 »

The communication is serial. I will try to use the cheaper DHT11 (one-wire protocol) for a similar project, maybe posted here in a couple of weeks.
Logged

Interested and hopefully helpful in: DC brushed motor control (mainly R/C - PPM/PWM), analog audio, PIC (mikrobasic PRO). Feel free to ask, and if I can, I will help. But only on forum topics, any started private conversation will continue in a public topic.
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright Đ 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC