Jump to content

Recommended Posts

Posted

Alright so I am trying to use this OLED display: https://www.amazon.com/AITRIP-Display-SSD1306-3-3V-5V-Arduino/dp/B08JPYJ35Y?th=1 with Armbian(minimal) on my orange pi zero 2w, but I just cant get the i2c1 bus to detect it.

Here's some more details:

uname -r returns: 6.12.23-current-sunxi64

 

cat /boot/armbianEnv.txt returns:

verbosity=1
bootlogo=false
console=both
disp_mode=1920x1080p60
overlay_prefix=sun50i-h616
rootdev=UUID=adb61282-df86-4116-9688-e94c56913687
rootfstype=ext4
overlays=i2c0-pi i2c1-pi
param_i2c1_pin_sda=3
param_i2c1_pin_scl=5
user_overlays=
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

 

sudo i2cdetect -l returns:
i2c-0   i2c             DesignWare HDMI                         I2C adapter
i2c-1   i2c             mv64xxx_i2c adapter                     I2C adapter
i2c-2   i2c             mv64xxx_i2c adapter                     I2C adapter
i2c-3   i2c             mv64xxx_i2c adapter                     I2C adapter
i2c-4   i2c             mv64xxx_i2c adapter                     I2C adapter

 

sudo i2cdetect -y 1 returns:
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

 

Here's a picture of the display:

0?ui=2&ik=ddb40b3198&attid=0.1&permmsgid

 

Here's a picture of the pin layout:

Screenshot2025-10-31095511.thumb.png.894a0374e1b53c9ad766bdaca54df688.png

 

VCC is going to 3.3v, GND to GND, SDA to pin 3, and SCK to pin 5

 

Thanks!

Feel free to ask for more details!

Posted

Hi,

 

can you confirm that the OLED is working connecting it to another device  (raspberry, Arduino)?

It should be properly powered, cables should be checked if ok.

Also, check in the spec if pull-up resistors are needed.

 

You can force a scan of all i2c addresses again like this:

# Force scan all addresses
for i in {0..127}; do 
  sudo i2cget -y 1 $i 2>/dev/null && echo "Device found at: 0x$(printf '%02x' $i)"
done

 

Posted

I tried on a RPI and it did indeed detect the OLED display.

 

I forced the scan:

# Force scan all addresses for i in {0..127}; do sudo i2cget -y 1 $i 2>/dev/null && echo "Device found at: 0x$(printf '%02x' $i)" done

 

and  it returned nothing

Posted

Is i2c-1 actually mapped out to i2c-1? It should be if the aliases are setup correctly.

 

Secondly even if the i2c bus is enabled, have the pins been successful muxed into i2c mode?

 

You should be able to check by: sudo cat /sys/kernel/debug/pinctrl/300b000.pinctrl/pinmux-pins | grep i2c

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines