реклама на сайте
подробности

 
 
> Dewpointer
Andrejka
сообщение Jan 2 2009, 19:28
Сообщение #1


Участник
*

Группа: Участник
Сообщений: 18
Регистрация: 7-12-08
Пользователь №: 42 268



Hi, I found a schematic of simple temperature, huminidity and dewpoint measuring cicruit. Originally device uses: Sht11 sensor, AT90S8535 MCU, and HD44780 like 20x4 LCD. In my project I replace Sht11 with Sht15 (from Sparkfun), At90s8535 is replaced with newer Atmega8535 (Atmel datasheets say - this is a at90s8535 direct repalcement). But this device working incorrectly, so I have only "Sht11 Monitor" label on LCD, without sensor readings. If possible please help me with source code.

Source project:







URL:
Source project - http://www.embedtronics.com/sht11/sht11.html
Source code - http://www.embedtronics.com/sht11/shtdemo1.c
Schematic - http://www.embedtronics.com/sht11/SHT11Sch.pdf


My device show only this label:



I tried to simulate device in Proteus simulator but this program show the same screen, without sensor readings, only label.


Thank You!
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
radu
сообщение Jan 16 2009, 19:16
Сообщение #2





Группа: Новичок
Сообщений: 2
Регистрация: 13-01-09
Пользователь №: 43 326



hello again
i solve the problem regarding correct parameters
the solution was putting timer 2 to clock system
but remains one problem
how to display data and time
best regards

Сообщение отредактировал radu - Jan 16 2009, 19:18
Эскизы прикрепленных изображений
Прикрепленное изображение
Прикрепленное изображение
 
Go to the top of the page
 
+Quote Post
korobov_michael
сообщение Jan 17 2009, 06:57
Сообщение #3


Частый гость
**

Группа: Свой
Сообщений: 118
Регистрация: 11-03-07
Из: Украина, Харьков
Пользователь №: 26 059



Цитата(radu @ Jan 16 2009, 21:16) *
hello again...

First of all, don't use library functions in ISR - they take many cycles to complete. Try to replace the block

Код
sprintf(lcd_buffer,"%02d:%02d:%02d  %02d/%02d/%04d",t.hour, t.minute, t.second, t.date, t.month, t.year);
lcd_gotoxy(0,3);
lcd_puts(lcd_buffer);



by block, for exampe


Код
uint8_t i = 0;

lcd_buffer[i++] = 'H';

lcd_buffer[i++] = 'e';

lcd_buffer[i++] = 'l';

lcd_buffer[i++] = 'l';

lcd_buffer[i++] = 'o';

lcd_gotoxy(0,3);
lcd_puts(lcd_buffer);

and check if you will see the 4-th string.
The second. Sorry for  bb-offtopic.gif . Don't place your projects in the C disk smile.gif It's not a good practice
Go to the top of the page
 
+Quote Post

Сообщений в этой теме
- Andrejka   Dewpointer   Jan 2 2009, 19:28
- - korobov_michael   I found the following: 1. At initialization, you s...   Jan 3 2009, 06:45
- - ReAl   Цитата(Andrejka @ Jan 2 2009, 21:28) I tr...   Jan 3 2009, 07:30
- - Andrejka   Thanks for reply! Maybe I just simple attach a...   Jan 4 2009, 13:38
|- - _Pasha   Цитата(Andrejka @ Jan 4 2009, 17:38) Mayb...   Jan 4 2009, 14:11
|- - korobov_michael   Цитата(Andrejka @ Jan 4 2009, 15:38) Mayb...   Jan 5 2009, 06:44
- - Andrejka   My Atmega8535 fuses are: CKSEL3..0 - 1111, and I u...   Jan 5 2009, 14:38
|- - _Pasha   Цитата(Andrejka @ Jan 5 2009, 18:38) Sht1...   Jan 5 2009, 18:21
||- - korobov_michael   Цитата(_Pasha @ Jan 5 2009, 20:21) Please...   Jan 5 2009, 18:42
|- - korobov_michael   Цитата(Andrejka @ Jan 5 2009, 16:38) Samp...   Jan 5 2009, 20:07
|- - _Pasha   Цитата(korobov_michael @ Jan 6 2009, 00:0...   Jan 5 2009, 20:22
||- - korobov_michael   Цитата(_Pasha @ Jan 5 2009, 22:22) You si...   Jan 5 2009, 21:32
|- - Andrejka   Цитата(korobov_michael @ Jan 6 2009, 00:0...   Jan 6 2009, 05:52
||- - korobov_michael   Цитата(Andrejka @ Jan 6 2009, 07:52) Yes,...   Jan 6 2009, 07:39
|- - Andrejka   Цитата(korobov_michael @ Jan 6 2009, 00:0...   Jan 6 2009, 21:43
- - radu   hello i'm beginner and i have the same problem...   Jan 16 2009, 10:39
- - B0SC0   I, too, am working on this project and have a prob...   Jan 22 2009, 20:17
- - korobov_michael   Well, first of all give me please a couple of your...   Jan 23 2009, 13:06
- - B0SC0   Цитата(korobov_michael @ Jan 23 2009, 08...   Jan 23 2009, 14:05
- - Andrejka   Цитата(B0SC0 @ Jan 23 2009, 17:05) The co...   Jan 24 2009, 19:40
- - B0SC0   Цитата(Andrejka @ Jan 24 2009, 14:40) Jus...   Jan 25 2009, 04:25
- - Andrejka   Цитата(B0SC0 @ Jan 25 2009, 08:25) Yes, I...   Jan 25 2009, 17:50


Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 23rd July 2025 - 13:49
Рейтинг@Mail.ru


Страница сгенерированна за 0.01467 секунд с 7
ELECTRONIX ©2004-2016