Jump to content
  • 0

Clearfog[Pro] I²C Devices


Heisath
 Share

Question

Hi,

 

out of interest I was checking the I²C Devices connected to the ClearfogPro.

So this is thought as a small guide to the i2c bus. 

 

The second i2c bus goes straight to the mikrobus/click header so there is nothing on default.

 

---

 

i2cdetect for bus 0 gave me:

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- 4c -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- 64 -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

 

Device 0x20 )   After checking the device tree and schematics, the device at 0x20 is the IO Expander used by a driver.

 

Device 0x4c )

The 0x4c device is also listed in the dt.  As the AD Converter for mikrobus/click header. I confirmed this working.

You can use this, to read the current value.

i2cget 0 0x4c 0x99 w

0x4c is the bus address. 0x99 is the data address according to the MCP3021 datasheet, w means we want to get a word. 

It then returns the current value, which can be interpreted by using the formula from the datasheet.

 

Device 0x64 ) I don't know what is on the bus here. Neither the datasheet nor the device tree mentions anything, does anyone know?

 

---

 

I2C Flash 24AA025UID )

The datasheet mentions the flash chip is only assembled in DNP assembly (checked not on my board) so this device is not available.

 

 

 

I hope this helps someone else understand how to use the analog input pin and maybe give me a hint whats at 0x64.

 

 

 

 

Greetings,

count-doku

 

 

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Armbian is a community driven open source project. Do you like to contribute your code?

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...