- Availabilty: Directly available from warehouse in Eindhoven
- Model: 0.96OLEDBLUE
- SKU: 000618
A 0.96 inch OLED display of 128*64 blue pixels and very good viewing angles of at least 160 degrees.
To connect the display you can follow the Adafruit manual for the majority.
The required library and manual can be found here.
|VCC||3.3V or 5V power supply|
|D0||CLK (clock of SPI or I2C)|
|D1||MOSI (data signal from SPI or I2C)|
|CS||Chip select signal|
This screen can also be used with an I2C connection. This requires various modifications. We do not recommend this if you have little experience with (SMD) soldering.
Please note: Execution of the modification is at your own risk!
- Soldering iron/soldering station
- A little bit of soldering tin
- A 100nF capacitor
- A 10K resistor (wire resistance advised)
- A recent version of Arduino that allows libraries to be installed automatically
- An internet connection
Step-by-step plan to convert the screen from SPI to I2C Communation:
- Test the OLED display with SPI to check that your system and OLED screen are functional (see links above)
- Remove the resistance at R3 and keep it:
- Solder the stored resistance from step 2 to the empty spot at R1. You can also use a 4.7K wire resistor if you have little experience with SMD soldering.
SMD Resistance Wirewound
- Solder the soldering surfaces at R8 together with soldering tin (solder bridge):
- Make the following setup so that the RES pin is properly connected:
- Connect the pins of the LCD screen in the following way:
OLED Display Pin Connect to: GND Ground/min/earth VCC 3.3V or 5V power supply D0 Pin 12 on Arduino D1 Pin 11 on Arduino RST see step 5 for connection DC Ground/min/earth CS Ground/min/earth
- Install the U8g2 library via the Arduino IDE: Sketch -> Use library -> Manage libraries ... (search for U8g2 and install the most recent version)
- Open a new sketch in Arduino and use the following code to use the OLED display in I2C mode.
- Now you can use your OLED screen with I2C!
For a exampleof the connections with an Arduino Uno, see the following page: SSD1306 Display SPI Connection or I2C (According to resistors)
In this example a Software I2C implementation is used. This implementation is also compatible with microcontrollers that do not have an internal I2C controller. Would you rather use the internal (Hardware/HW) I2C controller? Then follow the following steps:
- Change the next piece of code from the example above:
U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8 (12, 11, U8X8_PIN_NONE);
U8X8_SSD1306_128X64_NONAME_HW_I2C u8x8 (U8X8_PIN_NONE);
- Connect pin D0 of the OLED screen to the I2C SCL pin of your Arduino. (A5/SCL pin on Arduino Uno and Nano models, 21/SCL pin on the Arduino Mega )
- Connect pin D1 of the OLED screen to the I2C SDA pin of your Arduino. (A4/SDA pin on Arduino Uno and Nano models, 20/SDA pin on the Arduino Mega )
- Upload the new code