Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wcomp-raspberry [2015/03/25 17:05] – Stéphane Lavirotte | wcomp-raspberry [2015/03/26 13:40] (current) – [Install sensors libraries on Raspberry Pi] Stéphane Lavirotte | ||
---|---|---|---|
Line 2: | Line 2: | ||
{{: | {{: | ||
+ | |||
+ | {{: | ||
===== Install Mono on Raspberry Pi ===== | ===== Install Mono on Raspberry Pi ===== | ||
Line 34: | Line 36: | ||
As the last step of the overall process, to install WComp, you juste have to unzip '' | As the last step of the overall process, to install WComp, you juste have to unzip '' | ||
- | ===== Install sensors | + | ===== Install sensors |
On Raspberry Pi, you can use different king of sensor libraries with WComp. You can use Goove, Phidgets, Electronic Brick. Moreover, we are currently working one a unified way to access to all these set of sensors and actuators for you to be able to create propotypes with differents sets. | On Raspberry Pi, you can use different king of sensor libraries with WComp. You can use Goove, Phidgets, Electronic Brick. Moreover, we are currently working one a unified way to access to all these set of sensors and actuators for you to be able to create propotypes with differents sets. | ||
- | ==== Install | + | * [[raspberry-grove|Install |
+ | * [[raspberry-phidget|Install Phidget on Raspberry Pi]] | ||
+ | * [[raspberry-ebrick|Install Electronic Brick on Raspberry Pi]] | ||
+ | * [[raspberry-enocean|Install EnOcean on Raspberry Pi]] | ||
- | To be able to use Groove sensors and actuators, you will have to install some extra software. You can read the following procedure to setup the software to use Groove Pi on Raspberry Pi. | ||
- | * [[http:// | ||
- | * [[http:// | ||
- | |||
- | When every software part is installed, you have to patch the wiringPi library in order to be able to use it with WComp. You just have to download the following zip file, extract it and and launch the installer to patch and install a patch wiringPi library on your Raspberry Pi. | ||
- | |||
- | * Download {{: | ||
- | |||
- | < | ||
- | unzip wiringpi_patch.zip | ||
- | cd WiringPi\ Patch | ||
- | chmod +x install.sh | ||
- | sudo ./ | ||
- | </ | ||
- | |||
- | ==== Install Phidgets ==== | ||
- | |||
- | First of all, you have to download and compile the C phidget library to be able to use it on Raspberry. | ||
- | < | ||
- | sudo apt-get install libusb-1.0.0-dev | ||
- | wget http:// | ||
- | cd libphidget-* ; # * could be 2.1.8.20150207 | ||
- | ./configure | ||
- | make | ||
- | sudo make install | ||
- | </ | ||
- | |||
- | Then you have to add Phidget available for Mono. | ||
- | < | ||
- | sudo gacutil -i phidget21-windevel/ | ||
- | sudo ln -s / | ||
- | </ | ||
- | |||
- | ==== Give access to USB InterfaceKit ==== | ||
- | |||
- | Last step to be able to use the Phidget InterfaceKit on Raspberry Pi is a problem of permissions on files; only root can access to data of usb pluged devices. So for any program working with Phidget InterfaceKit, | ||
- | |||
- | You have to have the right file permissions on /dev/ to be able to access data of the Phidget InterfaceKit 8/8/8. ''/ | ||
- | |||
- | Create a file in ''/ | ||
- | < | ||
- | ATTRS{idVendor}==" | ||
- | </ | ||
- | |||
- | With this line in file, you will detect any InterfaceKit (vendor tag is 06c2 and product id is 0045). You can verify with '' | ||
- | < | ||
- | Bus 001 Device 004: ID 06c2:0045 Phidgets Inc. (formerly GLAB) PhidgetInterface Kit 8-8-8 | ||
- | </ | ||
- | |||
- | As you added a new rule, you have to restart the udev service. | ||
- | < | ||
- | sudo service udev restart | ||
- | </ | ||
- | |||
- | This will now create the right file in /dev with permission of '' | ||
- | < | ||
- | sudo addgroup usb | ||
- | sudo adduser pi usb | ||
- | </ |