Ok.
I’m not sure I’m following you. . .
Does this enable Pi-5 support?
At least something’s happening!
Ok.
I’m not sure I’m following you. . .
Does this enable Pi-5 support?
At least something’s happening!
Yes indeed, it does enable Pi5 support although we don’t recommend it unless you have a massive need for it.
The Pi5 generates heat and there isn’t enough room for a good heatsink, and definitely not for a fan.
Also the power button on the Pi5 interferes with the one on GoPiGo (but that can be worked around, just don’t use the power button on the Pi5).
I see I had forgotten to mention that this now all works on Trixie (and Bookworm but not older versions).
No wonder you couldn’t follow
It’s all on me. Too tired after pushing this massive update.
Massive work!
Should this work on older Pi boards?
it’s been tested for 3B+ and up, but I do believe the 2 would work too. However, it will not work on older versions of the OS. You do need to go with Trixie
And, yes, massive amount of work.
Trixie PiOS up, ready to “pip pip-er-ray!”
Oops, no cigars for Dave!
Ref:
I’m jealous. I’m too far away from my robots to test these configurations.
And I want to try it with a Pi-5.
Grrrr!
just enjoy the fact that CyclicalObsessive is stuck debugging with me…
trixie_v1.0.1 is out.
For anyone still troubleshooting, it can also help to verify the software versions on both the Raspberry Pi and GoPiGo, since a mismatch there can sometimes cause odd behavior. A clean update and reboot solved a similar issue for me.
Given: A generic Raspberry Pi O/S Trixie installation.
I want a generic installation of the GoPiGo and sensor software/libraries.
I looked at the zip/targz files and there is no ./Dexter/GoPiGo3 library structure to place within the home directory.
The original script included an install script that would curl-install the entire GoPiGo structure on the robot.
How exactly do I install the entire Dexter robot structure on the robot?
If you have not already run the Option A install, you can use Option B:
If you have already done Option A, then:
The new install does not require /home/pi anymore so you can clone the old /home/pi/Dexter anywhere like “~/Dexter/” (or if you are user “pi” it will end up in /home/pi/Dexter/ just like always was)
cd ~
mkdir Dexter
cd Dexter
git clone https://github.com/DexterInd/GoPiGo3.git
Note:
Thanks!
What’s the difference between mr-gogigo3 and what happens when I run git clone https://github.com/DexterInd/GoPiGo3.git?
Is the ~/Dexter directory, or a rsync from an older installation necessary?
I am assuming that this will install the easySensors libraries too, right?
I tried a test-install and noticed it creates a virtual environment. How does that affect the use of the robot compared to the way we used it before in a non-virtualized environment? Do I have to “enter” the virtual environment first?
4a) How does that affect the use of the robot compared to the way we used it before in a non-virtualized environment?
python3 xyz.py because it will run /usr/bin/python3 which does not have the GoPiGo3 packages. You must use the path to the python3 interpreter inside the virtual environment if you are not in the virtual environment:(gopigo3) ubuntu@U26LDave:~/KiltedDave$ whereis python3
python3: /usr/bin/python3 /usr/lib/python3 /etc/python3 /usr/share/python3 /home/ubuntu/.venv/gopigo3/bin/python3 /usr/share/man/man1/python3.1.gz
(gopigo3) ubuntu@U26LDave:~/KiltedDave$
If you ever find yourself looking at:
python3
>>> import easygopigo3
package easygopigo3 not found
you are not in the virtual environment, and should be.
4b) Do I have to “enter” the virtual environment first?
~/.bashrc# >>> GoPiGo3 virtual environment >>>
if [ -f "/home/ubuntu/.venv/gopigo3/bin/activate" ] && [ "$VIRTUAL_ENV" != "/home/ubuntu/.venv/gopigo3" ]; then
. "/home/ubuntu/.venv/gopigo3/bin/activate"
fi
Note I named my virtual environment gopigo3, I hate the default (venv).
I want to know what virtual environment I am in - virtual environments have been “Pythonic” forever and we GoPiGo3 folk have been the Python luddites. @cleoqc has done an amazing thing here with the Trixie install and Python install. So many hoops to jump through (for us) so just let the install autostart in the venv and you will never know the difference.
Oh and is or was something that moved down a level in the dist packaging - I can’t find it right now. There were “compatibility” packages that imported the new location - I don’t see it when I roll through the source on git right now. maybe that is no longer.
I installed the GoPiGo system onto Raspberry Pi O/S Trixie, (as opposed to Ubuntu, etc.), and I have some interesting results.
I discovered a fault with the Waveshare epdconfig.py driver, which is the driver that handles the hardware abstraction for the rest of the Waveshare drivers. It turns out that when the Waveshare driver grabs and releases the CE0 SPI chip-enable pin, it doesn’t drive the pin high, (inactive), and since CE0 is stuck low, CE1, (the robot’s SPI control pin), cannot do anything and the robot appears to “hang”.
I have been working on a mutual SPI mutex for both the robot and whatever else wants to use it using the dexter mutex class as the base for a SPI mutex.
I made a minor edit to the easyGoPiGo class library to change the default eye color/brightness from (0, 255, 255) to (0, 10, 10) which is the same color, but much less bright which will both save battery power and increase the lifetime of the eye neopixels, as it produces about 20% of the brightness using only 4% of the power.
I tweaked the antenna service to change the WiFi antenna beacon color from purple to yellow to make it consistent with the colors used by the GoPiGo O/S software when it is in its external WiFi connection mode.
I am going to publish my “easyEPaper” library files for the three Waveshare displays I have and will produce more when I get additional displays.
P.S.
I still think all of this “venv” stuff is Much Ado About Nothing.
P.P.S.
I still have a lot of backed-up reading to do. . . .
Update:
I have discovered an interesting power issue with GPG3 installed on Raspi-Trixie - the power button isn’t being handled correctly causing it to shut down too quickly, cutting the shutdown process off at the knees.
On Buster, (and I presume earlier versions), the “running” pin was held high by the Raspberry Pi until it finished shutting down - then the “dead” Pi released the pin and the robot powered down. Trixie’s power script specifically releases it - very early - which causes a potential for a crashed system.
I have created a new thread to discuss it at:
Yes, the examples are quite deep in the virtualenv, there’s no real workaround to that when installing via pip, unfortunately.
Virtual environments do introduce an extra level of difficulty, but we just can’t ignore the fact that Python is irrevocably making them mandatory.
That’s why I also prepared an install script for those who prefer to clone the repo. Cloning the repo also brings in all the projects (they are not in the pip installable library)
Yes—activate the venv in the shell that runs your Python code: source ~/.venv/gopigo3/bin/activate (adjust if you used a different path), then run the example. For systemd/autostart services, activation won’t happen automatically, so point ExecStart at the venv’s Python interpreter directly, e.g. /home/pi/.venv/gopigo3/bin/python your_script.py.
This is from the bot - and no one asked about this - but I’m quoting it for posterity - someone may be wondering how to do this, (and they probably won’t search to see if there is an answer but it will be here).
No way I’m going to heart it!
BOTS ![]()