Jump to content

Need help for MCP23017 I2C IO Expander


GYU

Recommended Posts

Hello guys,

 

I'd like to use a MCP23017 IO Expander with a Banana PI, based on this tutorial. but I get stuck at the beginning :D

 

My problem is that I can't see the device. Could you help me please how to go ahead? Thanks!

root@bananapipro:~# ls /dev/i2c*
/dev/i2c-0  /dev/i2c-1

root@bananapipro:~# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

root@bananapipro:~# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

root@bananapipro:~# lsmod
Module                  Size  Used by
sun4i_codec            10687  3
evdev                  12164  1
snd_soc_core          129993  1 sun4i_codec
snd_pcm_dmaengine       3391  1 snd_soc_core
snd_pcm                77032  2 snd_soc_core,snd_pcm_dmaengine
snd_timer              19508  1 snd_pcm
snd                    47137  3 snd_soc_core,snd_timer,snd_pcm
soundcore                922  1 snd
sun4i_ts                4054  0
nvmem_sunxi_sid         2551  0
nvmem_core              8592  1 nvmem_sunxi_sid
sun4i_ss               16130  0
cpufreq_dt              4394  0
thermal_sys            56978  2 cpufreq_dt,sun4i_ts
bonding               102666  0
brcmfmac              179038  0
brcmutil                5597  1 brcmfmac
cfg80211              429254  1 brcmfmac
rfkill                 10736  1 cfg80211
fuse                   83217  1
realtek                 2775  0
Link to comment
Share on other sites

Oh! I accidentally swapped SDA & SDL... Now it's ok!

i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- 
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines