Arduino Connect SSD1331 OLED Display & ST7789 Display

by RonFrtek in Circuits > Arduino

234 Views, 1 Favorites, 0 Comments

Arduino Connect SSD1331 OLED Display & ST7789 Display

Arduino Connect SSD1331 OLED Display & ST7789 Display

In this tutorial we will learn how to connect the SSD1331 OLED Display & ST7789 Display to Arduino using the Visuino program.

Watch the video.

What You Will Need

ssd1331.jpg
ST7789V.jpg
New-Mini-Universal-Test-Protoboard-400-Tie-Points-PCB-Breadboard-for-Arduino.jpg
FMT2X9VKEY93G5P.jpg
FNLOD2CKEY93G5N.jpg
VisuinoAdvrtisementNewDesign1.jpg

  • Arduino UNO (or any other Arduino)
  • SSD1331 OLED Display
  • ST7789 Display
  • Breadboard
  • Jumper wires
  • Visuino program: Download Visuino

The Circuit

2021-10-11_16-21-13.jpg
  • Connect Arduino 5V to ST7789-LCD pin VCC
  • Connect Arduino 5V to ST7789-LCD pin BLK
  • Connect Arduino GND to ST7789-LCD pin GND
  • Connect ST7789-LCD pin SCL to Arduino digital pin 13
  • Connect ST7789-LCD pin SDA to Arduino digital pin 11
  • Connect ST7789-LCD pin Reset to Arduino digital pin 9
  • Connect ST7789-LCD pin DC to Arduino digital pin 8
  • Connect SSD1331-Display pin[CS] to Arduino digital pin[7]
  • Connect SSD1331-Display pin[DC] to Arduino digital pin[8]
  • Connect SSD1331-Display pin[RES] to Arduino digital pin[5]
  • Connect SSD1331-Display pin[SDA] to Arduino digital pin[11]
  • Connect SSD1331-Display pin[SCL] to Arduino digital pin[13]
  • Connect SSD1331-Display pin[VCC] to Arduino positive pin[+5V]
  • Connect SSD1331-Display pin[GND] to Arduino ground pin[GND]

Start Visuino, and Select the Arduino UNO Board Type

FRBIHI1KSKPYNHX.jpg
F311FBVK5AHN5HJ.LARGE.jpg

The Visuino: https://www.visuino.eu also needs to be installed. Download Free version or register for a Free Trial.

Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

In Visuino Add & Connect Components

2021-10-11_15-28-51.jpg
2021-10-11_15-28-21.jpg
2021-10-11_15-29-37.jpg
2021-10-11_15-32-33.jpg
2021-10-11_15-30-05.jpg
2021-10-11_15-30-23.jpg
2021-10-11_15-31-41.jpg
2spi.png
2021-10-11_15-31-56.jpg

Add "Digital Multi-Source Merger" component

Add "SSD1331 OLED Display (SPI)" component

Add "TFT Color Display ST7735/ST7789" component

Select "Display1" component and in the properties window select Type: dtST7789_240_240


  • Double click on the "DisplayOLED1" component and in the Elements window Drag "Draw Text" to the Left Side and in the Properties window set size to 3 and text to: SPI1
  • Close the Elements window
  • Double click on the "Display1" component and in the Elements window Drag "Draw Text" to the Left Side and in the Properties window set size to 3 and text to: SPI2
  • Close the Elements window

  • Connect "DisplayOLED1" pin [Reset] to Arduino digital pin[5]
  • Connect "DisplayOLED1" pin [Data Command] to to DigitalMultiMerger1 pin [0]
  • Connect "DisplayOLED1" pin [Out SPI] to Arduino pin[SPI In]
  • Connect "DisplayOLED1" pin [Chip Select] to Arduino digital pin[7]

  • Connect Display1 pin Out SPI to Arduino board pin SPI In
  • Connect Display1 pin Reset to Arduino board digital pin 9
  • Connect Display1 pin Register Select to DigitalMultiMerger1 pin [1]
  • Connect DigitalMultiMerger1 pin [Out] to Arduino board digital pin 8

Generate, Compile, and Upload the Arduino Code

FOQOHC1KLWB8FIX.jpg

In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Play

If you power the Arduino UNO module, the One Display will show text "SPI1" and the other Display will show text "SPI2".

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable, you can download it and open it in Visuino: https://www.visuino.eu