Hi everyone,
Finally got around to assembling my GoPiGo last night. Used it with a RaspPi B+, upgraded to firmware v1.1, got wifi connectivity, and started ‘driving’ the GoPiGo around last night with the computer as well as the iPad.
This morning when I switched the GoPiGo back on, only one red LED on the GoPiGo board lit up. The motor on that corresponding side also wouldn’t work, only one wheel spins on the other side (the LED on that side lights up too). What could the problem be? The GoPiGo doesn’t move anymore since one of its motors doesn’t seem to be taking in any power.
The GoPiGo moves fine just using the basic_test_all.py script.
It seems that the problem is with the Python Example code under ‘Browser Streaming Robot’. Using the mouse control on the webpage only moves ONE wheel and not the other, so one wheel just spins and the GoPiGo refuses to budge. Video streaming works fine though, but is a bit pointless unless the robot moves.
Going to have to try and debug this - if anyone has a fix for this already, PLEASE LET ME KNOW. Thanks.
First, it’s great to hear that you got it up and running! We would love for you to share any video or pictures you have of it working.
Second, sorry to hear about the challenge with the motor movement. Since you indicate that basic control seems to work ok, it’s probably not a hardware issue. Is it possible to check that the python code wasn’t corrupted or damaged (possibly by a restart or shutdown)? Are there any differences between the code you’re running and the code up on github?
I went to DexterIndustries/GoPiGo on github and downloaded all the code under the /GoPiGo directory (on the Pi) again and am still experiencing the same issue. I also got an IOError message while only one wheel spins and the other is motionless. The camera works fine though.
I have to power off the GoPiGo and restart it before the basic_test_all.py script will work again… rebooting the Pi itself (to free GPIO allocations) doesn’t seem to work.
When I first set up the GoPiGo, I did what that page suggested and updated my firmware to v1.1. That’s what it said on the webpage too, so I had not realised it was up to v1.4 now. Seems like a previous poster on this forum has the exact same problem - how do we go about updating the firmware to v1.4?
I think the fastest way to correct this is to connect your pi to the internet, change directory to the GoPiGo directory, and perform a git pull:
sudo git pull
Once you have the directory updated, you’ll see under GoPiGo/Firmware/ there’s a file called “firmware_update.sh”
Run this file using sudo ./firmware_update.sh
A few thoughts:
– Disconnect your motors again.
– Check the firmware version after you run it.
I have the same problem - updated the firmware multiple times but still shows up as Firmware version 1.1
Battery Voltage 9.92 V
Also once I connect the motors I am not able to get the wheels to move, there is no movement and no red leds at the back light up
So after running the Browser Control program again, I was successfully running the GoPiGo without any problems.
Your behavior, of a motor going to full power and then the GoPiGo being unresponsive until restart sounds like the firmware on the GoPiGo is crashing. One of the things we did with the last firmware rewrite was to implement some stuff to prevent this.
One of the things we had to have done to make the new firmware work is set the low fuse to a new value.
Can you disconnect the motors and then run in the command line:
avrdude -c gpio -p m328p -U lfuse:r:-:i
When we run it, on a GoPiGo that works with the browser bot, we get
Did you see the video I posted on your FB page? That was the GoPiGo running the Browser Streaming script… going around in circles because one of the wheels/motors would not work. I will try it again and let you know my results tomorrow! Cheers.
Please advise if I should go thru the above to get my GoPiGo to respond as I do not get any response - all leds on RaspPi light up - the red leds on the GoPiGO do not and the motors do not respond.
I have followed all the instructions and as noted I have v1.1 of the firmware
Hi,
Can you try replacing these 3 files in the browser streaming example and let up know if it helps. Just use the left joystick to control the GoPiGo.
The main change in thse three files is that the controls for the joystick have been modified to make the GoPiGo move forward, back, left and right only if a the joystick if at a position 75% away from the center. The other joystick is disabled. This should help to control the bot easily with a desktop browser.
I just replaced the files in Browser Streaming Robot with the ones in your zip - MUCH better! Both wheels are working now, however the movement seems a bit weak and turning is still a bit flaky, might be a problem with the batteries running out of juice. Might have to use some Li rechargeables instead. Will keep you all posted, but this is definitely an improvement!
Now for the speed issue, the GoPiGo is not running at a 10% and is at more like 60%.
There is a setting at line 65 in robot_controller.py: gopigo.set_speed(150). Change the 150 to any speed b/w 0 and 255 and it should help with the speed problem.