Wiring Forum
http://wiring.org.co/cgi-bin/yabb/YaBB.pl
Programming Questions & Help >> Library writers >> Sensirion SHT 11x /75xx library
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1213610986

Message started by perroloco on 06/16/08 at 10:09:46

Title: Sensirion SHT 11x /75xx library
Post by perroloco on 06/16/08 at 10:09:46
Hi there,

I've just created a C++ library for the temperature/humidity sensor from Sensirion.

It works fine on Arduino, and i want to contribute it to the Wiring world :).

Can somebody tell me the way to go?, should i post it here? should i send it to somebody? (Barragan?).

Is there any style-guide for the code or something?

It works this way:


Code:
#define CLK_PIN 10
#define DTA_PIN 11
void setup()
{
   shtSensor mySensor(CLK_PIN,DTA_PIN);
}

void loop()
{
  int temp;
  int hum;

  temp=mySensor.GetTemperature();
  hum=mySensor.GetHumidity();
}

Title: Re: Sensirion SHT 11x /75xx library
Post by barragan on 06/16/08 at 19:37:04
thatīs super cool, we made some examples for it but the library will definitely make it easier, please point me to the source code to include it in the libraries, and your name and link to add you as the contributor.

Title: Re: Sensirion SHT 11x /75xx library
Post by perroloco on 06/17/08 at 07:54:12
The source is not on-line at the moment, i can e-mail you a copy if you want :)

Title: Re: Sensirion SHT 11x /75xx library
Post by barragan on 06/17/08 at 07:57:43
ok, make sure it works etc on Wiring 0016, Iīll integrate it for the distribution. Donīt forget to send me your info for the credits etc.
Thanks for doing this.
Best,
Hernando.

Title: Re: Sensirion SHT 11x /75xx library
Post by perroloco on 06/17/08 at 10:33:35
I've sucessfully tested it on arduino, i'll start testing on wiring tomorrow (i'm out of home for work).

As far as i'm concerned, arduino enviroment issues a "make" on every driver on the drivers folder each time you open the enviroment.

Does wiring work on the same way? or i've to manually do the "make" , any tips here?

There's a cool tutorial on "making drivers" for the arduino , but i'm unable to find one for Wiring.

Anyway, i'm using 100% standard calls (delay, digitalwrite(),pinmode()), so i think it must work without problems.

Title: Re: Sensirion SHT 11x /75xx library
Post by perroloco on 06/23/08 at 12:57:59
Sensirion driver TESTED and WORKING on the wiring enviroment.

I've an example sketch and the source code ready... where can i upload it?

Title: Re: Sensirion SHT 11x /75xx library
Post by barragan on 06/23/08 at 19:08:23
send it on an e-mail hbarragan at uniandes.edu.co :)

Title: Re: Sensirion SHT 11x /75xx library
Post by perroloco on 06/25/08 at 12:53:02
Code and example sent, just let me know what u think :)

Title: Re: Sensirion SHT 11x /75xx library
Post by barragan on 06/25/08 at 13:51:10
got ot, will go over it during the weekend :)

Title: Re: Sensirion SHT 11x /75xx library
Post by perroloco on 07/21/08 at 12:41:23
Any news on this topic?

I didn't received any feedback from you Barragan.

Title: Re: Sensirion SHT 11x /75xx library
Post by kikey on 03/13/09 at 23:38:58

Whats happened with this library ???

I am very interested this Library.
Where can I get it?


Best Regards

Title: Re: Sensirion SHT 11x /75xx library
Post by barragan on 03/16/09 at 01:16:28
well the library needed some work in the methods naming etc, in the meantime please check the examples for sensirion SHT1x sensors:

http://wiring.org.co/learning/examples/SHT15sparkfun.html
http://wiring.org.co/learning/examples/SHT11parallax.html

actually it is quite easy to encapsulate this code in a library, Iīll add it to the list.

Title: Re: Sensirion SHT 11x /75xx library
Post by thorsten on 12/10/09 at 15:27:16
Hi,

what happend to the library.
I'm interessted in it!
Regards
Thorsten

Title: Re: Sensirion SHT 11x /75xx library
Post by barragan on 12/10/09 at 15:54:55
hi Thorsten, the person who was working on the library is been pretty busy, but here it is how to use the SHTx sensors (the links above are broken since we changed the examples architecture) http://wiring.org.co/learning/basics/humiditytemperaturesht15.html
http://wiring.org.co/learning/basics/humiditytemperaturesht11.html

Let me know if you need anything not present in the examples, It shouldn't be a problem to take the code from the example and wrap it in a library, I'll try to do it myself in the following days. These examples are included with Wiring in the File -> Examples -> Basics -> Digital Advanced section.

Title: Re: Sensirion SHT 11x /75xx library
Post by barragan on 12/10/09 at 15:56:18
I forgot to mention the Wiring version I am talking about is the latest 0023.

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.