ODroid C2 running Ubuntu I2C Setup

Created 23/03/2016 | How to set up I2C communication on the Odroid Cc using i2c tools.


This page details how to setup I2C support on a ODROID-C2 from http://www.hardkernel.com/ running Ubuntu. All commands are entered in a terminal window or via SSH.

Step 1: You need to update your Odroid C2 to ensure all the latest packages are installed:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Step 2: Next reboot the Odroid C2:

sudo reboot

Step 3: Once you have logged into your Odroid C2 from the command line, run the following command to install python-smbus and i2c-tools:

sudo apt-get install python-smbus

sudo apt-get install i2c-tools

Step 4: Set the Odroid C2 to load the i2c driver:

modprobe aml_i2c

Step 5: Set the Odroid C2 to start I2C automatically at boot by editing /etc/modules :

sudo nano /etc/modules

Use your cursor keys to move to the last line and add a new line and then add:


Press return then add:


Save your changes and exit the nano editor.

Step 6: To avoid having to run the I2C tools at root add the ‘odroid’ user to the I2C group:

sudo adduser odroid i2c

Step 7: Next reboot the Odroid C2:

sudo reboot

When your Odroid C2 has rebooted you will now have I2C support.

You can check for connected I2C devices with the following command:

i2cdetect -y -r 1




Products added to basket


Total (inc shipping)

CheckoutView Basket

Free Shipping on all orders over £30

Click to contact us.

Have any Questions?

Send us any questions about this page or product and we will reply within 24 hours.

Submit your Message


Have any Questions?

Thank you for contacting us.

We will respond to your enquiry in the next 24 hours.

You can find answers to many questions and additional product support in our Knowledge Base and the Community Forum.