Community
cancel
Showing results for 
Search instead for 
Did you mean: 
hlim12
Novice
1,095 Views

edison temperature sensor question..

hi, I use the grove temperature sensor.

 

 

https://software.intel.com/en-us/iot/hardware/sensors/pulse-sensor

 

Test code was used as a code over.

 

I tried a test,

 

"Temperature Sensor

 

74 degrees Celsius, or 165 degrees Fahrenheit

 

139 degrees Celsius, or 282 degrees Fahrenheit

 

147 degrees Celsius, or 296 degrees Fahrenheit

 

139 degrees Celsius, or 282 degrees Fahrenheit

 

149 degrees Celsius, or 300 degrees Fahrenheit

 

151 degrees Celsius, or 303 degrees Fahrenheit

 

147 degrees Celsius, or 296 degrees Fahrenheit

 

147 degrees Celsius, or 296 degrees Fahrenheit

 

166 degrees Celsius, or 330 degrees Fahrenheit

 

154 degrees Celsius, or 309 degrees Fahrenheit

 

logout "

 

I'm not sure why the temperature is displayed for more than 100 degrees.

 

What's the problem?
0 Kudos
3 Replies
idata
Community Manager
72 Views

Hello hwanhee,

 

 

I believe you posted the wrong link as the example found there is for a pulse sensor. Could you please verify the link and post the code you used?

 

 

-Peter.
hlim12
Novice
72 Views

# include

# include

# include "pulsensor.h"

# include

using namespace upm;

int doWork = 0;

void

sig_handler(int signo)

{

printf("got signal\n");

if (signo == SIGINT) {

printf("exiting application\n");

doWork = 1;

}

}

void

handler (clbk_data data) {

printf ("callback data (%d)\n", data);

}

int

main(int argc, char **argv)

{

//! [Interesting]

Pulsensor *sensor = new Pulsensor(handler);

sensor->start_sampler();

while (!doWork) {

usleep (5);

}

sensor->stop_sampler();

//! [Interesting]

return 0;

}

this example using..

idata
Community Manager
72 Views

That is the code found in https://software.intel.com/en-us/iot/hardware/sensors/pulse-sensor. It is for a pulse sensor, it is not related to any temperature sensor. Could you please verify the code that you are using and post it or a link to it?

 

 

-Peter.

 

Reply