Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

interface sht11 sensor via pic16f876 to display temperature

Status
Not open for further replies.

wmipdivarathne

Newbie level 4
Joined
Feb 23, 2010
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Sri Lanka
Activity points
1,321
:?: im designing a wireless sensor network which measures temperature at a remote place. And im using sht11 sensor with pic 18f876 microcontroller. Can anybody help me to get the source code in microC and the circuit diagram.
 

Re: interface sht11 sensor via pic16f876 to display temperat

yeah this i viewed before i do have all the data sheets but i need to have a simple circuit setup of connecting pic 16f876 to this sht11 sensor and the program code in microC to program the pic.
anyway thanx for your post...:!:
 

Why use SHT11? If it's only for temperature measurement, it is a financial overkill.
Farnell price for SHT11 is 23.79 €

I think that it is better to use DS18B20
Farnell price for DS18B20 is 5.32 €

And DS18B20 is much easier to interface (by means of software libraries) than SHT11
 

explain the program for the transmitter

unsigned short
i, ch;
char s1[] = "Adhoc";
void main() {
INTCON.GIE = 0; // Disable interrupts
Man_Send_Config(&PORTB,5); // Initialize manchester sender
while (1)
{
Man_Send(0x0B); // Send start marker
Delay_ms(100); // Wait for a while
ch = s1[0];
i = 0;
while (ch != 0) // string ends with zero
{
Man_Send(ch); // Send char
Delay_ms(90);
i++;
ch = s1;
}
Man_Send(0x0E); // Send end marker
Delay_ms(1000);
}
}

this is the microc coding for a transmitter using pic16f877.
it's using the manchester coding.
i need explanation of what's happening exactly in this program. please give full explanation.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top