0.96 oled SPI configuration

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
albertobonati
Normal user
Posts: 40
Joined: 13 Dec 2016, 15:25

0.96 oled SPI configuration

#1 Post by albertobonati » 30 Oct 2017, 21:18

Hi.
In hardware settings I read:
Init SPI: (Note : Chip Select (CS) config must be done in the plugin)

I know how connet I2C oled, but what about SPI connection to ESP?

I have 6 pins SPI oled:
GND
VCC
SCL:CLK clock
SDA : MOSI data
RST: MOSI data
D/C data/command

thanks
Alberto

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: 0.96 oled SPI configuration

#2 Post by vader » 30 Oct 2017, 22:40

SDA and SCL are I2C. MISO and MOSI are described under "Hardware --> SPI Interface" where to connect to.

albertobonati
Normal user
Posts: 40
Joined: 13 Dec 2016, 15:25

Re: 0.96 oled SPI configuration

#3 Post by albertobonati » 31 Oct 2017, 23:04

OK... I see this in MEGA version:

Note: CLK=GPIO-14 (D5), MISO=GPIO-12 (D6), MOSI=GPIO-13 (D7)
Note: Chip Select (CS) config must be done in the plugin

But what about CS? Where I have to connect this?

Regards
Alberto

TD-er
Core team member
Posts: 8752
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: 0.96 oled SPI configuration

#4 Post by TD-er » 31 Oct 2017, 23:53

Are you really sure you have the SPI version?
You describe pins for I2C (SDA/SCL)

SPI is using a clk, MISO & MOSI pins and a chip-select line.
I thought the SPI versions had 7 pins: https://www.banggood.com/7Pin-0_96-Inch ... ?rmmds=buy

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: 0.96 oled SPI configuration

#5 Post by vader » 01 Nov 2017, 00:14

There is only 1 Pin left: D/C. The "C" could be Chip Select!? Try it. No risk, no fun. ;)

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: 0.96 oled SPI configuration

#6 Post by vader » 01 Nov 2017, 00:21

TD-er wrote: 31 Oct 2017, 23:53 Are you really sure you have the SPI version?
You describe pins for I2C (SDA/SCL)

SPI is using a clk, MISO & MOSI pins and a chip-select line.
I thought the SPI versions had 7 pins: https://www.banggood.com/7Pin-0_96-Inch ... ?rmmds=buy
Must not be! Look here:
http://www.rhydolabz.com/displays-c-88/ ... -2260.html

albertobonati
Normal user
Posts: 40
Joined: 13 Dec 2016, 15:25

Re: 0.96 oled SPI configuration

#7 Post by albertobonati » 01 Nov 2017, 08:59

Well..I have 7 pin version and 6 pins version.
In 7 pin version it's possible to set I2C or SPI interface changing SMD resistor position, I used them but only in I2C mode.
In 6 pins version you can't do this (I think..) and it's only SPI interface, although pin name is SDA/SCL.
My 6 pin version is exactly this:
http://www.rhydolabz.com/displays-c-88/ ... -2260.html

I tryed in I2C mode but don't work.
So I tryed to use it in SPI mode with ESP8266, with Arduino board it work fine but I can see in sketch pin assignament.
In ESP Easy normal version, in hardware page I foun only this:

Note: Chip Select (CS) config must be done in the plugin

In MEGA version a further help:
Note: CLK=GPIO-14 (D5), MISO=GPIO-12 (D6), MOSI=GPIO-13 (D7)
Note: Chip Select (CS) config must be done in the plugin

So I know how to connect SCL, SDA, RST (referring pin names in my board) but don't work, maybe I have to connect DC pin too, but where?
I don't find documentation about this....
Best regards
Alberto

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: 0.96 oled SPI configuration

#8 Post by vader » 01 Nov 2017, 09:52

Have you read the item description from my link above? The solution stand there (you are in advantage if you had read it!)

.....
For the I2C setup it demands a little bit of work on the module. Actually it was one of our customers who shared these simple configuration steps with us, start with resoldering the resistor from position R3 to R1 and then short the R8 resistor with some solder tin (0 Ohm resistor). The R6 and R7 pullup resistors are already soldered, nothing to do there. Once done, the module is ready for I2C communication! The CS Pin is not necessarily needed, so just connect it to GND. The DC Pin selects the address. For standard address wire it to GND. The RES-pin needs a low pulse at startup and high voltage during operation (as in SPI mode), a 100nF capacitor to GND and a 10k res to VCC would be ideal!
.....

albertobonati
Normal user
Posts: 40
Joined: 13 Dec 2016, 15:25

Re: 0.96 oled SPI configuration

#9 Post by albertobonati » 01 Nov 2017, 10:46

Sorry, I did a mistake... this is my module:

https://www.amazon.it/gp/product/B074M9 ... UTF8&psc=1

It look like your at front side, but not at back side...

specifications:

0,96 pollici OLED Display - alleu d9011 2pcs 128 X 64 Pixel OLED Display per Arduino, Raspberry Pi e microcontroller
Caratteristiche dell' articolo:
Non richiede l' unità può essere anche di retroilluminazione, il display luminoso
Alta risoluzione: 128 X 64
Angolo di visione: più di 160 gradi
Supporta molti Control chip: pienamente compatibile con Arduino, 51 Series, MSP430 Series, STM32/2, CSR IC, ecc.
Basso consumo energetico ultra: Full Screen Lit 0,08 W
Tensione: V ~ 5 V DC
Temperatura di funzionamento: -20 ~ 30 gradi Celsius a 70 gradi Celsius
Modulo Dimensioni: 27,0 mm x 27,0 mm x 4.1 mm
Interfaccia SPI
Driver IC: SSD1306
Package:
2 X 0,96 OLED

I'ts only a SPI device...and I want to use it with this interface if possible.
Regards
Alberto

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: 0.96 oled SPI configuration

#10 Post by vader » 01 Nov 2017, 12:11

Maybe you find here a solution....

http://forum.arduino.cc/index.php?topic=300763.0

albertobonati
Normal user
Posts: 40
Joined: 13 Dec 2016, 15:25

Re: 0.96 oled SPI configuration

#11 Post by albertobonati » 01 Nov 2017, 13:45

Thanks, but on my arduino it work fine...
I need a solution for ESP8266 and ESP Easy...
Regards
Alberto

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: 0.96 oled SPI configuration

#12 Post by Drum » 01 Nov 2017, 17:43

I do know the ESP8266 will support SPI displays. I have a adafruit 2.4 inch TFT featherwing and it works with the examples provided. Getting it to wok on ESPEasy is another thing all together. I have been working on it, but I am not sure if this is possible for me. Time will tell....

Post Reply

Who is online

Users browsing this forum: No registered users and 130 guests