GoPiGo3 with raspberry pi java examples don't work

Hi,
I’m trying to run the java examples and test the java programs. However it’s not working. I looked at the logs and it gives warning about “low voltage detected”. There are no errors but command to “move forward”, “turn left”, “right led on” etc. doesn’t work. Any ideas what could be wrong?

Thanks in advance

2 Likes

Please run the following:

sudo ~/Dexter/GoPiGo3/Troubleshooting/all_tests.sh

and tell us what you see for voltages. Here is mine:

sudo ~/Dexter/GoPiGo3/Troubleshooting/all_tests.sh 
===============================
GoPiGo3 Troubleshooting Script
===============================

Checking for hardware, and checking hardware and firmware version.
==================================================================
Manufacturer    :  Dexter Industries
Board           :  GoPiGo3
Serial Number   :  xxxx
Hardware version:  3.x.x
Firmware version:  1.0.0
Battery voltage :  7.975
5v voltage      :  5.061

Log has been saved to Desktop. Please copy it and send it by email or upload it on the forums

Thank you for your response. I think it’s not the issue with voltage. I’m trying to run pi4j examples and even they are not working. The “gpio” version is 2.5.0.

===============================
GoPiGo3 Troubleshooting Script

Checking for hardware, and checking hardware and firmware version.

Manufacturer : Dexter Industries
Board : GoPiGo3
Serial Number : F8A0C23351514751544A2020FF0B1A31
Hardware version: 3.x.x
Firmware version: 1.0.0
Battery voltage : 9.843
5v voltage : 4.935

Log has been saved to Desktop. Please copy it and send it by email or upload it on the forums

This is what I see when I run ListenGpioExample.

pi@dex:/opt/pi4j/examples $ ./run ListenGpioExample

  • sudo java -classpath ‘.:classes::classes:/opt/pi4j/lib/’ ListenGpioExample ListenGpioExample
    <–Pi4J–> GPIO Listen Example … started.
    … complete the GPIO #02 circuit and see the listener feedback here in the console.

Thanks again

2 Likes