SHT75 and PIC16F877 with Proteus

Status
Not open for further replies.

alireza121

Newbie level 4
Joined
Nov 27, 2010
Messages
6
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,321
Hello,

Is anybody to help me?

I want to read humidity and temperature by SHT75 via 16F877 and display them on LCD.

I have attached Code and Proteus file of the circuit,it works,but temperature is fixed(doesn't change) and humidity changes,when i turn on and off the power supply,the temperature changes and after that will fix till I on and off the supply again.

please read code and tell me what is wrong to modify it.

Thanks,
Kayvan
 

Attachments

  • SHTxx and PIC16F877.zip
    69.7 KB · Views: 143

Hopefully you are talking about the following link
CCS :: View topic - Driver For SHT75 Temperature & Humidity Sensor

The output is based on I2C then
why you are using portb pins
#define sht_data_pin PIN_b1//(Data pin veya input)
#define sht_clk_pin PIN_b0
use as defined in the program and change your circuit connections according to the pins.
#define sht_data_pin PIN_C4
#define sht_clk_pin PIN_C3

also use 10k resistance between Vdd and Data pin

Best regards.
 
Last edited:

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…