Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumProgramming Questions & HelpLibrary writers › Sensirion SHT 11x /75xx library

Page Index Toggle Pages: 1
Sensirion SHT 11x /75xx library (Read 26528 times)
06/16/08 at 10:09:46

perroloco   Offline
YaBB Newbies
I Love YaBB 2!
Spain

Posts: 12
*
 
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 Smiley.

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();
}
 

 
IP Logged
 
Reply #1 - 06/16/08 at 19:37:04

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
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.
 
IP Logged
 
Reply #2 - 06/17/08 at 07:54:12

perroloco   Offline
YaBB Newbies
I Love YaBB 2!
Spain

Posts: 12
*
 
The source is not on-line at the moment, i can e-mail you a copy if you want Smiley
 
IP Logged
 
Reply #3 - 06/17/08 at 07:57:43

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
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.
 
IP Logged
 
Reply #4 - 06/17/08 at 10:33:35

perroloco   Offline
YaBB Newbies
I Love YaBB 2!
Spain

Posts: 12
*
 
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.
 
IP Logged
 
Reply #5 - 06/23/08 at 12:57:59

perroloco   Offline
YaBB Newbies
I Love YaBB 2!
Spain

Posts: 12
*
 
Sensirion driver TESTED and WORKING on the wiring enviroment.

I've an example sketch and the source code ready... where can i upload it?
 
IP Logged
 
Reply #6 - 06/23/08 at 19:08:23

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
send it on an e-mail hbarragan at uniandes.edu.co Smiley
 
IP Logged
 
Reply #7 - 06/25/08 at 12:53:02

perroloco   Offline
YaBB Newbies
I Love YaBB 2!
Spain

Posts: 12
*
 
Code and example sent, just let me know what u think Smiley
 
IP Logged
 
Reply #8 - 06/25/08 at 13:51:10

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
got ot, will go over it during the weekend Smiley
 
IP Logged
 
Reply #9 - 07/21/08 at 12:41:23

perroloco   Offline
YaBB Newbies
I Love YaBB 2!
Spain

Posts: 12
*
 
Any news on this topic?

I didn't received any feedback from you Barragan.
 
IP Logged
 
Reply #10 - 03/13/09 at 23:38:58

kikey   Offline
YaBB Newbies

Posts: 1
*
 

Whats happened with this library ???

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


Best Regards
 
IP Logged
 
Reply #11 - 03/16/09 at 01:16:28

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
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.
 
IP Logged
 
Reply #12 - 12/10/09 at 15:27:16

thorsten   Offline
YaBB Newbies

Posts: 1
*
 
Hi,

what happend to the library.
I'm interessted in it!
Regards
Thorsten
 
IP Logged
 
Reply #13 - 12/10/09 at 15:54:55

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
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.
 
IP Logged
 
Reply #14 - 12/10/09 at 15:56:18

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
I forgot to mention the Wiring version I am talking about is the latest 0023.
 
IP Logged
 
Page Index Toggle Pages: 1