Velleman K8055¶
This USB experiment interface board from Velleman has 5 digital input channels and 8 digital output channels. In addition, there are two analogue inputs and two analogue outputs with 8 bit resolution. The number of inputs/outputs can be further expanded by connecting more (up to a maximum of four) cards to the PC's USB connectors.
DomotiGa interfaces with the library from the libk8055 project, so you need to install that too.
$ sudo apt-get install libusb-dev $ mkdir -p ~install/libk8055 $ cd ~install/libk8055 $ wget http://downloads.sourceforge.net/project/libk8055/libk8055/libk8055.0.4/libk8055.0.4.1.tar.gz $ tar xzvf libk8055.0.4.1.tar.gz $ cd src $ vi Makefile # change this to your distribution default # usually /usr/local or /usr PREFIX = /usr/local $ make $ make install
When you get the error that the library cannot be found, the following steps can fix that:
Check if the library is in this library cache output:
$ sudo ldconfig -p|grep 8055
If not, check if there is a ldconfig file with local in it.
$ cd /etc/ld.so.conf.d/ $ ls biarch-compat.conf GL.conf lib32asound2.conf libasound2.conf libc.conf x86_64-linux-gnu.conf $ grep local *
If there is no file found which contains 'local' create the following file and the one line, then run 'sudo ldconfig' again, to add the path to the cache.
$ sudo vi k8055.conf ----- /usr/local/lib -----
Then build cache again with new config:
$ sudo ldconfig
Restart gambas IDE to let it load the cache again.
Something to fix?:
[1206331.943386] usb 1-1.6: usbfs: interface 0 claimed by usbfs while 'gbx2' sets config #1 [1206331.951359] usb 1-1.6: usbfs: interface 0 claimed by usbfs while 'k8055' sets config #1 [1206337.118115] usb 1-1.6: usbfs: process 29937 (gbx2) did not claim interface 0 before use
Related Resources¶
Comment¶
Updated by: rdnzl, Updated 3 months ago
Access count: 620 since 2011-08-25
Attached Files¶