monkeyshoulder Posted January 13, 2015 at 05:10 PM Share Posted January 13, 2015 at 05:10 PM Hi, I have a temperature bricklet, however it has a strange behavior. I also have humidity and barometer bricklets, for these I use the callback method with a callback period at 1000ms (like in the Weather Station documentation). I do the exact same thing with the temperature but it can take up to a minute to trigger a measurement. Also, temperatures shown seem approx 2°C higher than it should be (the sensor is not close to a heat source). Is that normal ? Thank for your time and your help. Quote Link to comment Share on other sites More sharing options...
raphael_vogel Posted January 13, 2015 at 07:50 PM Share Posted January 13, 2015 at 07:50 PM Have you set the I2C Mode to slow? Maybe this helps. Temperature.set_i2c_mode Quote Link to comment Share on other sites More sharing options...
monkeyshoulder Posted January 13, 2015 at 08:12 PM Author Share Posted January 13, 2015 at 08:12 PM Hum no... actually it's worse: no measurement at all. Quote Link to comment Share on other sites More sharing options...
raphael_vogel Posted January 14, 2015 at 07:57 AM Share Posted January 14, 2015 at 07:57 AM Does this only occur if all 3 sensors are connected? What happens if only temperature is connected? Is the temperature cable near EMI sources? Quote Link to comment Share on other sites More sharing options...
borg Posted January 14, 2015 at 08:52 AM Share Posted January 14, 2015 at 08:52 AM A callback is only triggered if the value actually changes. So for example if you set a callback period of 1 second and the temperature stays the same for 30 seconds until it changes, you will only get the callback after 30 seconds. This is probably what you are seeing here. To try this out you can heat/cool the Bricklet rapidly. We do this to save bandwidth on the USB. Quote Link to comment Share on other sites More sharing options...
monkeyshoulder Posted January 17, 2015 at 08:50 PM Author Share Posted January 17, 2015 at 08:50 PM Hi, Finally I got it working properly by re-flashing it... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.