I downloaded and installed the modified Raspbian image. After that, I update using sudo apt-get update and sudo apt-get upgrade and then pulled from the latest GoPiGo repository. When I boot the RPi, the right wheel moved a little bit. When I run sudo python basic_test_all.py and type in w or any other movement commands, it simply doesn’t move. Besides, when I type in v for voltage, it says -1 V. I don’t have any experiences with hardware like GoPiGo. Has anyone seen this before or could give me some hint?
Hi input,
Thanks for the reply! I just replaced with a new pack of 8 AA batteries. Now, it still won’t respond to movement commands in basic_test_all.py. But it says 0.0 V when I type in v for the voltage.
Hi Karan,
Thanks for the reply! The connection between Raspberry Pi’s pins and GoPiGo board’s socket is a little bit loose.
If the connection is loose, only the green light on Raspberry Pi board is on, but I can still ssh onto Raspberry Pi. The voltage is 0.0 V and the output of sudo i2cdetect -y 1 is:
After I fix the loose connection, both green light and red light on Raspberry Pi board are on. Then the voltage is -1 V and the output of sudo i2cdetect -y 1 is:
Can you attach a picture zoomed in on the connector of how the Raspberry Pi is connected to the GoPiGo. There might be a change that the GoPiGo is not connected properly.
Can you also run: avrdude -c gpio -p m328p and post what it shows. This would show if the Raspberry Pi is able to detect the chip on the GoPiGo.
Besides the command line output, the car’s right wheel moved a little bit as I run avrdude -c gpio -p m328p.
I kind of feel that the left motor is not properly connected, but I do not know how to verify that. What do you think?
Thank you!
–
Edit: When I tried twice, it outputs:
pi@raspberrypi ~ $ sudo avrdude -c gpio -p m328p
avrdude: AVR device not responding
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
Looks like there might be a problem with the fuse or the firmware on the GoPiGo.
Make sure you disconnect the wires going to the motors from the GoPiGo board before starting.
First burn the fuses, double check the commands before you run them: avrdude -c gpio -p m328p -U lfuse:w:0x7F:m , avrdude -c gpio -p m328p -U hfuse:w:0xDA:m and avrdude -c gpio -p m328p -U efuse:w:0xFD:m.
After this, go to the firmware folder in the GoPiGo folder on Desktop (it should have a similar file structure): https://github.com/DexterInd/GoPiGo/tree/master/Firmware , make the update script executable: sudo chmod +x firmware_update.sh and then run it sudo ./firmware_update.sh.
Try running the i2cdetect detect command and the basic script and let us know if that works.
Hi Karan,
Thanks for the reply! I can successfully run avrdude -c gpio -p m328p -U lfuse:w:0x7F:m and avrdude -c gpio -p m328p -U hfuse:w:0xDA:m, but avrdude -c gpio -p m328p -U efuse:w:0xFD:m. The output of the last command is:
pi@raspberrypi ~ $ avrdude -c gpio -p m328p -U efuse:w:0xFD:m
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.00s
avrdude: Device signature = 0x1e950f
avrdude: reading input file "0xFD"
avrdude: writing efuse (1 bytes):
Writing | | 0% 0.00s ***failed;
Writing | ################################################## | 100% 0.03s
avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0xFD:
avrdude: load data efuse data from input file 0xFD:
avrdude: input file 0xFD contains 1 bytes
avrdude: reading on-chip efuse data:
Reading | ################################################## | 100% 0.00s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0xfd != 0x05
avrdude: verification error; content mismatch
avrdude: safemode: efuse changed! Was fd, and is now 5
Would you like this fuse to be changed back? [y/n]
I chose n and went through the firmware update script later. After that, the output of i2cdetect command is as below:
HI,
I looked at your picture that you attached and it looks like you did not push the pins from the raspberry pi well into the connector from the GoPiGo.
Did you see the video from the assembly https://www.youtube.com/watch?v=9FLtFkNjwWg
Before you push on the raspberry pi you have to turn the power off on the GoPiGo board.
good luck
Hi Karan,
I still can’t see a 08 in the output of sudo i2cdetect -y 1 like you mentioned before. Besides, thanks for the picture. I noticed your pins are (almost) fully pushed into the socket. I am wondering if you are also using Pi 2. As you can see in the new picture I attached, it’s physically impossible for me to push the pins further down.
Thanks,
Eric
Hey,
Can you send a picture of how you are connecting the GoPiGo and the Raspberry Pi. Also, how are you powering the whole thing and what output do you get when you run the firmware update script from here: https://github.com/DexterInd/GoPiGo/tree/master/Firmware . Make the script executable: sudo chmod +x firmware_update.sh and then run it sudo ./firmware_update.sh . Make sure the motors are disconnected before you run it.
pi@raspberrypi ~ $ sudo ./firmware_update.sh
ATTENTION! Important!
BEFORE PROGRAMMING THE GOPIGO FIRMWARE, DISCONNECT THE MOTORS.
Please confirm that you’ve disconnected the motors.
Have you disconnected the motors before programming the firmware? (y/n)
y
Updating the GoPiGo firmware
Thu Sep 17 01:46:40 UTC 2015
avrdude: AVR device initialized and ready to accept instructions
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 "fw_ver_13.cpp.hex"
avrdude: error opening fw_ver_13.cpp.hex: No such file or directory
avrdude: input file fw_ver_13.cpp.hex auto detected as invalid format
avrdude: can’t open input file fw_ver_13.cpp.hex: No such file or directory
avrdude: write to file ‘fw_ver_13.cpp.hex’ failed
Hey,
It looks like the firmware file that you have on your local system might be corrupted. Can you delete your local repository and clone the github repository on Deskktop: git clone https://github.com/DexterInd/GoPiGo.git . Once this is done, go to the firmware folder and make the script executable and try running the firmware update script again from https://github.com/DexterInd/GoPiGo/tree/master/Firmware . Can you also check if there is the firmware file "fw_ver_13.cpp.hex"present in the folder before you start.