PI2 and GoPIGo


#1

My PI2 will arrive on Wednesday.
What problems can I anticipate with my GoPIGo?


#2

Hey Papa Dilbert,

There is one issue with the motors we solved with software. This is pretty clearly explained in these posts below. I think you should take a look at these two posts:

http://www.dexterindustries.com/forum/?topic=grovepi-firmware-update-v1-2-2

and

http://www.dexterindustries.com/forum/?topic=gopigo-motor-not-working-one-starts-another-doesnt

Other than that, it should be a lot of fun! Be sure to post some pictures of your build!


#3

An update. We’ll have a blog post up tomorrow about this.

For now, you can download an updated Raspbian Image here:

http://sourceforge.net/projects/dexterindustriesraspbianflavor/files/


#4

I assembled my GoPiGo with my Pi 2. The only problem with the build is that the power connector from the battery pack to the GoPiGo is a bit too tall. The PI 2 bumps into it. A shorter 2-pin connector would solve this problem but I don’t think this is a show-stopper.

I attempted to run my first example. I got the message:
RuntimeError: This module can only be run on a Raspberry Pi

The following is a clip of the command execution

Traceback (most recent call last):
File “basic_robot.py”, line 23, in <module>
from gopigo import * #Has the basic functions for controlling the
GoPiGo Robot
File “/usr/local/lib/python2.7/dist-packages/GoPiGo-0.0.0-py2.7.egg/gopigo.py”,
line 20, in <module>
import RPi.GPIO as GPIO
RuntimeError: This module can only be run on a Raspberry Pi!
pi@raspberrypi ~/GoPiGo/Software/Python/Examples/Basic Robot Control $


#5

Perfect, glad someone has tried this!

These commands should get you up and going, if you have pip installed:

sudo apt-get install python-dev
sudo pip install -U RPi.GPIO
sudo reboot

I think! Can you give that a shot and see if it heals the issue?


#6

Reset on the pictures I think. They should be gone. Try again?


#7

This image shows the power connector that bumps into the PI2


#8

All the commands suggested above completed successfully.

I retried the example:

pi@raspberrypi ~/GoPiGo/Software/Python/Examples/Basic Robot Control $

sudo python basic_robot.py

Traceback (most recent call last):
File “basic_robot.py”, line 23, in <module>
from gopigo import * #Has the basic functions for controlling the
GoPiGo Robot
File “/usr/local/lib/python2.7/dist-packages/GoPiGo-0.0.0-py2.7.egg/gopigo.py”,
line 30, in <module>
bus = smbus.SMBus(1)
IOError: [Errno 2] No such file or directory

What else do I need to install?


#9

Hey,
You need to add these lines to your /boot/config.txt and reboot:

dtparam=i2c1=on
dtparam=i2c_arm=on

Tell us if this works.

-Karan


#10

I found this post it suggests to do the same thing.

I’m up and running. Baby you can drive my car…

Thanks for the help!