Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:49 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : 2.42" SSD1309 with Pi Pico

Author Message
asknik2022
Regular Member

Joined: 26/03/2022
Location: United Kingdom
Posts: 92
Posted: 07:25pm 29 May 2024
Copy link to clipboard 
Print this post

I am trying to configure an ZJY_M242 2.42" OLED via SPI but have no idea if this is set as an SPI or IIC Mode

two unjumpered connections R3 and R5 (?IIC)
one jumpered connection R4 (?SPI)

Also there is no SSD1309 display listed in the manual so can i use SSD1306SPI

The pinouts are labeled
GND
VCC
SCL
SDA
RES
DC
CS

So which pins are SCK and SDI for SPI Setup
Do i need to use pull up/down resistors?
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 11:01pm 29 May 2024
Copy link to clipboard 
Print this post

Interesting module, if pricy. I would say that SCL is SCK, and SDA is SDI.

But why not try it as I2C and use only 2 pins?

I've long wondered why there wasn't an I2C OLED with the same resolution as the .96-inch ones, but just with bigger pixels.

If this cost half as much, I'd buy some.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9110
Posted: 08:47am 30 May 2024
Copy link to clipboard 
Print this post

It is unlikely that this display will work with the SSD1306 driver and it is far too expensive to buy one to develop a driver. If you want a large mono 128x64 display then the ST7920 is supported over SPI
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3150
Posted: 12:09pm 30 May 2024
Copy link to clipboard 
Print this post

  matherp said  If you want a large mono 128x64 display then the ST7920 is supported over SPI


Thanks for the suggestion, but if the choice is SPI, then the ILI9341s are larger, cheaper, have higher resolution, have full color range, and if desired, have touch (and SD card).

I2C mono only preferable (in certain instances) if the size is 2.2 inches or greater, and the cost is no more than about $3USD.

Maybe power utilization could be a factor--I'm powering a .96" OLED from an ESP32 pin--because it's convenient from a wiring standpoint.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 284
Posted: 12:29pm 30 May 2024
Copy link to clipboard 
Print this post

  matherp said  It is unlikely that this display will work with the SSD1306 driver and it is far too expensive to buy one to develop a driver. If you want a large mono 128x64 display then the ST7920 is supported over SPI


I wasn't aware of this display, but it looks interesting. How is it connected to SPI, it looks like a parallel connection to me?

Link To ST7920

Thanks.

Dave.
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2135
Posted: 12:56pm 30 May 2024
Copy link to clipboard 
Print this post

This seller includes some of the data-sheet which shows serial or parallel is selected with pin 15.

Scroll down to "view more" and click.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9110
Posted: 01:04pm 30 May 2024
Copy link to clipboard 
Print this post

  Quote  How is it connected to SPI, it looks like a parallel connection to me?

See this thread for wiring
Edited 2024-05-30 23:07 by matherp
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 284
Posted: 02:32pm 30 May 2024
Copy link to clipboard 
Print this post

Thanks for the info. I'll have a look at these.

Dave.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024