Go Down

Topic: Need Help to manage OLED with Arduino UNO (Read 148 times) previous topic - next topic

Good night everybody.


My name is Vincent. I have some problems to wire and setup my OLED Display with arduino.

I bought a OLED Display ( http://www.buydisplay.com/default/serial-oled-module-price-3-2-inch-display-256x64-screens-white-on-black )

I´ve connect wires as here shows:

http://www.buydisplay.com/download/interfacing/ER-OLEDM032-1_Interfacing.pdf

" The Serial 4 Line SPI Reference Example "

Then, I download the " u8glib_arduino_v1.17pre2" that linked in other chat.

And, It doesn´t work, the display make nothing... I´ve tried with other display (the same model), and nothing...

I don´t know what to do... and, as you can see, I don´t have so knowledge of this kind of things, but I have to do.

Hope don´t bother you, and thanks for your time.

Vincent

rowboteer

First we need to check your connections.  Which Arduino board are you using and what connections have you made between the Arduino board and the display? I need a simple net list,  I. E. Connected Arduino pin 13 to display pin x, etc etc

How are you powering the display?

Also attach the sketch for checking, since you may not be using the correct one.

rowboteer

Also please confirm you have set the configuration links on the display board for 4 wire SPI as per pdf document. This may involve fitting or removing links or resistors.

#3
Apr 23, 2015, 11:32 am Last Edit: Apr 23, 2015, 11:34 am by vicentesai
Hi rowboteer.

I connected like this:

OLED        ARDUINO UNO

1                  GND
2                   5V
3                  ------
4                  SCLK A1
5                  SDIN A2
6                  ------
7                  GND
8                  GND
9                  GND
10                GND
11                GND
12                GND
13                GND
14                 DC A0
15                RESET
16                 CS A3


Thanks.

rowboteer

Ok, and what configuration links are fitted/not fitted to the display circuit board in positions R18, R19, R20 and R21?

#5
Apr 23, 2015, 08:57 pm Last Edit: Apr 23, 2015, 08:59 pm by vicentesai
I attached the pic, better.


Thanks.

rowboteer

#6
Apr 24, 2015, 01:51 am Last Edit: Apr 24, 2015, 10:30 am by rowboteer
Okay,  great photo!

I see that R18 and R21 are fitted, this means the display is configured for the parallel interface (8080 MCU mode) in the diagram you provided a link to.

If you want to use the 4 wire SPI interface you will need to unsolder the link resistor from position R18 and refit it in position R19. Then try your sketch again.

rowboteer

#7
Apr 24, 2015, 11:17 am Last Edit: Apr 24, 2015, 12:30 pm by rowboteer
Based on the discussion in the thread you mention, and after examining the "Hello world" example sketch, the constructor line you should use for the SPI 4 line interface is:

U8GLIB_NHD31OLED_2X_GR u8g(13, 11, 10, 9);   // SPI Com: SCK = 13, MOSI = 11, CS = 10, A0 = 9

 If you have changed the pin allocations in that constructor to the ones you have wired up then it may work, but the SPI data and clock lines will then be "bit bashed" by software hence display updates will be relatively slow. It would be advisable to use the hardware SPI pins as listed in the constructor above.


Looking at the data sheet indicates the display has 3.3V input logic levels, the 5V levels from the UNO may damage it, thus you should add protection resistors in line with some connections. I have no way of testing this but I would try the connections as follows:
 be:
OLED        ARDUINO UNO

1                  GND
2                   5V
3                  ------
4                  through 1K2 resistor to pin 13 (SCLK)
5                  through 1K2 resistor to pin 11 (SDIN)
6                  ------
7                  ------
8                  ------
9                  ------
10                ------
11                ------
12                ------ (or connect to 3.3V, or via 10K resistor to 5V)
13                ------ (or connect to 3.3V, or via 10K resistor to 5V)
14                through 1K2 resistor to pin 9 (/DC)
15                through 1K2 resistor to RESET
16                through 1K2 resistor to pin 10 (/CS)

The 1K2 resistors should protect the display logic inputs from damage.

Report back on your findings!

Ok, Thanks !!!

I'm gonna do it and try again, and let you know if it runs.


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy