[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  Forum
. -> [Folder]  Problems
. . -> [Subject]  SHT 75 SENSOR
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?


This subject is now closed.     [Refresh] Refresh page

Posted by Denis1990   (1 post)  [Biography] bio
Date Sat 26 Sep 2015 08:33 AM (UTC)
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.
[Go to top] top

Posted by Fiendish   USA  (1,744 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Sat 26 Sep 2015 03:48 PM (UTC)
Template:Arduino Please post Arduino-related questions to the Arduino Forum or to StackExchange: Arduino. This saves splitting questions and answers between this forum and the Arduino ones.

[Go to top] top

Posted by Nick Gammon   Australia  (21,609 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sun 27 Sep 2015 08:50 AM (UTC)
In what way is this a problem with this forum?

You read the huge message in red type:


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
[Go to top] 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.


This subject is now closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]