Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: i2c detection #299

Open
1 task done
bloop16 opened this issue Jan 15, 2025 · 6 comments
Open
1 task done

[Bug]: i2c detection #299

bloop16 opened this issue Jan 15, 2025 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@bloop16
Copy link

bloop16 commented Jan 15, 2025

What happened?

Hi,

Trying to get my pwnagotchi running with PiSugar S and Waveshare V4 display .
System is running fine, internet connection is working.
But since hours im not able to get i2c detecting the PisugarS board.

pwnagotchi 2.9.5
RaspberryPi Zero Wh (32bit)
PiSugarS

i2c is enabled in raspi-config.
Installed i2c-tools to check with i2cdetect -l
i2c-1 i2c bcm2835 (i2c@7e804000) I2C adapter
i2c-2 i2c bcm2835 (i2c@7e805000) I2C adapter

Is it normal that it shows 2 different bus?

also checked i2cdetect 1 and i2cdetect 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

no device is showing up.

  • already made a rpi firmware update
  • disconnected from power for about 5min
  • set dtparam=i2c_arm=on and dtparam=i2c1=on in /boot/firmware/config.txt

Is it possible that the PiSugarS Board isn`t compatible?'

Thanks for helping!

Version

2.9.4-2

3rd Party Hardware

Yes

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bloop16 bloop16 added the bug Something isn't working label Jan 15, 2025
@scansonic
Copy link

scansonic commented Jan 15, 2025

try
sudo apt-get install python3-smbus i2c-tools
sudo i2cdetect -y 1

@bloop16
Copy link
Author

bloop16 commented Jan 15, 2025

try sudo apt-get install python3-smbus i2c-tools sudo i2cdetect -y 1

python3-smbus got installed to.
But didn`t make any change after reboot

@hb9eue
Copy link

hb9eue commented Jan 15, 2025

If you bought your PiSugar from Aliexpress advertised as 'works with Pwnagotchi' you might have got the same as I got which works, yes, but which does not communicate via i2c and only provides one button wired to gpio 3 so you can't even use it to shutdown on low battery. The only use of the button is to manually shutdown the raspi and also to turn it on.

@bloop16
Copy link
Author

bloop16 commented Jan 15, 2025

If you bought your PiSugar from Aliexpress advertised as 'works with Pwnagotchi' you might have got the same as I got which works, yes, but which does not communicate via i2c and only provides one button wired to gpio 3 so you can't even use it to shutdown on low battery. The only use of the button is to manually shutdown the raspi and also to turn it on.

Thanks! well bought on Amazon, but that could be the problem. Ordered an PiSugar 3 to check if it makes a difference.

@rocketman887
Copy link

rocketman887 commented Jan 19, 2025

Hello, I am getting the same issue but on different setup, my setup is

Raspberry Pi Zero 2WH 64bit
Waveshare UPS_HAT_C
Pwnagotchi 2.9.4 and 2.9.5 both

The battery is powering the Raspberry Pi but the lack of knowing the battery capacity is the issue
I bought it from reseller the hardware shouldn't be faulty right? Can I check in some other way if the HW is at fault?

Thank you!

@rocketman887
Copy link

rocketman887 commented Jan 19, 2025

I temporarily resolved my issue by flashing random version and after 5 repetition of flashing the newest image I got it working, but when I rebooted and the problem came back. Might be the way I power it for the first time? I power through data and there is no LED indication neither USB communication, then I need to unplug and plug again, there is the generating SSH keys part because I peeked monitor then it goes reset and then I need to restart it once again to access the USB network

Edit:
It was HW problem, still dont know how but the spring pins which are supposed to connect to the i2c from below the board were somehow not conducting even when they were physically touching, I had to take it off and poke the pins with my pen and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants