Installing GrovePi Module on Raspberry Pi [SOLVED]

Hey,
Can you connect the temperature sensor to port A0 and run the grove_analog_read.py with port as 0 and 1 and post what you get here.

-Karan

Dear Karan, please find the pic.

Hey,
It does look like that your GrovePi+ is not working properly for some reason and I am not sure why.

Can you contact us through our contact page, under “General Questions and Feedback”http://www.dexterindustries.com/site/?page_id=65 and we’ll send you a replacement board ASAP. Can you just add a link to this forum post so that it easier for us to track the replacement.

Sorry for all the troubles.

-Karan

Dear Karan

Thank you very much for your help. I have already sent the message.

Hi. I have the same problem. Do you think that it is board problem?

Hey bastiao,
Can you describe a bit more about the problem that you are facing and what all have you tried.

-Karan

Hi, I have the same problem too.
The output work (testet for LED and really). But not one of all my sensors work (ultrasonic, light, temperature, sound).
I have installed the setup.py and made the firmware update (1.2.2)
“sudo i2cdetect -y 1” give 04

Thank you
Thorgrimm

Hey Thorgrimm,
Can you try the firmware version 1.1 from here: https://github.com/DexterInd/GrovePi/tree/master/Firmware . Just run v1.1 and see if that works. What is the usual output when you run the programs for the sensor. Can you post a picture of your setup along with the code and the output that you got.

Thanks,
Karan

Hi Karan
I reinstall Raspbian on the SD card
trying Option 1 and Option 2. Same
I tested with V1.1. Same
I tested with grovepi_repair_package.zip (http://www.dexterindustries.com/forum/?topic=analog-sensors-not-working)
Same result as eme43sap
pi@raspberrypi ~/Desktop/FIRMWARE $ sudo ./firmware_update.sh
Updating the GrovePi firmware

Firmware found
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "grove_pi_fw_1_2_2.hex"
avrdude: input file grove_pi_fw_1_2_2.hex auto detected as Intel Hex
avrdude: writing flash (14480 bytes):

Writing | ################################################## | 100% 9.31s

avrdude: 14480 bytes of flash written
avrdude: verifying flash memory against grove_pi_fw_1_2_2.hex:
avrdude: load data flash data from input file grove_pi_fw_1_2_2.hex:
avrdude: input file grove_pi_fw_1_2_2.hex auto detected as Intel Hex
avrdude: input file grove_pi_fw_1_2_2.hex contains 14480 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 6.88s

avrdude: verifying …
avrdude: 14480 bytes of flash verified

avrdude: safemode: Fuses OK

avrdude done. Thank you.

Testing Firmware version and analog read

GrovePi has firmware version:
Traceback (most recent call last):
File “grove_script.py”, line 3, in <module>
print “GrovePi has firmware version:”, grovepi.version()
File “/home/pi/Desktop/FIRMWARE/grovepi.py”, line 218, in version
return “%s.%s.%s” % (number[1], number[2], number[3])
TypeError: ‘int’ object has no attribute ‘getitem

Grove Pi is broken ?

Thanks,

I’m having the same problem as this. I have managed to get the LED blink test to work by upgrading the firmware but no sensors on the board are working. Is there a resolution to this?

Hey jbb352,
Can you describe more about the problem that you are facing. What sensors have you tries and what output did you get. Also it would be great if you could attach some pictures of the the sensors connected to the GrovePi.

-Karan

Have the same problem with my GrovePi :frowning:

Though digital relay works ok, but all other stuff doesn’t

light sensor sends values after like a hundred errors

looks like:

Error
Error
Error
Error
Error
Error
Error
Error
Error
Error
Error
Error
Error
Error
sensor_value = 345
Error
Error
Error
Error
Error
Error
Error
Error
Error
Error
Error
Error
Error
Error
Error

Hey askimer,
Can you describe a bit more about the problem that you are facing. What sensors have you tried on which ports . Also it would be great if you could attach some pictures of the the sensors connected to the GrovePi. Can you run this: https://github.com/DexterInd/GrovePi/blob/master/Software/Python/grove_firmware_version_check.py and let us know what you get.

-Karan

Hey,
We were able to replicate the problem at our end and it looks like it was a problem with the fuses which were burnt on the GrovePi. Can you try running the script that I have attached (Make the script executable sudo chmod +x grove_setup.txt and run it sudo ./grove_setup.txt.) and let us know if the problem goes away for you.

-Karan

Finally I could fix this problem:

========================================
GrovePi has firmware version:
Traceback (most recent call last):
File “grove_script.py”, line 3, in <module>
print “GrovePi has firmware version:”, grovepi.version()
File “/home/pi/Desktop/FIRMWARE/grovepi.py”, line 218, in version
return “%s.%s.%s” % (number[1], number[2], number[3])
TypeError: ‘int’ object has no attribute ‘getitem

After spending the whole day trying to fix the GrovePi+, as soon as I ran the file grove_setup1.txt attached the card showed the version again:

pi@raspberrypi ~ $ sudo python ~/Desktop/GrovePi/Software/Python/grove_firmware_version_check.py
(‘GrovePi has firmware version:’, ‘1.2.3’)

My GrovePi+ worked yesterday but there was some errors reading sensors so I followed you suggestion to burn your own image in a new SD but it didn’t work and when I returned to my initial image the card reported the above mentioned error. I tried everything I had done before but it didn’t work until I upgraded the firmware with the new version.

Enough for today. Tomorrow I’ll check the sensors.

Toni

This is great news Toni! I’m very glad to hear that this has (hopefully) solved the problem.

When you run the grovePi on your image, have you run the install script on your image?

Yes of course,

I ran several times…

sudo python /home/pi/Desktop/GrovePi/Software/Python/setup.py install

…but it didn’t work.

That just installs python globally. How about the directions that are here:

http://www.dexterindustries.com/GrovePi/get-started-with-the-grovepi/setting-software/

In particular the part about running install.sh