I have a sketch which is written for an SPI OLED display. The 2.2" OLED display I have bought has the following pins:
Serial Peripheral Interface Pins:
1.GND(Power Supply Ground)
2.VCC(Power Supply Positive)
3.SCL(Clock Line)
4.SDA(Data Line)
5.RES(Reset Line)
6.DC(Data/Command)
7.CS(Chip Select)
On the circuit diagram for the hardware, it shows DC, CLK, CS, Reset and MOSI. Is MOSI a data lne, the same as the SDA pin please?
Will this display connect directly to the Arduino or is there anything else I should know?
Once verified working, I would like to convert the sketch to I2C, should that present any great difficulty?
Life is much easier if you just post a link to your display. e.g. the Ebay sale page.
I have never seen a 2.2 inch OLED.
David.
Thanks for the link. Copy-pasting the link is a lot easier than typing by hand.
Ah-ha. 2.42 inch !!
Yes, it appears to have a 3.3V regulator on the pcb. So you can connect VCC to 5.0V.
You can probably drive the signals with 5V logic. I would be happier with 3.3V logic e.g. Zero, Due, STM32, ...
Connect SDA to MOSI pin on your Arduino.
U8G2 library has almost certainly got a constructor for this display.
David.
Thanks David. I hadn't considered the 3.3V situation. Maybe I will move to something else from my Nano board. I could use a Teensy 4.0 , but I suspect they are not supported here!
ZinggJM
February 17, 2020, 4:21pm
6
I am sure that U8g2 will run on Teensy 4.0
I suspect that SSD1309 is "safe" with 5V logic providing it has 3.3V power.
Other Solomon chips seem to be input voltage tolerant.
But since the display is expensive, I would try with 3.3V logic first.
Oliver will probably have an accurate answer.
David.
@Jean-Marc ,
Similar screen. Different pcb. Bad reviews (but they might just be using the wrong libraries)