Getting SPI enabled changed with RasPi 2. I found out how to do it from this 'blog by johan825: http://www.element14.com/community/community/raspberry-pi/raspberrypi2/blog/2015/04/07/raspberry-pi-2-gpio-usage-with-nrf24l01-arduino
Here's the line I needed:
By default SPI is not enabled on Raspbian to load it during the boot process execute sudo raspi-config then select Advanced and then enable the SPI kernel module.
Might as well enable I2C as well. They’ll be enabled next time you reboot.
After doing this, if you give the command “ls -l /dev/spi*” you should see that spidev0.0 and spidev0.1 are in
group spi. Make sure you are also in that group. Give the command “groups”: this will tell you which
groups you are in. If you’re not in spi, add yourself to that group with the command “sudo adduser
<userid> spi” where <userid> is your user ID. You may need to log out and back in after making the
Hope this helps!
1 of 1 people found this helpful
John is absolutly correct as to enabling the SPI functionality
I have never needed to worry about the group membership in all the PIs I have worked with though so I doubt you should need to do this but at least you have the info incase you do
I have a few videos on using the Raspberry PI, SPI etc with various devices
Hope you find it helpful
i followed the videos and everything is fine, but i am not able to use the spidev libiary.
Is there an other way using the Gertboard SPI?
Thank you for your help
I completly reinstalled the pi, and reinstalled it like Peter's first video.
Than i installed spidev 3.0.
And it works!!!
I guess my problem was about an old spidev version which wasn't compatible anymore. Installing a new version didn't bring an improvment because the old one was still installed.
For spidev 3.0 installation i used this tutorial http://www.raspython.org/de/installation-des-serial-peripheral-interface-bus-spi-auf-einem-raspberry-pi/
thanks for your help! I already did those steps, but when i check with the command “ls -l /dev/spi*”, there is only /dev/spidev0.1 shown.
Any ideas wh the spidev0.0 is missing?
I want to use the ADC on the Gertboard. I use the raspberry pi 2 b and have the kerneversionl 3.18.11. Raspian is installed and update and upgrade are already done.
No my problem:
The example code crashed at the very beginning. The Problem ist about the command "import spidev". I tryed this tutorial: http://www.raspython.org/de/installation-des-serial-peripheral-interface-bus-spi-auf-einem-raspberry-pi/ and many others, but i can't solve the problem.
I always get the message: IMPORTError no module named spidev!
Is there anyone who got the same problem and already solved it?
Thank you very much