Oled is glitching

Hello guys,

I mounted radxa sata top board to radxa sata hat and it first did not work. Therefore I bought other unit and this on has fan working but oled screen is glitching.

I see it in i2c being detected however the values are shifted, or veeery dim, or not showing at all. Also I think that button is not working at all. When I press it, the screen is not going to next values (or at least I do not see anything since it is not working)

Could someone help me get it to work ?

Also I am using raspberry pi 5,

Thanks for any help

Were those used or new? Do You still have both and are they working differently?
If it’s hardware issue then You can just compare both each other. If You don’t have working set yet it may be just software, then as always run oled script manually to see if there are any warnings or errors.

Hi, both boards were completely new. One did not even start when i plugged the power (The fan should at least start initiate after plugging the power cable to the board)

The second top fan/oled hat was working when plugged the power in. Fan started, however oled is glithing. I have also video but i am not sure i can pull it up here.

When i start only /usr/bin/rockpi-penta/oled.py I will get this error :

AttributeError: module ‘adafruit_blinka.microcontroller.bcm2712.pin’ has no attribute ‘RESET’

as far as I remember mine don’t spin up on power,

You should be able to do that or just link to youtube.

I’m not sure if You can run just oled part alone, what about service script?

Here is the video what it does. It is also starting and shutting down the fan. It behaves like the config/official rock pi-penta.service is not even working properly.

I have enabled i2c and spi in raspi-config

This looks like some kind of power issue,
have You tried usb_max_current_enable option in /boot/firmware/config.txt ?
can You try without anything else connected? (disks, usb devices etc)

hi i tried but oled is still not working … still glitching as shown in the video …

I tried apt full-upgrade and steps like in here but still i got nothing. Problems with install of software Pi5 SATA HAT Top Board

I am using official radxa 60w 12v power supply plugged directly to the SATA Hat. From this pwoer supply is powered whole HAT, Raspberry pi 5 and Top board with fan/oled.

I have no other external peripherals connected.

as a note i also tried rockpi-penta-0.2.3.deb version just in case, it did not work.
Another thing is that when i installed the deb package i got warning:

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. 
It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Created symlink /etc/systemd/system/multi-user.target.wants/rockpi-penta.service → /lib/systemd/system/rockpi-penta.service.
N: Download is performed unsandboxed as root as file '/home/pi/rockpi-penta-v0.2.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

in gpiodetect i see gpiochip0 [pinctrl-rpi] (54lines)
gpiochip 10/11/12/13 [gpio-brcmstb@numbers]

in i2cdetect -y 1 I see 3c at 0x3c position

Do You have anything else than pi5 to test it? Like some older pi4?

unfortunately no, is it possible i have second faulty unit, where fan works but OLED is being not properly powered or something ?

There is always some small chance that it was broken or damaged on transport, but I would not assume this too quickly. Also there may be more than one revisions as well as production batches that can include different but compatible parts.
Is OLED ok on first one?

On the first board it doesn’t even gets any impulse. Meaning when I plug it in and plug the power to sata hat, the fan is not started. I do not see it i2c bus being detected. Therefore oled also did not light up.

The strange thing is that with the second board the oled is showing something but it’s kinda disrupted (as in video).

Oled screen is simple i2c device, it’s just wired into GPIO, so You are able to check it directly plugged to GPIO with right pinout and without HAT itself. Same for FAN,
It would be strange to hit two devices faulty. If You have multimeter You can easily find out if anything is wrong with connection or voltage.