The AB Electronics UK Knowledge Base provides support solutions, tutorials and troubleshooting guides.
- Home
- Help and Support
- Knowledge Base
- Other Supported Platforms
- ODroid
- ODroid C2 Ubuntu I2C Setup
-
Raspberry Pi
- PCB Header Assembly Jig
- Raspberry Pi GPIO Pins
- Samba Setup on Raspberry Pi
- Set a static IP Address on Raspberry Pi OS Bookworm
- I2C Part 1 - Introducing I2C
- I2C Part 2 - Enabling I2C on the Raspberry Pi
- I2C Part 3 - I2C tools in Linux
- I2C Part 4 - Programming I2C with Python
- SPI and Python on Raspberry Pi OS
- Using Pythonpath with our Python Libraries
- Connecting Development Boards to the Raspberry Pi 400
- General
- Code & Languages
- Raspberry Pi Pico
- 1 Wire Pi
- ADC Pi
- ADC DAC Pi Zero
- ADC Differential Pi
- Expander Pi
-
IO Pi Plus
- IO Pi Plus FAQ
- IO Pi Plus Tutorial 1 - The Blinking LED
- IO Pi Plus Tutorial 2 - Push the Button
- IO Pi Plus Tutorial 3 - Introducing Interrupts
- IO Pi Plus Tutorial 4 - More Interrupts
- IO Pi Plus Tutorial - MQTT Reading the Ports
- IO Pi Plus with Raspberry Pi Pico
- IO Pi Plus Tutorial - MQTT Control
- Driving Relays or Higher Loads with the IO Pi Plus
- 16 Channel Opto-Isolated Input Board
- Relay Board for the IO Pi Plus 2.1
- IO Zero 32
- RTC Pi
- Serial Pi
- Servo PWM Pi
-
Home Assistant
- Using 1 Wire with Home Assistant and the Raspberry Pi OS
- Using I2C Devices on the Raspberry Pi with Home Assistant
- Using the ADC Differential Pi with Home Assistant on the Raspberry Pi
- Using the ADC Pi with Home Assistant on the Raspberry Pi
- Using the IO Pi Plus with Home Assistant on the Raspberry Pi
-
Legacy Products
- ADC DAC Pi (Discontinued)
- ADC Pi (Discontinued)
- Buffer Pi - Legacy Product
- Com Pi (Discontinued)
- Delta-Sigma Pi (Discontinued)
- Expander Pi (Discontinued)
- IO Pi (Discontinued)
- IO Pi Plus 1.0 (Discontinued)
- IO Pi Zero (Discontinued)
- Logic Level Converter (Discontinued)
- RTC Alarm Pi (Discontinued)
- RTC Pi (Discontinued)
- Serial Pi (Discontinued)
- 1 Wire Pi (Discontinued)
- 1 Wire Pi Plus 1.0 (Discontinued)
- Other Supported Platforms
ODroid C2 Ubuntu I2C Setup
How to set up I2C communication on the Odroid C2 using i2c tools.
How to set up I2C support on an ODROID-C2 from Hardkernel running Ubuntu 20.04. 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 python3-smbus 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 the following:
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 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