Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ABols
New Contributor I
1,186 Views

UART malfunction upon communication with SHT10 sensor

I've got a new issue which concerns the same old UART and is similar to this /message/484745# 484745 previous case.

When I communicate with an SHT10 Temp. and Humidity sensor using its respective library (libupm-sht1x), data suddenly appears on the UART TX.

I've enclosed a small test to illustrate this.

1) TEST RESULTS screenshot: SHT10 working alone and there is nothing on TX (pin 1)

2) TEST+UART RESULTS screenshot: UART is initialized with the mraa library (mraa_uart_init function) and the SHT10 is being used with the libupm-sht1x library (sht1x_update function)

During measurement updates, bogus data appears on the UART TX, which is captured by a Saleae logic analyzer.

There are 3 sensor requests and the following data sequentially appears on the TX line when they are executed:

1st update: FE FF F8 C0 C0 C0 F0 E0 F8 E0 C0 C0 F8 E0 FC F0

2nd update: FE FF 80 C0 FC F0 F0 F0 80 C0 F8 F0 FC E0

3rd update: FF E0 C0 C0 FC F0 FC F0 F0 F0 80 E0 F8 E0 F8 F0

These sequences can be viewed by opening the Saleae .logicdata or .png screenshots in the archive enclosed.

It seems that there are some serious issues with either the UART driver or the Edison for Arduino board.

In addition, I can say that I've got 2 Edison for Arduino boards and they both show this behavior.

Plus, I have tried connecting my SHT10 sensor to different pins (3 and 4; 16 and 17; 18 and 19): the effect is the same for all 3 pairs.

The sensor itself works very well and gives correct measurements.

Any ideas on what to do?

0 Kudos
5 Replies
idata
Community Manager
82 Views

Hi cyrillicsoft,

Thanks for your interest in the Intel® Edison™ Platform.

I see that you have opened several threads ( and ) indicating that you have issues with the Edison UART. Please let us investigate more about your issue and we will get back to you as soon as we have some useful information.

Best Regards,

 

-Jose P.
idata
Community Manager
82 Views

Hi cyrillicsoft,

 

 

We are attempting to replicate your issue, as soon as we have any update I will be contacting you back.

 

 

Have a nice day!

 

 

Best Regards,

 

-Jose P.
ABols
New Contributor I
82 Views

Hi Jose!

I've carried out another experiment with the SHT10 sensor and found out that when I read measurements off of it using the sht1x_update() function (from the libupm library I mentioned before), the 0-13 GPIO pins receive noise.

However, there is no noise on pins 14-19. There is NOTHING connected to the pins apart from the sensor itself.

In the test program below, the SHT10 sensor is connected to the 19th and 18th pins, but the results will not change if I connect it to other pins.

Here's a link to the SHT10 brick itself: https://www.itead.cc/electronic-brick-sht10-temperature-humidity-sensor.html Electronic Brick - SHT10 Temperature Humidity Sensor

unsigned int SigStop = 1;

void* digit (void *val)

{

unsigned int i;

mraa_gpio_context gpio;

gpio = mraa_gpio_init(2);

mraa_gpio_dir(gpio, MRAA_GPIO_IN);

while (SigStop) {

i = mraa_gpio_read(gpio);

if(i){fprintf(stdout<span lang="EN-US" style="color: bla...

idata
Community Manager
82 Views

Hi cyrillicsoft,

 

 

Thanks for sharing these results! We will go ahead and replicate this as well.

 

 

We appreciate your patience.

 

 

Have a nice weekend!

 

 

Best Regards,

 

-Jose P.
idata
Community Manager
82 Views

Hi cyrillicsoft,

 

 

Thanks for your patience.

 

 

We try to replicate your issue, but unfortunately we don't have a SH10 sensor at hand. We perform a test where we communicate the Edison with an Arduino through I2C and then attempt to initialize the UART, regrettably we didn't get any noise on the TX line. I think that this noise might due to the sensor that you are using, I would encourage to use a Low pass Filter in order reduce the undesirable noise that you are having.

 

 

Best Regards,

 

-Jose P.
Reply