Odroid C2 I2C Communication

Moderators: mdrjr, odroid

Odroid C2 I2C Communication

Unread postby Manikandan » Sat Jun 02, 2018 6:34 pm

What is the voltage level for I2C pins in Odroid C2 whether 1.8 or 3.3 V?
Manikandan
 
Posts: 39
Joined: Tue Feb 28, 2017 2:51 pm
languages_spoken: english
ODROIDs: ODROID C2

Re: Odroid C2 I2C Communication

Unread postby mad_ady » Sat Jun 02, 2018 6:54 pm

C2 has 3.3V on most its gpio pins
User avatar
mad_ady
 
Posts: 4582
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Odroid C2 I2C Communication

Unread postby Manikandan » Sat Jun 02, 2018 7:04 pm

Thanks for your response.
Manikandan
 
Posts: 39
Joined: Tue Feb 28, 2017 2:51 pm
languages_spoken: english
ODROIDs: ODROID C2

Re: Odroid C2 I2C Communication

Unread postby Manikandan » Mon Jun 04, 2018 11:28 am

Is there any specific driver for AMC6821 IC ?
Manikandan
 
Posts: 39
Joined: Tue Feb 28, 2017 2:51 pm
languages_spoken: english
ODROIDs: ODROID C2

Re: Odroid C2 I2C Communication

Unread postby odroid » Mon Jun 04, 2018 11:42 am

User avatar
odroid
Site Admin
 
Posts: 28697
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Odroid C2 I2C Communication

Unread postby Manikandan » Mon Jun 04, 2018 9:59 pm

DS1307 is working fine , And in C2 Kernel source tree there is amc6821 file is there, But while I'm try to run modprobe command , it's give response like

root@odroid64:/usr/src/linux# modprobe amc6821
modprobe: FATAL: Module amc6821 not found in directory /lib/modules/3.14.79+
--------------------------------------------------------------------------------------------------------------------------
And also in .config file
# CONFIG_SENSORS_AMC6821 is not set
--------------------------------------------------------------------------------------------------------------------------
In /usr/src/linux/drivers/hwmon -> kconfig

config SENSORS_AMC6821
tristate "Texas Instruments AMC6821"
depends on I2C && HWMON
default y
help
If you say yes here you get support for the Texas Instruments
AMC6821 hardware monitoring chips.

This driver can also be build as a module. If so, the module
will be called amc6821.
---------------------------------------------------------------------------------------------------------------------------
How to set AMC6821 driver ?
Manikandan
 
Posts: 39
Joined: Tue Feb 28, 2017 2:51 pm
languages_spoken: english
ODROIDs: ODROID C2

Re: Odroid C2 I2C Communication

Unread postby odroid » Tue Jun 05, 2018 8:00 am

Download the Kernel source and build it on C2 Ubuntu. Just before make -5, run make menuconfig and enable the AMC6821 driver as a module.
https://wiki.odroid.com/odroid-c2/os_im ... nux_kernel

You might need to update the system first.
https://wiki.odroid.com/odroid-c2/os_im ... and_system
User avatar
odroid
Site Admin
 
Posts: 28697
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Odroid C2 I2C Communication

Unread postby Manikandan » Tue Jun 05, 2018 1:59 pm

Thanks now I can able to install AMC6821 driver as a module and one more doubt, I want to read/write through API for I2C communication. Is there any reference for that?

Shall I Refer This link : viewtopic.php?f=80&t=5953
Manikandan
 
Posts: 39
Joined: Tue Feb 28, 2017 2:51 pm
languages_spoken: english
ODROIDs: ODROID C2

Re: Odroid C2 I2C Communication

Unread postby odroid » Tue Jun 05, 2018 3:15 pm

You can access any I2C device from user-land software instead of kernel-land.
https://wiki.odroid.com/accessory/senso ... mple/c1_c2
"i2cdetect" command should be useful to check the hardware connection.
User avatar
odroid
Site Admin
 
Posts: 28697
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to General Chat

Who is online

Users browsing this forum: No registered users and 2 guests