Table of Contents

WEATHER-BOARD on ODROID-XU4

I2CA (/dev/i2c-1)

Pin NumberNet NameExport Number
C0/C1/C1+C2
3I2CA.SDA74205
5I2CA.SCL75206

I2CB (/dev/i2c-2)

Pin NumberNet NameExport Number
C0/C1/C1+C2
27I2CB.SDA76207
28I2CB.SCL77208

Settings I2C

Add I2C module

sudo modprobe aml_i2c
ls /dev/i2c-*

To always load the kernel module on boot up, run the following command.

echo "aml_i2c" | sudo tee -a /etc/modules

Download & Run

git clone https://github.com/hardkernel/WEATHER-BOARD.git
cd WEATHER-BOARD/c_weather
make

Check your I2C node, and run the program.

sudo ./weather_board

or

sudo ./weather_board /dev/i2c-2