How to set up I2C support on an ODROID-C1 from Hard Kernel running Ubuntu 20.04. All commands are entered in a terminal window or via SSH.
Step 1: You need to update your Odroid C1 to ensure all the latest packages are installed:
sudo apt-get update sudo apt-get upgrade
Step 2: Next, reboot the Odroid C1:
sudo reboot
Step 3: Once you have logged into your Odroid C1 from the command line, run the following command to install python-smbus and i2c-tools:
sudo apt-get install python3-smbus i2c-tools
Step 4: Set the Odroid C1 to load the i2c driver:
modprobe aml_i2c
Step 5: You can set the Odroid C1 to start I2C automatically at boot by editing /etc/modules :
sudo nano /etc/modules
Use your cursor keys to move to the last line, add a new line, and then add:
aml_i2c
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 C1:
sudo reboot
When your Odroid C1 has rebooted, you will now have I2C support.
You can check for connected I2C devices with the following command:
i2cdetect -y -r 1
Also useful for your Raspberry Pi project
Temperature & Sensing
1 Wire Pi Plus
Connect dozens of 1-Wire sensors - temperature, iButtons, EEPROMs - via a single GPIO pin. Stacks directly on the 40-pin header.
Analogue I/O
ADC Pi
Read up to 8 analogue inputs - perfect for pairing with your temperature sensors or other analogue-output devices.
All-in-one
Expander Pi
Combines ADC, DAC, 32 GPIO ports and a real-time clock on one board. The most versatile board for complex Raspberry Pi projects.