[BPI-M3] BPI AD/DA extend Module and how to use


(BPI_Justin) #1

OS: BPI-M3 Ubuntu15.10 (Kernel3.4) Version: 1.0 HDMI


Step 1: Download WiringPI

$ git clone https://github.com/BPI-SINOVOIP/BPI-WiringPi.git111 -b BPI_M3 $ cd BPI-WiringPi $ chmod +x ./build $ sudo ./build

Step 2:Check the BPI I2C GPIO extend(PCF8591T) device to see if it’s on track.(address 0x48) (I2c port number for M3: 2 )

sudo su i2cdetect -y 2

. 0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- 48 – -- – -- – -- –
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --

Step 3:Run the command and see if the LED on the board is working.

low brightness

gpio -x pcf8591:120:0x48 awrite 120 127

hight brightness

gpio -x pcf8591:120:0x48 awrite 120 12


Video Demo:

more information:

https://bananapi.gitbooks.io/bpi-accessories/content/adda_extend_module.html