Skip to content
  • Blog
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Community Forum

  1. Home
  2. Categories
  3. Blog articles comments
  4. New Adafruit generic OLED display driver for Raspberry PI

New Adafruit generic OLED display driver for Raspberry PI

Scheduled Pinned Locked Moved Blog articles comments
driver1.30.96i2ciic
53 Posts 20 Posters 52.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Meng QiM Offline
    Meng QiM Offline
    Meng Qi
    wrote on last edited by
    #13

    I've got the lm-sensors module in there, and the make on examples worked.

    But only still I can't get my Pi to recognize my oled screen, and I have another device on the i2c bus which works perfectly.
    I just ordered another oled (a seeed 96*96) to see if that would work.

    Thank you for your detailed reply!

    1 Reply Last reply
    • CharlesC Offline
      CharlesC Offline
      Charles
      wrote on last edited by
      #14

      Meng,

      Even if Seeed OLED will be seen, it won't work because it"s another driver in it (SSD1308) and I didn't port this one in the example code, something I wanted to do but never had time do do it.

      By the way Seeed OLED 96x96 is the best OLED I ever saw, excellent display and gray level.

      1 Reply Last reply
      • CharlesC Offline
        CharlesC Offline
        Charles
        wrote on last edited by
        #15

        Meng
        did you tried your non working OLED on an Arduino with I2CScan sketch just to see ?

        1 Reply Last reply
        • Meng QiM Offline
          Meng QiM Offline
          Meng Qi
          wrote on last edited by
          #16

          Hi, Charles,

          I've tested my oled with I2CScan, and it wasn't detected... maybe a broken one. And I have another oled screen here which can be detected on Arduino, but not on Pi.

          Here is a library by Seeed themselves : https://github.com/DexterInd/GrovePi/tree/master/Software/Python/grove_oled
          I'll see if that would work once the oled screen arrives. Happy to know that it looks amazing.

          1 Reply Last reply
          • CharlesC Offline
            CharlesC Offline
            Charles
            wrote on last edited by
            #17

            Meng,
            yeah Seeed library works fine on Arduino, but not sure there is a port on Raspberry Pi

            1 Reply Last reply
            • Meng QiM Offline
              Meng QiM Offline
              Meng Qi
              wrote on last edited by Meng Qi
              #18

              This 96*96 oled screen is detected by my Pi and it is working with Seeed's own library, and it would also put out stuff while running your oled_demo.

              Does your library has a manual? It doesn't looks like python when I peek into your library files... Sorry I am quite a beginner. Thank you.

              I use my Pi to generate sound, and if I do oled operations within the same piece of .py file that does sound, any oled writing operations would block the sound. But if I open 2 terminal instances (I am using SSH), and run sound code on one, oled code on another, it wouldn't block the sound. So it is certainly not a CPU speed issue...

              Why does this happen? And if I make my Pi running some python code at boot, how I can make the codes running like within multiple terminals?

              Thank you!

              1 Reply Last reply
              • G Offline
                G Offline
                gbona
                wrote on last edited by
                #19

                I also try to run it on RPi2 with an SPI OLED 128x64 and ran into the same problem. The program freezes in display.begin(). What can be wrong?

                1 Reply Last reply
                • CharlesC Offline
                  CharlesC Offline
                  Charles
                  wrote on last edited by
                  #20

                  Hi gbona,
                  Did you checked that your I2C oled is visible with i2cdetect ? If so does his I2C address is 0x3C ?

                  1 Reply Last reply
                  • B Offline
                    B Offline
                    boik
                    wrote on last edited by
                    #21

                    Hi Charles. I am trying to use your library to drive a 128x64 SPI OLED display I got from the internet. It is advertised as being SSD1106 (which I assume means SH1106). I have hacked the CS detect line of your code to force it to use SPI instead of the default I2C (this display has no CS pin). I am getting something on the display, but quite garbled.

                    Here is a video of it running your OLED_demo.

                    Are these symptoms familiar to you. Any ideas of what might need tweaking.

                    Many thanks

                    Graham

                    1 Reply Last reply
                    • CharlesC Offline
                      CharlesC Offline
                      Charles
                      wrote on last edited by
                      #22

                      @boik,
                      Strange, first time I see SPI oled without CS line, would you mind post a picture of the back ?

                      You're right I forgot to add SPI option for SH1106 in oled_demo.

                      1 Reply Last reply
                      • B Offline
                        B Offline
                        boik
                        wrote on last edited by
                        #23

                        Hi Charles,

                        [IMG]http://i68.tinypic.com/6zwsjl.jpg[/IMG]

                        Heres a pic of it running the circle, square, triangle cross demo. Just displays the bottom 8 lines of the image but at the top of the OLED.

                        [IMG]http://i64.tinypic.com/2mhbn7k.jpg[/IMG]

                        Not sure if this forum accepts IMG tags?

                        Graham

                        1 Reply Last reply
                        • D Offline
                          D Offline
                          Deennoo
                          wrote on last edited by
                          #24

                          Hello Charles

                          I got a freebox server out of ordre.

                          There is a ssd1327 screen on it.

                          If i send you the pcb pictures can you help me to find the good pin to plug it to my PI ?

                          M 1 Reply Last reply
                          • CharlesC Offline
                            CharlesC Offline
                            Charles
                            wrote on last edited by
                            #25

                            @Deennoo
                            you can post the picture on the forum, may be some other will know, because I'm not sure I will.

                            1 Reply Last reply
                            • D Deennoo

                              Hello Charles

                              I got a freebox server out of ordre.

                              There is a ssd1327 screen on it.

                              If i send you the pcb pictures can you help me to find the good pin to plug it to my PI ?

                              M Offline
                              M Offline
                              Matthieu Laborie
                              wrote on last edited by
                              #26

                              @Deennoo

                              Hi, did you succeed getting the freebox server Oled Display work with a raspberry or Arduino? Did you find any wiring schema, or source code. I would like to reuse the whole SSD1327 and CAP1066 pad of the freebox.

                              Regards

                              1 Reply Last reply
                              • A Offline
                                A Offline
                                akdracom
                                wrote on last edited by
                                #27

                                I followed your procedures and up to the part of :

                                git clone https://github.com/hallard/ArduiPi_OLED

                                and received the following error message and can't go further :

                                fatal: could not create work tree dir 'ArduiPi_OLED'.: No space left on device

                                I am using a 8GB SD card and I think I have enough space - don't I ?

                                I then issued df -Bm command to check space with following :

                                Filesystem 1M-blocks Used Available Use% Mounted on
                                /dev/root 4196M 4087M 0M 100% /
                                devtmpfs 483M 0M 483M 0% /dev
                                tmpfs 487M 0M 487M 0% /dev/shm
                                tmpfs 487M 7M 481M 2% /run
                                tmpfs 5M 1M 5M 1% /run/lock
                                tmpfs 487M 0M 487M 0% /sys/fs/cgroup
                                /dev/mmcblk0p6 63M 20M 44M 31% /boot
                                tmpfs 98M 0M 98M 0% /run/user/1000

                                Am I running out of memory or what, please advise - thanks

                                1 Reply Last reply
                                • A Offline
                                  A Offline
                                  akdracom
                                  wrote on last edited by
                                  #28

                                  I forget to mention that in my SD card - I also have installed a media player OS (OpenElec) in addition to the Raspian OS

                                  1 Reply Last reply
                                  • CharlesC Offline
                                    CharlesC Offline
                                    Charles
                                    wrote on last edited by
                                    #29

                                    @akdracom
                                    your're missing space on SD card 100% on /dev/root, you're SD seems to be formatted to 4GB

                                    May be trying raspiconfig and select the menu to expand filesystem to use full SD Size (8GB) will help

                                    1 Reply Last reply
                                    • D Offline
                                      D Offline
                                      donde
                                      wrote on last edited by
                                      #30

                                      Screen Never Lights
                                      New to OLED. Waiting for SSH1306 1.3" display like on Adafruit website. Sent for SH1106 display instead. Pinouts are left to right: VDD VSS SCK SDA D/C CS1 FS0 CS2
                                      Using Pi Zero. Went through tutorial OK I think. 2 problems:

                                      root@raspberrypi:~# ls /dev/i2c*
                                      /dev/i2c-0
                                      root@raspberrypi:~# ls /dev/spi*
                                      /dev/spidev0.0 /dev/spidev0.1

                                      The first check returned /dev/i2c-1 instead of /dev/i2c-0
                                      The second response was OK.
                                      Now I wasn't at root when I did commands, but at user.
                                      Other problem I had to supply sudo for
                                      ./oled_demo --verbose --oled 6
                                      I received this:

                                      pi@raspberrypi:~/ArduiPi_OLED/examples $ ./oled_demo --verbose --oled 6
                                      oled_demo v1.1
                                      -- OLED params --
                                      Oled is : SH1106 I2C 128x64
                                      -- Other Stuff --
                                      verbose is : yes

                                      bcm2835_init: Unable to open /dev/mem: Permission denied
                                      pi@raspberrypi:~/ArduiPi_OLED/examples $ sudo ./oled_demo --verbose --oled 6
                                      oled_demo v1.1
                                      -- OLED params --
                                      Oled is : SH1106 I2C 128x64
                                      -- Other Stuff --
                                      verbose is : yes

                                      x: 9y: 0dy: 3
                                      x: 30y: 0dy: 2
                                      x: 111y: 0dy: 2
                                      x: 81y: 0dy: 4
                                      x: 41y: 0dy: 2
                                      x: 85y: 0dy: 5
                                      x: 7y: 0dy: 5
                                      x: 76y: 0dy: 2
                                      x: 72y: 0dy: 3
                                      x: 76y: 0dy: 4

                                      Nothing on screen!
                                      I wired it this way from Pi Zero
                                      Pi 5 volts to Vdd
                                      Pi GND to Display VSS
                                      Pi SCL to Display SCK
                                      Pi SDA to Display SDA
                                      IO25 to Display FSO

                                      No ID on Display, just this description:

                                      Features

                                      Self-luminous display for backlight
                                      High resolution: 128 x 64
                                      Viewing angle: >160 degree
                                      Supports many control chip: Fully compatible with Arduino, 51 Series, MSP430 Series, STM32 / 2, CSR IC, etc.
                                      Ultra-low power consumption: full screen lit 0.08W
                                      Voltage: 3V ~ 5V DC
                                      Working Temperature: -30 oC ~ 70 oC
                                      Module Size: 32.0mm x 35.50mm x 4.1mm
                                      SPI Interface, need 4 IO only.
                                      Driver IC: SH1106
                                      

                                      Package Includes

                                      1 x 1.3" SPI Serial 128X64 OLED LCD LED Display Module for Arduino UNO R3
                                      

                                      Not sure what try next. What turns on screen to see at least something?
                                      Thanks ... donde

                                      1 Reply Last reply
                                      • D Offline
                                        D Offline
                                        donde
                                        wrote on last edited by
                                        #31

                                        I looked closer at box the display came and it said it is for SPI mode. I tried i2C and didn't light up. Then, tried SPI and still no success. Doesn't seem to be a RST pin. I see no pictures of the same pin arrangement on the Net. Looks to be a special display no one knows about. Guess I'll return it and hopefully the SSH1306 will be available soon, Sorry to take up so much room here is this comments section. Moderator, you can delete all I said on first post. donde

                                        1 Reply Last reply
                                        • fiveseven808F Offline
                                          fiveseven808F Offline
                                          fiveseven808
                                          wrote on last edited by
                                          #32

                                          I'm wondering if anyone can help me here... so using I2C, this driver works flawlessly! However, using SPI, I can't get my display to do anything (using the pinouts on the site). I know the display sort of works because the adafruit python library displays something (i think something is wrong with my screen). However, there is zero response with SPI.

                                          Any ideas?

                                          1 Reply Last reply

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          2

                                          Online

                                          5.8k

                                          Users

                                          565

                                          Topics

                                          5.3k

                                          Posts

                                          Top Topics

                                          Popular Tags

                                          teleinfo
                                          25 topics
                                          arduino
                                          19 topics
                                          remora
                                          16 topics
                                          esp8266
                                          10 topics
                                          arduipi
                                          10 topics
                                          raspberry
                                          8 topics
                                          wifinfo
                                          7 topics
                                          broadcast
                                          7 topics
                                          Copyright © 2022 Charles-Henri Hallard | Return to blog page | Powered by NodeBB
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Blog
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups