We're no longer updating This wiki!!

This is an old revision of the document!


Use the IO Expansion Board

Schematic : ExpansionBoard.pdf
Driver source code : https://github.com/hardkernel/linux/tree/odroidxu3-3.10.y/drivers/hardkernel
Android Example source code : http://dn.odroid.com/ODROID-XU/Expansion_Board

Test O/S : Ubuntu 15.04 (20150710, Kernel version should be 3.10.82 or higher. Otherwise, update the kernel first)

Driver Probe

sudo modprobe i2c-gpio-custom bus0=10,33,23,10,10
sudo modprobe ioboard-bmp180
sudo echo ioboard-bmp180 0x77 > /sys/class/i2c-dev/i2c-10/device/new_device
sudo modprobe ioboard-bh1780
sudo echo ioboard-bh1780 0x29 > /sys/class/i2c-dev/i2c-10/device/new_device

Get Sensors value on Expansion Board

Enable Sensors

BMP180

echo 1 > /sys/class/i2c-dev/i2c-10/device/10-0077/enable

BH1780

echo 1 > /sys/class/i2c-dev/i2c-10/device/10-0029/enable

Get values BMP180

cat /sys/class/i2c-dev/i2c-10/device/10-0077/temperature
cat /sys/class/i2c-dev/i2c-10/device/10-0077/pressure

BH1780

cat /sys/class/i2c-dev/i2c-10/device/10-0029/lux
en/xu3_expansionboard.1437127940.txt.gz · Last modified: 2016/05/18 15:20 (external edit)
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0