Problems using oled lcd 124x64 on udoo neo

Discussion in 'UDOO NEO' started by ashtonkase, Jan 14, 2017.

  1. ashtonkase

    ashtonkase New Member

    Joined:
    Jan 7, 2016
    Messages:
    9
    Likes Received:
    1
    I have run into a brickwall trying to test my new oled lcd display using both the udoo neo full arduino . i will prefer a step by step guide on how to get it working on the arduino and also on the A9 without using the arduino.kindly note this screen works well with the raspberry pi zero.


    below is a link to the display:
    https://www.aliexpress.com/item/Fre...32658340632.html?spm=2114.13010608.0.0.nEpJ0X

    also here is a library used by Ada for both arduino and python

    https://github.com/adafruit/Adafruit_SSD1306

    https://github.com/BLavery/lib_oled96
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    The libraries and your lcd is using SPI. The Neo Arduino SPI library is based on an old library that is not compatible with the one your lcd libraries are using.

    This is one of the known issues.
    Edit: add link to known Arduino issues topic: http://www.udoo.org/forum/index.php?threads/4513/
     
  3. ashtonkase

    ashtonkase New Member

    Joined:
    Jan 7, 2016
    Messages:
    9
    Likes Received:
    1
    Thank you Waltervl,this issue got me all worked up for a week now.
    The udoo team did a good work on misleading the noobs on Microcontrollers on the doc page. Some of us are just hobbyists
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Luckily we have the forum! :)
     
  5. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    Based on the pictures in the above link your OLED is the I2C version (4 pins) not SPI as indicated by waltervl. I have the same display and adopted some sample code to prove it works on the A9 however I would need to see if I still have the code still lying around. For the A9 side you can connect it to I2C2 or I2C4 pins and simply use i2cdetect to verify its presence as a first step.

    For ardunio side you would need to port the libraries across however in my opinion I wouldn't as the whole ardunio layer isn't in a good state due to the way its currently implemented.
     
    Last edited: Jan 15, 2017
    waltervl likes this.
  6. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Damn, I didn't look at the display itself, just at the libraries. Isn't there an Arduino I2C library for this display?
     
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  8. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Hi @ashtonkase, can you tell us what is difficult to understand in the docs?
     
  9. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Th
    That was my fault, I made a mistake and linked the screen to SPI instead of I2C.

    Nevertheless, SPI is not well documented:
    - No mention of using old Arduino SPI library in Arduino Differences
    - No clear instruction how to activate SPI on Arduino Neo
     
  10. gheesung

    gheesung New Member

    Joined:
    Apr 16, 2017
    Messages:
    12
    Likes Received:
    2
    Thanks jas-max for the pinout diagram. I have accidentally connected to the outer row of J6 and wondering why it was not working. Now it is working with SSD1306 library. I have tried J5 I2C2 but it didn't work.

    btw, what is pinout diagram of outer row of J4, J5, J6 & J7?
     
    waltervl likes this.
  11. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580

Share This Page