Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ Forum
➜ Problems
➜ SHT 75 SENSOR
This subject is now closed.
Refresh page
Posted by
| Denis1990
(1 post) Bio
|
Date
| Sat 26 Sep 2015 08:33 AM (UTC) |
Message
| Hi I have some problems with the connection between arduino and the sensor SHT 75. I've used this code:
#include <Sensirion.h>
const uint8_t dataPin = 2; //Declaracion patillas arduino
const uint8_t clockPin = 3;
float temperature; //Declaracion variables
float humidity;
float dewpoint;
Sensirion tempSensor = Sensirion(dataPin, clockPin); //Declaracion objeto sensor
void setup()
{
Serial.begin(9600); //Declaracion puerto serie
}
void loop() {
tempSensor.measure(&temperature, &humidity, &dewpoint); //Llamada sensor
Serial.print("Temperature: "); //Escribe texto para acompañar al valor
Serial.print(temperature); //Escribe valor en la misma linea
Serial.print(" C, Humidity: "); //Escribe texto para acompañar al valor
Serial.print(humidity); //Escribe valor en la misma linea
Serial.print(" %, Dewpoint: "); //Escribe texto para acompañar al valor
Serial.print(dewpoint); // Escribe valor en la misma linea
Serial.println(" C");
delay(5000); //Tiempo de espera para la siguiente ejecucion
}
But which is the problem? the problem is that when I go to the monitor serie in order to see the measures I just get this:
temperature: 0.0 humidity: 0.0 % dewpoint: 0.0
temperature: 0.0 humidity: 0.0 % dewpoint: 0.0
temperature: 0.0 humidity: 0.0 % dewpoint: 0.0
...
So I don't know what is the problem may be the connections, the code, it could be that I can't connect directly 5V from arduino with sensor SHT 75 because it needs just 3.5 V ??
Even I changed the sketch sensirion.cpp
Some idea ??? Any aid will be welcome.
Thanks a lot. | Top |
|
Posted by
| Fiendish
USA (2,537 posts) Bio
Global Moderator |
Date
| Reply #1 on Sat 26 Sep 2015 03:48 PM (UTC) |
Message
| |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,159 posts) Bio
Forum Administrator |
Date
| Reply #2 on Sun 27 Sep 2015 08:50 AM (UTC) |
Message
| In what way is this a problem with this forum?
You read the huge message in red type:
Quote:
Please post questions about the Arduino on the The Arduino Forum or StackExchange -> Arduino
You can't post in the Arduino part of this forum. So now you post in the "forum problems" part. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
15,177 views.
This subject is now closed.
Refresh page
top