Check python works :
pi@raspberrypi ~/GrovePi/Software/Python $ python
Python 2.7.3 (default, Jan 13 2013, 11:20:46)
[GCC 4.6.3] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>>
ctrl-D out of python
pi@raspberrypi ~/GrovePi/Software/Python python grovepi_blink.py
Traceback (most recent call last):
File "grovepi_blink.py", line 3, in <module>
import grovepi
File "/home/pi/GrovePi/Software/Python/grovepi.py", line 21, in <module>
bus = smbus.SMBus(1)
IOError: [Errno 13] Permission denied
pi@raspberrypi ~/GrovePi/Software/Python
I was having trouble with my kit also but I found a solution.
First, the download has changed. Many of the docs here refer to grovepi_blink.py, but for me, this doesn’t exist. Instead, there is a grove_led_blink.py. None of the grovepi names exist in the Python folder anymore. So I used that one.
Next is sort of crazy. Perhaps somebody can explain. The grovepi kit I have includes a green, blue, and red LED and they are shipped in a little green bag with three parts. The cable, the led, and the board. You have to mount the led yourself. Normally these have a positive and a negative terminal with one lead being longer than the other. Well, that’s not the case. Anybody know how to tell the direction other than by trial and error?
Hope that helps somebody. 50/50 chance of getting it right and no harm done either way, but the led will simply not light unless you get it turned correctly.
Hey,
Thanks a lot ofr letting us know about the error in the GrovePi docs. We’ll update the docs asap.
The LED’s that we had usually had the positive side with a longer leg. I think that the ones you got with legs of equal length might have slipped through QA on Seeedstudio’s side. The easiest way to find out the polarity would be by trial and error. We’ll also update the docs so that people are not confused and do try both the sides.
Hey,
0x08 is the address used by the GoPiGo, can you just make sure that you are using running the firmware update from the GrovePi folder and that you have updated the GrovePi folder from the github repository.