SPI/I2C OLED display


#92

About to push the button on 5 displays on Ebay... And now I wonder does it matter if I get SPI or IC2? I have both options to choose from?

SPI IC2? Any difference?

UPDATE: Bought the IC2's.... :slight_smile:


#93

Incidentally, be really careful not to short something out when you have a loose component like that screen. I make DIY Eurorack modules, and accidentally shorted a module I had attached to a power ribbon hanging out of the front of my case against a metal part of the case itself.

Fortunately, the part of the module that was destroyed was easily replaceable, and nothing else seems to have been damaged, but you do need to be careful if you have untethered components with exposed contacts.

Apologies if you already know this, just thought it worth mentioning, as it's something that caught me out recently.


#94

Oh man !!!!! :open_mouth: I'm so exited to try this out!!!


#95

Hi all, I bought an Oled display but I'm stumped as to how to get any text to it. Are there specific instructions or a starter patch somewhere? Thanks, G


#96

Whoah! Got it! Amazing - thanks so much Smashed Transistors...


#97

Thank you SmashedTransistors!

I have ordered this module:
https://de.aliexpress.com/item/1-3-inch-132X64-OLED-display-module-blue-on-black-3-wire-SPI-4-wire-SPI/1472487807.html?isOrigTitle=true

It is the same as here (Backside viewing image available):

The module can be switched to I2C by desoldering the resistor on the back of the module and moving it to the I2C position. The screen printing shows the exact positioning of these solder tabs.

The wiring is then as follows:

GND: power ground --> GND
VCC: --> VDD
D0: CLK clock (sdk/scl k) --> PB8
D1: MOSI data (sda) --> PB9
RST: reset --> VDD
DC: data/command --> GND
CS: chip select signal --> GND

I also used the two resistors 10k as mentioned above.
In the object OLED128x64 set the type SH1106 and the I2CADDR to 0x3C.

And to all beginners:
To avoid errors during compilation the object tiar/disp/scope has to be included! Even if it is not used and you only display text lines.

Ingenious thing - thanks!


Need help with OLED
#98

just to clarify, you can also use the normal scope, it does not have to be the one from tiar...


#99

Hi,

Did anyone here ever try hooking up an RGB OLED ? Wondering if the Axoloti will have enough RAM to draw multiple layers on a 128*128 16bit screen..


#100

With the "simple" monochrome OLED, i had to write a specific object and experiment with control bytes and ways to minimize the CPU and RAM impact of the display. That's why it is quite limited.

I think that a better solution for higher graphics will be to add an Arduino Due with a touch screen.

Suche a device would communicate through serial port with the Axoloti using some MIDI sysex protocol.
That would work most like a sysex preset editor/librarian.

@johannes is working on a controller with screen and buttons for the Axoloti but we did not had news about this thrilling project for a few months now :thinking:

Thus I'm waiting for news from the official controller before i start a work on a personal solution that would be redundant and not compatible with the official controller design.


#101

Using a Due is an option, definitely. I'm prototyping something that I hopefully will be selling commercially, so I need to find a way to minimize costs a little bit. Having to put both an Axoloti and a Due in each machine doesn't seem very cheap in the long run, but for prototyping it's a fine idea. I sent an email to Johannes asking if he would be interested in some cooperation, and how it works out in terms of copyright using his machines in a standalone device. Does anyone here know ? It's off topic, I know


#102

He's not just supposed to control monitors.
I only use the small one to get information about parameters. Visual feedback so to speak.


#103

Is there any trick to change the orientation of the oled display? It is working but it fit better in my enclosure if I invert how it show the lines. Thanks!


#104

Well, no.
If you really need to do it, you will have to change a good portion of the OLED object's code.


#105

Thanks SmashedTransistors. I will try to rearrange my enclosure.


#106

I've used that touch screen with a teensy, it's a nice screen. Not sure the Due can update as fast as you want, you should double check. the teensy 3.1 was an improvement compared to 2.0 for example..


#107

The due runs at 84MHz, i think it will be enough for managing the display and MIDI controls and sysex.


#108

I ordered two displays through AliExpress, the pictures showed a select option on the back side. But when I received the displays, it turned out there was no option at all. Got the same display types as you and @servandisco. Did you find an option to change the address? I left a feedback note at AliExpress, i hope they will send instructions.


#109

sorry, i did not take that any further. but i have programmed an object that allows me to show and change more than one parameter per row so i was happy with that :slight_smile:


#110

I haven't tried but me and an electronic guru I know bet that to change address you just have to move the o ohm resistors just next to the pins.. maybe both? and given the fact that they are 0 ohm, maybe it's also enough if you just "manage" to remove the resistors and then do test connections using just a drop of solder..


#111

Glad to hear that you sorted things out without using a second display :smile:
For me - the search continues!