Have the same problem
Error
Error
Error…
And the ultrasonic ranger is making clicking sounds
Hi, I have got the same problem too. When I run the grove_ultrasonic.py It keeps caught by the TypeError.
Anyone have got the solution. Thanks!
What I am using:
- Raspberry Pi 3 Model B+
- GrovePi+
Hi @CRAZZZZZY,
Can you run grovepi.version()
? What do you get by running this?
And just so you know, we are preparing to release a new version for the GrovePi’s firmware that only targets bug-fixes. We might give anyone who runs into problems a chance to test the new firmware and see if it works better than the previous.
Thank you!
I have enabled the debug mode, but keeps receiving the following errors:
IOError
IOError
IOError
IOError
IOError
IOError
IOError
IOError
IOError
IOError
Traceback (most recent call last):
File "./grove_ultrasonic.py", line 42, in <module>
print (grovepi.version())
File "/home/pi/Desktop/GrovePi/Software/Python/grovepi.py", line 266, in version
return "%s.%s.%s" % (number[1], number[2], number[3])
TypeError: 'int' object has no attribute '__getitem_
Hi @CRAZZZZZY,
I’m pretty sure the GrovePi has no firmware flashed onto it.
Just to be sure about this, type in the command line i2cdetect -y 1
and see if there’s a device at 0x04
address.
Either way, try flashing it and see if it then works.
By the way, you can also use ``` (backticks) to enclose the code so that you can format it properly. Check your response because I have edited yours.
Thank you!
Thanks Robert,
I have ran the i2cdetect -y 1 and got the following result
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – 04 – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --
Also, I have tried executing firmware_update.sh. However, it encountered the following message:
avrdude: Can’t find programmer id “gpio”
Isn’t that I have missed something? Thanks.
Hi @CRAZZZZZY,
Either you have tried to install the GrovePi manually, or you’re using a very old version of Raspbian For Robots.
I would run the following command if I were you:
curl -kL dexterindustries.com/update_grovepi | bash
Once you do that, try flashing the firmware again.
Let me know how this goes for you.
Thank you!