75
ODROID XU4 USER MANUAL
XU4 with expansion board
The latest version of Linux has the driver support for this expan-
sion board. The article at
can be used to test the board:
$ su
# echo ioboard-bmp180 0x77 > /sys/class/i2c-dev/i2c-10/device/new_device
# modprobe ioboard-bh1780
# echo ioboard-bh1780 0x29 > /sys/class/i2c-dev/i2c-10/device/new_device
# echo 1 > /sys/class/i2c-dev/i2c-10/device/10-0077/enable
# echo 1 > /sys/class/i2c-dev/i2c-10/device/10-0029/enable
Run the following commands to obtain the temperature, pres-
sure and light-levels respectively:
# cat /sys/class/i2c-dev/i2c-10/device/10-0077/temperature
284
# cat /sys/class/i2c-dev/i2c-10/device/10-0077/pressure
101523
# cat /sys/class/i2c-dev/i2c-10/device/10-0029/lux
407
The output values imply the following measurements:
284 = 28.4C
101523 = 1015.23Pa
407 = 407Lux
Shifter Shield
Many devices already available for integration support either
3.3V or 5.0V. However, the native GPIO pins on the XU4 operate at
1.8V. Because of this difference, a level shifter is needed to allow in-
ter-operation between the XU4 and these devices.
This board contains 3 x TSX0108E bi-directional level shifter
ICs. The 30-pin and 12-pin GPIO ports on the XU4 are converted
to the more common 0.1inch (2.54mm) pitch 40-pin header which is
Chapter 4