[SOLVED] WB2 on N2 shows wrong address with i2cdetect command

Post Reply
zhaoying
Posts: 6
Joined: Tue Jan 07, 2020 12:21 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

[SOLVED] WB2 on N2 shows wrong address with i2cdetect command

Post by zhaoying » Thu Jan 09, 2020 12:44 pm

Hi,

I want to use weatherboard2 on Odroid N2. And I followed the instruction in the official documenthttps://wiki.odroid.com/odroid-n2/appli ... ther_board.

However, I cannot detect the correct address of the weatherboard. I changed several weather boards and this still happened. Does any can help me? Thanks!

The connection between weather board and Odroid N2
connection.jpg
connection.jpg (202.48 KiB) Viewed 2524 times
I cannot detect the correct address.
detection.png
detection.png (18.17 KiB) Viewed 2524 times
Information about the device
device.png
device.png (67.21 KiB) Viewed 2524 times
Information about the node
node.png
node.png (79.72 KiB) Viewed 2524 times

User avatar
odroid
Site Admin
Posts: 34195
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 701 times
Been thanked: 627 times
Contact:

Re: WB2 on N2 shows wrong address with i2cdetect command

Post by odroid » Thu Jan 09, 2020 1:56 pm

Can you show me "lsmod" and "uname -a" outputs?

zhaoying
Posts: 6
Joined: Tue Jan 07, 2020 12:21 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: WB2 on N2 shows wrong address with i2cdetect command

Post by zhaoying » Thu Jan 09, 2020 2:13 pm

odroid wrote:
Thu Jan 09, 2020 1:56 pm
Can you show me "lsmod" and "uname -a" outputs?
Please check the following pictures.

lsmod
lsmod.png
lsmod.png (140.27 KiB) Viewed 2507 times
uname -a
uname.png
uname.png (12.74 KiB) Viewed 2507 times

User avatar
odroid
Site Admin
Posts: 34195
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 701 times
Been thanked: 627 times
Contact:

Re: WB2 on N2 shows wrong address with i2cdetect command

Post by odroid » Thu Jan 09, 2020 2:39 pm

Update the Kernel to 4.9.205-64 with the following commands.
https://wiki.odroid.com/odroid-n2/os_im ... l_software

And show me "ls -l /dev/i2c*" again.

zhaoying
Posts: 6
Joined: Tue Jan 07, 2020 12:21 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: WB2 on N2 shows wrong address with i2cdetect command

Post by zhaoying » Thu Jan 09, 2020 3:39 pm

odroid wrote:
Thu Jan 09, 2020 2:39 pm
Update the Kernel to 4.9.205-64 with the following commands.
https://wiki.odroid.com/odroid-n2/os_im ... l_software

And show me "ls -l /dev/i2c*" again.
Hi, please check the following picture for "ls -l /dev/i2c*".
ls_device.png
ls_device.png (15.27 KiB) Viewed 2491 times

User avatar
odroid
Site Admin
Posts: 34195
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 701 times
Been thanked: 627 times
Contact:

Re: WB2 on N2 shows wrong address with i2cdetect command

Post by odroid » Thu Jan 09, 2020 4:41 pm

Ok. Software setup seems to be fine.

Let's try to find what is wrong in your hardware connection.
0x51 in your i2cdetec result is the RTC IC PCF8563 on the N2 board and it is normal.
What is the result of sudo i2cdetect -y -r 2?
Do you have a DMM to measure the voltage of VCC on the Weather-Board 2?

zhaoying
Posts: 6
Joined: Tue Jan 07, 2020 12:21 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: WB2 on N2 shows wrong address with i2cdetect command

Post by zhaoying » Thu Jan 09, 2020 4:47 pm

odroid wrote:
Thu Jan 09, 2020 4:41 pm
Ok. Software setup seems to be fine.

Let's try to find what is wrong in your hardware connection.
0x51 in your i2cdetec result is the RTC IC PCF8563 on the N2 board and it is normal.
What is the result of sudo i2cdetect -y -r 2?
Do you have a DMM to measure the voltage of VCC on the Weather-Board 2?
"sudo i2cdetect -y -r 2"
detect2.png
detect2.png (18.54 KiB) Viewed 2464 times
I do not have any DMM.

User avatar
odroid
Site Admin
Posts: 34195
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 701 times
Been thanked: 627 times
Contact:

Re: WB2 on N2 shows wrong address with i2cdetect command

Post by odroid » Thu Jan 09, 2020 4:58 pm

Are you sure your wiring connection is same as this diagram without DMM?
Image

You have to find a way to check the internal connection of the flat extension cable.

zhaoying
Posts: 6
Joined: Tue Jan 07, 2020 12:21 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: WB2 on N2 shows wrong address with i2cdetect command

Post by zhaoying » Thu Jan 09, 2020 9:40 pm

odroid wrote:
Thu Jan 09, 2020 4:58 pm
Are you sure your wiring connection is same as this diagram without DMM?
Image

You have to find a way to check the internal connection of the flat extension cable.
I got a DMM and connected it rightly. And now it works.

Thanks!

User avatar
odroid
Site Admin
Posts: 34195
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 701 times
Been thanked: 627 times
Contact:

Re: WB2 on N2 shows wrong address with i2cdetect command

Post by odroid » Fri Jan 10, 2020 10:39 am

Glad to hear that!
DMM has always been a good friend for embedded system developers. ;)

Post Reply

Return to “Weather Board”

Who is online

Users browsing this forum: No registered users and 1 guest