Using SHT11 temp.& humid. sensor with CY8C3866PVI-021

A catchall for PSoC3 discussions not captured by the other forums.

Moderator: ericb

Using SHT11 temp.& humid. sensor with CY8C3866PVI-021

Postby greencrocodile on Tue Feb 28, 2012 4:39 pm

Hi. I have graduation project with PSoC 3. In this project i'm processing meteorological datas (pressure, temperature and humidity). I'm using CY8C3866PVI-021, 4x20 LCD, MPX5100-AP for pressure, SHT-11 for temperature & humidity in this project. I'm printing pressure data on LCD but i have problem with SHT-11. In Sensirion company's website, there are Keil c codes. I couldn't adopt them into PSoC Creator. Which communication type should i use. My thesis advisor wanted me to use this sensor in this project. Could you give me some advice.
greencrocodile
Newbie
Newbie
 
Posts: 3
Joined: Fri May 13, 2011 12:46 am

Re: Using SHT11 temp.& humid. sensor with CY8C3866PVI-021

Postby danadak on Tue Feb 28, 2012 8:11 pm

This is SBus, new to me, but looking at timing, down to DC, it would be pretty simple to
bit bang 2 pins to effect the interface.

Insofar as adapting the keil code on the website, what do you think the problem is
to do so ? A cursory look at it, looks adaptable to me.

Regards, Dana.
Field Application Engineer
KB1RHB Mostly listen :)
Semi Retired
User avatar
danadak
The Big Cheese
The Big Cheese
 
Posts: 1831
Joined: Thu Dec 27, 2007 8:42 am
Location: New Hampshire

Re: Using SHT11 temp.& humid. sensor with CY8C3866PVI-021

Postby greencrocodile on Tue Feb 28, 2012 11:09 pm

I will print Temp & humid values to LCD. First of all how can i use these codes in PSoC Creator. According to my searches, SHT-11 has I2C interface. In PSoC Creator, should i use I2C communication or 2 digital pins. İn 2 digital pins option one of these pins is bidirecitonal pin for data pin, another one is digital output pin.
greencrocodile
Newbie
Newbie
 
Posts: 3
Joined: Fri May 13, 2011 12:46 am

Re: Using SHT11 temp.& humid. sensor with CY8C3866PVI-021

Postby danadak on Wed Feb 29, 2012 4:43 am

If SHT-11 is I2C then use I2C.

If you choose to bit bang then an I/O pin can be setup as bidirectional and
turned around rapidly with register writes and API control.

An important doc is the TRM (Technical Reference Manaul). You will find
yourself using it a lot, as well as datasheets for specific modules.

To print to LCD first you convert to string the variable you wish to
print, format it as well. sprintf() is an extended library function that is
very useful, depends on which compiler you are using. Then you use LCD
API to write a character string to the LCD. API call descriptions in LCD
datasheet.

Regards, Dana.
Last edited by danadak on Sat Mar 03, 2012 6:44 pm, edited 1 time in total.
Field Application Engineer
KB1RHB Mostly listen :)
Semi Retired
User avatar
danadak
The Big Cheese
The Big Cheese
 
Posts: 1831
Joined: Thu Dec 27, 2007 8:42 am
Location: New Hampshire

Re: Using SHT11 temp.& humid. sensor with CY8C3866PVI-021

Postby greencrocodile on Thu Mar 01, 2012 12:08 am

Thanks for your help. I will research TRM
greencrocodile
Newbie
Newbie
 
Posts: 3
Joined: Fri May 13, 2011 12:46 am


Return to PSoC3 General

Who is online

Users browsing this forum: No registered users and 3 guests