ODROID-SHOW2 + WEATHER-BOARD2 - weather_board wrong values

Moderators: odroid, mdrjr

ODROID-SHOW2 + WEATHER-BOARD2 - weather_board wrong values

Unread postby berny » Thu Dec 22, 2016 4:16 am

Hi,

I got ODROID-SHOW2 + WEATHER-BOARD2 few weeks ago and now I finally received ODROID-C2 because it was not in stock.

I played a little with ODROID-SHOW2 + WEATHER-BOARD2, I uploaded firmware 1.5 from https://github.com/hardkernel/WEATHER-BOARD to the ODROID-SHOW2 and I noticed first issue:

When I start the board, temperatures rise within few seconds and are 4-5 °C higher than my two other thermometers. (There is not definitely 28 °C, but rather between 22-23 °C)

I searched this forum and found that other users have the same issues, but I did not get solution to that problem, only suggestion was that WEATHER-BOARD2 should not be attached directly to the ODROID-SHOW2. So I ordered Dupont cables and I will try to extend the WEATHER-BOARD2 from the ODROID-SHOW2 at least 30 centimeters, but they will arrive maybe in January.



My second issue is that I do not get values from WEATHER-BOARD2 in terminal

Code: Select all
sudo ./weather_board

======== si1132 ========
UV_index : 0.00
Visible : -13163 Lux
IR : -1486 Lux
======== bmp180 ========     WEATHER-BOARD v1.5
temperature : 0.00 'C
pressure : 2.36 hPa
Altitude : 30373.30 meter
======== si7020 ========
temperature : -46.24 'C
humidity : -6.00 %


I also tried i2cdetect as others suggested:

Code: Select all
sudo modprobe aml_i2c

i2cdetect -r 1

WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --





i2cdetect -r 2

WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-2 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --




I searched this forum, but only solution was in this post: viewtopic.php?f=142&t=21356 regarding two swapped connections, but my WEATHER-BOARD2 is connected directly to the ODROID-SHOW2

Display on ODROID-SHOW2 displays values OK, and I also compiled "qt_weather" from the github and values are the same as on the display.

Could anyone provide me any suggestion how to get values from WEATHER-BOARD2 attached to ODROID-SHOW2 in terminal? I would like to use these values in "Domoticz" or "Home Assistant" software. (I will also get other temperature readings from RTL_433)

Pics of temperatures on ODROID-SHOW2 and qt_weather
http://imgur.com/a/kfXC3
berny
 
Posts: 2
Joined: Thu Dec 22, 2016 3:46 am
languages_spoken: english, slovak, czech
ODROIDs: ODROID-C2, ODROID-SHOW2, ODROID-WEATHERBOARD2

Re: ODROID-SHOW2 + WEATHER-BOARD2 - weather_board wrong valu

Unread postby odroid » Thu Dec 22, 2016 10:40 am

You needed to connect the Weather-board to the C2 board directly if you want to use the C2 I2C interface instead of the USB.
http://odroid.com/dokuwiki/doku.php?id=en:wb_c
User avatar
odroid
Site Admin
 
Posts: 21357
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: ODROID-SHOW2 + WEATHER-BOARD2 - weather_board wrong valu

Unread postby berny » Thu Dec 22, 2016 10:09 pm

Thanks, and how can I get the values via USB from ODROID-SHOW2 + WEATHER-BOARD2? I would prefer text output.

Thank you
berny
 
Posts: 2
Joined: Thu Dec 22, 2016 3:46 am
languages_spoken: english, slovak, czech
ODROIDs: ODROID-C2, ODROID-SHOW2, ODROID-WEATHERBOARD2

Re: ODROID-SHOW2 + WEATHER-BOARD2 - weather_board wrong valu

Unread postby odroid » Fri Dec 23, 2016 8:57 am

You need to make a small program which can parse the data in /dev/ttyUSB0 and display it in plain text.
SHOW2 is sending data to the USB serial port with below format.
https://github.com/hardkernel/WEATHER-B ... r.ino#L243

Also refer the source code of qt-weather.
User avatar
odroid
Site Admin
 
Posts: 21357
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: ODROID-SHOW2 + WEATHER-BOARD2 - weather_board wrong valu

Unread postby patoberli » Tue Jan 24, 2017 7:28 pm

Since I use 15cm extension cables for the weather-board2 the temperature is correct. The alternative would be to detract those ~4 degrees in the source code when reading out the value.
-
pato
patoberli
 
Posts: 401
Joined: Mon Feb 23, 2015 6:32 pm
Location: Switzerland
languages_spoken: english, german
ODROIDs: C1 with RTC, Bluetooth 4.0, Wireless stick 4.0


Return to Weather Board

Who is online

Users browsing this forum: No registered users and 1 guest