accessory:sensor:weather-board:example:c1_c2

WEATHER-BOARD on ODROID-C1/C1+/C2

Pin NumberNet NameExport Number
C0/C1/C1+C2
3I2CA.SDA74205
5I2CA.SCL75206
Pin NumberNet NameExport Number
C0/C1/C1+C2
27I2CB.SDA76207
28I2CB.SCL77208

Settings I2C

This guide is tested on Ubuntu 16.04(kernel C1-3.10.104, C2-3.14.79).

Add I2C module

target
$ sudo modprobe aml_i2c
$ ls /dev/i2c-*

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

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

Download & Run

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

Check your I2C node, and run the program.

target
$ sudo ./weather_board

or

target
$ sudo ./weather_board /dev/i2c-2

  • accessory/sensor/weather-board/example/c1_c2.txt
  • Last modified: 2020/04/02 14:44
  • by luke.go