SSD1306 OLED (72x40) I2C display from scratch


+ Reply to Thread
Results 1 to 40 of 74

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 OLED (72x40) I2C display from scratch

    Use a logical analyzer to see if the module responds to "Initializing command set" when it fails. If it doesn't respond you can try a longer pause "PAUSE 500 ' let display settle".

    Check that you don't have any noise in the power lines or control lines.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default SSD1306 OLED (72x40) I2C display from scratch

    Quote Originally Posted by rsocor01 View Post
    Use a logical analyzer to see if the module responds to "Initializing command set" when it fails.
    How would I do this?

    BTW, I just noticed that the module won't start up again if the time between a shut off and switch on is below 2-3 secs. Anyway, it is strange.

    So, if I leave the module unpowered for more than 5 seconds, it'll always restart.

    Maybe this is something absolutely "normal".
    Roger

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 OLED (72x40) I2C display from scratch

    Connect a logical analyzer to tx and rx. They are not expensive. Digikey has one for $20. You can see the ones and zeroes going to the module and coming back to the pic. If you don't use a logic analyzer, it is like shooting in the dark.

    About that 2-3 seconds observation, it is very likely that it is a power issue. Maybe you have a large cap that is holding a charge.


    https://www.digikey.com/en/products/...DgGxgOwgF0BfIA
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 OLED (72x40) I2C display from scratch

    Quote Originally Posted by rsocor01 View Post
    Connect a logical analyzer to tx and rx.
    Okay. Maybe the one from the PICKit Logic Tool may do the trick.

    Name:  2024-12-25 21_14_46-PICkit Logic Tool.jpg
Views: 317
Size:  72.8 KB

    I'll give it a try but I'm quite sure there must be something with the modules themselves.

    Thanks
    Roger

  5. #5
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: SSD1306 OLED (72x40) I2C display from scratch

    I use a Saleae analyzer with 16 channels. It makes my life a lot easier.

    Name:  protocol-decoders.jpg
Views: 1194
Size:  58.3 KB
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  6. #6
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default SSD1306 OLED (72x40) I2C display from scratch

    Thanks. Should have asked Santa a few days ago

    Anyway, this might clearly be on my list of tools to acquire.
    Roger

Similar Threads

  1. big char oled display
    By mombasa in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th September 2020, 07:02
  2. SSD1306 start display problem
    By harryweb in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th December 2016, 19:16
  3. Cannot drive I2C Oled :(
    By elcrcp in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 20th August 2016, 12:19
  4. OLED Display Noise problem
    By gunayburak in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 5th July 2016, 10:15
  5. Help With OLED Display / 128X64 SSD1306
    By Denner in forum General
    Replies: 6
    Last Post: - 25th May 2013, 15:40

Members who have read this thread : 23

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts